ses 0.14.4 → 0.15.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/CHANGELOG.md +20 -0
- package/NEWS.md +18 -0
- package/dist/lockdown.cjs +548 -365
- package/dist/lockdown.mjs +548 -365
- package/dist/lockdown.umd.js +548 -365
- package/dist/lockdown.umd.min.js +1 -1
- package/dist/ses.cjs +548 -365
- package/dist/ses.mjs +548 -365
- package/dist/ses.umd.js +548 -365
- package/dist/ses.umd.min.js +1 -1
- package/index.js +3 -11
- package/package.json +6 -6
- package/src/environment-options.js +125 -0
- package/src/error/stringify-utils.js +24 -1
- package/src/lockdown-shim.js +76 -100
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
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.0](https://github.com/endojs/endo/compare/ses@0.14.4...ses@0.15.0) (2021-11-02)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### ⚠ BREAKING CHANGES
|
|
10
|
+
|
|
11
|
+
* **ses:** Withdraw support for muli-lockdown (#921)
|
|
12
|
+
* **ses:** Domain taming safe by default (#917)
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **ses:** Read lockdown options from environment ([#871](https://github.com/endojs/endo/issues/871)) ([789d639](https://github.com/endojs/endo/commit/789d639c25c6882153a8090f4bd74d350bb29721))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* **ses:** Domain taming safe by default ([#917](https://github.com/endojs/endo/issues/917)) ([7039276](https://github.com/endojs/endo/commit/7039276ef91a2de2b048c91085a7557c8830f677))
|
|
22
|
+
* **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)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
### [0.14.4](https://github.com/endojs/endo/compare/ses@0.14.3...ses@0.14.4) (2021-10-15)
|
|
7
27
|
|
|
8
28
|
|
package/NEWS.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
User-visible changes in SES:
|
|
2
2
|
|
|
3
|
+
# 0.15.0 (2021-11-02)
|
|
4
|
+
|
|
5
|
+
- *BREAKING CHANGE*: The lockdown option `domainTaming` is now `safe` by
|
|
6
|
+
default, which will break any application that depends transtively on the
|
|
7
|
+
Node.js `domain` module.
|
|
8
|
+
Notably, [standard-things/esm](https://github.com/standard-things/esm)
|
|
9
|
+
uses domains and so SES will not support `node -r esm` going forward.
|
|
10
|
+
|
|
11
|
+
This protects against the unhardened `domain` property appearing on shared
|
|
12
|
+
objects like callbacks and promises.
|
|
13
|
+
This overcomes the last *known* obstacle toward object capability containment.
|
|
14
|
+
- Lockdown will now read options from the environment as defined by the Node.js
|
|
15
|
+
`process.env` parameter space.
|
|
16
|
+
- *BREAKING CHANGE*: Lockdown may no longer be called more than once.
|
|
17
|
+
Lockdown no longer returns a boolean to indicate whether it was effective
|
|
18
|
+
(true) or redundant (false). Instead, Lockdown will return undefined for
|
|
19
|
+
its first invocation or throw an error otherwise.
|
|
20
|
+
|
|
3
21
|
# 0.14.4 (2021-10-14)
|
|
4
22
|
|
|
5
23
|
- Fixes a defect in the per-compartment `Function` and `eval` functions, such
|