ses 0.14.4 → 0.15.3
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 +52 -0
- package/NEWS.md +36 -0
- package/dist/lockdown.cjs +1508 -2331
- package/dist/lockdown.mjs +1508 -2331
- package/dist/lockdown.umd.js +1508 -2331
- package/dist/lockdown.umd.min.js +1 -1
- package/dist/ses.cjs +1508 -2331
- package/dist/ses.mjs +1508 -2331
- package/dist/ses.umd.js +1508 -2331
- package/dist/ses.umd.min.js +1 -1
- package/index.d.ts +1 -1
- package/index.js +3 -11
- package/package.json +8 -8
- package/src/environment-options.js +125 -0
- package/src/error/stringify-utils.js +24 -1
- package/src/error/tame-console.js +1 -3
- package/src/lockdown-shim.js +76 -100
- package/src/make-hardener.js +2 -2
- package/src/whitelist-intrinsics.js +3 -3
- package/src/whitelist.js +13 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,58 @@
|
|
|
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.3](https://github.com/endojs/endo/compare/ses@0.15.2...ses@0.15.3) (2021-12-14)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package ses
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### [0.15.2](https://github.com/endojs/endo/compare/ses@0.15.1...ses@0.15.2) (2021-12-08)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **ses:** Constrain URL types in bundle script ([bdd7996](https://github.com/endojs/endo/commit/bdd79964c56e1716113f2b852f39eb3af3022742))
|
|
20
|
+
* **ses:** Send removal warnings to STDERR ([#949](https://github.com/endojs/endo/issues/949)) ([761774c](https://github.com/endojs/endo/commit/761774c25d318d675c3e665f6112ff946ac7b59c))
|
|
21
|
+
* **ses:** Windows support for bundle build script ([f8c6885](https://github.com/endojs/endo/commit/f8c6885116c52436e2fb675c1544bc765a1dd0f1))
|
|
22
|
+
* **ses:** Windows support for tests ([3bc504b](https://github.com/endojs/endo/commit/3bc504b5356d13e1411d127cefc7ad3bc99fbfa5))
|
|
23
|
+
* Avoid eslint globs for Windows ([4b4f3cc](https://github.com/endojs/endo/commit/4b4f3ccaf3f5e8d53faefb4264db343dd603bf80))
|
|
24
|
+
* update whitelist with stage 3 and 4 proposals ([#946](https://github.com/endojs/endo/issues/946)) ([8112430](https://github.com/endojs/endo/commit/811243015cc2e3e588080ceef6146b7b5e42f2bb))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### [0.15.1](https://github.com/endojs/endo/compare/ses@0.15.0...ses@0.15.1) (2021-11-16)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Bug Fixes
|
|
32
|
+
|
|
33
|
+
* **ses:** Add errorTrapping none to type definition ([#935](https://github.com/endojs/endo/issues/935)) ([313d47c](https://github.com/endojs/endo/commit/313d47c5a5c02afcd57e933ca876fec22a059972))
|
|
34
|
+
* **ses:** Include error in trapped error log ([#936](https://github.com/endojs/endo/issues/936)) ([22c4644](https://github.com/endojs/endo/commit/22c4644b6ad31c9eb7fdb4d760d91f8667e7a2c7))
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## [0.15.0](https://github.com/endojs/endo/compare/ses@0.14.4...ses@0.15.0) (2021-11-02)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### ⚠ BREAKING CHANGES
|
|
42
|
+
|
|
43
|
+
* **ses:** Withdraw support for muli-lockdown (#921)
|
|
44
|
+
* **ses:** Domain taming safe by default (#917)
|
|
45
|
+
|
|
46
|
+
### Features
|
|
47
|
+
|
|
48
|
+
* **ses:** Read lockdown options from environment ([#871](https://github.com/endojs/endo/issues/871)) ([789d639](https://github.com/endojs/endo/commit/789d639c25c6882153a8090f4bd74d350bb29721))
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
### Bug Fixes
|
|
52
|
+
|
|
53
|
+
* **ses:** Domain taming safe by default ([#917](https://github.com/endojs/endo/issues/917)) ([7039276](https://github.com/endojs/endo/commit/7039276ef91a2de2b048c91085a7557c8830f677))
|
|
54
|
+
* **ses:** Withdraw support for muli-lockdown ([#921](https://github.com/endojs/endo/issues/921)) ([99752b0](https://github.com/endojs/endo/commit/99752b046c2a3e2d866559bb9d58f625eb94b1a8)), closes [#814](https://github.com/endojs/endo/issues/814)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
6
58
|
### [0.14.4](https://github.com/endojs/endo/compare/ses@0.14.3...ses@0.14.4) (2021-10-15)
|
|
7
59
|
|
|
8
60
|
|
package/NEWS.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
User-visible changes in SES:
|
|
2
2
|
|
|
3
|
+
# 0.15.2 (2021-12-08)
|
|
4
|
+
|
|
5
|
+
- The `Removing...` messages that Lockdown emits when encountering unrecognized
|
|
6
|
+
properties on shared intrinsics are now logged as "warnings".
|
|
7
|
+
This has the material benefit of sending these messages to STDERR on Node.js.
|
|
8
|
+
- Updates permits for all current TC39 stage 3 and 4 proposals, notably
|
|
9
|
+
suppressing the `Removing...` messages for `Object.hasOwn`; `findLast` and
|
|
10
|
+
`findLastIndex` on both `Array.prototype` and `TypedArray.prototype`; and the
|
|
11
|
+
properties `transfer`, `resize`, `resizable`, and `maxByteLength` of
|
|
12
|
+
`ArrayBuffer.prototype`.
|
|
13
|
+
|
|
14
|
+
# 0.15.1 (2021-11-15)
|
|
15
|
+
|
|
16
|
+
- The TypeScript definition of `lockdown` now allows for the option
|
|
17
|
+
`"errorTrapping": "none"`.
|
|
18
|
+
- Fixes error trapping on the web, showing both the message (and stack) of any
|
|
19
|
+
error that throws out of the top of an event.
|
|
20
|
+
|
|
21
|
+
# 0.15.0 (2021-11-02)
|
|
22
|
+
|
|
23
|
+
- *BREAKING CHANGE*: The lockdown option `domainTaming` is now `safe` by
|
|
24
|
+
default, which will break any application that depends transtively on the
|
|
25
|
+
Node.js `domain` module.
|
|
26
|
+
Notably, [standard-things/esm](https://github.com/standard-things/esm)
|
|
27
|
+
uses domains and so SES will not support `node -r esm` going forward.
|
|
28
|
+
|
|
29
|
+
This protects against the unhardened `domain` property appearing on shared
|
|
30
|
+
objects like callbacks and promises.
|
|
31
|
+
This overcomes the last *known* obstacle toward object capability containment.
|
|
32
|
+
- Lockdown will now read options from the environment as defined by the Node.js
|
|
33
|
+
`process.env` parameter space.
|
|
34
|
+
- *BREAKING CHANGE*: Lockdown may no longer be called more than once.
|
|
35
|
+
Lockdown no longer returns a boolean to indicate whether it was effective
|
|
36
|
+
(true) or redundant (false). Instead, Lockdown will return undefined for
|
|
37
|
+
its first invocation or throw an error otherwise.
|
|
38
|
+
|
|
3
39
|
# 0.14.4 (2021-10-14)
|
|
4
40
|
|
|
5
41
|
- Fixes a defect in the per-compartment `Function` and `eval` functions, such
|