Skip to content

fix(module-source): fix SourceMapHook & other types#3187

Closed
boneskull wants to merge 1 commit intoboneskull/module-source-pipelinefrom
boneskull/fix-module-source-types
Closed

fix(module-source): fix SourceMapHook & other types#3187
boneskull wants to merge 1 commit intoboneskull/module-source-pipelinefrom
boneskull/fix-module-source-types

Conversation

@boneskull
Copy link
Copy Markdown
Member

This fixes the type of SourceMapHook and the implementation to align with reality.

  • Introduces some .ts sources for types; fixes tsconfig.json
  • Fixes exports of said types
  • Fixes shim types
  • Adds a typedoc.json for proper entry points

@boneskull
Copy link
Copy Markdown
Member Author

boneskull commented Apr 16, 2026

Warning

This PR is part of a stack and targets branch boneskull/module-source-pipeline, not master.
DO NOT MERGE until feat(module-source): expose createModuleSourcePasses() #3159 is merged into master.

📚 Pull Request Stack


Managed by gh-stack

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 16, 2026

🦋 Changeset detected

Latest commit: 6ce4afe

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

This PR includes changesets to release 9 packages
Name Type
@endo/compartment-mapper Patch
@endo/evasive-transform Minor
@endo/module-source 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

@boneskull boneskull force-pushed the boneskull/fix-module-source-types branch from 41cb080 to 79aae05 Compare April 16, 2026 01:40
@boneskull boneskull force-pushed the boneskull/fix-module-source-types branch from 79aae05 to 6184e36 Compare April 16, 2026 01:46
@boneskull boneskull force-pushed the boneskull/async-parser branch from f81a724 to 1463114 Compare April 16, 2026 02:04
@boneskull boneskull force-pushed the boneskull/fix-module-source-types branch 3 times, most recently from 99a21b5 to b6314c2 Compare April 16, 2026 02:13
@boneskull boneskull self-assigned this Apr 16, 2026
@boneskull boneskull added bug Something isn't working lavamoat labels Apr 16, 2026
@boneskull boneskull force-pushed the boneskull/fix-module-source-types branch 2 times, most recently from 3a27c64 to dcd6941 Compare April 16, 2026 02:38
@boneskull boneskull force-pushed the boneskull/async-parser branch from 1463114 to d46967c Compare April 22, 2026 04:14
@boneskull boneskull force-pushed the boneskull/fix-module-source-types branch from dcd6941 to 91d2e04 Compare April 22, 2026 04:14
@boneskull boneskull force-pushed the boneskull/async-parser branch from d46967c to 302f011 Compare April 23, 2026 01:42
@boneskull boneskull force-pushed the boneskull/fix-module-source-types branch from 91d2e04 to 4bbf4c3 Compare April 23, 2026 01:42
@boneskull boneskull force-pushed the boneskull/async-parser branch from 302f011 to 404d032 Compare April 29, 2026 20:54
@boneskull boneskull force-pushed the boneskull/fix-module-source-types branch from 4bbf4c3 to 335a5b6 Compare April 29, 2026 20:54
@boneskull boneskull force-pushed the boneskull/async-parser branch from 404d032 to a423cb4 Compare April 30, 2026 01:37
@boneskull boneskull force-pushed the boneskull/fix-module-source-types branch from 335a5b6 to 9c1c939 Compare April 30, 2026 01:37
- 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-types branch from 9c1c939 to 6ce4afe Compare April 30, 2026 01:45
@boneskull boneskull changed the base branch from boneskull/async-parser to boneskull/module-source-pipeline April 30, 2026 01:45
@boneskull boneskull deleted the branch boneskull/module-source-pipeline April 30, 2026 01:47
@boneskull boneskull closed this Apr 30, 2026
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