Skip to content

Releases: httpland/http-router

3.0.0-beta.7

02 Mar 14:16
Compare
Choose a tag to compare
3.0.0-beta.7 Pre-release
Pre-release

3.0.0-beta.7 (2023-03-02)

Features

  • router: expand interface and accept rest middleware (d3412e9)
  • router: rename context of match to matchResult (2560887)
  • types: export implementation interface (4820777)

3.0.0-beta.6

28 Feb 08:08
Compare
Choose a tag to compare
3.0.0-beta.6 Pre-release
Pre-release

3.0.0-beta.6 (2023-02-28)

Bug Fixes

  • router: fix to nest relative pattern, add isAbsolute field to route (6181b2d)

Features

  • router: accept URL pattern via all method (7a9dccc)
  • router: add type inference to all handler context (3043da2)
  • router: change mathod name from use to route (0c9df63)
  • router: expand middleware types for context (b7f719b)
  • router: router accept URLPattern as is (b57397f)

3.0.0-beta.5

21 Feb 13:08
Compare
Choose a tag to compare
3.0.0-beta.5 Pre-release
Pre-release

3.0.0-beta.5 (2023-02-21)

Features

  • mod: export interface and types (765a5af)
  • router: add providing global scope context, remove nested route feature (462d45a)
  • router: remove base option, change use interface types (2e08dac)
  • router: revert to add use interface (4a1e244)

3.0.0-beta.4

20 Feb 13:50
Compare
Choose a tag to compare
3.0.0-beta.4 Pre-release
Pre-release

3.0.0-beta.4 (2023-02-20)

Bug Fixes

  • router: fix merge routes logic (d22c067)

Features

  • router: change handler interface to remove context from request object (b0d66cd)
  • router: change route pattern interface (56051de)
  • types: improve interface of Handler and Middleware (d11598a)

3.0.0-beta.3

18 Feb 08:44
Compare
Choose a tag to compare
3.0.0-beta.3 Pre-release
Pre-release

3.0.0-beta.3 (2023-02-18)

Features

BREAKING CHANGES

  • delete MethodRouter, URLRouter and releated types

3.0.0-beta.2

16 Feb 07:16
Compare
Choose a tag to compare
3.0.0-beta.2 Pre-release
Pre-release

3.0.0-beta.2 (2023-02-16)

Features

  • routers: add new Router What is mutable and middleware ready (841fe3c)

3.0.0-beta.1

08 Oct 13:14
Compare
Choose a tag to compare
3.0.0-beta.1 Pre-release
Pre-release

3.0.0-beta.1 (2022-10-08)

Features

  • routers: add throwing error to URLRouter (f8032e8), closes #29
  • routers: remove onError field from types (1870d07), closes #29
  • utils: remove validateURLRoutes (4ebbb75), closes #29

BREAKING CHANGES

  • utils: no export validateURLRoutes
  • routers: remove onError field from router
  • routers: URLRouter will not grip the error and throw error as is

2.1.0

08 Oct 08:21
Compare
Choose a tag to compare

2.1.0 (2022-10-08)

Bug Fixes

  • router: fix to always call before each and after each (fb9f0f4)
  • router: use lru cache instead of plain object (fc79627), closes #26

Features

  • router: add afterEach hooks to router option (95c13bf), closes #10
  • routers: add beforeEach hooks to router (116c2d9)
  • types: add MethodRouteHandler types (822ece7), closes #27

Performance Improvements

  • router: add non matched pattern to cache (0eaa017)

2.1.0-beta.3

08 Oct 07:51
Compare
Choose a tag to compare
2.1.0-beta.3 Pre-release
Pre-release

2.1.0-beta.3 (2022-10-08)

Bug Fixes

  • router: fix to always call before each and after each (fb9f0f4)

2.1.0-beta.2

08 Oct 07:21
Compare
Choose a tag to compare
2.1.0-beta.2 Pre-release
Pre-release

2.1.0-beta.2 (2022-10-08)

Bug Fixes

  • router: use lru cache instead of plain object (fc79627), closes #26

Features

  • routers: add beforeEach hooks to router (116c2d9)