2024-11-13
ses v1.10.0
-
Permit Promise.try, since it has reached Stage 4.
-
Adds a
reportingoption tolockdownandrepairIntrinsics.The default behavior is
"platform"which will detect the platform and report warnings according to whether a webconsole, Node.jsconsole, orprintare available. The web platform is distinguished by the existence ofwindoworimportScripts(WebWorker). The Node.js behavior is to report all warnings tostderrvisually consistent with use of a console group. SES will useprintin the absence of aconsole. Captures the platformconsoleat the timelockdownorrepairIntrinsicsare called, not at the timesesinitializes.The
"console"option forces the web platform behavior. On Node.js, this results in group labels being reported tostdout.The
"none"option mutes warnings.
@endo/bundle-source v3.5.0
- Adds support for TypeScript type erasure using
ts-blank-spaceapplied to TypeScript modules with.ts,.mts, and.ctsextensions, for any package that is not under anode_modulesdirectory, immitatingnode --experimental-strip-types. As with.jsextensions, the behavior of.tsis either consistent with.mtsor.ctsdepending on thetypeinpackage.json.
@endo/compartment-mapper v1.4.0
- Adds options
languageForExtension,moduleLanguageForExtension,commonjsLanguageForExtension, andlanguagestomapNodeModulesandcompartmentMapForNodeModulesallowing for certain mappings from extension (e.g.,ts) to language (e.g.,mtsorcts) to depend on the each package’stypein the way we already varyjsbetweencjsandmjs. These options enter through the high level functions includingmakeArchiveandimportLocation. - The new options
workspaceLanguageForExtension,workspaceModuleLanguageForExtension, andworkspaceCommonjsLanguageForExtensionapply like the above except more specifically and for packages that are not physically located under anode_modulesdirectory, indicating that JavaScript has not yet been generated from any non-JavaScript source files. - Omits unused module descriptors from
compartment-map.jsonin archived applications, potentially reducing file sizes. - Fixes an issue where errors thrown from exit module hooks (
importHook) would be thrown at parse-time when the parser uses heuristic import analysis instead of at runtime. Such errors will now be thrown at runtime, as originally intended. To those who expected the previous behavior: if you exist, please exercise caution when upgrading.