ses 0.16.0 → 0.17.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 +27 -0
- package/NEWS.md +10 -0
- package/dist/lockdown.cjs +584 -452
- package/dist/lockdown.mjs +584 -452
- package/dist/lockdown.umd.js +584 -452
- package/dist/lockdown.umd.min.js +1 -1
- package/dist/ses.cjs +584 -452
- package/dist/ses.mjs +584 -452
- package/dist/ses.umd.js +584 -452
- package/dist/ses.umd.min.js +1 -1
- package/package.json +5 -5
- package/src/commons.js +1 -0
- package/src/compartment-evaluate.js +2 -7
- package/src/compartment-shim.js +3 -11
- package/src/eval-scope.js +90 -0
- package/src/global-object.js +40 -1
- package/src/make-evaluate.js +110 -0
- package/src/make-safe-evaluator.js +28 -35
- package/src/scope-constants.js +17 -13
- package/src/sloppy-globals-scope-terminator.js +53 -0
- package/src/strict-scope-terminator.js +91 -0
- package/src/whitelist.js +0 -1
- package/src/make-evaluate-factory.js +0 -71
- package/src/scope-handler.js +0 -211
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
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.17.0](https://github.com/endojs/endo/compare/ses@0.16.0...ses@0.17.0) (2022-10-24)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### ⚠ BREAKING CHANGES
|
|
10
|
+
|
|
11
|
+
* **ses:** Prevent surprising global unscopables behavior
|
|
12
|
+
* **ses:** Divide scope proxy into four layers
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **ses:** Revocable evalScope ([0187d1e](https://github.com/endojs/endo/commit/0187d1e3532cfc2f052619c46a8a6331a8c15ae8))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* **ses:** Prevent surprising global unscopables behavior ([dcb8f5d](https://github.com/endojs/endo/commit/dcb8f5da2a453ac72b7f2cc3208f591a9c298402))
|
|
22
|
+
* **ses:** Protect necessary eval admission before it has been admitted ([3d022b1](https://github.com/endojs/endo/commit/3d022b1e1b34ff9b86cf6af236c499bfbe291298))
|
|
23
|
+
* **ses:** Typo in compartmentEvaluate ([d66db7a](https://github.com/endojs/endo/commit/d66db7a67fab6bdd36d18a931c6a9163e842c3fe))
|
|
24
|
+
* **ses:** Typo in scope-constants ([a4ee1ea](https://github.com/endojs/endo/commit/a4ee1ea5e54d894ad3a3ce0c5e42507f026199e6))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Code Refactoring
|
|
28
|
+
|
|
29
|
+
* **ses:** Divide scope proxy into four layers ([37c4b4a](https://github.com/endojs/endo/commit/37c4b4a22996e33dd4b2a48c67ce649ba88e5528))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
## [0.16.0](https://github.com/endojs/endo/compare/ses@0.15.23...ses@0.16.0) (2022-10-19)
|
|
7
34
|
|
|
8
35
|
|
package/NEWS.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
User-visible changes in SES:
|
|
2
2
|
|
|
3
|
+
# v0.17.0 (2022-10-24)
|
|
4
|
+
|
|
5
|
+
- Previous versions of SES would leak the proxy used to isolate evaluated
|
|
6
|
+
code to functions added to the global object by guest code.
|
|
7
|
+
The value of `this` in such functions should be `undefined`, but that is not
|
|
8
|
+
possible to emulate in this shim.
|
|
9
|
+
This version changes the value of `this` in such functions to be the same as
|
|
10
|
+
`globalThis` of the compartment, as would be correct in sloppy mode.
|
|
11
|
+
- Removes experimental support for "known scope proxies".
|
|
12
|
+
|
|
3
13
|
# v0.16.0 (2022-10-19)
|
|
4
14
|
|
|
5
15
|
- When hardening a typed array, detects and locks down properties named as
|