Skip to content

Releases: eggjs/router

v3.0.6

27 Mar 12:08

Choose a tag to compare

3.0.6 (2025-03-27)

Bug Fixes

  • resources should support multiple middlewares (#21) (acb9c4b)

This release is also available on:

v2.2.0

22 Jan 15:03

Choose a tag to compare

2.2.0 (2025-01-22)

Features

  • support custom pathToRegexpModule (#18) (b4b7a2c)

This release is also available on:

v2.1.1

11 Jan 01:41

Choose a tag to compare

2.1.1 (2025-01-11)

Bug Fixes

  • change repository.url to let auto release work (39f38fc)

This release is also available on:

v2.1.0

11 Jan 01:47

Choose a tag to compare

What's Changed

Full Changelog: 2.0.1...v2.1.0

v3.0.5

16 Jun 13:42

Choose a tag to compare

3.0.5 (2024-06-16)

Bug Fixes

  • should support urls with controller string (#15) (b645095)

This release is also available on:

v3.0.4

16 Jun 08:47

Choose a tag to compare

3.0.4 (2024-06-16)

Bug Fixes

  • should bind ctx to egg router controller this context (#14) (b5b5588)

This release is also available on:

v3.0.3

16 Jun 04:52

Choose a tag to compare

3.0.3 (2024-06-16)

Bug Fixes

  • debug keyword use package.name + filename (#13) (3882819)

This release is also available on:

v3.0.2

16 Jun 04:32

Choose a tag to compare

3.0.2 (2024-06-16)

Bug Fixes

  • support router.verb(method, path, controllerString) (#12) (34cea74)

This release is also available on:

v3.0.1

15 Jun 07:46

Choose a tag to compare

3.0.1 (2024-06-15)

Bug Fixes

  • export types like ResourcesController (#11) (83d3309)

This release is also available on:

v3.0.0

11 Jun 07:17

Choose a tag to compare

3.0.0 (2024-06-11)

⚠ BREAKING CHANGES

  • drop Node.js < 18.19.0 support
  • Drop generator function support
  • Drop Node.js < 18.19.0 support

Summary by CodeRabbit

  • New Features

  • Introduced EggRouter class for defining RESTful routes and handling
    HTTP verbs.

  • Added new utility functions and type definitions to support enhanced
    routing and middleware functionalities.

  • Bug Fixes

  • Updated test cases to ensure compatibility with new routing and
    middleware functionalities.

  • Documentation

  • Updated examples in the README.md to reflect TypeScript syntax and
    ES module imports.

  • Mentioned breaking changes for version 3, including dropping support
    for generator functions and Node.js versions below 18.7.0.

  • Breaking Changes

    • Dropped support for generator functions.
    • Dropped support for Node.js versions below 18.7.0.
  • Chores

    • Updated Node.js versions in the GitHub Actions workflow.
    • Modified .gitignore to include additional patterns.
    • Updated dependencies and dev dependencies in package.json.
  • Added new scripts for linting, testing, and pre-publish actions in
    package.json.

    • Introduced a new tsconfig.json for strict TypeScript settings.

Features


This release is also available on: