-
-
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
69
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 66 commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
11669ba
Initialize @fedify/uri-template package
2chanhaeng 6d49aa2
Update version of @fedify/uri-template
2chanhaeng 9f2de18
Add test for template
2chanhaeng 7e7e00f
Allow **/*.bench.ts files use `@fedfiy/fixture`
2chanhaeng d0649c5
Implement RFC 6570 URI template expansion
2chanhaeng f91e433
Add test suite for @fedify/uri-template Template
2chanhaeng 17c0d56
Report URI template expansion errors
2chanhaeng 8f11b96
Document URI template compatibility
2chanhaeng 38e1e56
Refine URI template expansion internals
2chanhaeng c40d1dd
Add URI template matching
2chanhaeng a7eb594
Add test suite for URI template matching
2chanhaeng bc60cda
Add RFC 6570 Router class
2chanhaeng cb96d18
Add Router conformance tests
2chanhaeng 377afe3
Capture legacy Router failures
2chanhaeng 414c5df
Reorganize uri-template into per-feature module layouts
2chanhaeng 35e05d7
Rename "symmetric" to "round-trip" in user-facing prose
2chanhaeng ba527dc
Rename router memory pressure scenario factories
2chanhaeng e1eef02
Document operator behavior table and drop dead constant
2chanhaeng 054190f
Drop unused VariableSpec and align reporter docs with expansion
2chanhaeng 2cf91d4
Document route-shape gaps in uri-template-router compatibility test
2chanhaeng 6423cfe
Drop "using RegExp" qualifier from Template bench label
2chanhaeng 7cbbae3
Add Router#register, batch trie insert, and constructor routes
2chanhaeng abba323
Move URI template old tests
2chanhaeng b6c984f
Group uri-template tests by suite via nested t.step
2chanhaeng b0f8c97
Export `isExpression` from @fedify/uri-template
2chanhaeng 947eab6
Migrate @fedify/fedify to @fedify/uri-template router
2chanhaeng 10ba258
Note uri-template router migration in CHANGES.md
2chanhaeng 7b61101
Export isPath helper from @fedify/uri-template
2chanhaeng 1777a10
Tighten match backtracking bounds in @fedify/uri-template
2chanhaeng 0401fad
Replace match bench with backtracking-pressure cases
2chanhaeng f416197
Add PR link
2chanhaeng 173ced9
Export `assertPath` from @fedify/uri-template
2chanhaeng fbcfb5f
Replace `Router` from @fedify/fedify with the wrapper of `Router` fro…
2chanhaeng a648835
Apply review feedback from PR #758
2chanhaeng 2e23955
Fix `consumeUnnamed` over-pruning of valid match decompositions
2chanhaeng 87b5e72
Fix `defaultReporter`
2chanhaeng 087963a
Tighten identifier path validation in FederationBuilder
2chanhaeng 89e29c6
Accept the empty path so trailing-slash retry can match `/`
2chanhaeng 27a9c33
Polish naming and fixture comments in uri-template tests
2chanhaeng e54f804
Centralize expression parse error reporting in the tokenizer
2chanhaeng fa934ad
Drop stale router trie entries on re-registration
2chanhaeng 50cc19f
Serialize Deno check tasks behind install in `mise test`
2chanhaeng c308c41
Make @fedify/uri-template default reporter a no-op
2chanhaeng 13b4886
Recover round-trip for associative keys with non-varname characters
2chanhaeng 925ae65
Split identifier path validation into loose and strict asserts
2chanhaeng e9f37c0
Exclude old/ compat tests from published @fedify/uri-template
2chanhaeng 4ff472a
Reuse PrioritizedRouteEntry as the Trie entry constraint
2chanhaeng 500fb38
Drop unused throw() helper from TemplateParseError
2chanhaeng 4f339f4
Note compat Router shim breaking changes in changelog
2chanhaeng 19cf5d9
Index router trie at the token level to share dynamic prefixes
2chanhaeng 27c8422
Refactor router trie traversals with fold helpers
2chanhaeng cac5f2e
Fix lockfile
2chanhaeng 1c506af
Remove unnecessary `as Path`
2chanhaeng e58208f
Make Router#register() failure-atomic
2chanhaeng d5e13a2
Update stale router design in uri-template README
2chanhaeng 88aa535
Make registered router patterns immutable
2chanhaeng ce920dc
Reject path-style {/identifier} identifier routes
2chanhaeng 5f874ff
Forward trailingSlashInsensitive in deprecated Router
2chanhaeng a303702
Keep deprecated RouterError instanceof working
2chanhaeng 2c0ade5
Keep deprecated Router.route() a nullable probe
2chanhaeng acd53c7
Drop Breaking Change note from changelog
2chanhaeng e79c77b
Log deprecated Router warning once per process
2chanhaeng 8bbaaba
Document standalone @fedify/uri-template in docs
2chanhaeng ffa5ac6
Clarify that test:old intentionally fails
2chanhaeng f1773eb
Add per-variable matching constraints to Router
2chanhaeng 7e735d0
Validate dispatcher paths via Router route options
2chanhaeng a8d4a06
Bind unbound nullable scalars as null in route values
2chanhaeng 56c20be
Fix URI Template and outbox doc inaccuracies
2chanhaeng 754b18e
Fix explodable route value typing
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.
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.