Skip to content
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

feat(compartment-mapper): Support dynamic require/importNow #2310

Merged
merged 1 commit into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions packages/compartment-mapper/NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
User-visible changes to `@endo/compartment-mapper`:

# Next release

- Adds support for dynamic requires in CommonJS modules. This requires specific
configuration to be passed in (including new read powers), and is _not_
enabled by default. See the signature of `loadFromMap()` in `import-lite.js`
for details.

# v1.2.0 (2024-07-30)

- Fixes incompatible behavior with Node.js package conditional exports #2276.
Expand Down
6 changes: 5 additions & 1 deletion packages/compartment-mapper/node-powers.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
export { makeReadPowers, makeWritePowers } from './src/node-powers.js';
export {
makeReadPowers,
makeWritePowers,
makeReadNowPowers,
} from './src/node-powers.js';
// Deprecated:
export { makeNodeReadPowers, makeNodeWritePowers } from './src/node-powers.js';
1 change: 1 addition & 0 deletions packages/compartment-mapper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"dependencies": {
"@endo/cjs-module-analyzer": "workspace:^",
"@endo/module-source": "workspace:^",
"@endo/trampoline": "workspace:^",
"@endo/zip": "workspace:^",
"ses": "workspace:^"
},
Expand Down
Loading
Loading