ses 1.1.0 → 1.3.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,32 @@
1
1
  User-visible changes in SES:
2
2
 
3
+ # v1.3.0 (2024-02-22)
4
+
5
+ - Now supports `Promise.any`, `AggegateError`, `error.errors`,
6
+ and `error.cause`.
7
+ - Assertion functions/methods that were parameterized by an error constructor
8
+ (`makeError`, `assert`, `assert.fail`, `assert.equal`) now also accept named
9
+ options `cause` and `errors` in their immediately succeeding
10
+ `options` argument.
11
+ - For all those, the error constructor can now be an `AggregateError`.
12
+ If they do make an error instance, they encapsulate the
13
+ non-uniformity of the `AggregateError` construction arguments, allowing
14
+ all the error constructors to be used polymorphically
15
+ (generic / interchangeable).
16
+ - Adds a `GenericErrorConstructor` type to be effectively the common supertype
17
+ of `ErrorConstructor` and `AggregateErrorConstructor`, for typing these
18
+ error constructor parameters that handle the error constructor
19
+ polymorphically.
20
+ - The SES `console` now includes `error.cause` and `error.errors` in
21
+ its diagnostic output for errors.
22
+
23
+ # v1.2.0 (2024-02-14)
24
+
25
+ - Exports `ses/lockdown-shim.js`, `ses/compartment-shim.js`, and
26
+ `ses/assert-shim.js` for piecemeal usage.
27
+ This change is motivated by the need to omit `ses/assert-shim.js` in Test262
28
+ environments.
29
+
3
30
  # v1.1.0 (2024-01-17)
4
31
 
5
32
  - 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
- 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: