-
-
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
41
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
41 commits
Select commit
Hold shift + click to select a range
939ab40
Initialize @fedify/uri-template package
2chanhaeng c775f25
Update version of @fedify/uri-template
2chanhaeng 49c5a36
Add test for template
2chanhaeng e4a92cf
Allow **/*.bench.ts files use `@fedfiy/fixture`
2chanhaeng fb598fd
Implement RFC 6570 URI template expansion
2chanhaeng 8aaa646
Add test suite for @fedify/uri-template Template
2chanhaeng c04c9ea
Report URI template expansion errors
2chanhaeng 498c32c
Document URI template compatibility
2chanhaeng d9dd866
Refine URI template expansion internals
2chanhaeng e7a3cde
Add URI template matching
2chanhaeng f761349
Add test suite for URI template matching
2chanhaeng d7ddf3e
Add RFC 6570 Router class
2chanhaeng 6eae88d
Add Router conformance tests
2chanhaeng 210a918
Capture legacy Router failures
2chanhaeng c5519db
Reorganize uri-template into per-feature module layouts
2chanhaeng ca25410
Rename "symmetric" to "round-trip" in user-facing prose
2chanhaeng 41db5d6
Rename router memory pressure scenario factories
2chanhaeng b6a7c5d
Document operator behavior table and drop dead constant
2chanhaeng 507cd1a
Drop unused VariableSpec and align reporter docs with expansion
2chanhaeng 9d857bd
Document route-shape gaps in uri-template-router compatibility test
2chanhaeng 980cf79
Drop "using RegExp" qualifier from Template bench label
2chanhaeng a47ca29
Add Router#register, batch trie insert, and constructor routes
2chanhaeng 5103d2b
Move URI template old tests
2chanhaeng 6a33b2b
Group uri-template tests by suite via nested t.step
2chanhaeng 3b90c01
Export `isExpression` from @fedify/uri-template
2chanhaeng 8b75be4
Migrate @fedify/fedify to @fedify/uri-template router
2chanhaeng d41af4b
Note uri-template router migration in CHANGES.md
2chanhaeng 1b8eabc
Export isPath helper from @fedify/uri-template
2chanhaeng 2be104e
Tighten match backtracking bounds in @fedify/uri-template
2chanhaeng 395132f
Replace match bench with backtracking-pressure cases
2chanhaeng 199d100
Add PR link
2chanhaeng 4e7b891
Export `assertPath` from @fedify/uri-template
2chanhaeng eb6cbf1
Replace `Router` from @fedify/fedify with the wrapper of `Router` fro…
2chanhaeng e876cac
Apply review feedback from PR #758
2chanhaeng d587135
Fix `consumeUnnamed` over-pruning of valid match decompositions
2chanhaeng cc3b507
Fix `defaultReporter`
2chanhaeng 0565b7b
Tighten identifier path validation in FederationBuilder
2chanhaeng d7fb55b
Accept the empty path so trailing-slash retry can match `/`
2chanhaeng 768c1a9
Polish naming and fixture comments in uri-template tests
2chanhaeng 48aad17
Centralize expression parse error reporting in the tokenizer
2chanhaeng 7b7bed4
Drop stale router trie entries on re-registration
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: fedify-dev/fedify
Length of output: 5341
🏁 Script executed:
# Check the deno.json mentioned in the review (appears to be root deno.json based on context) head -40 deno.jsonRepository: fedify-dev/fedify
Length of output: 1080
🏁 Script executed:
# Check packages/fedify/deno.json specifically cat packages/fedify/deno.jsonRepository: fedify-dev/fedify
Length of output: 3299
🏁 Script executed:
# Check packages/fedify/package.json to see how `@fedify/uri-template` is declared cat packages/fedify/package.jsonRepository: fedify-dev/fedify
Length of output: 5406
Add
@fedify/uri-templateto packages/fedify/deno.json imports.The package imports from
@fedify/uri-template(verified in 7 files) and correctly declares it inpackage.json, but it is missing fromdeno.json. Per the critical coding guideline: "Dependencies must be added to BOTH deno.json and package.json. Forgetting package.json will cause Node.js and Bun tests to fail withERR_MODULE_NOT_FOUND." This omission will break Deno support.🤖 Prompt for AI Agents