Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
ses v1.10.0
Permit Promise.try,
since it has reached Stage 4.
Adds a
reporting
option tolockdown
andrepairIntrinsics
.The default behavior is
"platform"
which will detect the platform andreport warnings according to whether a web
console
, Node.jsconsole
, orprint
are available.The web platform is distinguished by the existence of
window
orimportScripts
(WebWorker).The Node.js behavior is to report all warnings to
stderr
visuallyconsistent with use of a console group.
SES will use
print
in the absence of aconsole
.Captures the platform
console
at the timelockdown
orrepairIntrinsics
are called, not at the time
ses
initializes.The
"console"
option forces the web platform behavior.On Node.js, this results in group labels being reported to
stdout
.The
"none"
option mutes warnings.@endo/bundle-source v3.5.0
ts-blank-space
applied toTypeScript modules with
.ts
,.mts
, and.cts
extensions, for any packagethat is not under a
node_modules
directory, immitatingnode --experimental-strip-types
.As with
.js
extensions, the behavior of.ts
is either consistent with.mts
or.cts
depending on thetype
inpackage.json
.@endo/compartment-mapper v1.4.0
languageForExtension
,moduleLanguageForExtension
,commonjsLanguageForExtension
, andlanguages
tomapNodeModules
andcompartmentMapForNodeModules
allowing for certain mappings from extension(e.g.,
ts
) to language (e.g.,mts
orcts
) to depend on the eachpackage’s
type
in the way we already varyjs
betweencjs
andmjs
.These options enter through the high level functions including
makeArchive
and
importLocation
.workspaceLanguageForExtension
,workspaceModuleLanguageForExtension
, andworkspaceCommonjsLanguageForExtension
apply like the above except morespecifically and for packages that are not physically located under a
node_modules
directory, indicating that JavaScript has not yet beengenerated from any non-JavaScript source files.
compartment-map.json
in archivedapplications, potentially reducing file sizes.
importHook
) wouldbe 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.