Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(transport-commons): New built-in high performance radix router #2177

Merged
merged 3 commits into from
Jan 5, 2021

Conversation

daffl
Copy link
Member

@daffl daffl commented Jan 3, 2021

This pull request replaces the radix-router package with our own Radix Tree for fast route lookups. Reasons:

  • Fixes inconsistencies in lookup between Express (closes Nested route issue with radix-router #2006)
  • Built-in and TypeScript version makes it easier to use for other frameworks (e.g. Koa) and platforms (e.g. Deno)
  • While other frameworks like Fastify use radix trees for lookups their routers only work with HTTP requests and response. Since it is transport independent, Feathers needs a more general purpose routing system.

@daffl daffl merged commit 6d18065 into dove Jan 5, 2021
@daffl daffl deleted the routing branch January 5, 2021 04:17
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.

Nested route issue with radix-router
1 participant