ses 1.1.0 → 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 +7 -0
- package/README.md +1 -1
- package/dist/lockdown.cjs +394 -299
- package/dist/lockdown.mjs +394 -299
- package/dist/lockdown.umd.js +394 -299
- package/dist/lockdown.umd.min.js +1 -1
- package/dist/ses.cjs +394 -299
- package/dist/ses.mjs +394 -299
- package/dist/ses.umd.js +394 -299
- package/dist/ses.umd.min.js +1 -1
- package/package.json +11 -7
- package/src/compartment.js +13 -4
- package/src/enablements.js +3 -1
- package/src/error/note-log-args.js +1 -205
- package/src/error/tame-console.js +8 -8
- package/src/make-lru-cachemap.js +221 -0
- package/src/permits.js +53 -2
package/NEWS.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
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
|
+
|
|
3
10
|
# v1.1.0 (2024-01-17)
|
|
4
11
|
|
|
5
12
|
- The [iterators-helpers](https://github.com/tc39/proposal-iterator-helpers)
|
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:
|