- fixed; problem with the new options implementation when cloudinary is not used
- fixed; correctly escaping HTML entities in names through the API
- updated; keystone-utils to 0.1.4
- fixed; better implementation of cloudinary config, fixes #69
- improved; more robust / consistent initialisation of options with process.env variables
- added; new
custom engineoption for using view engines not natively supported byexpress, thanks JeremyFouriaux
- improved; the updateHandler will now allow required fields to be omitted from input data when an item already has a value for the field
- improved; relationship fields now support custom labels and notes, thanks mbayfield
- fixed; support for
headingas a field path, thanks mbayfield
- fixed; res.apiError was broken (when using
keystone.initAPI) - fixed; minor tweaks to the Email class and default template
- updated; keystone-utils to 0.1.3
- added;
momentandparseunderscore methods for thedateanddatetimefields - fixed; bugs searching lists with name fields in the admin ui
- fixed; sorting by name fields in the admin ui was not working correctly
- added; you can now provide a
pathsoption to theUpdateHanderto map custom field names to item field paths for processing - improved; default email templates have been redesigned, with new theme options and defaults, thanks jossmackison
- improved; s3file fields expose a direct
uploadFileunderscore method, for use outside of anupdateHandler, thanks bladey - fixed; support for extended characters in utils.pathToLabel (via
keystone-utils), thanks itzaks
- added; new
s3filefield, thanks bladey
- added; new
list.getUniqueValue(path, generator, limit, callback)method - added; lots of new documentation in the website
- fixed; updating relationship fields from arrays
- improved; updates to the Email class, adding default email templates (based on VIRB Ink, currently very basic)
- removed; br() method from Email template locals (vendor prefixes not necessary in modern browsers anymore)
If you are currently using the br method in your email templates, make sure it is removed or your templates will break.
Note: To run the docs website locally, go to /docs and run node web. It will start up at http://localhost:8080
- misc bug fixes
- added; new
markdownfield type - improved; massive enhancements to the
cloudinaryimage(s)fields, thanks bladey
- added;
keystone.contentclass and the start of a page-content management framework - added; new functionality for integrating front-end editing
- fixed; minor issues with the list controls in the admin UI
- fixed; passing populateRelated string as 3rd argument of View.query
- improved; support for detecting presence of
req.body/req.querykeys onView.on('post' || 'get') - added; support for callbacks in the
keystone.Viewclass. available callbacks areerr(when the first argument returned by the query callback is not null, takes a single argument which is the error),none(when the results array is empty or the results argument is null),then(called unlesserrornoneis present and called, takes three arguments:err,results,next)- e.g.
view.query(as, query, { err: errorHandlerCallback, none: noResultsCallback })or view.query(as, query).none(noResultsCallback).then(defaultCallback)
- e.g.
- added; autokey now supports a
uniqueoption- set to
truefor unique keys within the whole collection, or a filters object for unique keys within a specific set of documents
- set to
- improved; document id is now hidden in favour of the autokey (if there is one)
- press
altto see the document id
- press
- added; you can now navigate to the linked document in a relationship field (only updated on load, for now)
- improved; the
utilslibrary has been moved to its own npm package,keystone-utils - changed; default date format changed from
YYYY-MM-DDtoDo MMM YYYY, it's friendlier- the
formatoption forDateandDatetimefields can be used to override this setting on a per-field basis
- the
- added; ability to use dependsOn with headers, thanks itzaks
- new syntax is
{ heading: 'Heading with dependency', dependsOn: { field: 'value'} }
- new syntax is
- added; url parameter for the admin list view that updates all items in a list, optionally with data
/keystone/list?update/keystone/list?update={"field":"value"}
- added; ability to override
changedOnvalue when using thestandard metafields - fixed; cell overflow is now hidden in the admin list view
- added; support for additional cloudinary transformations
- added; support for passing options to cloudinary transformation shortcut underscore methods
- fixed; the default field validator now trims strings before testing for length when determining validity
- changed; mongoose >3.6.20 is now required, allowing usage of 3.8 +
- improved; added webp and progressive jpeg options to
cloudinaryimagefield - improved; added ability to pass options to
cloudinaryimageunderscore shortcuts (limit,fill, etc.) - fixed; underscoreMethods for fields that implement their own addToSchema method (were missing .format, etc)
- improved;
formatfunction forlocationfields now supports a list of fields to include
- added; new embedly field type
- added; client-side deleting of items in the list view
- added; ability to use custom validation methods with updatehandlers
- improved; autokeys can now build a key from multiple paths, and support format strings
- improved; autokeys now understand virtual paths (and will always regenerate if one is detected)
- improved; default format settings for uneditable date fields
- fixed; incorrect path in public underscore.map file
- site; minor updates
- changed; switched to bcrypt-nodejs module becase of build issues on windows, thanks sullivanpt
- improved; added intelliJ project files to .gitignore, thanks sullivanpt
- fixed; utils.htmlToText was removing without adding a space
- added; coffeescript file support in the importer, thanks itzaks