This repository has been archived by the owner on Jan 20, 2024. It is now read-only.
Releases: mulesoft-labs/osprey-router
Releases · mulesoft-labs/osprey-router
Rewrote to work with webapi-parser
Major changes (BREAKING):
- Rewrote to work with webapi-parser (#31);
- New dev dependency:
webapi-parser
; - Dropped dependency:
xtend
; - Now depends on mulesoft-labs/router#router-engine instead of blakeembrey/router#router-engine. Former repo contains latter repo changes merged on top of latest updates of pillarsjs;
- Second argument to
Router.<METHOD>
functions is now an array ofwebapi-parser.Parameter
instead ofuriParameters
schema; - Dropped
RAMLVersion
option (now inferred automatically);
Minor changes:
- Updated dependencies' versions;
- Switched to
const/let
instead ofvar
;
v0.7.0
Updated dependencies
v0.6.0 0.6.0
RAML 1.0 support
v0.5.0 version 0.5.0 with support for RAML 1.0
Instance `ramlUriParameters`
Changed
- Use
ramlUriParameters
per instance
RAML Path Match 2.0
Changed
- Use
raml-path-match
2.0 with support for URI Template Level 2 - Change RAML parameter inheritance to be based per-router
Path Match Update
Changed
- Update immutable path matching update method to get new route matchers
Persist raw URI parameters match
Fixed
- Wiping out URI parameters patch match when a request with
ramlUriParameters
was populated
URI Parameter Reuse
Added
- When a subsequent router is used with the same URI parameter name, merge previously used schemes (useful for Osprey + RAML usage)
Middleware Arrays
Added
- Support for an array of functions in
Router#verb
,Router#all
andRouter#use