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 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
- Comaprtments leave these out since they can be used as covert communication
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: