Commit Graph

15 Commits (master)

Author SHA1 Message Date
Johannes J. Schmidt 725d8de788 feat: change license from MIT to Apache 2.0 9 years ago
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.
9 years ago
Johannes J. Schmidt b8e5739e1a Completely new routing engine. 10 years ago
Johannes J. Schmidt d0b80ee391 we do not need no arity 10 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()`.
10 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.
10 years ago
Johannes Jörg Schmidt cdeea1fb4d README <3 10 years ago
Johannes Jörg Schmidt af30f2b68f README <3 10 years ago
Johannes J. Schmidt 6c88aa2372 configurable parts 10 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`
10 years ago
andi pieper 9f12b25215 fixed typo 10 years ago
andi pieper 91265d24c5 added merge to readme 10 years ago
Karsten Gebbert a36ee27e46 document browserification (closes #1) 10 years ago
Johannes J. Schmidt 9b83d78a76 travis badge 10 years ago
Johannes J. Schmidt 55f7a6715a first commit 10 years ago