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

ReleaseNotes0_5_0pr3

caridy edited this page Nov 1, 2012 · 14 revisions

Mojito Release 0.5.0pr2

This is a special preview release of Mojito 0.5.0. It incorporates some significant re-architecting for performance. There are a few significant changes that break backwards compatibility, see below.

None of the NPM tags have changed. If you want to try this version, you need to ask for mojito@0.5.0pr3 explicitly.

!!! NOTE !!! This release DOES NOT pass our functional tests. This started as a rough prototype, and we're still cleaning it up.

Compatibility Changes

1. Controller from singleton back to instantiable

In pr1 we made a drastic change that was meant to be re-evaluated, and we just did. As a result, Controllers are back to its 0.4.x form. Essentially, controllers will be instantiated per request, per mojito instance, which means you can use them to store request specific information without bleeding between mojit instances and requests. The init method is not available anymore though. Here is an example:

 YUI.add('Foo', function(Y, NAME) {

     Y.namespace('mojito.controllers')[NAME] = {

         index: function(ac) {
             // this.foo = "provides a nice mechanism to store instance data."
         }

     };

 }, '0.0.1', {requires: ['mojito']});

2. mojito test does not longer test the framework

In the past, mojito test without any other parameter was running all unit tests for mojito framework, and this is not longer the case. We moved all the tests to arrow, more details here: https://github.com/yahoo/mojito/tree/develop/tests

You can continue using mojito test app path/to/app and mojito test mojit path/to/mojit, and the behavior is still the same.

Note: this change is only relevant for contributors.

Fixes

  • #636 store sandbox using yui-sandbox
  • #638 FIX static-handler middleware for well known files
  • #646 Clean up of expanded instance
  • #651 Expand instances are bleeding
  • #654 upgrading to YUI 3.7.3 to support Win8 runtimes
  • #655 merge develop into develop-perf
  • #663 [fix gh 651] prevent expansion of config + unit tests
  • #664 instance cleanup
  • #673 Relocate store.server.js and related files/tests.
  • #674 fixed unit tests
  • #675 More functests fixes
  • #676 restoring controller as instance rather than singleton
  • #677 optionally log some memory usage info
  • #678 Clean lib/tests
  • #682 More unit test fixes
  • #685 moved YUI loader config from combo-handler to addons/rs/yui
  • #688 fixed instances of yui.config.config
  • #689 yui sandbox fixes
  • #690 when deploying the seed, using the closest language
  • #691 fixed bleed between loader and our use of its results
Clone this wiki locally