feat(static-module-record)!: Update packaging for RESM/NESM bridge
BREAKING CHANGE: No longer supports direct use from CommonJS
MODIFY
packages/static-module-record/NEWS.md
packages/static-module-record/NEWS.md
* *BREAKING CHANGE* This package now only exports a `StaticModuleRecord`
constructor, suitable for use with the SES shim `importHook` starting with
version 0.13.0.
-* *BREAKING CHANGE* This version only provides compatibility for Node.js ESM
- and the `node -r esm` emulation of ESM since these both require the `main`
- entry module to be the same ESM source.
- CommonJS and UMD targets have been dropped.
+* *BREAKING*: Removes CommonJS and UMD downgrade compatibility.
+ Supporting both Node.js ESM and the `node -r esm` shim requires the main
+ entry point module to be ESM regardless of environment.
+ UMD and CommonJS facets will likely return after all dependees have migrated
+ away from depending upon the `esm` JavaScript module emulator.
# v0.4.1 (2020-08-20)

MODIFY
packages/static-module-record/package.json
packages/static-module-record/package.json
"url": "https://github.com/endojs/endo/issues"
},
"type": "module",
- "parsers": {
- "js": "mjs"
- },
"types": "./index.d.ts",
"main": "./index.js",
- "module": "./index.js",
"exports": {
- "./package.json": "./package.json",
- ".": {
- "import": "./index.js"
- }
+ ".": "./index.js",
+ "./package.json": "./package.json"
},
"scripts": {
- "cover": "nyc ava",
+ "build": "exit 0",
"lint": "yarn lint:types && yarn lint:js",
"lint:types": "tsc --build jsconfig.json",
"lint:js": "eslint '**/*.js'",
"@agoric/babel-standalone": "^7.14.3"
},
"devDependencies": {
+ "@agoric/eslint-config": "^0.3.6",
"@agoric/ses-ava": "^0.1.1",
"@ava/babel": "^1.0.1",
- "@rollup/plugin-commonjs": "^13.0.0",
- "@rollup/plugin-node-resolve": "^6.1.0",
"ava": "^3.12.1",
"babel-eslint": "^10.0.3",
"eslint": "^7.23.0",
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-import": "^2.19.1",
"eslint-plugin-prettier": "^3.1.2",
- "nyc": "^15.1.0",
"prettier": "^1.19.1",
- "rollup": "1.31.0",
- "rollup-plugin-node-resolve": "5.2.0",
- "rollup-plugin-terser": "^5.1.3",
"ses": "0.12.7",
"typescript": "^4.0.5"
},

feat(static-module-record)!: Update packaging for RESM/NESM bridge

BREAKING CHANGE: No longer supports direct use from CommonJS