Migration 0.14.0
In order to upgrade your project to use IMA.js 0.14.0, please follow these steps:
- Update your
gulpfile.jsto require the default configuration from theima-gulp-taskspackage in the gulpfile.js (see the example configuration). - If you are using custom
buildanddevtasks, remove theEs6toEs5:imatask from those. - Update your own custom gulp tasks to be compatible with gulp 4
- Remove references to the
ima.client.jsfile in thesettings.jsfile and thebundlesection in thebuild.jsfile. - Add the
imapackage to thecommongroup in thevendorssection in thebuild.jsfile. - Update your
main.jsfile, theima.onLoadmethod returns a promise instead of accepting a callback. - Update your
ima-serverinstallation according to the Hello World example. - Plugins can no longer use namespaces, please update your
bind.jsfile if you were using namespace references to IMA plugins. - Import the
RouteNamesconstants fromima/router/RouteNamesin yourrouter.jsconfiguration file. - Components may now declare the
defaultPropsandpropTypesstatic properties as getters. - The
$ROUTER_CONSTANTSalias no longer exists (import theima/router/RouteNamesfile). - The
$HTTP_STATUS_CODEalias no longer exists (import theima/http/StatusCodefile). - Removed the
$Promise,$CacheEntry,$PageRendererViewAdapter,$Route(switched to imports internally). - The loose mode of the ES2015 babel preset is no longer enabled.
- Upgrade to node.js 7 or newer (older version might work but are no longer supported).
- Switch to default exports in your configuration files.
- Remove the './node_modules/ima-babel6-polyfill/index.js' reference from the polyfills list in gulpConfig.js (if overridden; this has been fixed by babel).
- Remove the
main.lessfile reference in thebuild.jsfile (unless it exists in the project). - Add the
$CssClassesproperty to object in the$UtilsOC alias.