Releases: jkomyno/esmwell
Release list
esmwell@0.3.1
Patch Changes
- fcba623: Fall back to the matching DefinitelyTyped package when an imported package ships no declarations, the way TypeScript's own resolver does, honouring the consumer's pinned
@types/*range. Read tarball headers the way node-tar writes them, so DefinitelyTyped archives, which wrap files in the package name and carry timestamps in the prefix area, unpack correctly.vitestnow brings in@types/chai, andexpect(...).nottype-checks in editors.
esmwell@0.3.0
Minor Changes
-
1710854: Export
canonicalModuleIdandcreateProjectModulesfromesmwell/utilsso project and test embedders share editor-path conversion, script extension aliases, and collision errors. Sources remain unchanged.Generated
.cjsentry aliases also share the canonical entry’simport.meta.mainflag. Their sources still execute as ESM. -
ec31a99: Add
import.meta.main, the entry signal Node.js, Deno, and Bun expose.In a module project it is
truein the module named byentryandfalsein every other module, including a.js/.mjstwin of a non-entry id; a twin of the entry registered with the same source reportstruelike the entry. Judge modules seetrue, each test file of a workspace seestrue, and REPL inputs seefalse.import.meta.urlandimport.meta.resolveare unchanged. The property is added by rewriting eachimport.metain place, so line numbers in stack traces and error reports stay where the author wrote them.esmwell/typescript-editoralso exportsESMWELL_RUNTIME_TYPES, the ambient declaration of the flag, so an editor host seeds it beside an acquired declaration graph instead of writing its own. -
bba859b: Export
createTypeScriptTypeGraphAdapterfromesmwell/typescript-editorfor shared declaration-graph replacement and package-aware TypeScript resolution. The compiler and language-service host remain supplied by the embedder. Use the adapter in the playground language worker and invalidate declaration snapshots when its graph changes.
Patch Changes
- ee9af88: Make project and test session
close()terminate active workers and settle pending runs as errors. Closure also cancels waiting for source transforms and service-worker setup, prevents late worker creation, and cleans up each run's graph cache.