Skip to content

Commit f27ab4d

Browse files
authored
chore: Release 2025-03-19 (#2744)
# `ses` v1.12.0 - The `evalTaming:` option values are renamed: - from `'safeEval'`, `'unsafeEval'`, and `'noEval'` - to `'safe-eval'`, `'unsafe-eval'`, and `'no-eval'` in order to follow the convention that lockdown option values use kebob-case rather than camelCase. To avoid breaking old programs during the transition, the old names are deprecated, but continue to work for now. - The value of expressions like `typeof unlikelyGlobal` is now `undefined` instead of producing a `ReferenceError` because it proves impossible to do so without revealing what properties exist on the host `globalThis` to compartmentalized code. # `@endo/patterns` v1.5.0 - New pattern: `M.containerHas(elementPatt, bound = 1n)` motivated to support want patterns in Zoe, to pull out only `bound` number of elements that match `elementPatt`. `bound` must be a positive bigint. - Closely related, `@endo/patterns` now exports `containerHasSplit` to support ERTP's use of `M.containerHas` on non-fungible (`set`, `copySet`) and semifungible (`copyBag`) assets, respectively. See Agoric/agoric-sdk#10952 . # `@endo/import-bundle` v1.4.0 - Adds support for `test` format bundles, which simply return a promise for an object that resembles a module exports namespace with the objects specified on the symbol-named property @exports, which is deliberately not JSON serializable or passable. - Adds a `typedImportBundle<ExpectedExportsNamespace>` function with a proper type signature, to provide a narrower signature than `any` without disrupting existing usage. # `@endo/bundle-source` v4.0.0 - Replaces the implementation for the `nestedEvaluate` and `getExport` formats with one based on Endo's Compartment Mapper instead of Rollup, in order to obviate the need to reconcile source map transforms between Rollup and the underlying Babel generator. As a consequence, we no longer generate a source map for the bundle, but Babel ensures that we preserve line and column numbers between the original source and the bundled source. # `@endo/compartment-mapper` v1.6.0 - Accommodates CommonJS modules that use `defineProperty` on `exports`. - Divides the role of `makeBundle` into `makeScript` and `makeFunctor`. The new `makeScript` replaces `makeBundle` without breaking changes, producing a JavaScript string that is suitable as a `<script>` tag in a web page. - The new `makeFunctor` produces a JavaScript string that, when evaluated, produces a partially applied function, so the caller can provide runtime options. - Both `makeScript` and `makeFunctor` now accept `format`, `useEvaluate` and `sourceUrlPrefix` options. - The functor produced by `makeFunctor` now accepts `evaluate`, `require`, and `sourceUrlPrefix` runtime options. - Both `makeScript` and `makeFunctor` now accept a `format` option. Specifiying the `"cjs"` format allows the bundle to exit to the host's CommonJS `require` for host modules. - Adds `sourceDirname` to compartment descriptors in the compartment maps generated by `mapNodeModules` and uses these to provide better source URL comments for bundles generated by `makeScript` and `makeFunctor`, by default. These changes collectively allow us to replace the implementation of `nestedEvaluate` and `getExports` formats in `@endo/bundle-source`, including the preservation of useful line numbers and file names in stack traces. - `mapNodeModules`, `importLocation` and `loadLocation` now accept a `log` option for users to define a custom logging function. As of this writing, _only `mapNodeModules`_ will potentially call this function if provided. Expansion of log messaging and support for the `log` option in more APIs is expected _in the future_. # `@endo/evasive-transform` v1.4.0 - Adds a `sourceMap` option so that the generated sourcemap can project back to the original source code without `unmapLoc`. - Removes support for sourcemap `unmapLoc` because it is not used by contemporary Endo packages. The option is now ignored.
2 parents fbd97e7 + 9b67848 commit f27ab4d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+416
-62
lines changed

packages/benchmark/CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Change Log
2+
3+
All notable changes to this project will be documented in this file.
4+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5+
6+
### 0.1.1 (2025-03-24)
7+
8+
9+
### Bug Fixes
10+
11+
* add echo to run-test.sh ([0f9bd62](https://github.com/endojs/endo/commit/0f9bd62f853758ea70d11e67ec333924d2c7da3a))
12+
* **camelCase:** Change to ([b5a9bf0](https://github.com/endojs/endo/commit/b5a9bf0944c6d96f630e7a1dd5c83f40d371a988))
13+
* **time:** change the function name to get time ([da0d44f](https://github.com/endojs/endo/commit/da0d44fdfe5de0c96abe1493c2ddf23d8cabff20))

packages/benchmark/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@endo/benchmark",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"private": true,
55
"description": "Endo benchmarking ",
66
"keywords": [],

packages/bundle-source/CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,33 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [4.0.0](https://github.com/endojs/endo/compare/@endo/[email protected]...@endo/[email protected]) (2025-03-24)
7+
8+
9+
### ⚠ BREAKING CHANGES
10+
11+
* **bundle-source:** * This change replaces the implementation of getExport
12+
and nestedEvaluate bundle formats in some ways that are not strictly
13+
backward-compatible.
14+
First, the Rollup implementation used different
15+
heuristics to distinguish a CommonJS module from an ESM, and the new
16+
algorithm is more in line with precedent as set in Node.js 18.
17+
Second, the Endo implementation does not support live export bindings.
18+
Third, the Endo implementation does not tolerate missing dependencies
19+
or devDependencies.
20+
Any treatment on the generated source that is not just evaluation is
21+
fragile and likely to break, and although we make no guarantees about
22+
stability of the generated string, this change definitely frustrates
23+
some usage in practice, which we have already addressed in Agoric SDK.
24+
This change preserves the assumption that getExport and nestedEvaluate
25+
may reach for devDependencies of the entry package by default.
26+
27+
### Features
28+
29+
* **bundle-source:** Replace getExport and nestedEvaluate implementations with endoScript implementation ([aae5655](https://github.com/endojs/endo/commit/aae5655f889ca2b504096eccfbede0be0dcf22ac))
30+
31+
32+
633
### [3.5.1](https://github.com/endojs/endo/compare/@endo/[email protected]...@endo/[email protected]) (2025-01-24)
734

835
**Note:** Version bump only for package @endo/bundle-source

packages/bundle-source/NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
User-visible changes to `@endo/bundle-source`:
22

3-
# Next release
3+
# v4.0.0 (2025-03-19)
44

55
- Replaces the implementation for the `nestedEvaluate` and `getExport`
66
formats with one based on Endo's Compartment Mapper instead of Rollup,

packages/bundle-source/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@endo/bundle-source",
3-
"version": "3.5.1",
3+
"version": "4.0.0",
44
"description": "Create source bundles from ES Modules",
55
"type": "module",
66
"main": "src/index.js",

packages/captp/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
### [4.4.5](https://github.com/endojs/endo/compare/@endo/[email protected]...@endo/[email protected]) (2025-03-24)
7+
8+
**Note:** Version bump only for package @endo/captp
9+
10+
11+
12+
13+
614
### [4.4.4](https://github.com/endojs/endo/compare/@endo/[email protected]...@endo/[email protected]) (2025-01-24)
715

816
**Note:** Version bump only for package @endo/captp

packages/captp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@endo/captp",
3-
"version": "4.4.4",
3+
"version": "4.4.5",
44
"description": "Capability Transfer Protocol for distributed objects",
55
"type": "module",
66
"keywords": [

packages/check-bundle/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
### [1.0.14](https://github.com/endojs/endo/compare/@endo/[email protected]...@endo/[email protected]) (2025-03-24)
7+
8+
**Note:** Version bump only for package @endo/check-bundle
9+
10+
11+
12+
13+
614
### [1.0.13](https://github.com/endojs/endo/compare/@endo/[email protected]...@endo/[email protected]) (2025-01-24)
715

816
**Note:** Version bump only for package @endo/check-bundle

packages/check-bundle/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@endo/check-bundle",
3-
"version": "1.0.13",
3+
"version": "1.0.14",
44
"description": "Checks the integrity of an Endo bundle.",
55
"keywords": [
66
"endo",

packages/cli/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
### [2.3.8](https://github.com/endojs/endo/compare/@endo/[email protected]...@endo/[email protected]) (2025-03-24)
7+
8+
9+
### Bug Fixes
10+
11+
* **cli:** tolerate [#2702](https://github.com/endojs/endo/issues/2702) stderr noise ([#2704](https://github.com/endojs/endo/issues/2704)) ([1bf94a1](https://github.com/endojs/endo/commit/1bf94a146bac85ad1efc1429986368f0dacf2f36))
12+
* **daemon,cli:** fix [#2700](https://github.com/endojs/endo/issues/2700) use endo/init to prepare async hooks ([aacefe4](https://github.com/endojs/endo/commit/aacefe4ab6266d1096db7939abbed95bbda6f4f5))
13+
14+
15+
616
### [2.3.7](https://github.com/endojs/endo/compare/@endo/[email protected]...@endo/[email protected]) (2025-01-24)
717

818
**Note:** Version bump only for package @endo/cli

0 commit comments

Comments
 (0)