Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

crossroads

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crossroads - npm Package Versions

2

0.12.2

Diff

millermedeiros
published 0.12.1 •

Changelog

Source

v0.12.1 (2015/07/08) ##

  • allow multiple query parameters with same name (#128)
published 0.12.0 •

Changelog

Source

v0.12.0 (2013/01/21) ##

  • improve Route.interpolate() to support query strings. (#76)
  • make it possible to have a different patternLexer per router. (#67)
  • add trailing/leading ";" to crossroads.min.js to avoid concat issues. (#73)
  • improve UMD wrapper so crossroads.min.js should also work with r.js.
published 0.11.0 •

Changelog

Source

v0.11.0 (2012/10/31) ##

API Changes

  • add crossroads.pipe() and crossroads.unpipe() (#70)
  • added way to toggle case sensitivity crossroads.ignoreCase, default is true (#53)
  • add crossroads.ignoreState. (#57)

Improvements

  • decodeQueryString() now respects shouldTypecast (#71)
  • changed Route.rules array validation to be case insensitive if crossroads.ignoreCase = true (#49)
published 0.10.0 •

Changelog

Source

v0.10.0 (2012/08/12) ##

Improvements

  • Avoid dispatching the routed/bypassed/matched signals if passing same request in subsequent calls. (#57)
  • Add crossroads.resetState() (#66)
published 0.9.1 •

Changelog

Source

v0.9.1 (2012/07/29) ##

Fixes

  • Normalize optional segments behavior on IE 7-8 (#58, #59, #60)
  • Fix captureVals on IE 7-8, make sure global flag works properly (#61, #62, #63)

Improvements

  • Route.interpolate() accepts Numbers as segments. (#54)
millermedeiros
published 0.9.0 •

Changelog

Source

v0.9.0 (2012/05/28) ##

API Changes

  • added crossroads.greedy (#46)
  • added crossroads.greedyEnabled (#46)
  • added crossroads.patternLexer.strict() and crossroads.patternLexer.loose() and crossroads.patternLexer.legacy() (#35)
  • added Route.interpolate() (#34)
  • added query string support (#33)

Fixes

  • Route.switched is only dispatched if matching a different route. (#50)

Other

  • change default behavior of slashes at begin/end of request (#35)
  • query string support affected old segment rules, now ? is considered as a segment divisor as / otherwise optional query string RegExp wouldn't match proper segment if following a required segment. (#33)
millermedeiros
published 0.8.0 •

Changelog

Source

v0.8.0 (2012/03/05) ##

API Changes

  • added Route.switched (#37)
  • added crossroads.NORM_AS_ARRAY, crossroads.NORM_AS_OBJECT (#31)
  • added option to pass default arguments to crossroads.parse() (#44)
  • added rest segments support (#43)

Other

  • change build to Node.js
  • change minifier to UglifyJS.
millermedeiros
published 0.7.0 •

Changelog

Source

v0.7.0 (2011/11/02) ##

API Changes

  • added crossroads.normalizeFn (#31)
  • added vals_ Array to values object passed to normalize_ and crossroads.normalizeFn to increase flexibility. (#31)
  • added Route.greedy support. (#20)
  • changed parameters dispatched by crossroads.routed signal, passes request as first param and a data object as second param. (#20)

Other

  • improve parameter typecasting. (#32)
  • refactoring for better code compression and also simplified some logic to increase code readability.
published 0.6.0 •

Changelog

Source

v0.6.0 (2011/08/31) ##

API Changes

  • changed crossroads.shouldTypecast default value to false (#23)
  • added magic rule to normalize route params before dispatch rules.normalize_. (#21)
  • added crossroads.VERSION

Fixes

  • fix optional "/" between required params. (#25)
  • only test optional params if value != null. (#26)
  • fix CommonJS wrapper, wasn't exporting crossroads properly (#27)

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. (#5)
  • Changed wrapper to generate a single distribution file that runs on all environments. (#27)
2
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc