Skip to content

0.2.x to 0.3.x Changes

Johnny Estilles edited this page Feb 22, 2015 · 1 revision

Home > Knowledge Base > 0.2.x to 0.3.x Changes

Core Changes

Bundled middleware has been nested under keystone.middleware instead of being included on the keystone object.

  • keystone.initAPI => keystone.middleware.api
  • keystone.cors => keystone.middleware.cors
  • List.addPattern("standard meta") (deprecated since v0.2.26) has been removed. Use the list tracking feature to automatically add created / modified metadata to lists.

Express 4

Express 3 has been upgraded to Express 4. Please review the Moving to Express 4 Guide for more information.

React Admin UI

The first part of the port of the Admin UI to React has been completed, meaning forms are now rendered client-side by React instead of server-side from Jade templates.

The Admin UI should, by and large, work as before - this is just groundwork for more improvements to come.

Fields

Common Changes

field.width has been deprecated in favor of field.size. Fields (some, not all) can be set to small, medium, large or full (see field docs on the website for support). The CSS and HTML structure has been significantly cleaned up over the 0.2.x version, and should result in a cleaner, more consistent UI.

The default field size has changed from full to large because most fields don't need to stretch all the way across the screen.

Code

options.lang became options.language