Permalink
Browse files

Changelog, version 0.0.9

  • Loading branch information...
1 parent c084678 commit 6bcf7d589f3ff2b20a29e24a55db27ede61df2a2 @1602 committed Feb 25, 2013
Showing with 52 additions and 1 deletion.
  1. +51 −0 CHANGELOG.md
  2. +1 −1 package.json
View
@@ -1,3 +1,54 @@
+## 0.0.9
+
+### params.state
+
+Introducing new param `state`, which allows to specify whether route has push
+state when used on client-side.
+
+### Amends in path handling and url helpers
+
+- optional params (followed by question mark) handled correctly
+- named params could be filled using object passed to url helpers
+- url helpers could be in camelCase (map.camelCaseHelperNames)
+
+### Simplified collection-wide methods for resource, optional controller#action param
+
+Instead of
+
+```javascript
+map.resources('posts', function (post) {
+ post.del('destroyAll', 'posts#destroyAll', {collection: true});
+ post.put('sort', 'posts#sort', {collection: true});
+ post.get('rating', 'posts#getRating');
+});
+```
+
+nicer to do:
+
+```javascript
+map.resources('posts', function (post) {
+ post.collection(function (posts) {
+ post.del('destroyAll');
+ post.put('sort');
+ });
+ post.get('rating', '#getRating');
+});
+```
+
+### Chainable methods
+
+Every method (post, get, put, delete, all) now returns `map` in order to allow
+chain calls.
+
+```javascript
+map.get('path', 'ctl#act').post('path/:param', 'ctl#another');
+```
+
+### RoutesCollection class
+
+Helpers collection `pathTo` now instanceof RoutesCollection class, which looks
+better in stack traces.
+
## 0.0.8
### Added sub-apps support
View
@@ -3,7 +3,7 @@
"name": "railway-routes",
"description": "Resourceful routing for ExpressJS, ruby-on-rails 2 style",
"tags": "express, routing, ror, rails, railway",
- "version": "0.0.8-8",
+ "version": "0.0.9",
"homepage": "http://railwajs.com/routing.html",
"repository": {
"type": "git",

0 comments on commit 6bcf7d5

Please sign in to comment.