Skip to content

feat(compartment-mapper): expose findUnknownCanonicalNames#3221

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

feat(compartment-mapper): expose findUnknownCanonicalNames#3221
boneskull wants to merge 1 commit into
boneskull/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

boneskull commented Apr 30, 2026

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

changeset-bot Bot commented Apr 30, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8f4274f

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

This PR includes changesets to release 1 package
Name Type
@endo/compartment-mapper Minor

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

@boneskull boneskull self-assigned this Apr 30, 2026
@boneskull boneskull force-pushed the boneskull/cjs-ast-parser2 branch from bcb2a78 to b6be451 Compare April 30, 2026 02:05
@boneskull boneskull force-pushed the boneskull/export-find-canonical-names2 branch from 63dc745 to 698be08 Compare April 30, 2026 02:05
@boneskull boneskull added enhancement New feature or request lavamoat labels Apr 30, 2026
@boneskull boneskull force-pushed the boneskull/cjs-ast-parser2 branch from b6be451 to aef5ab0 Compare May 5, 2026 18:00
@boneskull boneskull force-pushed the boneskull/export-find-canonical-names2 branch from 698be08 to 1249834 Compare May 5, 2026 18:00
@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
@boneskull boneskull force-pushed the boneskull/cjs-ast-parser2 branch from 1bf57f2 to d0231bb Compare May 7, 2026 17:44
@boneskull boneskull force-pushed the boneskull/export-find-canonical-names2 branch from 4ad0448 to 68db8b2 Compare May 7, 2026 17:48
@boneskull boneskull force-pushed the boneskull/cjs-ast-parser2 branch from d0231bb to 0c5745d Compare May 12, 2026 23:27
@boneskull boneskull force-pushed the boneskull/export-find-canonical-names2 branch from 68db8b2 to 24aa05e Compare May 12, 2026 23:27
@boneskull boneskull force-pushed the boneskull/cjs-ast-parser2 branch from 0c5745d to 75eeb29 Compare May 14, 2026 18:59
@boneskull boneskull force-pushed the boneskull/export-find-canonical-names2 branch from 24aa05e to 40fbe27 Compare May 14, 2026 18:59
@boneskull boneskull force-pushed the boneskull/cjs-ast-parser2 branch from 75eeb29 to 50aaf46 Compare May 14, 2026 19:00
@boneskull boneskull force-pushed the boneskull/export-find-canonical-names2 branch from 40fbe27 to 3bb2910 Compare May 14, 2026 19:00
@boneskull boneskull force-pushed the boneskull/cjs-ast-parser2 branch from 50aaf46 to b2cdb69 Compare May 14, 2026 19:03
@boneskull boneskull force-pushed the boneskull/export-find-canonical-names2 branch from 3bb2910 to b78ae44 Compare May 14, 2026 19:03
@boneskull boneskull force-pushed the boneskull/cjs-ast-parser2 branch from b2cdb69 to 356a49e Compare May 14, 2026 19:06
@boneskull boneskull force-pushed the boneskull/export-find-canonical-names2 branch from b78ae44 to 34550d5 Compare May 14, 2026 19:06
@boneskull boneskull force-pushed the boneskull/cjs-ast-parser2 branch from e822386 to b32a792 Compare May 20, 2026 21:23
@boneskull boneskull force-pushed the boneskull/export-find-canonical-names2 branch from 48626c7 to 4d0eb02 Compare May 20, 2026 21:23
@boneskull boneskull force-pushed the boneskull/cjs-ast-parser2 branch from b32a792 to 85af5e3 Compare May 21, 2026 21:41
@boneskull boneskull force-pushed the boneskull/export-find-canonical-names2 branch from 4d0eb02 to e831606 Compare May 21, 2026 21:41
@boneskull boneskull force-pushed the boneskull/cjs-ast-parser2 branch from 85af5e3 to 49177f5 Compare May 21, 2026 21:43
@boneskull boneskull force-pushed the boneskull/export-find-canonical-names2 branch from e831606 to f3fd1fc Compare May 21, 2026 21:43
@boneskull boneskull force-pushed the boneskull/cjs-ast-parser2 branch from 49177f5 to f5b17ba Compare May 22, 2026 21:47
@boneskull boneskull force-pushed the boneskull/export-find-canonical-names2 branch from f3fd1fc to c894f58 Compare May 22, 2026 21:47
@boneskull boneskull force-pushed the boneskull/cjs-ast-parser2 branch from f5b17ba to c535eb0 Compare May 25, 2026 22:14
@boneskull boneskull force-pushed the boneskull/export-find-canonical-names2 branch from c894f58 to d691bb1 Compare May 25, 2026 22:14
@boneskull boneskull force-pushed the boneskull/cjs-ast-parser2 branch from c535eb0 to cd009ee Compare May 25, 2026 22:32
@boneskull boneskull force-pushed the boneskull/export-find-canonical-names2 branch from d691bb1 to cd59424 Compare May 25, 2026 22:32
@boneskull boneskull force-pushed the boneskull/cjs-ast-parser2 branch from cd009ee to 6d93ba2 Compare May 26, 2026 02:22
@boneskull boneskull force-pushed the boneskull/export-find-canonical-names2 branch from cd59424 to 3ad22b5 Compare May 26, 2026 02:22
@boneskull boneskull force-pushed the boneskull/cjs-ast-parser2 branch from 6d93ba2 to 1dfbbae Compare May 26, 2026 02:39
@boneskull boneskull force-pushed the boneskull/export-find-canonical-names2 branch 2 times, most recently from 98fe01b to cbbbe9b Compare May 29, 2026 00:41
@boneskull boneskull force-pushed the boneskull/cjs-ast-parser2 branch from 5204c99 to 6371ee7 Compare May 29, 2026 22:38
@boneskull boneskull force-pushed the boneskull/export-find-canonical-names2 branch 2 times, most recently from 271b485 to ac5e06a Compare June 3, 2026 23:04
@boneskull boneskull force-pushed the boneskull/cjs-ast-parser2 branch 2 times, most recently from 23b9605 to daee696 Compare June 3, 2026 23:14
@boneskull boneskull force-pushed the boneskull/export-find-canonical-names2 branch 2 times, most recently from d85e49c to d611335 Compare June 5, 2026 00:59
@boneskull boneskull force-pushed the boneskull/cjs-ast-parser2 branch from daee696 to 3eb751e Compare June 5, 2026 00:59
@boneskull boneskull force-pushed the boneskull/export-find-canonical-names2 branch from d611335 to 2234cc6 Compare June 5, 2026 01:02
@boneskull boneskull force-pushed the boneskull/cjs-ast-parser2 branch from 3eb751e to 0fc9770 Compare June 5, 2026 01:02
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 0fc9770 to 8a3d2cb Compare June 5, 2026 01:10
@boneskull boneskull force-pushed the boneskull/export-find-canonical-names2 branch from 2234cc6 to 8f4274f Compare June 5, 2026 01:10
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