Skip to content

Commit 79481f9

Browse files
chore: Bump ses from 1.12.0 to 1.13.0 in the npm_and_yarn group across 1 directory (#3438)
Bumps the npm_and_yarn group with 1 update in the / directory: [ses](https://github.com/endojs/endo/tree/HEAD/packages/ses). Updates `ses` from 1.12.0 to 1.13.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/endojs/endo/releases">ses's releases</a>.</em></p> <blockquote> <h2>2025-06-02 Releases</h2> <h1><code>ses</code> v1.13.0</h1> <ul> <li> <p>Two new <code>stackFiltering:</code> options are added</p> <ul> <li><code>'omit-frames'</code> -- Only omit likely uninteresting frames. Keep original paths.</li> <li><code>'shorten-paths'</code> -- Only shorten paths to text likely clickable in an IDE</li> </ul> <p>This fills out the matrix of what should have been orthogonal options. The existing <code>'concise'</code> setting both omits likely uninteresting frames and shortens their paths. The existing <code>'verbose'</code> setting does neither.</p> </li> <li> <p>Uses the <code>@endo/immutable-arraybuffer</code> shim to add <code>ArrayBuffer.p.immutable</code>, <code>ArrayBuffer.p.transferToImmutable</code>, and <code>ArrayBuffer.p.sliceToImmutable</code> to ses, in order to emulate the <a href="https://github.com/tc39/proposal-immutable-arraybuffer">Immutable ArrayBuffer proposal</a>. These make an ArrayBuffer-like object whose contents cannot be mutated. However, due to limitations of the shim</p> <ul> <li>Unlike <code>ArrayBuffer</code> and <code>SharedArrayBuffer</code> this shim's ArrayBuffer-like object cannot be transfered or cloned between JS threads.</li> <li>Unlike <code>ArrayBuffer</code> and <code>SharedArrayBuffer</code>, this shim's ArrayBuffer-like object cannot be used as the backing store of TypeArrays or DataViews.</li> <li>The shim depends on the platform providing either <code>structuredClone</code> or <code>Array.prototype.transfer</code>. Node &lt;= 16 and provides neither, causing the shim to fail to initialize, and therefore SES to fail to initialize on such platforms.</li> <li>Current Hermes has even stronger constraints, lacking <code>structuredClone</code>, <code>transfer</code>, private fields, and even <code>class</code> syntax. This requires other coping strategies. See <a href="https://redirect.github.com/endojs/endo/pull/2785">endojs/endo#2785</a></li> <li>Even after the upcoming <code>transferToImmutable</code> proposal is implemented by the platform, the current code will still replace it with the shim implementation, in accord with shim best practices. See <a href="https://redirect.github.com/endojs/endo/pull/2311#discussion_r1632607527">endojs/endo#2311</a> . It will require a later manual step to delete the shim or have it avoid overriting a platform implementation, after manual analysis of the compat implications.</li> </ul> </li> <li> <p>The <a href="https://github.com/endojs/endo/blob/master/packages/ses/docs/lockdown.md#evaltaming-options">evalTaming</a> option <code>'safe-eval'</code> now can only throw error <code>SES_DIRECT_EVAL</code>. This allows SES to initialize with <code>'unsafe-eval'</code> or <code>'no-eval'</code> on hosts with no direct eval available such as Hermes for a successful lockdown that tolerates it's language <a href="https://github.com/facebook/hermes/blob/main/doc/Features.md">features</a>.</p> <p>The module name <code>ses/hermes</code> can now be required to call <code>lockdown</code> and <code>repairIntrinsics</code> only, <code>Compartment</code> is not yet available.</p> <p>It is currently compatible with Hermes <a href="https://www.npmjs.com/package/hermes-engine-cli/v/0.12.0">v0.12.0</a>, we plan to support <a href="https://github.com/facebook/hermes/releases/tag/v0.13.0">v0.13.0</a> then subsequent Hermes <a href="https://github.com/facebook/hermes/tags">tags</a> or side-by-side versions built for React Native depending on ecosystem usage and official <a href="https://github.com/reactwg/react-native-releases/blob/main/docs/support.md">support</a>, then Static Hermes when released.</p> <p>Also <code>ses/hermes</code> can now be hooked into bundlers such as Metro to run Hardened JS.</p> </li> </ul> <h1><code>@endo/compartment-mapper</code> v1.6.1</h1> <ul> <li>The <code>dev</code> flag for <code>mapNodeModules()</code> is no longer deprecated. The concept of a &quot;condition&quot; (<a href="https://nodejs.org/api/packages.html#conditional-exports">conditional exports</a>) is disinct from the flag's original meaning (instructs <code>mapNodeModules()</code> to consider <code>devDependencies</code> when graphing packages). Users who have switched to using a <code>development</code> condition for <code>dev</code>'s purpose are encouraged to <em>switch back</em> to using the <code>dev</code> flag instead. <strong>In a future release, the presence of a <code>development</code> condition will no longer mimic an enabled <code>dev</code> flag</strong> and will only be considered when evaluating conditional exports.</li> </ul> <h1><code>@endo/evasive-transform</code> v2.0.0</h1> <ul> <li>The <code>sourceType</code> option is now restricted to <code>script</code> and <code>module</code> only. Function signature types have changed to be more precise.</li> </ul> <h1><code>@endo/bundle-source</code> v4.1.0</h1> <ul> <li>The <code>'endoZipBase64'</code> moduleFormat now utilizes the <code>importHook</code> option to exit dependencies whose specifiers return a truthy value.</li> </ul> <h1><code>@endo/import-bundle</code> v1.5.0</h1> <ul> <li>The <code>'endoZipBase64'</code> moduleFormat now utilizes the <code>importHook</code> option.</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/endojs/endo/blob/master/packages/ses/CHANGELOG.md">ses's changelog</a>.</em></p> <blockquote> <h2><a href="https://github.com/endojs/endo/compare/[email protected]@1.13.0">1.13.0</a> (2025-06-02)</h2> <h3>Features</h3> <ul> <li><strong>ses:</strong> ArrayBuffer.prototype.sliceToImmutable on Hermes (<a href="https://github.com/endojs/endo/commit/e432b1467b52f7e5a97c66f1ea5a488c3cfaf9b5">e432b14</a>)</li> <li><strong>ses:</strong> ArrayBuffer.prototype.transferToImmutable (<a href="https://redirect.github.com/endojs/endo/issues/2400">#2400</a>) (<a href="https://github.com/endojs/endo/commit/d714d1dc6b0d021f956eff80c8644b0aa6844da4">d714d1d</a>)</li> <li><strong>ses:</strong> Include ses-ava in stack frame filtering (<a href="https://github.com/endojs/endo/commit/bdbdb01b7e1e451ca411f27edb4fa7c0dfb2d070">bdbdb01</a>)</li> <li><strong>ses:</strong> init SES with evalTaming unsafe-eval or no-eval (<a href="https://github.com/endojs/endo/commit/0dfaa8d5c8bb10458997e6af9ad41c8c430d9047">0dfaa8d</a>)</li> </ul> <h3>Bug Fixes</h3> <ul> <li><strong>ses,lockdown:</strong> make filenames in stacktraces clickable (<a href="https://redirect.github.com/endojs/endo/issues/2747">#2747</a>) (<a href="https://github.com/endojs/endo/commit/178e25324651608fdd0888066ef2075b7efff531">178e253</a>), closes <a href="https://redirect.github.com/endojs/endo/issues/2359">#2359</a> <a href="https://redirect.github.com/endojs/endo/issues/2359">#2359</a></li> <li><strong>ses:</strong> avoid depth-first loading sequence in loadNow to prevent getting stuck in cycles (<a href="https://redirect.github.com/endojs/endo/issues/2804">#2804</a>) (<a href="https://github.com/endojs/endo/commit/37bfad6321cb5de630c1bc4f97f422261d6c88a6">37bfad6</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/endojs/endo/commit/571b7803cf10df7cb4fa9d70e4d53a0b53767fa8"><code>571b780</code></a> chore(release): publish</li> <li><a href="https://github.com/endojs/endo/commit/11c0eacd6feecfd751b29f1457a02421bc09902e"><code>11c0eac</code></a> docs: Update release notes</li> <li><a href="https://github.com/endojs/endo/commit/13c173b48f9371457676cc3047913e4f39c566cb"><code>13c173b</code></a> chore(types): conform to TS 5.8.3</li> <li><a href="https://github.com/endojs/endo/commit/6a5a4101ee5dac8f3fa5f9e3eacaeb8b4788dc45"><code>6a5a410</code></a> chore(deps): bump typescript to 5.8.3</li> <li><a href="https://github.com/endojs/endo/commit/ae1fae203654ee31c33053cab4db87acefd8a712"><code>ae1fae2</code></a> test: fix ses-ava Ava usage</li> <li><a href="https://github.com/endojs/endo/commit/7eb22cfcc52baa3a6426f6bbab4a2ff75da63a0e"><code>7eb22cf</code></a> lint: skipLibCheck in ses</li> <li><a href="https://github.com/endojs/endo/commit/b9c0a357650a324eb861a6d401bc8c44de4971b4"><code>b9c0a35</code></a> chore(types): conform</li> <li><a href="https://github.com/endojs/endo/commit/589c0e55a0b8a5451f9b31893221cf258353324b"><code>589c0e5</code></a> lint: include eslint-ed files in tsconfig</li> <li><a href="https://github.com/endojs/endo/commit/7108ca2f8e15c38deebe94347b7192399178ba72"><code>7108ca2</code></a> chore(types): conform &quot;ses&quot;</li> <li><a href="https://github.com/endojs/endo/commit/108ddfef7446b6349726e21749b3bfdf16917320"><code>108ddfe</code></a> lint(types): include &quot;test&quot;</li> <li>Additional commits viewable in <a href="https://github.com/endojs/endo/commits/[email protected]/packages/ses">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=ses&package-manager=npm_and_yarn&previous-version=1.12.0&new-version=1.13.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) - `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) - `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/MetaMask/snaps/network/alerts). </details> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: MetaMask Bot <[email protected]>
1 parent 7b08aba commit 79481f9

File tree

3 files changed

+21
-13
lines changed

3 files changed

+21
-13
lines changed

packages/snaps-execution-environments/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
"prettier": "^3.3.3",
109109
"rimraf": "^4.1.2",
110110
"serve-handler": "^6.1.5",
111-
"ses": "^1.12.0",
111+
"ses": "^1.13.0",
112112
"stream-browserify": "^3.0.0",
113113
"terser": "^5.17.7",
114114
"ts-loader": "^9.5.2",

packages/snaps-utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
"marked": "^12.0.1",
101101
"rfdc": "^1.3.0",
102102
"semver": "^7.5.4",
103-
"ses": "^1.12.0",
103+
"ses": "^1.13.0",
104104
"validate-npm-package-name": "^5.0.0"
105105
},
106106
"devDependencies": {

yarn.lock

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1692,10 +1692,17 @@ __metadata:
16921692
languageName: node
16931693
linkType: hard
16941694

1695-
"@endo/env-options@npm:^1.1.8":
1696-
version: 1.1.8
1697-
resolution: "@endo/env-options@npm:1.1.8"
1698-
checksum: 10/f7e84346599dd2bcb6365c314e9a8129c5ebbb457476de72ed896ea461d616c0b7e0dfc7733e20c0abb8400212fb5eafdae993bcfd4cbfe92acbb5c881a6ad0d
1695+
"@endo/env-options@npm:^1.1.8, @endo/env-options@npm:^1.1.9":
1696+
version: 1.1.9
1697+
resolution: "@endo/env-options@npm:1.1.9"
1698+
checksum: 10/13a7525bc178d1a3d4b588893fe69cf369e0b741dc389e520a8f893635d6f1d0c63790c8a1e739b350b3f347bbd6758b1d382e3d72bb703dedac4a553b51b1ba
1699+
languageName: node
1700+
linkType: hard
1701+
1702+
"@endo/immutable-arraybuffer@npm:^1.1.0":
1703+
version: 1.1.0
1704+
resolution: "@endo/immutable-arraybuffer@npm:1.1.0"
1705+
checksum: 10/0a3d6d3c6aaadb6cc8214d15026c0bb9c8fb375f6d4d1f0c7e15e4b5e7ace3161fe9b169dd5f85202c1ffcbe7cf9c41d0c7bcedf2245b4f8e6bfa2e88f1551dd
16991706
languageName: node
17001707
linkType: hard
17011708

@@ -4299,7 +4306,7 @@ __metadata:
42994306
readable-stream: "npm:^3.6.2"
43004307
rimraf: "npm:^4.1.2"
43014308
serve-handler: "npm:^6.1.5"
4302-
ses: "npm:^1.12.0"
4309+
ses: "npm:^1.13.0"
43034310
stream-browserify: "npm:^3.0.0"
43044311
terser: "npm:^5.17.7"
43054312
ts-loader: "npm:^9.5.2"
@@ -4574,7 +4581,7 @@ __metadata:
45744581
rfdc: "npm:^1.3.0"
45754582
rimraf: "npm:^4.1.2"
45764583
semver: "npm:^7.5.4"
4577-
ses: "npm:^1.12.0"
4584+
ses: "npm:^1.13.0"
45784585
ts-node: "npm:^10.9.1"
45794586
typescript: "npm:~5.3.3"
45804587
validate-npm-package-name: "npm:^5.0.0"
@@ -16928,12 +16935,13 @@ __metadata:
1692816935
languageName: node
1692916936
linkType: hard
1693016937

16931-
"ses@npm:^1.12.0":
16932-
version: 1.12.0
16933-
resolution: "ses@npm:1.12.0"
16938+
"ses@npm:^1.13.0":
16939+
version: 1.13.0
16940+
resolution: "ses@npm:1.13.0"
1693416941
dependencies:
16935-
"@endo/env-options": "npm:^1.1.8"
16936-
checksum: 10/209731eb2f6cfcc9e12296964f8f31cab7fefb53de97aff8d75e357aa6c85e40f69e62ebc0a8d946c6cbdd7ef644caf247f38d5c85a6ad891c00a1c5653f0e39
16942+
"@endo/env-options": "npm:^1.1.9"
16943+
"@endo/immutable-arraybuffer": "npm:^1.1.0"
16944+
checksum: 10/c89bd01c206245373974c0c6f0f2436bb1149b7a0771d36707fc428de89e4fef7dcfaba49bc6b08e3497fab0307534e58b5b405f3a8a986b16dc498a6b8a0a04
1693716945
languageName: node
1693816946
linkType: hard
1693916947

0 commit comments

Comments
 (0)