- Fix for allowing port in absolute model URL.
- Style tweaks for comments, binding to a context in
this.on
-type events. - Added
Fetcher.prototype.needsFetch
method, for custom model caching logic in controllers. - Fix for
syncer.checkFresh
(thanks @eleventigers). - Fix for view path on Windows (thanks @vincejl).
- README updates (thanks @jacoblwe20).
- Performance improvment by caching Express router in
ServerRouter
instead of rebuilding it between requests (@jlogsdon).
- Support specifying multiple API hosts for models & controllers (thanks @technicolorenvy!).
- Support subdirectories for views & templates, and allow omitting view path in controllers, in which case view path defaults to ":controller/:action" (thanks @technicolorenvy!).
- Use ES5 native methods instead of Underscore methods:
Array.prototype.map
,Function.prototype.bind
,Object.create
, etc. NOTE: For IE<=8 compatibility, includees5-shim
andes5-sham
from kriskowal/es5-shim as client-side dependencies in your app. - Windows-compatible
postinstall
script. - Customize Handlebars
each
helper to pass through_app
,_view
, etc. into the child context, allowing cleaner{{#each}} {{view "my_view"}} {{/each}}
semantics. - Allow passing absolute URLs for models and collections, which will bypass the API proxy in the client-side.
- In BaseView::getAttributes(), call toString() on model.id, for better support of Mongoose.
- In BaseView::getAttributes(), support custom this.model.idAttribute.
- Remove reference to
global.isServer
in BaseView; easier to standalone test. - Default
replace: false
in ClientRouter::redirectTo().
- Support
redirect
option in routes file.
- Allow accessing
this.parentView
inBaseView
during rendering.
- Converted all CoffeeScript files to JavaScript.
- No more globals for Backbone, _, Handlebars.
- Updating to [email protected] to get bundled runtime file.
- Ensuring that
ModelStore
passesapp
to models when instantiating them.
- Added
apiProxy
middleware, pulled fromrendr-app-template
.
- Breaking change: Renamed
dataAdapter.makeRequest
todataAdapter.request
.
- Removing bundled jQuery. App should provide its own.
- Allow passing
{pushState: false}
toClientRouter::redirectTo()
to do a full-page redirect.
- Fixed bug where status code of CRUD errors were not properly passed down from
syncer
.
- Fixed bug where models within collection wouldn't have
this.app
set after view hydration. - Converted
fetcher
object toFetcher
class. Prefer to access it viaapp.fetcher
.
- Breaking change: Passing real
req
as first argument todataAdapter.makeRequest
. - Fixing bug in ClientRouter when no querystring.
- Also return
@collection.meta
and@collection.params
inBaseView::getTemplateData()
. - Support passing three args to
App::fetch()
.
- ClientRouter params include querystring params, just like ServerRouter.
- Initial release.