refactor(compartment-mapper): Update for upcoming SES 0.13
MODIFY
packages/compartment-mapper/NEWS.md
packages/compartment-mapper/NEWS.md
@@ -4,6 +4,11 @@ User-visible changes to the compartment mapper:
* Reenables CommonJS support with a fast lexer and without a dependency on
Babel.
+* *BREAKING*: This release parallels a breaking upgrade for SES to version
+ 0.13. This entails the removal of `StaticModuleRecord` from SES, and the
+ removal of the `ses/lockdown` light layering (there is no heavy layer to
+ distinguish as the weight has shifted to the `@endo/static-module-record`
+ package).
## 0.2.4 (2021-03-30)

MODIFY
packages/compartment-mapper/package.json
packages/compartment-mapper/package.json
},
"dependencies": {
"@endo/lexer": "^0.1.0",
+ "@endo/static-module-record": "^0.1.0",
"ses": "^0.12.7"
},
"devDependencies": {

MODIFY
packages/compartment-mapper/src/parse.js
packages/compartment-mapper/src/parse.js
// @ts-check
/// <reference types="ses" />
+import { StaticModuleRecord } from '@endo/static-module-record';
import { analyzeCommonJS } from '@endo/lexer';
import { parseExtension } from './extension.js';
import * as json from './json.js';

refactor(compartment-mapper): Update for upcoming SES 0.13