ses 1.2.0 → 1.4.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,25 @@
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
+
3
23
  # v1.2.0 (2024-02-14)
4
24
 
5
25
  - Exports `ses/lockdown-shim.js`, `ses/compartment-shim.js`, and