Crossroads.js

Software Screenshot:
Crossroads.js
Software Details:
Version: 0.12.0
Upload Date: 6 Jun 15
Developer: Miller Medeiros
Distribution Type: Freeware
Downloads: 51

Rating: nan/5 (Total Votes: 0)

By matching parsed data against patterns, it can decide which action to take.

Crossroads.js is very powerful, and if used properly, can reduce code complexity.

It can decouple objects by abstracting navigation paths and server requests.

Crossroads.js can be used with most JS libraries and frameworks.

Crossroads.js was inspired by URL Route/Dispatch utilities present in most MVC frameworks like Django, Ruby on Rails, Pyramid, CakePHP or CodeIgniter.

What is new in this release:

  • Made it possible to have a different patternLexer per router.
  • Added trailing/leading ";" to crossroads.min.js to avoid concat issues.
  • Improved UMD wrapper so crossroads.min.js should also work with r.js.

What is new in version 0.11.0:

  • API Changes:
  • Added crossroads.pipe() and crossroads.unpipe().
  • Addeded way to toggle case sensitivity crossroads.ignoreCase, default is true.
  • Added crossroads.ignoreState.
  • Improvements:
  • decodeQueryString() now respects shouldTypecast.
  • Changed Route.rules array validation to be case insensitive if crossroads.ignoreCase = true.

What is new in version v0.10.0:

  • Avoid dispatching the routed/bypassed/matched signals if passing same request in subsequent calls.
  • Added crossroads.resetState().

What is new in version v0.9.1:

  • Fixes:
  • Normalize optional segments behavior on IE 7-8.
  • Fixed captureVals on IE 7-8, make sure global flag works properly.
  • Improvements:
  • Route.interpolate() accepts Numbers as segments.

What is new in version v0.9.0:

  • Route.switched is only dispatched if matching a different route.
  • Changed default behavior of slashes at begin/end of request.

What is new in version v0.8.0:

  • Added Route.switched.
  • Added crossroads.NORM_AS_ARRAY, crossroads.NORM_AS_OBJECT.
  • Added option to pass default arguments to crossroads.parse().
  • Added rest segments support.
  • Changed build to Node.js.
  • Changed minifier to UglifyJS.

What is new in version v0.7.1:

  • Fixed avoid calling rules.normalize_ during validation step.

What is new in version v0.7.0:

  • API Changes:
  • Added crossroads.normalizeFn.
  • Added vals_ Array to values object passed to normalize_ and crossroads.normalizeFn to increase flexibility.
  • Added Route.greedy support.
  • Changed parameters dispatched by crossroads.routed signal, passes request as first param and a data object as second param.
  • Other:
  • Improve parameter typecasting.
  • Refactoring for better code compression and also simplified some logic to increase code readability.

What is new in version v0.6.0:

  • API Changes:
  • Changed crossroads.shouldTypecast default value to false.
  • Added magic rule to normalize route params before dispatch rules.normalize_.
  • Added crossroads.VERSION.
  • Fixes:
  • Fix optional "/" between required params.
  • Only test optional params if value != null.
  • Fix CommonJS wrapper, wasn't exporting crossroads properly.
  • Other:
  • 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.
  • Changed wrapper to generate a single distribution file that runs on all environments.

Requirements:

  • JavaScript enabled on client side

Similar Software

AnimeJ
AnimeJ

5 Jun 15

Inverted
Inverted

10 Feb 16

is.js
is.js

13 Apr 15

Polymaps
Polymaps

21 Jul 15

Other Software of Developer Miller Medeiros

mdoc
mdoc

10 Dec 15

Comments to Crossroads.js

Comments not found
Add Comment
Turn on images!