This repository has been archived by the owner on Oct 30, 2018. It is now read-only.
0.5.5
Compatibility
Performance optimizations introduced in this release have resulted in internal API changes. This impacts 3rd party components that are using protected or internal store APIs, e.g. Shaker. A new Shaker version will be released very soon to address these changes. In the meantime, you can follow mojito-shaker#43.
Here are details of the API changes.
- We removed store event
getMojitTypeDetails
. The replacement isresolveMojitDetails
, though the datastructure is different. - We removed store event
mojitResourcesResolved
. - We removed
store.getResources()
. - We added
store.optimizeForEnvironment()
. - We added
store.makeStaticHandlerDetails()
. store.yui.getAllURLResources()
is now calledstore.yui.getAllURLDetails()
and returns a different datastructure.- For both
store.getResourceContent()
andstore.procesResourceContent()
, the datastructure representing the resource has changed. store.getResourceVerions()
should not be called during runtime. It can still be called during the events that happen during preload.store.yui.getConfigShared()
now just takes theenv
argument.- We removed
store.yui.getConfigAllMojits()
. Some users were callinggetConfigAllMojits
and using the results withgetConfigShared
to configure a YUI instance. Now instead we suggest usinggetModulesConfig()
to replace this pair of calls. - We added
store.yui.getModulesConfig()
. - We added
store.yui.getYUIConfig()
. store.yui.getAppSeedFiles()
now takes a yui configuration as the second argument.store.yui.getYUIURLResources()
is now calledstore.yui.getYUIURLDetails()
and returns a different datastructure.
Please see the API docs for details of each.
Features
- Global models thru
ac.models.expose()
upgraded from experimental to beta. - #1011 Support for Handlebars helpers through
mojito-helpers-addon
and support for global Handlebars helpers usingac.helpers.expose()
. This is an experimental feature! - #978 Introducing error propagation in
mojito-composite-addon
by using the flagpropagateFailure
in a child. - #997 Introduced a clear separation between YUI core modules and app-specific YUI modules. YUI core modules are now served from CDN by default; they are only served by the app origin server if
staticHandling.serveYUIFromAppOrigin
is set inapplication.json
. This change optimizes the initial load time of the app as well as its offline capabilities when using mojito build html5app. - Improved Resource Store: minimized memory footprint.
- Upgraded to YUI 3.8.1
Fixes
- #25, #865 mojito-composite-addon error propagation
- #293 HTMLFrameMojit should honor child metas
- #1001 Fixes the
Cache-Control
header for static assets. - #1006 Fixed hybrid build issue
- Fixed lingering occurrences of
store.yui.getConfigAllMojits()
- Fix for
forceRelativePaths
for YUI loader when usingmojito build
, making root and base to be relative when needed. - (sweetandsour2) Fix for client side hooks, bug fix in template hooks.