-
-
Notifications
You must be signed in to change notification settings - Fork 99
Replace url-template and uri-template-router with @fedify/uri-template
#758
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
Open
2chanhaeng
wants to merge
62
commits into
fedify-dev:main
Choose a base branch
from
2chanhaeng:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
62 commits
Select commit
Hold shift + click to select a range
aee437c
Initialize @fedify/uri-template package
2chanhaeng 10dc8dd
Update version of @fedify/uri-template
2chanhaeng 7d8bc74
Add test for template
2chanhaeng c0e88cb
Allow **/*.bench.ts files use `@fedfiy/fixture`
2chanhaeng fee06d1
Implement RFC 6570 URI template expansion
2chanhaeng 1610db0
Add test suite for @fedify/uri-template Template
2chanhaeng 2bc61cc
Report URI template expansion errors
2chanhaeng 9227d67
Document URI template compatibility
2chanhaeng d36a02b
Refine URI template expansion internals
2chanhaeng 002cc39
Add URI template matching
2chanhaeng 71acc66
Add test suite for URI template matching
2chanhaeng fdfe4f1
Add RFC 6570 Router class
2chanhaeng 14aabf1
Add Router conformance tests
2chanhaeng b4e28cc
Capture legacy Router failures
2chanhaeng 3fbbebc
Reorganize uri-template into per-feature module layouts
2chanhaeng dde858d
Rename "symmetric" to "round-trip" in user-facing prose
2chanhaeng f5a9a04
Rename router memory pressure scenario factories
2chanhaeng 68af501
Document operator behavior table and drop dead constant
2chanhaeng c942bb1
Drop unused VariableSpec and align reporter docs with expansion
2chanhaeng 6449801
Document route-shape gaps in uri-template-router compatibility test
2chanhaeng 28f7ea8
Drop "using RegExp" qualifier from Template bench label
2chanhaeng 0559fdb
Add Router#register, batch trie insert, and constructor routes
2chanhaeng e23f9d2
Move URI template old tests
2chanhaeng aa491b0
Group uri-template tests by suite via nested t.step
2chanhaeng 303a638
Export `isExpression` from @fedify/uri-template
2chanhaeng 880515c
Migrate @fedify/fedify to @fedify/uri-template router
2chanhaeng 37436dc
Note uri-template router migration in CHANGES.md
2chanhaeng 892f14b
Export isPath helper from @fedify/uri-template
2chanhaeng 518f4cb
Tighten match backtracking bounds in @fedify/uri-template
2chanhaeng 8fe9471
Replace match bench with backtracking-pressure cases
2chanhaeng 06bcedc
Add PR link
2chanhaeng 37f9f1e
Export `assertPath` from @fedify/uri-template
2chanhaeng 85a2f1b
Replace `Router` from @fedify/fedify with the wrapper of `Router` fro…
2chanhaeng 6bfff79
Apply review feedback from PR #758
2chanhaeng 368d43d
Fix `consumeUnnamed` over-pruning of valid match decompositions
2chanhaeng 4f353ba
Fix `defaultReporter`
2chanhaeng 93bef2f
Tighten identifier path validation in FederationBuilder
2chanhaeng 9c642e9
Accept the empty path so trailing-slash retry can match `/`
2chanhaeng 7f5ca8a
Polish naming and fixture comments in uri-template tests
2chanhaeng 7ae28a5
Centralize expression parse error reporting in the tokenizer
2chanhaeng d2a702c
Drop stale router trie entries on re-registration
2chanhaeng a11cb3b
Serialize Deno check tasks behind install in `mise test`
2chanhaeng 796395e
Make @fedify/uri-template default reporter a no-op
2chanhaeng f086e9d
Recover round-trip for associative keys with non-varname characters
2chanhaeng 9c84ec0
Split identifier path validation into loose and strict asserts
2chanhaeng 9e94098
Exclude old/ compat tests from published @fedify/uri-template
2chanhaeng 3a6dc04
Reuse PrioritizedRouteEntry as the Trie entry constraint
2chanhaeng b0bca2f
Drop unused throw() helper from TemplateParseError
2chanhaeng c2c33c3
Note compat Router shim breaking changes in changelog
2chanhaeng 389eea6
Index router trie at the token level to share dynamic prefixes
2chanhaeng 6e057f7
Refactor router trie traversals with fold helpers
2chanhaeng 3cd503c
Fix lockfile
2chanhaeng 13cc78d
Remove unnecessary `as Path`
2chanhaeng db56e0b
Make Router#register() failure-atomic
2chanhaeng 2048900
Update stale router design in uri-template README
2chanhaeng e804c0d
Make registered router patterns immutable
2chanhaeng 85d227b
Reject path-style {/identifier} identifier routes
2chanhaeng 4e4212d
Forward trailingSlashInsensitive in deprecated Router
2chanhaeng 391d861
Keep deprecated RouterError instanceof working
2chanhaeng b93fb31
Keep deprecated Router.route() a nullable probe
2chanhaeng 3623012
Drop Breaking Change note from changelog
2chanhaeng d41bd90
Log deprecated Router warning once per process
2chanhaeng File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.