- added
crossroads.normalizeFn
(issue #31) - added
vals_
Array to values object passed tonormalize_
andcrossroads.normalizeFn
to increase flexibility. (issue #31) - added
Route.greedy
support. (issue #20) - changed parameters dispatched by
crossroads.routed
signal, passes request as first param and a data object as second param. (issue #20)
- improve parameter typecasting. (issue #32)
- refactoring for better code compression and also simplified some logic to increase code readability.
- changed
crossroads.shouldTypecast
default value tofalse
(issue #23) - added magic rule to normalize route params before dispatch
rules.normalize_
. (#21) - added crossroads.VERSION
- fix optional "/" between required params. (#25)
- only test optional params if value != null. (#26)
- fix CommonJS wrapper, wasn't exporting crossroads properly (#27)
- Migrated unit tests from YUI to Jasmine to allow testing on nodejs and also because it runs locally and gives better error messages. Increased a lot the number of tests that helped to spot a few edge cases. (#5)
- Changed wrapper to generate a single distribution file that runs on all environments. (#27)
- added numbered rules for RegExp pattern and alias to segments (#16)
- added support to optional segments (#17)
- added property
crossroads.shouldTypecast
to enable/disable typecasting segments values. (#18) - added support to multiple instances (#19)
- Refactored
crossroads
core object to make it cleaner.
- fix trailing slash before optional param (#22)
- added magic rule to validate whole request
rules.request_
. (#14)
- changed behavior of trailing slash at the end of string pattern so it doesn't affect route anymore (#12).
- added NPM package.
- added support for RegExp route pattern. (#8)
- added signal
routed
to crossroads. (#9) - added commonjs module wrapper.
- added priority param to
addRoute
. (#2)
- added "js-signals" as module dependency on AMD version.
- safe guarded from empty
parse
calls.
- initial release with basic features support.