ses 0.14.3 → 0.14.5
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 +23 -1
- package/dist/lockdown.cjs +4826 -4863
- package/dist/lockdown.mjs +4826 -4863
- package/dist/lockdown.umd.js +4826 -4863
- package/dist/lockdown.umd.min.js +1 -1
- package/dist/ses.cjs +4826 -4863
- package/dist/ses.mjs +4826 -4863
- package/dist/ses.umd.js +4826 -4863
- package/dist/ses.umd.min.js +1 -1
- package/package.json +6 -7
- package/src/compartment-evaluate.js +58 -28
- package/src/compartment-shim.js +44 -27
- package/src/global-object.js +33 -26
- package/src/lockdown-shim.js +15 -9
- package/src/make-eval-function.js +3 -5
- package/src/make-function-constructor.js +3 -4
- package/src/make-safe-evaluator.js +117 -0
- package/src/scope-handler.js +13 -2
- package/src/transforms.js +1 -1
- package/CHANGELOG.md +0 -220
- package/src/evaluate.js +0 -102
package/NEWS.md
CHANGED
|
@@ -1,9 +1,31 @@
|
|
|
1
1
|
User-visible changes in SES:
|
|
2
2
|
|
|
3
|
+
# v0.14.5 (2023-08-07)
|
|
4
|
+
|
|
5
|
+
- Censors the pattern `{...import(specifier)`}.
|
|
6
|
+
We previously censored `import(specifier)` and expressly allowed
|
|
7
|
+
`object.import(specifier)`.
|
|
8
|
+
The relaxation for the latter form in version 0.13.0 inadvertently allowed
|
|
9
|
+
import with the spread operator.
|
|
10
|
+
|
|
11
|
+
# 0.14.4 (2021-10-14)
|
|
12
|
+
|
|
13
|
+
- Fixes a defect in the per-compartment `Function` and `eval` functions, such
|
|
14
|
+
that these environments did not have the compartment's `globalLexicals`.
|
|
15
|
+
There is no known environment depending on this invariant for security
|
|
16
|
+
reasons, but such a scenario would be a program arranging a translator that
|
|
17
|
+
introduces run-time security checks, like metering, that depend on the
|
|
18
|
+
existence of a named global lexical.
|
|
19
|
+
[#898](https://github.com/endojs/endo/issues/898)
|
|
20
|
+
- The above fix incidentally improved the performance of compartment evaluation
|
|
21
|
+
for cases that do not require special global lexicals, by sharing a single
|
|
22
|
+
per-compartment evaluator.
|
|
23
|
+
|
|
3
24
|
# 0.14.3 (2021-09-18)
|
|
4
25
|
|
|
5
26
|
- Due to a peculiar bit of error handling code in Node 14, as explained at
|
|
6
|
-
[Hardened JavaScript interferes with Node.js 14 Error
|
|
27
|
+
[Hardened JavaScript interferes with Node.js 14 Error
|
|
28
|
+
construction](https://github.com/endojs/endo/issues/868),
|
|
7
29
|
we have added more overrides to the default `overrideTaming: 'moderate'`
|
|
8
30
|
setting. At this setting, assigning to the `name` property of a mutable error
|
|
9
31
|
instance should work. It will continue not to work at the `'min'` setting, so
|