ses 1.0.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NEWS.md +25 -1
- package/README.md +1 -1
- package/dist/lockdown.cjs +962 -453
- package/dist/lockdown.mjs +962 -453
- package/dist/lockdown.umd.js +962 -453
- package/dist/lockdown.umd.min.js +1 -1
- package/dist/ses.cjs +962 -453
- package/dist/ses.mjs +962 -453
- package/dist/ses.umd.js +962 -453
- package/dist/ses.umd.min.js +1 -1
- package/package.json +15 -11
- package/src/compartment.js +13 -4
- package/src/enable-property-overrides.js +40 -36
- package/src/enablements.js +15 -0
- package/src/error/README.md +1 -1
- package/src/error/fatal-assert.js +1 -1
- package/src/error/note-log-args.js +1 -205
- package/src/error/tame-console.js +72 -51
- package/src/lockdown.js +43 -12
- package/src/make-lru-cachemap.js +221 -0
- package/src/module-instance.js +10 -10
- package/src/module-proxy.js +42 -14
- package/src/permits-intrinsics.js +29 -15
- package/src/permits.js +67 -2
- package/src/tame-domains.js +4 -6
- package/src/tame-faux-data-properties.js +210 -0
- package/types.d.ts +1 -1
package/NEWS.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
User-visible changes in SES:
|
|
2
2
|
|
|
3
|
+
# v1.2.0 (2024-02-14)
|
|
4
|
+
|
|
5
|
+
- Exports `ses/lockdown-shim.js`, `ses/compartment-shim.js`, and
|
|
6
|
+
`ses/assert-shim.js` for piecemeal usage.
|
|
7
|
+
This change is motivated by the need to omit `ses/assert-shim.js` in Test262
|
|
8
|
+
environments.
|
|
9
|
+
|
|
10
|
+
# v1.1.0 (2024-01-17)
|
|
11
|
+
|
|
12
|
+
- The [iterators-helpers](https://github.com/tc39/proposal-iterator-helpers)
|
|
13
|
+
proposal includes two accessor properties whose purpose is to emulate
|
|
14
|
+
a data property, but without the override mistake problem. The ses-shim
|
|
15
|
+
creates many such properties, but was unprepared for them to already be
|
|
16
|
+
present in the JS platform it starts with. Chrome Canary and Node 22
|
|
17
|
+
both implement the iterators-helper proposal, triggering this bug, preventing
|
|
18
|
+
the ses-shim from initializing. The ses-shim
|
|
19
|
+
[now copes safely](https://github.com/endojs/endo/pull/1969) with an
|
|
20
|
+
enumerated set of such properties, starting with these two properties from
|
|
21
|
+
the iterators-helpers proposal.
|
|
22
|
+
- The ses-shim now permits the new methods from the
|
|
23
|
+
[set-methods](https://github.com/tc39/proposal-set-methods) proposal,
|
|
24
|
+
enabling these methods to be used on platforms where they are implemented,
|
|
25
|
+
which are currently a Chrome Canary and a Node 22.
|
|
26
|
+
|
|
3
27
|
# v0.18.8 (2023-09-11)
|
|
4
28
|
|
|
5
29
|
- Extracts `repairIntrinsics(options)` and `hardenIntrinsics()` from the
|
|
@@ -27,7 +51,7 @@ User-visible changes in SES:
|
|
|
27
51
|
|
|
28
52
|
# v0.18.6 (2023-08-07)
|
|
29
53
|
|
|
30
|
-
- Censors the pattern `{...import(specifier)
|
|
54
|
+
- Censors the pattern `{...import(specifier)}`.
|
|
31
55
|
We previously censored `import(specifier)` and expressly allowed
|
|
32
56
|
`object.import(specifier)`.
|
|
33
57
|
The relaxation for the latter form in version 0.13.0 inadvertently allowed
|
package/README.md
CHANGED
|
@@ -196,7 +196,7 @@ c1.globalThis.JSON === c2.globalThis.JSON; // true
|
|
|
196
196
|
The global scope of every compartment includes a shallow, specialized copy of
|
|
197
197
|
the JavaScript intrinsics, disabling `Math.random`, `Date.now` and the
|
|
198
198
|
behaviors of the `Date` constructor which would reveal the current time.
|
|
199
|
-
|
|
199
|
+
Compartments leave these out since they can be used as covert communication
|
|
200
200
|
channels between programs.
|
|
201
201
|
However, a compartment may be expressly given access to these objects
|
|
202
202
|
through:
|