Skip to content

Conversation

@Digital39999
Copy link

This PR introduces two public APIs that were previously internal.
It also resolves #4409.

  • Context class - exported from index.ts for advanced use cases (testing, unified request handling, extensions).

  • LinearRouter.matchRoute static method

    • Abstraction of the internal matching logic.
    • Allows for comprehensive testing and reusability of route-matching behavior.
    • Covers exact paths, wildcards, parameters, regex patterns, edge cases, and unsupported patterns.

The author should do the following, if applicable

  • Add tests
  • Run tests
  • bun run format:fix && bun run lint:fix to format the code
  • Add TSDoc/JSDoc to document the code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make Context class officially accessible

1 participant