Skip to content

Latest commit

 

History

History
269 lines (164 loc) · 19.4 KB

CHANGELOG.md

File metadata and controls

269 lines (164 loc) · 19.4 KB

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 (2022-10-08)

Bug Fixes

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

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)

2.1.0-beta.1 (2022-10-07)

Features

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

Performance Improvements

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

2.0.0 (2022-10-04)

Bug Fixes

  • utils: change priority of overlapping routes (6c921a0)
  • utils: fix throwing error pattern (2a07e6e)

Features

  • errors: remove RouterError and use Error instead (bdde112), closes #16
  • mod: export API types (eba25ff), closes #13
  • mod: remove unnessesary module from API (8201730), closes #18
  • router: delete validating routes and throwing error (9841c78), closes #21
  • routers: add URLRouter and MethodRouter instead of createRouter (f0306c9), closes #13
  • types: add result field to URL router route handler context (a6c2956), closes #19
  • types: add URLRoutes related types (c883b66), closes #14
  • types: change params of url route handler context types (d2c779e), closes #20
  • types: change types and add test case (e4419c6), closes #14
  • types: remove route field from url router route handler context (2bf003e), closes #19
  • types: remove duplicated (a8ae0ce), closes #17
  • utils: add assert to nest (752a0b8)
  • utils: add validation for url routes (cfe13eb)
  • utils: change concatenate url path logic (d9b120f)
  • utils: remove validation and throwing logic from nest (dbfb1d2), closes #21
  • utils: use custom inspect instead of Deno.inspect (b7553c0), closes #22

BREAKING CHANGES

  • types: remove optional flag from params in url route handler context types
  • types: remove route field from url router route handler context
  • mod: made unimportant modules private
  • routers: The createRouter has been removed and URLRouter and MethodRouter have been added. Nested notation has been removed and restricted to flat notation only.
  • types: remove dupicated types
  • errors: RouterError is removed. Error is used instead of `RouterError.

2.0.0-beta.3 (2022-10-03)

Bug Fixes

  • utils: change priority of overlapping routes (6c921a0)

Features

  • router: delete validating routes and throwing error (9841c78), closes #21
  • utils: add validation for url routes (cfe13eb)
  • utils: change concatenate url path logic (d9b120f)
  • utils: remove validation and throwing logic from nest (dbfb1d2), closes #21
  • utils: use custom inspect instead of Deno.inspect (b7553c0), closes #22

2.0.0-beta.2 (2022-10-02)

Bug Fixes

  • utils: fix throwing error pattern (2a07e6e)

Features

  • mod: export API types (eba25ff), closes #13
  • mod: remove unnessesary module from API (8201730), closes #18
  • types: add result field to URL router route handler context (a6c2956), closes #19
  • types: add URLRoutes related types (c883b66), closes #14
  • types: change params of url route handler context types (d2c779e), closes #20
  • types: change types and add test case (e4419c6), closes #14
  • types: remove route field from url router route handler context (2bf003e), closes #19
  • utils: add assert to nest (752a0b8)

BREAKING CHANGES

  • types: remove optional flag from params in url route handler context types
  • types: remove route field from url router route handler context
  • mod: made unimportant modules private

2.0.0-beta.1 (2022-10-01)

Features

  • errors: remove RouterError and use Error instead (bdde112), closes #16
  • routers: add URLRouter and MethodRouter instead of createRouter (f0306c9), closes #13
  • types: remove duplicated (a8ae0ce), closes #17

BREAKING CHANGES

  • routers: The createRouter has been removed and URLRouter and MethodRouter have been added. Nested notation has been removed and restricted to flat notation only.
  • types: remove dupicated types
  • errors: RouterError is removed. Error is used instead of `RouterError.

1.2.0 (2022-09-13)

Bug Fixes

  • router: fix error message typo (cd59870)
  • router: use url path join instread of std/path join (29ef6a2)

Features

  • constants: add set of http method (3d97f9a)
  • errors: add basic router error (4987665)
  • router: accept nested route literal (d2cc85b), closes #6
  • router: add basePath option that change router base path (329c2bf)
  • router: add catching URLPattern error and convert to AggregateError within RouterError (be135e7)
  • router: add debug flag to see internal error detail (e0d75bd), closes #8
  • router: add detect routing table error (0f70875), closes #6
  • router: add validating to catch all handler and method handler are same route or not (a589c4e)
  • router: rename MethodRouteHandlers to MethodHandlers types (d147749)
  • types: rename Method to HttpMethod, mark deprecate (62ae347)

Performance Improvements

  • router: improve response time by caching matching result (ffdc8b0), closes #7
  • router: remove unnessesary url pattern test (704228d)

1.2.0-beta.5 (2022-09-13)

Bug Fixes

  • router: fix error message typo (cd59870)

1.2.0-beta.4 (2022-09-13)

Features

  • router: add debug flag to see internal error detail (e0d75bd), closes #8
  • router: rename MethodRouteHandlers to MethodHandlers types (d147749)

1.2.0-beta.3 (2022-09-13)

Features

  • router: add catching URLPattern error and convert to AggregateError within RouterError (be135e7)
  • router: add validating to catch all handler and method handler are same route or not (a589c4e)

Performance Improvements

  • router: improve response time by caching matching result (ffdc8b0), closes #7

1.2.0-beta.2 (2022-09-13)

Bug Fixes

  • router: use url path join instread of std/path join (29ef6a2)

Features

  • constants: add set of http method (3d97f9a)
  • errors: add basic router error (4987665)
  • router: accept nested route literal (d2cc85b), closes #6
  • router: add detect routing table error (0f70875), closes #6
  • types: rename Method to HttpMethod, mark deprecate (62ae347)

1.2.0-beta.1 (2022-09-11)

Features

  • router: add basePath option that change router base path (329c2bf)

Performance Improvements

  • router: remove unnessesary url pattern test (704228d)

1.1.0 (2022-08-12)

Features

  • router: change route handler context (c59dc21)

1.1.0-beta.1 (2022-08-12)

Features

  • router: change route handler context (c59dc21)

1.0.0 (2022-08-11)

Bug Fixes

  • router: fix to return response statusText (77f69df)

Features

  • _tools: add npm release script (7d0664e)
  • router: add basic http request router (9620752)
  • router: add registering HEAD request handler automatically (207aae7)
  • router: export MethodRouteHandlers types (5148d04)

1.0.0-beta.5 (2022-08-11)

Features

  • router: export MethodRouteHandlers types (5148d04)

1.0.0-beta.4 (2022-08-10)

Features

  • router: add registering HEAD request handler automatically (207aae7)

1.0.0-beta.3 (2022-08-09)

Features

  • _tools: add npm release script (7d0664e)

1.0.0-beta.2 (2022-08-08)

Bug Fixes

  • router: fix to return response statusText (77f69df)

1.0.0-beta.1 (2022-08-08)

Features

  • router: add basic http request router (9620752)