Releases: YahooArchive/mojito
Mojito 0.9.0 RC2
This is a preview release ahead of the GA.
Please see HISTORY.md for list of changes.
For more in depth information, please refer to the wiki.
0.8.3
0.8.2
0.8.1
Features
- Handle invalid context exceptions with output handler
- Allow merging of YCB configs with the same context (by using [email protected])
Bug Fixes
- fix issue #1254 Allow the same context to be used multiple times in configuration
Acknowledgements
Special thanks to David Gomez for his contributions to this release.
0.8.0
Notes
- !IMPORTANT! This release contains a notable backward-incompatible change.
See "Deprecations, Removals" below.
Deprecations, Removals
- !Backwards-Incompatible Change! Getting model instance by passing model
YUI module name toac.models.get
has been removed. - Cleanup: The
archetypes
directory containing boilerplate template code has been
removed from themojito
package because the template code is located
in mojito-cli-create.
Features
-
Contextualized model support is added:
ac.models.get(modelName) will take the model's logical name (filename minus
the affinity and context parts) and return contextualized model instance.For example:
Different model files can be provided for different context settings under models directory:
.../models/
mymodel.common.iphone.js
mymodel.common.jsCalling
ac.models.get('mymodel')
will return the model which is appropriate for the current context.
Bug Fixes
- Issue #1251: easy way to get contextualized models
- PR #1264: better output handler response header check
- PR #1270: removed
archetypes
directory and boilerplate template code for apps/mojits. - PR #1278: added middleware and updated app configs so that apps can use mocked models.
Acknowledgements
Special thanks to Jacques Arnoux for contributing to this release.
0.7.5
Notes
This is a minor release with bug fixes. There is no anticipated impact for the general Mojito application developer.
Bug Fixes
0.7.4
This is a minor release with few internal changes. There is no anticipated impact for the general Mojito application developer.
Notes
This new version will work with the new mojito-rs-hotswap
extension, which is a development time tool that watches for changes in Mojito resources to dynamically update the necessary Resource Store meta-data and see the changes reflected in your application without having to restart the node process. More information here:
https://github.com/yahoo/mojito-rs-hotswap
Features
- The
lib/store.js
has a newgetAppConfig()
function. This is a better choice
for reading the static application configuration thancreateStore()
. - The resource store now exposes the server's runtime YUI instance via the
runtimeYUI
member. Resource store addons can access it viathis.get('host').runtimeYUI
.
0.7.3
Features
- PR #1195: New
resourceStore.lazyResolve:true
option inapplication.json
. Normally, the resource store at server start pre-calculates the details for all mojits for all contexts/selectors (it's optimized to only do this for dimensions/selectors that are actually used). By setting this new option the resource store will skip this calculation at server start and instead do it at runtime "lazily" (as needed). This might be a good option to use if you have a large number of dimensions defined indimensions.json
and a lot of selectors defined inapplication.json
, yet your app will only serve traffic from a subset of those, or the synchronous computation of all resolutions would make your app too slow to start. This option evens-out that process in time by only triggering it the first time it's needed and caching the result.
Fixes
- fix issue #1219 npm link shared mojits failed
Acknowledgements
Thanks to Jacques Arnoux and David Gomez for contributing to this release.
0.7.2
0.7.1
This is a minor release with few internal changes. There is no anticipated impact for the general Mojito application developer.
Notes
The resource store now exposes a method loadConfigs() and an event "loadConfigs", for planned add-on authoring support. This change lays some groundwork for performance and A/B testing enhancements in-progress by David Gomez and Jacques Arnoux.
Acknowledgements
Thanks to David Gomez and Jacques Arnoux for contributing to this release.