Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

0.8.0

Compare
Choose a tag to compare
@zhouyaoji zhouyaoji released this 06 Nov 01:30
· 727 commits to develop since this release

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 to ac.models.get has been removed.
  • Cleanup: The archetypes directory containing boilerplate template code has been
    removed from the mojito 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.js

    Calling 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.