-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
Merged
Merged
Changes from all commits
Commits
Show all changes
70 commits
Select commit
Hold shift + click to select a range
d6d3bb7
Initialize @fedify/uri-template package
2chanhaeng b041c47
Update version of @fedify/uri-template
2chanhaeng 4221e43
Add test for template
2chanhaeng dbccf03
Allow **/*.bench.ts files use `@fedfiy/fixture`
2chanhaeng 1a3b080
Implement RFC 6570 URI template expansion
2chanhaeng cc9c68d
Add test suite for @fedify/uri-template Template
2chanhaeng 36ab25b
Report URI template expansion errors
2chanhaeng de606cf
Document URI template compatibility
2chanhaeng acd9ac8
Refine URI template expansion internals
2chanhaeng fb7807a
Add URI template matching
2chanhaeng 3348c5b
Add test suite for URI template matching
2chanhaeng 8a2f337
Add RFC 6570 Router class
2chanhaeng b072abd
Add Router conformance tests
2chanhaeng 7888035
Capture legacy Router failures
2chanhaeng f2db97a
Reorganize uri-template into per-feature module layouts
2chanhaeng 570429d
Rename "symmetric" to "round-trip" in user-facing prose
2chanhaeng 22e9da8
Rename router memory pressure scenario factories
2chanhaeng a51a070
Document operator behavior table and drop dead constant
2chanhaeng 6b78dff
Drop unused VariableSpec and align reporter docs with expansion
2chanhaeng 6156fe7
Document route-shape gaps in uri-template-router compatibility test
2chanhaeng 34690b6
Drop "using RegExp" qualifier from Template bench label
2chanhaeng efaf83e
Add Router#register, batch trie insert, and constructor routes
2chanhaeng 5ebd5aa
Move URI template old tests
2chanhaeng 50778c1
Group uri-template tests by suite via nested t.step
2chanhaeng 87e7013
Export `isExpression` from @fedify/uri-template
2chanhaeng 5be2a99
Migrate @fedify/fedify to @fedify/uri-template router
2chanhaeng 99c7051
Note uri-template router migration in CHANGES.md
2chanhaeng 6adf06e
Export isPath helper from @fedify/uri-template
2chanhaeng 4d0ce91
Tighten match backtracking bounds in @fedify/uri-template
2chanhaeng 231aa34
Replace match bench with backtracking-pressure cases
2chanhaeng a3e6b4e
Add PR link
2chanhaeng 6a80126
Export `assertPath` from @fedify/uri-template
2chanhaeng e91fe93
Replace `Router` from @fedify/fedify with the wrapper of `Router` fro…
2chanhaeng 07736ce
Apply review feedback from PR #758
2chanhaeng 182756d
Fix `consumeUnnamed` over-pruning of valid match decompositions
2chanhaeng 2b851bf
Fix `defaultReporter`
2chanhaeng f8bdc89
Tighten identifier path validation in FederationBuilder
2chanhaeng a17d17a
Accept the empty path so trailing-slash retry can match `/`
2chanhaeng 8ef9cbd
Polish naming and fixture comments in uri-template tests
2chanhaeng 2b45604
Centralize expression parse error reporting in the tokenizer
2chanhaeng f1a633b
Drop stale router trie entries on re-registration
2chanhaeng b9b72fe
Serialize Deno check tasks behind install in `mise test`
2chanhaeng 85b8c05
Make @fedify/uri-template default reporter a no-op
2chanhaeng eb5e4b3
Recover round-trip for associative keys with non-varname characters
2chanhaeng 95462f0
Split identifier path validation into loose and strict asserts
2chanhaeng 7cac609
Exclude old/ compat tests from published @fedify/uri-template
2chanhaeng a03a50d
Reuse PrioritizedRouteEntry as the Trie entry constraint
2chanhaeng 4b2057f
Drop unused throw() helper from TemplateParseError
2chanhaeng e0036ad
Note compat Router shim breaking changes in changelog
2chanhaeng 31786d4
Index router trie at the token level to share dynamic prefixes
2chanhaeng c77e82f
Refactor router trie traversals with fold helpers
2chanhaeng f99e5bc
Fix lockfile
2chanhaeng 8407a34
Remove unnecessary `as Path`
2chanhaeng 022c314
Make Router#register() failure-atomic
2chanhaeng 7c81ef2
Update stale router design in uri-template README
2chanhaeng 0dac1a9
Make registered router patterns immutable
2chanhaeng 3f729c9
Reject path-style {/identifier} identifier routes
2chanhaeng 9756b4c
Forward trailingSlashInsensitive in deprecated Router
2chanhaeng d5e346d
Keep deprecated RouterError instanceof working
2chanhaeng f83968b
Keep deprecated Router.route() a nullable probe
2chanhaeng a031672
Drop Breaking Change note from changelog
2chanhaeng 924c223
Log deprecated Router warning once per process
2chanhaeng 0da4cc5
Document standalone @fedify/uri-template in docs
2chanhaeng 2d6d080
Clarify that test:old intentionally fails
2chanhaeng b25d61c
Add per-variable matching constraints to Router
2chanhaeng a44e9cd
Validate dispatcher paths via Router route options
2chanhaeng 67f13c3
Bind unbound nullable scalars as null in route values
2chanhaeng 13d9f19
Fix URI Template and outbox doc inaccuracies
2chanhaeng f9f1c04
Fix explodable route value typing
2chanhaeng bb5e874
Key route value typing off resolved `multiple`, not `explodable`
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
Oops, something went wrong.
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.