Release v0.6.0 (non-backward compatible release)
Upgrading to express-state@1.0.0
Now the express-state is locking down the API, which is non-backward compatible with previous versions, are confidence about the way to extend express going forward. This required a couple of changes in express-yui:
- [!]
expyui.extend(app)is required to be able to extend an express application withexpress-yui. (PR #24) - [!]
expyui.augment(app)is now deprecated in favor ofexpyui.extend(app). (PR #24)
If you're requireing express-yui and letting it to extend express automatically, this change will break your app, and you will have to explicitly call for extending the app instance as follow:
var express = require('express'),
expyui = require('express-yui'),
app;
app = express();
expyui.extend(app);
Remove the ability to auto-attach yui modules on the server side
This feature was intended to help to provision compiled templates automatically, but as a result, everything else was attached, causing serious issues and undesirable results due to the nature of the YUI Loader on the server side. But since we introduced a better way to auto-attach views and other compiled modules, we no longer need this, so, here is the change:
- removing
options.useServerModulesforapp.yui.plugin(). locator plugin will no longer acceptuseServerModules, you either callapp.yui.attachModules("foo", "bar")explicitly, or add an array tobundle.useServerModuleswith the list of modules to be attached, e.g.: pre-compiled templates, and that could happen in any plugin. (PR #25)