ses 0.13.3 → 0.13.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 +12 -1
- package/dist/lockdown.cjs +35 -63
- package/dist/lockdown.mjs +35 -63
- package/dist/lockdown.umd.js +35 -63
- package/dist/lockdown.umd.min.js +1 -1
- package/dist/ses.cjs +35 -63
- package/dist/ses.mjs +35 -63
- package/dist/ses.umd.js +35 -63
- package/dist/ses.umd.min.js +1 -1
- package/index.d.ts +146 -47
- package/package.json +6 -7
- package/src/compartment-shim.js +4 -18
- package/src/error/types.js +2 -2
- package/src/lockdown-shim.js +6 -20
- package/src/make-hardener.js +2 -2
- package/src/transforms.js +4 -1
- package/CHANGELOG.md +0 -147
package/index.d.ts
CHANGED
|
@@ -1,52 +1,151 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
//
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
|
|
2
|
+
// It's academically tempting to define a hardened type, but TypeScript doesn't
|
|
3
|
+
// strike a good balance in distinguishing "readonly" in the sense that you
|
|
4
|
+
// promise not to change vs "readonly" in the sense that you depend on a thing
|
|
5
|
+
// not changing.
|
|
6
|
+
// type Hardened<T> =
|
|
7
|
+
// T extends number | bigint | string | null | undefined | Function ? T :
|
|
8
|
+
// { readonly [P in keyof T]: Hardened<T[P]> };
|
|
9
|
+
|
|
10
|
+
// So Harden just passes the type through without modification.
|
|
11
|
+
// This will occasionally conflict with the type of Object.freeze.
|
|
12
|
+
// In those cases, we recommend casting the result of Object.freeze to the
|
|
13
|
+
// original thawn type, as if the signature of freeze were identical to this
|
|
14
|
+
// version of harden.
|
|
15
|
+
export type Harden = <T>(value: T) => T; // not Hardened<T>;
|
|
16
|
+
|
|
17
|
+
export interface LockdownOptions {
|
|
18
|
+
regExpTaming?: 'safe' | 'unsafe';
|
|
19
|
+
localeTaming?: 'safe' | 'unsafe';
|
|
20
|
+
consoleTaming?: 'safe' | 'unsafe';
|
|
21
|
+
errorTaming?: 'safe' | 'unsafe';
|
|
22
|
+
dateTaming?: 'safe' | 'unsafe'; // deprecated
|
|
23
|
+
mathTaming?: 'safe' | 'unsafe'; // deprecated
|
|
24
|
+
stackFiltering?: 'concise' | 'verbose';
|
|
25
|
+
overrideTaming?: 'moderate' | 'min' | 'severe';
|
|
26
|
+
overrideDebug?: Array<string>;
|
|
27
|
+
__allowUnsafeMonkeyPatching__?: 'safe' | 'unsafe';
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export type Lockdown = (options?: LockdownOptions) => void;
|
|
31
|
+
|
|
32
|
+
export type __LiveExportsMap__ = Record<string, [string, boolean]>
|
|
33
|
+
export type __FixedExportsMap__ = Record<string, [string]>
|
|
34
|
+
|
|
35
|
+
export interface PrecompiledStaticModuleInterface {
|
|
36
|
+
imports: Array<string>;
|
|
37
|
+
exports: Array<string>;
|
|
38
|
+
reexports: Array<string>;
|
|
39
|
+
__syncModuleProgram__: string;
|
|
40
|
+
__liveExportsMap__: __LiveExportsMap__;
|
|
41
|
+
__fixedExportsMap__: __FixedExportsMap__;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface ThirdPartyStaticModuleInterface {
|
|
45
|
+
imports: Array<string>;
|
|
46
|
+
exports: Array<string>;
|
|
47
|
+
execute(proxiedExports: Object, compartment: Compartment, resolvedImports: Record<string, string>): void;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export type FinalStaticModuleType = PrecompiledStaticModuleInterface | ThirdPartyStaticModuleInterface
|
|
51
|
+
|
|
52
|
+
export interface RedirectStaticModuleInterface {
|
|
53
|
+
record: FinalStaticModuleType,
|
|
19
54
|
specifier: string
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type StaticModuleType = RedirectStaticModuleInterface | FinalStaticModuleType
|
|
58
|
+
|
|
59
|
+
export type ModuleExportsNamespace = Record<string, any>
|
|
60
|
+
|
|
61
|
+
export type Transform = (source: string) => string;
|
|
62
|
+
export type ResolveHook = (importSpecifier: string, referrerSpecifier: string) => string;
|
|
63
|
+
export type ModuleMap = Record<string, string | ModuleExportsNamespace>;
|
|
64
|
+
export type ModuleMapHook = (moduleSpecifier: string) => string | ModuleExportsNamespace | void;
|
|
65
|
+
export type ImportHook = (moduleSpecifier: string) => Promise<StaticModuleType>;
|
|
26
66
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
67
|
+
export interface CompartmentOptions {
|
|
68
|
+
name?: string;
|
|
69
|
+
transforms?: Array<Transform>;
|
|
70
|
+
globalLexicals?: Record<string, any>;
|
|
71
|
+
moduleMapHook?: ModuleMapHook,
|
|
72
|
+
importHook?: ImportHook,
|
|
73
|
+
resolveHook?: ResolveHook,
|
|
74
|
+
__shimTransforms__?: Array<Transform>;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export interface EvaluateOptions {
|
|
78
|
+
transforms?: Array<Transform>;
|
|
79
|
+
sloppyGlobalsMode?: boolean;
|
|
80
|
+
__moduleShimLexicals__?: Record<string, any>;
|
|
81
|
+
__evadeHtmlCommentTest__?: boolean;
|
|
82
|
+
__rejectSomeDirectEvalExpressions__?: boolean;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// The DetailsToken is an empty object literal.
|
|
86
|
+
export type DetailsToken = Record<any, never>
|
|
87
|
+
export type Details = string | DetailsToken
|
|
88
|
+
|
|
89
|
+
export interface AssertMakeErrorOptions {
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
type AssertTypeofBigint = (specimen: any, typeName: 'bigint', details?: Details) => asserts specimen is bigint;
|
|
93
|
+
type AssertTypeofBoolean = (specimen: any, typeName: 'boolean', details?: Details) => asserts specimen is boolean;
|
|
94
|
+
type AssertTypeofFunction = (specimen: any, typeName: 'function', details?: Details) => asserts specimen is Function;
|
|
95
|
+
type AssertTypeofNumber = (specimen: any, typeName: 'number', details?: Details) => asserts specimen is number;
|
|
96
|
+
type AssertTypeofObject = (specimen: any, typeName: 'object', details?: Details) => asserts specimen is Record<any, any> | null;
|
|
97
|
+
type AssertTypeofString = (specimen: any, typeName: 'string', details?: Details) => asserts specimen is string;
|
|
98
|
+
type AssertTypeofSymbol = (specimen: any, typeName: 'symbol', details?: Details) => asserts specimen is symbol;
|
|
99
|
+
type AssertTypeofUndefined = (specimen: any, typeName: 'undefined', details?: Details) => asserts specimen is undefined;
|
|
100
|
+
|
|
101
|
+
export type AssertTypeof = AssertTypeofBigint &
|
|
102
|
+
AssertTypeofBoolean &
|
|
103
|
+
AssertTypeofFunction &
|
|
104
|
+
AssertTypeofNumber &
|
|
105
|
+
AssertTypeofObject &
|
|
106
|
+
AssertTypeofString &
|
|
107
|
+
AssertTypeofSymbol &
|
|
108
|
+
AssertTypeofUndefined;
|
|
109
|
+
|
|
110
|
+
export type Raise = (reason: Error) => void;
|
|
111
|
+
export type MakeAssert = (raise?: Raise, unredacted?: boolean) => Assert;
|
|
112
|
+
|
|
113
|
+
interface ToStringable {
|
|
114
|
+
toString(): string
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export interface Assert {
|
|
118
|
+
(value: any, details?: Details, errorConstructor?:ErrorConstructor): void;
|
|
119
|
+
typeof: AssertTypeof,
|
|
120
|
+
error(details?: Details, errorConstructor?:ErrorConstructor): Error;
|
|
121
|
+
fail(details?: Details, errorConstructor?:ErrorConstructor): never;
|
|
122
|
+
equal(left: any, right: any, details?: Details, errorConstructor?:ErrorConstructor): void;
|
|
123
|
+
string(specimen: any, details?: Details): void;
|
|
124
|
+
note(error: Error, details: Details): void;
|
|
125
|
+
details(template: TemplateStringsArray | string[], ...args: any): DetailsToken,
|
|
126
|
+
quote(payload: any, spaces?: string|number): ToStringable,
|
|
127
|
+
makeAssert: MakeAssert,
|
|
128
|
+
}
|
|
30
129
|
|
|
31
130
|
declare global {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
var lockdown
|
|
35
|
-
|
|
36
|
-
var
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
131
|
+
var harden: Harden;
|
|
132
|
+
|
|
133
|
+
var lockdown: Lockdown;
|
|
134
|
+
|
|
135
|
+
var assert: Assert;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Each Compartment constructor is a global. A host that wants to execute
|
|
139
|
+
* code in a context bound to a new global creates a new compartment.
|
|
140
|
+
*/
|
|
141
|
+
export class Compartment {
|
|
142
|
+
constructor(globals?: Object, moduleMap?: ModuleMap, options?:CompartmentOptions);
|
|
143
|
+
get globalThis(): Record<string, any>;
|
|
144
|
+
get name(): string;
|
|
145
|
+
evaluate(code: string): any;
|
|
146
|
+
import(specifier: string): Promise<{namespace: ModuleExportsNamespace}>;
|
|
147
|
+
load(specifier: string): Promise<void>;
|
|
148
|
+
importNow(specifier: string): ModuleExportsNamespace;
|
|
149
|
+
module(specifier: string): ModuleExportsNamespace;
|
|
150
|
+
}
|
|
52
151
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ses",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.5",
|
|
4
4
|
"description": "Secure ECMAScript",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"confinement",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"test:platform-compatability": "node test/package/test.cjs"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@endo/compartment-mapper": "^0.4.
|
|
46
|
-
"@endo/eslint-config": "^0.3.
|
|
47
|
-
"@endo/static-module-record": "^0.5.
|
|
48
|
-
"@endo/test262-runner": "^0.1.
|
|
45
|
+
"@endo/compartment-mapper": "^0.4.1",
|
|
46
|
+
"@endo/eslint-config": "^0.3.11",
|
|
47
|
+
"@endo/static-module-record": "^0.5.4",
|
|
48
|
+
"@endo/test262-runner": "^0.1.5",
|
|
49
49
|
"ava": "^3.12.1",
|
|
50
50
|
"babel-eslint": "^10.0.3",
|
|
51
51
|
"eslint": "^7.23.0",
|
|
@@ -87,6 +87,5 @@
|
|
|
87
87
|
"test/**/test-*.js"
|
|
88
88
|
],
|
|
89
89
|
"timeout": "2m"
|
|
90
|
-
}
|
|
91
|
-
"gitHead": "f91c84cde6cfe82c085ebe316da939d04ca74aa4"
|
|
90
|
+
}
|
|
92
91
|
}
|
package/src/compartment-shim.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// @ts-check
|
|
2
|
-
/* eslint no-underscore-dangle
|
|
2
|
+
/* eslint-disable no-underscore-dangle */
|
|
3
|
+
/// <reference types="ses">
|
|
3
4
|
|
|
4
5
|
import {
|
|
5
6
|
assign,
|
|
@@ -214,26 +215,12 @@ defineProperties(InertCompartment, {
|
|
|
214
215
|
prototype: { value: CompartmentPrototype },
|
|
215
216
|
});
|
|
216
217
|
|
|
217
|
-
/**
|
|
218
|
-
* @callback CompartmentConstructor
|
|
219
|
-
* Each Compartment constructor is a global. A host that wants to execute
|
|
220
|
-
* code in a context bound to a new global creates a new compartment.
|
|
221
|
-
*
|
|
222
|
-
* @param {Object} endowments
|
|
223
|
-
* @param {Object} _moduleMap
|
|
224
|
-
* @param {Object} [options]
|
|
225
|
-
* @param {string} [options.name]
|
|
226
|
-
* @param {Array<Transform>} [options.transforms]
|
|
227
|
-
* @param {Array<Transform>} [options.__shimTransforms__]
|
|
228
|
-
* @param {Object} [options.globalLexicals]
|
|
229
|
-
*/
|
|
230
|
-
|
|
231
218
|
/**
|
|
232
219
|
* @callback MakeCompartmentConstructor
|
|
233
220
|
* @param {MakeCompartmentConstructor} targetMakeCompartmentConstructor
|
|
234
|
-
* @param {
|
|
221
|
+
* @param {Record<string, any>} intrinsics
|
|
235
222
|
* @param {(object: Object) => void} nativeBrander
|
|
236
|
-
* @returns {
|
|
223
|
+
* @returns {Compartment['constructor']}
|
|
237
224
|
*/
|
|
238
225
|
|
|
239
226
|
/** @type {MakeCompartmentConstructor} */
|
|
@@ -242,7 +229,6 @@ export const makeCompartmentConstructor = (
|
|
|
242
229
|
intrinsics,
|
|
243
230
|
nativeBrander,
|
|
244
231
|
) => {
|
|
245
|
-
/** @type {CompartmentConstructor} */
|
|
246
232
|
function Compartment(endowments = {}, moduleMap = {}, options = {}) {
|
|
247
233
|
if (new.target === undefined) {
|
|
248
234
|
throw new TypeError(
|
package/src/error/types.js
CHANGED
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
*/
|
|
60
60
|
|
|
61
61
|
// Type all the overloads of the assertTypeof function.
|
|
62
|
-
// There may eventually be a better way to do this, but
|
|
63
|
-
//
|
|
62
|
+
// There may eventually be a better way to do this, but they break with
|
|
63
|
+
// Typescript 4.0.
|
|
64
64
|
/**
|
|
65
65
|
* @callback AssertTypeofBigint
|
|
66
66
|
* @param {any} specimen
|
package/src/lockdown-shim.js
CHANGED
|
@@ -33,20 +33,7 @@ import { tameConsole } from './error/tame-console.js';
|
|
|
33
33
|
import tameErrorConstructor from './error/tame-error-constructor.js';
|
|
34
34
|
import { assert, makeAssert } from './error/assert.js';
|
|
35
35
|
|
|
36
|
-
/**
|
|
37
|
-
* @typedef {{
|
|
38
|
-
* dateTaming?: 'safe' | 'unsafe',
|
|
39
|
-
* errorTaming?: 'safe' | 'unsafe',
|
|
40
|
-
* mathTaming?: 'safe' | 'unsafe',
|
|
41
|
-
* regExpTaming?: 'safe' | 'unsafe',
|
|
42
|
-
* localeTaming?: 'safe' | 'unsafe',
|
|
43
|
-
* consoleTaming?: 'safe' | 'unsafe',
|
|
44
|
-
* overrideTaming?: 'min' | 'moderate' | 'severe',
|
|
45
|
-
* overrideDebug?: Array<string>,
|
|
46
|
-
* stackFiltering?: 'concise' | 'verbose',
|
|
47
|
-
* __allowUnsafeMonkeyPatching__?: 'safe' | 'unsafe',
|
|
48
|
-
* }} LockdownOptions
|
|
49
|
-
*/
|
|
36
|
+
/** @typedef {import('../index.js').LockdownOptions} LockdownOptions */
|
|
50
37
|
|
|
51
38
|
const { details: d, quote: q } = assert;
|
|
52
39
|
|
|
@@ -135,9 +122,9 @@ export const repairIntrinsics = (
|
|
|
135
122
|
// for an explanation.
|
|
136
123
|
options = /** @type {LockdownOptions} */ ({ ...firstOptions, ...options });
|
|
137
124
|
const {
|
|
138
|
-
dateTaming = 'safe',
|
|
125
|
+
dateTaming = 'safe', // deprecated
|
|
139
126
|
errorTaming = 'safe',
|
|
140
|
-
mathTaming = 'safe',
|
|
127
|
+
mathTaming = 'safe', // deprecated
|
|
141
128
|
regExpTaming = 'safe',
|
|
142
129
|
localeTaming = 'safe',
|
|
143
130
|
consoleTaming = 'safe',
|
|
@@ -169,9 +156,9 @@ export const repairIntrinsics = (
|
|
|
169
156
|
}
|
|
170
157
|
|
|
171
158
|
firstOptions = {
|
|
172
|
-
dateTaming,
|
|
159
|
+
dateTaming, // deprecated
|
|
173
160
|
errorTaming,
|
|
174
|
-
mathTaming,
|
|
161
|
+
mathTaming, // deprecated
|
|
175
162
|
regExpTaming,
|
|
176
163
|
localeTaming,
|
|
177
164
|
consoleTaming,
|
|
@@ -324,6 +311,7 @@ export const repairIntrinsics = (
|
|
|
324
311
|
* @param {CompartmentConstructorMaker} makeCompartmentConstructor
|
|
325
312
|
* @param {Object} compartmentPrototype
|
|
326
313
|
* @param {() => Object} getAnonymousIntrinsics
|
|
314
|
+
* @returns {import('../index.js').Lockdown}
|
|
327
315
|
*/
|
|
328
316
|
export const makeLockdown = (
|
|
329
317
|
makeCompartmentConstructor,
|
|
@@ -344,5 +332,3 @@ export const makeLockdown = (
|
|
|
344
332
|
};
|
|
345
333
|
return lockdown;
|
|
346
334
|
};
|
|
347
|
-
|
|
348
|
-
/** @typedef {ReturnType<typeof makeLockdown>} Lockdown */
|
package/src/make-hardener.js
CHANGED
|
@@ -25,13 +25,13 @@ const { freeze, getOwnPropertyDescriptors, getPrototypeOf } = Object;
|
|
|
25
25
|
const { ownKeys } = Reflect;
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
|
-
* @typedef {
|
|
28
|
+
* @typedef {import('../index.js').Harden} Harden
|
|
29
29
|
*/
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* Create a `harden` function.
|
|
33
33
|
*
|
|
34
|
-
* @returns {
|
|
34
|
+
* @returns {Harden}
|
|
35
35
|
*/
|
|
36
36
|
export const makeHardener = () => {
|
|
37
37
|
const hardened = new WeakSet();
|
package/src/transforms.js
CHANGED
|
@@ -96,7 +96,10 @@ export const evadeHtmlCommentTest = src => {
|
|
|
96
96
|
|
|
97
97
|
// /////////////////////////////////////////////////////////////////////////////
|
|
98
98
|
|
|
99
|
-
const importPattern = new RegExp(
|
|
99
|
+
const importPattern = new RegExp(
|
|
100
|
+
'(^|[^.]|\\.\\.\\.)\\bimport(\\s*(?:\\(|/[/*]))',
|
|
101
|
+
'g',
|
|
102
|
+
);
|
|
100
103
|
|
|
101
104
|
/**
|
|
102
105
|
* Conservatively reject the source text if it may contain a dynamic
|
package/CHANGELOG.md
DELETED
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
### [0.13.3](https://github.com/endojs/endo/compare/ses@0.13.2...ses@0.13.3) (2021-06-16)
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
### Features
|
|
10
|
-
|
|
11
|
-
* **ses:** Improve link errors ([71a509c](https://github.com/endojs/endo/commit/71a509cd67305b5af60d66f0b2b600ed0df8b632))
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
### [0.13.2](https://github.com/endojs/endo/compare/ses@0.13.1...ses@0.13.2) (2021-06-14)
|
|
16
|
-
|
|
17
|
-
**Note:** Version bump only for package ses
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
### [0.13.1](https://github.com/endojs/endo/compare/ses@0.13.0...ses@0.13.1) (2021-06-06)
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
### Bug Fixes
|
|
27
|
-
|
|
28
|
-
* **ses:** Export hardener types properly ([0d2e8f0](https://github.com/endojs/endo/commit/0d2e8f0570d7de06b54b4faee56f487bbf7aeb8b))
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
## 0.13.0 (2021-06-02)
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
### ⚠ BREAKING CHANGES
|
|
36
|
-
|
|
37
|
-
* **ses:** No longer supports direct use from CommonJS
|
|
38
|
-
* **static-module-record:** Emphasize RESM/NESM compatibility over CJS/UMD
|
|
39
|
-
* **ses:** Remove evaluate endowments option (#368)
|
|
40
|
-
* **ses:** Simplify transforms (#325)
|
|
41
|
-
* **ses, transform-module:** Fix StaticModuleRecord name (#323)
|
|
42
|
-
* **ses:** Surface SES on globalThis (#307)
|
|
43
|
-
|
|
44
|
-
### Features
|
|
45
|
-
|
|
46
|
-
* **ses:** Add __shimTransforms__ Compartment option ([#485](https://github.com/endojs/endo/issues/485)) ([5196521](https://github.com/endojs/endo/commit/5196521a17ac4b28f9aaaef2aa312eebe9edcbb7))
|
|
47
|
-
* **ses:** Add Compartment load function ([#349](https://github.com/endojs/endo/issues/349)) ([8352fa1](https://github.com/endojs/endo/commit/8352fa1b038ec9f6d21a1ae4b6559f687c27fd81))
|
|
48
|
-
* **ses:** add Compartment shim utility method __isKnownScopeProxy__ ([#623](https://github.com/endojs/endo/issues/623)) ([22dbe36](https://github.com/endojs/endo/commit/22dbe368d42b983a9f8b8db3d88003b5400c3e23))
|
|
49
|
-
* **ses:** Add minimal Compartment to SES-lite ([#443](https://github.com/endojs/endo/issues/443)) ([3d1dfd2](https://github.com/endojs/endo/commit/3d1dfd285a758b9be5c1de766c82a12e82329224))
|
|
50
|
-
* **ses:** Add moduleMapHook ([#419](https://github.com/endojs/endo/issues/419)) ([f053ba4](https://github.com/endojs/endo/commit/f053ba4a0ebcb9194a8ffb880359862e3748289c))
|
|
51
|
-
* **ses:** Add ModuleStaticRecord ([#279](https://github.com/endojs/endo/issues/279)) ([98c3a8f](https://github.com/endojs/endo/commit/98c3a8f0696ca1fedb865fd885f0affde388fd01))
|
|
52
|
-
* **ses:** Add news for override mistake fix ([#417](https://github.com/endojs/endo/issues/417)) ([01bf4d7](https://github.com/endojs/endo/commit/01bf4d7ef13b32e71f2d36baef573423b21e012d))
|
|
53
|
-
* **ses:** Add support for third-party modules ([#393](https://github.com/endojs/endo/issues/393)) ([0abe442](https://github.com/endojs/endo/commit/0abe442311bb4555bb06be3796f9ea77e6616b38))
|
|
54
|
-
* **ses:** Add TypeScript definitions for Compartment aux types ([07715ce](https://github.com/endojs/endo/commit/07715cea0c053cf623e9e44e03c0c331c709eb64))
|
|
55
|
-
* **ses:** Allow import and eval methods ([#669](https://github.com/endojs/endo/issues/669)) ([505a7d7](https://github.com/endojs/endo/commit/505a7d7149c36825a00c9fe3795d0f1588035dde))
|
|
56
|
-
* **ses:** Carry compartment names in error messages ([#441](https://github.com/endojs/endo/issues/441)) ([765172a](https://github.com/endojs/endo/commit/765172aa68c338947b14ec6292be18519ac14aee))
|
|
57
|
-
* **ses:** Censorship error messages may now contain the source name ([#515](https://github.com/endojs/endo/issues/515)) ([2bcd726](https://github.com/endojs/endo/commit/2bcd726ee96d53da2467eb15304531d04eb683ed))
|
|
58
|
-
* **ses:** Create a thin lockdown layer ([#406](https://github.com/endojs/endo/issues/406)) ([ff693ae](https://github.com/endojs/endo/commit/ff693ae5e012afdd8dbbec105d0da299d36fdbf9))
|
|
59
|
-
* **ses:** Create ses/lockdown alias ([17d416f](https://github.com/endojs/endo/commit/17d416f1652873c75cbd6c8fd34db37e90300ea6))
|
|
60
|
-
* **ses:** Detect invalid sloppy mode execution ([86c4751](https://github.com/endojs/endo/commit/86c4751abb7f8ce3d44b086e50ab2a5f229e12dc)), closes [#740](https://github.com/endojs/endo/issues/740)
|
|
61
|
-
* **ses:** Expand TypeScript coverage for Compartment and lockdown ([#584](https://github.com/endojs/endo/issues/584)) ([e31c86b](https://github.com/endojs/endo/commit/e31c86b407be4804bdaa719da544965ec7cb4480))
|
|
62
|
-
* **ses:** Export SES Transforms ([#608](https://github.com/endojs/endo/issues/608)) ([5ec8858](https://github.com/endojs/endo/commit/5ec8858648254e7cd2a1bf9c054a1d5d2749c31b))
|
|
63
|
-
* **ses:** Prepare to publish with TypeScript definitions ([#384](https://github.com/endojs/endo/issues/384)) ([af48adb](https://github.com/endojs/endo/commit/af48adb5b9e7cf9b5a70f3c429a1219fa99718b6))
|
|
64
|
-
* **ses:** Replace Rollup with Endo bundler ([c826f77](https://github.com/endojs/endo/commit/c826f779660f4e17713b1750c732cc381b7bb89f))
|
|
65
|
-
* **ses:** Retract evaluate name option, use sourceURL ([#521](https://github.com/endojs/endo/issues/521)) ([d1fa7ec](https://github.com/endojs/endo/commit/d1fa7ecd023ca51e4fe75b15780587aabe08c3f9))
|
|
66
|
-
* **ses:** Support global lexicals ([#356](https://github.com/endojs/endo/issues/356)) ([aefefbf](https://github.com/endojs/endo/commit/aefefbfcbe53f5b4520542bfb4da14dd68f13ec6))
|
|
67
|
-
* **ses:** Surface SES on globalThis ([#307](https://github.com/endojs/endo/issues/307)) ([3ddfb95](https://github.com/endojs/endo/commit/3ddfb953098af5c0e127a5e4dbafbed2bea43a07))
|
|
68
|
-
* **ses:** Update packaging for RESM/NESM bridge ([6abbcdc](https://github.com/endojs/endo/commit/6abbcdc847ead40aeedb2004b8317eac06047fc0))
|
|
69
|
-
* create `overrideDebug: [...props]` option ([#728](https://github.com/endojs/endo/issues/728)) ([2573c1a](https://github.com/endojs/endo/commit/2573c1a0e2ebcdad030ae29e75ef4e1bce7e5594))
|
|
70
|
-
* **ses:** Revert "Export SES Transforms ([#608](https://github.com/endojs/endo/issues/608))" ([#618](https://github.com/endojs/endo/issues/618)) ([df5739d](https://github.com/endojs/endo/commit/df5739db9237b5cd037c88001da548a63ecf9071))
|
|
71
|
-
* **ses:** Support explicit exports of third-party modules ([dfa4775](https://github.com/endojs/endo/commit/dfa47754e1c0c12e3717c57eebff020887699678))
|
|
72
|
-
* non-security mode for create-react-scripts compat. (KLUDGE) ([#642](https://github.com/endojs/endo/issues/642)) ([6bd9f03](https://github.com/endojs/endo/commit/6bd9f03ec0c138d79391ee26894e8630cf1a104f))
|
|
73
|
-
* **ses:** Support importHook alias returns ([#432](https://github.com/endojs/endo/issues/432)) ([1c8e706](https://github.com/endojs/endo/commit/1c8e7066c195d212c06a31cd91efb47c2b6a3e76))
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
### Bug Fixes
|
|
77
|
-
|
|
78
|
-
* Add pre-publish build step ([#263](https://github.com/endojs/endo/issues/263)) ([e22f094](https://github.com/endojs/endo/commit/e22f0945c901296f3f5ca1cbe357172d21f050f9))
|
|
79
|
-
* Regularize format of NEWS.md ([0ec29b3](https://github.com/endojs/endo/commit/0ec29b34a18b17cc6b90e5a46575e634714e978e))
|
|
80
|
-
* **ses:** Address charset error in integration ([17406d6](https://github.com/endojs/endo/commit/17406d6b045eefc082a17a559efdaf29293b8093))
|
|
81
|
-
* **ses:** Address Parcel need for ESM export ([fb3297e](https://github.com/endojs/endo/commit/fb3297e23236313764a0faeabe87629577370f08))
|
|
82
|
-
* **ses:** Fix intentional typo ([da3b8aa](https://github.com/endojs/endo/commit/da3b8aa85caebc70e424dd9deae0287acb25d89e))
|
|
83
|
-
* **ses:** Handle null moduleMap ([b863922](https://github.com/endojs/endo/commit/b863922f50a993201aec72bc34f91a44cc286654))
|
|
84
|
-
* **ses:** Make dist directory before bundles ([51afb2f](https://github.com/endojs/endo/commit/51afb2fdcf1a9e1f21135988da16a4b618752ca4))
|
|
85
|
-
* **ses:** Remove superfluous dev dependency on @agoric/babel-standalone ([3a278b5](https://github.com/endojs/endo/commit/3a278b51c1938774cd83510ef1b37e1f44bbd34d))
|
|
86
|
-
* **ses:** Validate third-party static module record exports ([9ec51b3](https://github.com/endojs/endo/commit/9ec51b3941b6dbdb3c7e2820753d775fc010d4ec))
|
|
87
|
-
* **static-module-record:** Emphasize RESM/NESM compatibility over CJS/UMD ([dcff87e](https://github.com/endojs/endo/commit/dcff87e6f1164d664dd31dfefb323fbbac0a8dd1))
|
|
88
|
-
* adapt whitelist to XS. clean it up too ([#549](https://github.com/endojs/endo/issues/549)) ([bd0952a](https://github.com/endojs/endo/commit/bd0952ac6569985b7a3508b257916e262b837606))
|
|
89
|
-
* add "confirm" a terminating variant of "assert" ([8929475](https://github.com/endojs/endo/commit/89294755245b0c558c8cf6423f66a1a48ec7f905))
|
|
90
|
-
* add missing testcase ([#575](https://github.com/endojs/endo/issues/575)) ([f5e1c25](https://github.com/endojs/endo/commit/f5e1c25667e0410488ed7be7684e2cb4cae9d1a6))
|
|
91
|
-
* Add missing ts-checks. Fix type errors ([#565](https://github.com/endojs/endo/issues/565)) ([52e6830](https://github.com/endojs/endo/commit/52e683091ece4c0fa4c77016c517d257d42ec7e8))
|
|
92
|
-
* assert.typeof(xxx, 'object') should assert record or null ([#603](https://github.com/endojs/endo/issues/603)) ([c84ba97](https://github.com/endojs/endo/commit/c84ba971d5fa54fe970cbf33b044b60eaceca78f))
|
|
93
|
-
* blocklist properties we expect to remove ([#614](https://github.com/endojs/endo/issues/614)) ([992f35f](https://github.com/endojs/endo/commit/992f35fdf4679faa8fb7d1c7e265c6b654156399))
|
|
94
|
-
* comment ([#561](https://github.com/endojs/endo/issues/561)) ([5e55d16](https://github.com/endojs/endo/commit/5e55d168e2cb341c22d89954a957582e813fee69))
|
|
95
|
-
* comment who needs push enabled ([#596](https://github.com/endojs/endo/issues/596)) ([1218bcd](https://github.com/endojs/endo/commit/1218bcd1b22b72f285a2236b08639c5016416afc))
|
|
96
|
-
* comments only ([#598](https://github.com/endojs/endo/issues/598)) ([1230901](https://github.com/endojs/endo/commit/1230901717c7eae50aaa0a61a058fd99c1c61928))
|
|
97
|
-
* consolidate honorary native function printing ([#392](https://github.com/endojs/endo/issues/392)) ([038bb13](https://github.com/endojs/endo/commit/038bb13f8bfb56b247875c965393c804a492c463))
|
|
98
|
-
* Consolidate lint rules ([#262](https://github.com/endojs/endo/issues/262)) ([e5ce12a](https://github.com/endojs/endo/commit/e5ce12ac4343565f2adb0e6eca5d71c6c05903bf))
|
|
99
|
-
* coordinate assert typing with agoric-sdk ([#510](https://github.com/endojs/endo/issues/510)) ([195f988](https://github.com/endojs/endo/commit/195f9887119e1a81ca35dd6f445b73241a5e7338))
|
|
100
|
-
* correct fix for override mistake ([#409](https://github.com/endojs/endo/issues/409)) ([b576211](https://github.com/endojs/endo/commit/b5762114ecd227a1c259321ab97fda3837813199))
|
|
101
|
-
* de-url-ify error codes ([#548](https://github.com/endojs/endo/issues/548)) ([b7e2e2c](https://github.com/endojs/endo/commit/b7e2e2cf51fb3ac687168310af7169a8451999f1))
|
|
102
|
-
* eslint rule to suppress bogus dependency warning ([#483](https://github.com/endojs/endo/issues/483)) ([7e3d9ea](https://github.com/endojs/endo/commit/7e3d9ea816e1626566bc2062b83cf513020f0b8d))
|
|
103
|
-
* evaluate options to evade rejections ([#546](https://github.com/endojs/endo/issues/546)) ([dec75ad](https://github.com/endojs/endo/commit/dec75adedf9b19a7fb1c53e17cbaf6e9b31e7d2b))
|
|
104
|
-
* flatten tameFunctionToString ([#482](https://github.com/endojs/endo/issues/482)) ([3d7570f](https://github.com/endojs/endo/commit/3d7570f4aa5871ed75a99d0985d5881ab9ae3af5))
|
|
105
|
-
* friendlier nested console output for browsers ([#557](https://github.com/endojs/endo/issues/557)) ([2c5c622](https://github.com/endojs/endo/commit/2c5c62285516ca8642e39791666bcc5e98adb0a4))
|
|
106
|
-
* Fully thread __shimTransforms__ through Compartment Mapper and SES ([#509](https://github.com/endojs/endo/issues/509)) ([0f199ef](https://github.com/endojs/endo/commit/0f199ef088353ec09b29e37aefcfa26a89a6c582))
|
|
107
|
-
* kill obsolete repair-legacy-accessors ([#552](https://github.com/endojs/endo/issues/552)) ([be202b9](https://github.com/endojs/endo/commit/be202b9861eb770bbae8d16948cede0a1b4f829b))
|
|
108
|
-
* Lint universal package metadata ([#266](https://github.com/endojs/endo/issues/266)) ([24ff867](https://github.com/endojs/endo/commit/24ff867adcbde89bef6b1ec702a0a8b91ad29f70))
|
|
109
|
-
* Massive intrinsic reform. Start vs other compartments. ([#372](https://github.com/endojs/endo/issues/372)) ([5cf2a20](https://github.com/endojs/endo/commit/5cf2a20389601d159b5c0683bb87bffd6bbc7b87))
|
|
110
|
-
* Move NativeErrors list to whitelist.js ([#444](https://github.com/endojs/endo/issues/444)) ([f2b8fcd](https://github.com/endojs/endo/commit/f2b8fcdf5a5f1dcaae1af93d64ebb9785f9b314b))
|
|
111
|
-
* no more detached properties ([#473](https://github.com/endojs/endo/issues/473)) ([efa990c](https://github.com/endojs/endo/commit/efa990cc12ac30aaa69f13df1ee9e1a7f3b12189))
|
|
112
|
-
* partial intrinsic reform ([#358](https://github.com/endojs/endo/issues/358)) ([9b13f73](https://github.com/endojs/endo/commit/9b13f73d282c44c11e93968332f282b5eb4372ff))
|
|
113
|
-
* remove "apply" from enablements whitelist ([#475](https://github.com/endojs/endo/issues/475)) ([b52f8d2](https://github.com/endojs/endo/commit/b52f8d22d380e048e5590ce74028f9a0070cf281))
|
|
114
|
-
* remove "debugger;" statement ([#558](https://github.com/endojs/endo/issues/558)) ([c5988e6](https://github.com/endojs/endo/commit/c5988e6a4cc576634981ba2bc152fe49a0b531f6))
|
|
115
|
-
* remove deprecated noTame options ([#328](https://github.com/endojs/endo/issues/328)) ([5d7b781](https://github.com/endojs/endo/commit/5d7b781d9b0783f7b1243898a36e30014e4662be))
|
|
116
|
-
* remove extra stackframe ([#391](https://github.com/endojs/endo/issues/391)) ([9ba5ecf](https://github.com/endojs/endo/commit/9ba5ecf019694e92ac78d98416e8c88b0e4a2cf4))
|
|
117
|
-
* rename to originalValue ([#476](https://github.com/endojs/endo/issues/476)) ([54e0b0c](https://github.com/endojs/endo/commit/54e0b0c910fd19bec14f9e3ff9e556f17f952fd4))
|
|
118
|
-
* Repair released damage caused when I merged [#552](https://github.com/endojs/endo/issues/552) ([#638](https://github.com/endojs/endo/issues/638)) ([145595c](https://github.com/endojs/endo/commit/145595c5767a6f868c13b9717a03db641e60825b))
|
|
119
|
-
* restore locale methods safely ([#382](https://github.com/endojs/endo/issues/382)) ([0a091a4](https://github.com/endojs/endo/commit/0a091a4fc87ecc9ee6aff227f7245c91d9a88852))
|
|
120
|
-
* suggested fix in [#570](https://github.com/endojs/endo/issues/570) ([#571](https://github.com/endojs/endo/issues/571)) ([3877d72](https://github.com/endojs/endo/commit/3877d72757db120cb3978ddf32a6673868dd06f0))
|
|
121
|
-
* tame Error constructor ([#359](https://github.com/endojs/endo/issues/359)) ([bfe610f](https://github.com/endojs/endo/commit/bfe610fe5fe7afd31659fc8e40ee6e77d622e264))
|
|
122
|
-
* tolerate symbols as property names ([#547](https://github.com/endojs/endo/issues/547)) ([f16bbc3](https://github.com/endojs/endo/commit/f16bbc389303eda73cd6dd1705cd667a3fc6d288))
|
|
123
|
-
* tolerate whitelist absence better ([#408](https://github.com/endojs/endo/issues/408)) ([9ed1ad8](https://github.com/endojs/endo/commit/9ed1ad87ba5380d39c47967fb7e9b52c4a2333e1))
|
|
124
|
-
* towards reconciling with agoric-sdk ([#451](https://github.com/endojs/endo/issues/451)) ([5f71e91](https://github.com/endojs/endo/commit/5f71e91c42e7b6aa2a532372d9bccef53209db46))
|
|
125
|
-
* typo ([#471](https://github.com/endojs/endo/issues/471)) ([d5742c2](https://github.com/endojs/endo/commit/d5742c234c2acf22c10b71f72fdb454fe0c6da8e))
|
|
126
|
-
* typo ([#527](https://github.com/endojs/endo/issues/527)) ([c7a3895](https://github.com/endojs/endo/commit/c7a3895100176e9b6c6e887e45181fd3a1fc2dea))
|
|
127
|
-
* Unsafe errorTaming and consoleTaming needs other adjustments ([#637](https://github.com/endojs/endo/issues/637)) ([70cc86e](https://github.com/endojs/endo/commit/70cc86eb400655e922413b99c38818d7b2e79da0))
|
|
128
|
-
* update to eslint 7.23.0 ([#652](https://github.com/endojs/endo/issues/652)) ([e9199f4](https://github.com/endojs/endo/commit/e9199f41c511b5df10593d931febdd90693b011a))
|
|
129
|
-
* use string instead of symbol for getter property ([e514a6e](https://github.com/endojs/endo/commit/e514a6ed88ccb0739ae1c03a35c1d9d57effe911))
|
|
130
|
-
* workaround remaining validation bug ([#667](https://github.com/endojs/endo/issues/667)) ([cbc3247](https://github.com/endojs/endo/commit/cbc3247bc254e1418a4398d3c1b079e4c69c2750))
|
|
131
|
-
* **326:** accept old and new taming options during transition ([#327](https://github.com/endojs/endo/issues/327)) ([67eb6e8](https://github.com/endojs/endo/commit/67eb6e8704386e022fbb1ff8f01beb40424d6dff))
|
|
132
|
-
* **ses:** Add HandledPromise to the whitelist ([#416](https://github.com/endojs/endo/issues/416)) ([a7330a8](https://github.com/endojs/endo/commit/a7330a8ce1112163982dce35d14ac8ab1ba3749f))
|
|
133
|
-
* **ses:** Aliasing true to t did not improve readability ([#360](https://github.com/endojs/endo/issues/360)) ([90a40c6](https://github.com/endojs/endo/commit/90a40c650214372d070d4c28e2d6e771d0874514))
|
|
134
|
-
* **ses:** comments ([#254](https://github.com/endojs/endo/issues/254)) ([435f1af](https://github.com/endojs/endo/commit/435f1af0b08d8dccf196b385093d629a31316b1c))
|
|
135
|
-
* **ses:** Fix lockdown layer pollution from module layer ([#472](https://github.com/endojs/endo/issues/472)) ([9a7a097](https://github.com/endojs/endo/commit/9a7a0975036d8d938263ba265f747876d7d91599))
|
|
136
|
-
* **ses:** Fix missing change to compartment load method ([42759a8](https://github.com/endojs/endo/commit/42759a8dff3b76c8f06d25904be0a58e72eeed05))
|
|
137
|
-
* **ses:** Generally import "ses/lockdown" ([#410](https://github.com/endojs/endo/issues/410)) ([6ef4a3f](https://github.com/endojs/endo/commit/6ef4a3ffe4ebd0145ca6af0edc8c04c2342e8cac))
|
|
138
|
-
* **ses:** Reform conditional tamings, especially Error ([#250](https://github.com/endojs/endo/issues/250)) ([dfa22b3](https://github.com/endojs/endo/commit/dfa22b3857f08f87f49c6ca4f51aa33fba0b1535))
|
|
139
|
-
* **ses:** regexp taming ([b010f8a](https://github.com/endojs/endo/commit/b010f8a1212aa949be8aa4970eb4ebc25aa83517)), closes [#237](https://github.com/endojs/endo/issues/237)
|
|
140
|
-
* **ses:** remove code that failed to add species ([3cfc8da](https://github.com/endojs/endo/commit/3cfc8da4646aa8306b09189dc0e202db0d633a65)), closes [#239](https://github.com/endojs/endo/issues/239)
|
|
141
|
-
* **ses:** Remove evaluate endowments option ([#368](https://github.com/endojs/endo/issues/368)) ([e7b7b6e](https://github.com/endojs/endo/commit/e7b7b6eb8d2565886f9bbf7021223bcf96dc9173))
|
|
142
|
-
* **ses:** Simplify transforms ([#325](https://github.com/endojs/endo/issues/325)) ([86a373e](https://github.com/endojs/endo/commit/86a373e008e97b2a30c25ee53df86ab120a7804b))
|
|
143
|
-
* **ses:** Spelling errors ([#362](https://github.com/endojs/endo/issues/362)) ([8f606f4](https://github.com/endojs/endo/commit/8f606f424f8b103f9ddb593d210e2e58f37430c4))
|
|
144
|
-
* **ses:** transform is an object with a rewrite method ([#255](https://github.com/endojs/endo/issues/255)) ([979fbc6](https://github.com/endojs/endo/commit/979fbc6fc9529d2b7516c9e99dcd6c1a7f4c1db3)), closes [#248](https://github.com/endojs/endo/issues/248) [#248](https://github.com/endojs/endo/issues/248)
|
|
145
|
-
* **ses:** Unravel compartment/lockdown import cycle ([#405](https://github.com/endojs/endo/issues/405)) ([b931629](https://github.com/endojs/endo/commit/b9316296ac04bd840fb434ee86a819f8717f561d))
|
|
146
|
-
* **ses:** Use CommonJS Rollup plugin ([#354](https://github.com/endojs/endo/issues/354)) ([f626365](https://github.com/endojs/endo/commit/f6263657fe7364df85cfe14e31ba1ac4dd7f03af))
|
|
147
|
-
* **ses, transform-module:** Fix StaticModuleRecord name ([#323](https://github.com/endojs/endo/issues/323)) ([10eb49a](https://github.com/endojs/endo/commit/10eb49ad499984dc44d99e84b5d59a34f1abb73b))
|