Skip to content

Tags: jonasfj/shelf

Tags

shelf-v1.3.2

Toggle shelf-v1.3.2's commit message

1.3.0

Toggle 1.3.0's commit message

shelf_router-v1.1.2

Toggle shelf_router-v1.1.2's commit message
Published shelf_router version 1.1.2

  * Remove trailing slash requirement when using `mount`.

shelf_proxy-v1.0.1

Toggle shelf_proxy-v1.0.1's commit message

shelf_router_generator-v1.0.1

Toggle shelf_router_generator-v1.0.1's commit message

shelf_router-v1.1.1

Toggle shelf_router-v1.1.1's commit message
Published shelf_router version 1.1.1

 * Fix `Router.routeNotFound` to enable multiple `read()` calls on it.

shelf_static-v1.1

Toggle shelf_static-v1.1's commit message

1.2.0

Toggle 1.2.0's commit message

shelf_router-v1.1.0

Toggle shelf_router-v1.1.0's commit message
Published shelf_router version 1.1.0

 * `params` is deprecated in favor of `Request.params` adding using an extension
   on `Request`.
 * The default `notFoundHandler` now returns a sentinel `routeNotFound` response
   object which causes 404 with the message 'Route not found'.
 * __Minor breaking__: Handlers and sub-routers that return the sentinel
   `routeNotFound` response object will be ignored and pattern matching will
   continue on additional routes/handlers.

Changing the router to continue pattern matching additional routes if a matched
_handler_ or _nested router_ returns the sentinel `routeNotFound` response
object is technically a _breaking change_. However, it only affects scenarios
where the request matches a _mounted sub-router_, but does not match any route
on this sub-router. In this case, `shelf_router` version `1.0.0` would
immediately respond 404, without attempting to match further routes. With this
release, the behavior changes to matching additional routes until one returns
a custom 404 response object, or all routes have been matched.

This behavior is more in line with how `shelf_router` version `0.7.x` worked,
and since many affected users consider the behavior from `1.0.0` a defect,
we decided to remedy the situation.

1.1.4

Toggle 1.1.4's commit message