This repository has been archived by the owner on Oct 30, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 215
ReleaseNotes0_5_5
drewfish edited this page Mar 4, 2013
·
23 revisions
Mojito 0.5.5 is now tagged and available on npm. List of changes between 0.5.4 and 0.5.5 here.
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.
- 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
- #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.