Skip to content

feat(compartment-mapper): expose findUnknownCanonicalNames#3221

Draft
boneskull wants to merge 1 commit intoboneskull/cjs-ast-parser2from
boneskull/export-find-canonical-names2
Draft

feat(compartment-mapper): expose findUnknownCanonicalNames#3221
boneskull wants to merge 1 commit intoboneskull/cjs-ast-parser2from
boneskull/export-find-canonical-names2

Conversation

@boneskull
Copy link
Copy Markdown
Member

Expose findUnknownCanonicalNames() from new export @endo/compartment-mapper/policy.js.

Should be used after captureFromMap when called without policy, since unknown canonical names are not emitted by the UnknownCanonicalNameHook unless a policy is present.

@boneskull
Copy link
Copy Markdown
Member Author

Warning

This PR is part of a stack and targets branch boneskull/cjs-ast-parser2, not master.
DO NOT MERGE until feat(module-source): expose AST-based CJS parser #3220 is merged into master.

📚 Pull Request Stack


Managed by gh-stack

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 30, 2026

🦋 Changeset detected

Latest commit: 4ad0448

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
@endo/compartment-mapper Minor
@endo/bundle-source Patch
@endo/check-bundle Patch
@endo/daemon Patch
@endo/import-bundle Patch
@endo/test262-runner Patch
@endo/cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Expose `findUnknownCanonicalNames()` from new export `@endo/compartment-mapper/policy.js`.

Should be used _after_ `captureFromMap` when called without policy, since unknown canonical names are not emitted by the `UnknownCanonicalNameHook` unless a policy is present.
@boneskull boneskull force-pushed the boneskull/cjs-ast-parser2 branch from aef5ab0 to 1bf57f2 Compare May 5, 2026 20:07
@boneskull boneskull force-pushed the boneskull/export-find-canonical-names2 branch from 1249834 to 4ad0448 Compare May 5, 2026 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request lavamoat

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant