Commit Graph

14 Commits (f7a90694bdb315633a42a55a139ed80ada4d493a)

Author SHA1 Message Date
Denis Sokolov 824d69fd08 Remove global state, return rules directly
This breaks backwards compatibility.

This removes .routes because it's not intuitive what the result value
of that must be, and users are free to .map over .route themselves.

Also, .routes was never tested.

Fixes #14.
10 years ago
Johannes J. Schmidt b8e5739e1a Completely new routing engine. 11 years ago
Johannes J. Schmidt d0b80ee391 we do not need no arity 11 years ago
Johannes J. Schmidt ac4af0f980 (fixes #8) - Make it work as CouchDB CommonJS
Do not export a function.
`docuri()` is now called `docuri.definition()`.
11 years ago
Johannes J. Schmidt 4da8a2b0a2 (closes #7) - implements arity and parts
`docuri.parts` array of components, without trailing `undefined` components
`docuri.arity` length of parts.
11 years ago
Johannes Jörg Schmidt cdeea1fb4d README <3 11 years ago
Johannes Jörg Schmidt af30f2b68f README <3 11 years ago
Johannes J. Schmidt 6c88aa2372 configurable parts 11 years ago
Johannes J. Schmidt 461c7ee0db change sequence of version and index
Before this api breaking change a docuri looked like this:
`type/id/subtype/version/index`
Now we swapped version and index:
`type/id/subtype/index/version`
11 years ago
andi pieper 9f12b25215 fixed typo 11 years ago
andi pieper 91265d24c5 added merge to readme 11 years ago
Karsten Gebbert a36ee27e46 document browserification (closes #1) 11 years ago
Johannes J. Schmidt 9b83d78a76 travis badge 11 years ago
Johannes J. Schmidt 55f7a6715a first commit 11 years ago