Skip to content
This repository was archived by the owner on Apr 16, 2019. It is now read-only.

Release v0.6.0 (non-backward compatible release)

Choose a tag to compare

@caridy caridy released this 17 Aug 03:11
· 158 commits to master since this 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 with express-yui. (PR #24)
  • [!] expyui.augment(app) is now deprecated in favor of expyui.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.useServerModules for app.yui.plugin(). locator plugin will no longer accept useServerModules, you either call app.yui.attachModules("foo", "bar") explicitly, or add an array to bundle.useServerModules with the list of modules to be attached, e.g.: pre-compiled templates, and that could happen in any plugin. (PR #25)