Commit f27ab4d
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.File tree
74 files changed
+416
-62
lines changed- packages
- benchmark
- bundle-source
- captp
- check-bundle
- cli
- common
- compartment-mapper
- daemon
- errors
- evasive-transform
- eventual-send
- exo
- far
- immutable-arraybuffer
- import-bundle
- src
- init
- lockdown
- lp32
- marshal
- memoize
- module-source
- nat
- netstring
- pass-style
- patterns
- src/patterns
- promise-kit
- ses-ava
- ses
- skel
- stream-node
- stream-types-test
- stream
- test262-runner
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| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
6 | 33 | | |
7 | 34 | | |
8 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
6 | 14 | | |
7 | 15 | | |
8 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
6 | 14 | | |
7 | 15 | | |
8 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
6 | 16 | | |
7 | 17 | | |
8 | 18 | | |
| |||
0 commit comments