Repository navigation
·
1 commit
to main
since this release
Immutable
release. Only release title and notes can be modified.
Highlights
CommonJS TypeScript projects now run the way tsc would build them:
import/exportin a CommonJS package runs as CommonJS when tsconfig compiles it to CommonJS. Its exports are no longer frozen, somock.method()fromnode:testworks on them (#911, closes #905).package.json"type"decides the format of.tsfiles undermodule: node16/node18/nodenext. A package with no"type"is CommonJS, as intsc(#908, fixes #907).- Files whose only imports/exports are type-only run as CommonJS, as Node.js type stripping does (#910, fixes #909).
Also:
- Faster startup: fewer filesystem calls while resolving modules, about 5–12% less time in the PR's benchmarks (#913).
oxnode watchon macOS no longer reopens folder watches when folders are replaced, which made memory grow without limit (#921, closes #906).- Embedders using the crate without the
napifeature getinitialize_loader_jsandfreeze_tsconfig_jsback (#895).
Features
- feat(core): compile ES module syntax to CommonJS where tsc would (#905) by @darcyrush in #911
Bug Fixes
- fix(core): keep the loader initialization APIs for embedders by @fengmk2 in #895
- fix(core): let package.json "type" decide .ts format under node* modules by @darcyrush in #908
- fix(core): run files whose only imports and exports are type-only as CommonJS by @darcyrush in #910
- fix(cli): stop reopening folder watches on macOS as folders are replaced (#906) by @Brooooooklyn in #921
Performance
Dependencies
- oxc 0.156 → ^0.158.0 (#896, #894, #917)
- rolldown 1.2.16 → 1.3.2 (#898, #912, #916, #918)
- napi 3.16.1, emnapi 2.0.0-beta.3 and napi CLI (#897, #899, #903, #920)
All dependency PRs
- chore(deps): update npm packages by @renovate[bot] in #893
- chore(deps): update rust crate mimalloc-safe to v0.1.68 by @renovate[bot] in #892
- chore(deps): update oxc to 0.156 by @fengmk2 in #896
- chore(deps): update napi by @renovate[bot] in #897
- chore(deps): update dependency rolldown to v1.2.16 by @renovate[bot] in #898
- chore(deps): update rust crate napi to v3.16.1 by @renovate[bot] in #899
- chore(deps): update npm packages by @renovate[bot] in #900
- chore(deps): update dependency postgres to v4 by @renovate[bot] in #902
- chore(deps): update rust crate mimalloc-safe to v0.1.69 by @renovate[bot] in #901
- chore(deps): update dependency rolldown to v1.3.0 by @renovate[bot] in #912
- chore(deps): update oxc to ^0.157.0 by @renovate[bot] in #894
- chore(deps): upgrade emnapi beta.3 and napi cli by @Brooooooklyn in #903
- chore(deps): update npm packages by @renovate[bot] in #914
- chore(deps): update dependency postgres to v4.1.0 by @renovate[bot] in #915
- chore(deps): update dependency rolldown to v1.3.1 by @renovate[bot] in #916
- chore(deps): update oxc to ^0.158.0 by @renovate[bot] in #917
- chore(deps): update napi by @renovate[bot] in #920
- chore(deps): update dependency rolldown to v1.3.2 by @renovate[bot] in #918
Tests
- test: remove two duplicate smoke tests by @Brooooooklyn in #890
- test: remove four file URL tests that stronger tests cover by @Brooooooklyn in #904
New Contributors
- @darcyrush made their first contribution in #908
Full Changelog: v1.0.1...v1.0.2