Skip to content

fix(compartment-mapper): policy, parser type fixes#3247

Draft
boneskull wants to merge 1 commit into
boneskull/evasive-pipeline2from
boneskull/fix-module-source-types2
Draft

fix(compartment-mapper): policy, parser type fixes#3247
boneskull wants to merge 1 commit into
boneskull/evasive-pipeline2from
boneskull/fix-module-source-types2

Conversation

@boneskull
Copy link
Copy Markdown
Member

  • Fixes CompartmentDescriptor so that it is generic on the PackagePolicy; externally-defined ParseFns can now refer to the specific contents of a custom PackagePolicy present in a CompartmentDescriptor.
  • Introduces ParseSourceMapHook; differentiated from @endo/module-source's SourceMapHook.
  • Fixes type of PolicyItem; eliminates confusion between void (no extra union members) and any (SomePackagePolicy).

@boneskull
Copy link
Copy Markdown
Member Author

boneskull commented May 7, 2026

Warning

This PR is part of a stack and targets branch boneskull/evasive-pipeline2, not master.
DO NOT MERGE until feat(evasive-transform): expose makeTransformCommentsVisitor #3217 is merged into master.

📚 Pull Request Stack


Managed by gh-stack

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 7, 2026

🦋 Changeset detected

Latest commit: 1c80621

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 Patch
@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

- Fixes `CompartmentDescriptor` so that it is generic on the `PackagePolicy`; externally-defined `ParseFn`s can now refer to the specific contents of a custom `PackagePolicy` present in a `CompartmentDescriptor`.
- Introduces `ParseSourceMapHook`; differentiated from `@endo/module-source`'s `SourceMapHook`.
- Fixes type of `PolicyItem`; eliminates confusion between `void` (no extra union members) and `any` (`SomePackagePolicy`).
@boneskull boneskull force-pushed the boneskull/fix-module-source-types2 branch from 00302f9 to 1c80621 Compare May 14, 2026 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working lavamoat

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant