ses 0.15.14 → 0.15.17
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/CHANGELOG.md +46 -0
- package/README.md +5 -2
- package/dist/lockdown.cjs +527 -180
- package/dist/lockdown.mjs +527 -180
- package/dist/lockdown.umd.js +527 -180
- package/dist/lockdown.umd.min.js +1 -1
- package/dist/ses.cjs +527 -180
- package/dist/ses.mjs +527 -180
- package/dist/ses.umd.js +527 -180
- package/dist/ses.umd.min.js +1 -1
- package/index.d.ts +6 -4
- package/package.json +9 -9
- package/src/commons.js +13 -1
- package/src/compartment-shim.js +3 -1
- package/src/error/console.js +29 -26
- package/src/error/tame-console.js +62 -14
- package/src/error/tame-error-constructor.js +66 -12
- package/src/error/unhandled-rejection.js +122 -0
- package/src/lockdown-shim.js +14 -5
- package/src/module-instance.js +18 -2
- package/src/module-load.js +4 -0
- package/src/transforms.js +8 -8
- package/src/whitelist-intrinsics.js +9 -0
- package/src/whitelist.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,52 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
### [0.15.17](https://github.com/endojs/endo/compare/ses@0.15.16...ses@0.15.17) (2022-06-28)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **compartment-mapper:** implement passing values in import.meta.url ([d6294f6](https://github.com/endojs/endo/commit/d6294f6832f978eaa7af94fee4496d76bd35a927))
|
|
12
|
+
* add the foundations for support of import.meta ([36f6449](https://github.com/endojs/endo/commit/36f644998c21f6333268707555b97938ff0fff08))
|
|
13
|
+
* call importMetaHook on instantiation if import.meta uttered by module ([23e8c40](https://github.com/endojs/endo/commit/23e8c405e0be823c728f8af1a6db9607e21f2f74))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* rename meta to importMeta, fix detection to detect import.meta not import.meta.something ([c61a862](https://github.com/endojs/endo/commit/c61a862c9f4354f0e6d86d8c8efaa826840a6efd))
|
|
19
|
+
* tolerate empty func.prototype ([#1221](https://github.com/endojs/endo/issues/1221)) ([4da7742](https://github.com/endojs/endo/commit/4da7742e8017d07094ed9b9336a85b6a4d3ee7b6))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### [0.15.16](https://github.com/endojs/endo/compare/ses@0.15.15...ses@0.15.16) (2022-06-11)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Features
|
|
27
|
+
|
|
28
|
+
* **console-taming:** `unhandledRejectionTrapping` after finalized ([7dccecf](https://github.com/endojs/endo/commit/7dccecfc1766b5287eeb0ebe958d1e1715cb63a4))
|
|
29
|
+
* **ses:** add to commons ([9dc2de8](https://github.com/endojs/endo/commit/9dc2de812755a3c2ba6f73764f8ee7f43dd6f717))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Bug Fixes
|
|
33
|
+
|
|
34
|
+
* **console:** close over severity for error note callbacks ([59910b2](https://github.com/endojs/endo/commit/59910b2a0ac146162c5191a3b315421b92ac5d77))
|
|
35
|
+
* **console:** direct error output to the current severity ([f5d460d](https://github.com/endojs/endo/commit/f5d460d1cc1828100ce0ad237cb0f6bfd0a8e45c))
|
|
36
|
+
* **ses:** Fix compartment with name from object with toString ([405c00b](https://github.com/endojs/endo/commit/405c00b3cc8f663ef73ef4275ba1776913dc26e7))
|
|
37
|
+
* **static-module-record:** Make types consistent with implementation ([#1184](https://github.com/endojs/endo/issues/1184)) ([5b7e3a6](https://github.com/endojs/endo/commit/5b7e3a6d006a686520c4ffeedea5428a720f7e7d))
|
|
38
|
+
* all errors have stacks, even if empty ([#1171](https://github.com/endojs/endo/issues/1171)) ([25b7d86](https://github.com/endojs/endo/commit/25b7d86240a5fc2772343664e5a42d1400d363d9))
|
|
39
|
+
* make `*Trapping` orthogonal to `consoleTaming` ([8c5e12e](https://github.com/endojs/endo/commit/8c5e12e96f8c71d0c52e2d17786558e88585e04b))
|
|
40
|
+
* repair deviations from local convention ([#1183](https://github.com/endojs/endo/issues/1183)) ([13614f5](https://github.com/endojs/endo/commit/13614f56872ac976e3440f8bcce706200ffe9822))
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### [0.15.15](https://github.com/endojs/endo/compare/ses@0.15.14...ses@0.15.15) (2022-04-15)
|
|
45
|
+
|
|
46
|
+
**Note:** Version bump only for package ses
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
6
52
|
### [0.15.14](https://github.com/endojs/endo/compare/ses@0.15.13...ses@0.15.14) (2022-04-14)
|
|
7
53
|
|
|
8
54
|
**Note:** Version bump only for package ses
|
package/README.md
CHANGED
|
@@ -412,13 +412,16 @@ A compiled static module record has the following shape:
|
|
|
412
412
|
an initialization record and initializes the module.
|
|
413
413
|
This property distinguishes this type of module record.
|
|
414
414
|
The name implies a future record type that supports top-level await.
|
|
415
|
-
- An initialization record has the properties `imports`, `liveVar`, and
|
|
415
|
+
- An initialization record has the properties `imports`, `liveVar`, `importMeta` and
|
|
416
416
|
`onceVar`.
|
|
417
417
|
- `imports` is a function that accepts a map from partial import
|
|
418
418
|
module specifiers to maps from names that the corresponding module
|
|
419
419
|
exports to notifier functions.
|
|
420
420
|
A notifier function accepts an update function and registers
|
|
421
421
|
to receive updates for the value exported by the other module.
|
|
422
|
+
- `importMeta` is a null-prototype object with keys transferred from `importMeta`
|
|
423
|
+
property in the envelope returned by importHook and/or mutated by
|
|
424
|
+
calling `importMetaHook(moduleSpecifier, importMeta)`
|
|
422
425
|
- `liveVar` is a record that maps names exported by this module
|
|
423
426
|
to a function that may be called to initialize or update
|
|
424
427
|
the corresponding value in another module.
|
|
@@ -704,7 +707,7 @@ instructions in [SECURITY.md][] to report security-sensitive bugs privately.
|
|
|
704
707
|
|
|
705
708
|
For non-security bugs, please use the [regular Issues page][SES Issues].
|
|
706
709
|
|
|
707
|
-
[define shim]: https://en.wikipedia.org/wiki/Shim_(computing
|
|
710
|
+
[define shim]: https://en.wikipedia.org/wiki/Shim_(computing)
|
|
708
711
|
[SES proposal]: https://github.com/tc39/proposal-ses
|
|
709
712
|
[SECURITY.md]: https://github.com/endojs/endo/blob/master/packages/ses/SECURITY.md
|
|
710
713
|
[SES Issues]: https://github.com/endojs/endo/issues
|