-
-
Notifications
You must be signed in to change notification settings - Fork 851
fix(externals): force-trace named traceDeps to fix pnpm nested deps #4391
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
pi0x
wants to merge
16
commits into
main
Choose a base branch
from
fix/trace-include
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.
+28
−0
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
741ed34
fix(externals): force-trace named traceDeps to fix pnpm nested deps
pi0 8d20efa
Merge branch 'main' into fix/trace-include
pi0 848ff04
Merge branch 'main' into fix/trace-include
pi0 f33f359
Merge branch 'main' into fix/trace-include
pi0 edb0473
Merge branch 'main' into fix/trace-include
pi0 00aa8ca
chore: update deps
pi0 8f2df5b
chore: remove unused devDependencies (#4302)
ulrichstark c87fc68
docs: update zerops provider docs (#4380)
Vanshika-Rana 7427e3b
fix(vite): respect bun/deno export conditions in dev server (#4397)
pi0x 7317d0f
fix(route-meta): add order:pre to route-meta plugin hooks (#4316)
kyjus25 8885036
test(public-assets): cover node reader path resolution and traversal …
pi0 f6034ac
refactor(deno): use default node handler for serveStatic (#4398)
pi0x 3a661ba
presets(vercel): use reflinks for custom function dirs (#4373)
RihanArfan 9ea0402
docs: add defineNitroPlugin to migration guide (#4400)
RihanArfan c94e3a1
chore: update deps
pi0 8ed9f73
Merge branch 'main' into fix/trace-include
pi0 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
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.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Assert the exact
traceIncludemembership.This test doesn't really prove the
RegExpselector is excluded. An implementation that accidentally stringifies the regex would still passtypeof d === "string". Please assert the final members/count instead.Suggested test tightening
it("returns named deps as traceInclude (builtins + user, RegExp excluded)", () => { const result = resolveTraceDeps(["my-pkg", /my-.*-pkg/], defaults); - expect(result.traceInclude).toContain("sharp"); - expect(result.traceInclude).toContain("canvas"); - expect(result.traceInclude).toContain("my-pkg"); - // RegExp entries cannot be resolved by name and must be excluded - expect(result.traceInclude!.every((d) => typeof d === "string")).toBe(true); + expect(result.traceInclude).toEqual( + expect.arrayContaining(["sharp", "canvas", "my-pkg"]) + ); + expect(result.traceInclude).toHaveLength(3); });📝 Committable suggestion
🤖 Prompt for AI Agents