Commit Graph

41 Commits (725d8de7884bc4d1191c403d84efdd2583b51abd)
 

Author SHA1 Message Date
Johannes J. Schmidt 725d8de788 feat: change license from MIT to Apache 2.0 9 years ago
Johannes Jörg Schmidt 2b2eb939bd Merge pull request #24 from zerotacg/optional-parameter-with-trailing-slash
optional parameter with a trailing slash
9 years ago
Tobias Peters f7a90694bd unit test and adjustments for using optional parameter with a trailing slash 9 years ago
Johannes Jörg Schmidt 3ed0d3cef0 Merge pull request #21 from Useclark/object-keys-bug
Add a failing test for reliance on Object.keys
9 years ago
Denis Sokolov a0274ddc47 Add a failing test for reliance on Object.keys 9 years ago
Johannes Jörg Schmidt 0bb37b1772 Merge pull request #20 from Useclark/encode
Encode parameter values to allow slashes in values, fix #15
9 years ago
Denis Sokolov 5cc5e5a249 Encode parameter values to allow slashes in values, fix #15 9 years ago
Johannes Jörg Schmidt 4bd7a135cd Merge pull request #18 from Useclark/no-global-state
Remove global state, return rules directly
9 years ago
Johannes J. Schmidt 57a4fcfbd9 4.1.1 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 d9ab1242b4 4.1.0 9 years ago
Johannes J. Schmidt b52bbd2c4f Merge pull request #12 from zerotacg/fix-mixup-of-parameters-issue-#11
mixed-up allocation of parameters
9 years ago
Tobias Peters 3fa59e012a fix for issue #11
get the keys by a simple regexp
9 years ago
Johannes J. Schmidt bc9dff9d4c Fixed named parameter followed by optional parameter 10 years ago
Johannes J. Schmidt e751d71494 Fix surrounded optional parameter 10 years ago
Johannes J. Schmidt 3df5ac2b3d bump version 10 years ago
Johannes Jörg Schmidt 5c2d85b97d Merge pull request #9 from jo/docuri-routes
Completely new routing engine.
10 years ago
Johannes J. Schmidt b8e5739e1a Completely new routing engine. 10 years ago
Johannes J. Schmidt 92ef468220 allow removing of components in merge via undefined or null 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 ed9f5886e8 rewrite 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
Johannes J. Schmidt 72d1ab50ca release 1.1.0 10 years ago
Johannes Jörg Schmidt dd2feac878 Merge pull request #5 from jo/merge_support
added merge ability
10 years ago
andi pieper 958edbc693 added merge ability 10 years ago
Johannes Jörg Schmidt b6679d376c Merge pull request #4 from krgn/master
document browserification (closes #1)
10 years ago
Johannes J. Schmidt 1a46dcccc3 bump version 10 years ago
Karsten Gebbert a36ee27e46 document browserification (closes #1) 10 years ago
Johannes Jörg Schmidt 25b45d4e2e Merge pull request #3 from krgn/master
allow 0 as path element (closes #2)
10 years ago
Karsten Gebbert c584f201fe allow 0 as path element (closes #2) 10 years ago
Johannes J. Schmidt eb4f8732b5 test on current versions 10 years ago
Johannes J. Schmidt 9b83d78a76 travis badge 10 years ago
Johannes J. Schmidt a14b45b59e use travis ci 10 years ago
Johannes J. Schmidt 55f7a6715a first commit 10 years ago