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 +20 -0
- package/dist/lockdown.cjs +397 -91
- package/dist/lockdown.mjs +397 -91
- package/dist/lockdown.umd.js +397 -91
- package/dist/lockdown.umd.min.js +1 -1
- package/dist/ses.cjs +397 -91
- package/dist/ses.mjs +397 -91
- package/dist/ses.umd.js +397 -91
- package/dist/ses.umd.min.js +1 -1
- package/index.js +1 -0
- package/package.json +10 -9
- package/src/commons.js +4 -0
- package/src/console-shim.js +50 -0
- package/src/enablements.js +6 -0
- package/src/error/README.md +9 -1
- package/src/error/assert.js +37 -9
- package/src/error/console.js +156 -17
- package/src/error/internal-types.js +6 -1
- package/src/error/tame-console.js +8 -8
- package/src/error/types.js +45 -27
- package/src/make-eval-function.js +1 -1
- package/src/permits.js +25 -7
- package/src/tame-regexp-constructor.js +13 -6
- package/types.d.ts +16 -4
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
|