Release comparison
6.0.3to7.0.2
typescript
Reading package declarations…
TypeScript is a language for application scale JavaScript development
At a glance
Node requirement changed: >=14.17 → >=16.20.0.
Fact sources & collection times
- Before 6.0.3: Package version on npmx.dev. Bundlephobia estimate, collected .
- After 7.0.2: Package version on npmx.dev. Bundlephobia estimate, collected .
Advisory counts are matches reported by OSV, not a security audit. Collection times are shown only where supplied; advisory modification dates are not collection times. Maintainer statements and AI interpretations appear separately in AI notes and their evidence.
AI migration notes4 evidence-linked notes
- migrationfact
The Node engine declaration rises from >=14.17 in 6.0.3 to >=16.20.0 in 7.0.2. Upgrade runtimes and CI images to Node 16.20.0 or later before installing or running 7.0.2.
- migrationinference
7.0.2 adds an export map exposing only "." (mapped to ./lib/version.cjs), ./package.json, and ./unstable/* paths, and declares "type":"module". If you import deep paths such as typescript/lib/typescript.js or require the old main entry, Node's export-map enforcement can now block resolution; switch to the exposed entries.
- migrationinference
7.0.2 adds 20 optional exact-version @typescript/typescript-* platform packages, while unpacked package size drops from 24,346,827 bytes to 2,497,498 bytes (about 89.7%). Ensure install environments allow optional dependencies, because disabling optional installs may leave the platform-specific compiler payload missing.
- migrationinference
The type-entry declaration changes from typings ./lib/typescript.d.ts in 6.0.3 to no top-level typings field in 7.0.2. If your build imports typescript for compiler API types, verify that type resolution still succeeds and add explicit type configuration if it does not.
Compare releases
8 of 13 categories changed
| Package facts | Current6.0.3 | Updating to7.0.2 |
|---|---|---|
| Dependencies & runtime | ||
| None declared | 20 dependencies20 declaration changes | |
| None declared | None declared | |
Node engine | >=14.17 | >=16.20.0Declaration changed |
| Package surface | ||
Paths not listed | 13 paths exported | |
Licenses | Apache-2.0 | Apache-2.0 |
None declared | None declared | |
| Size & provenance | ||
Unpacked package size | 24.3 MB | 2.5 MB−21.8 MB (−89.7%) |
Estimated minified bundle | 3.5 MB | 2.7 kB−3.5 MB (−99.9%) |
Estimated gzip bundle | 981.7 kB | 967 B−980.7 kB (−99.9%) |
| 0 matched | 0 matched | |
Published tarball | 140 files | 416 files |
Blue values indicate a change, not a risk rating. Expand a category for complete declarations and measurement notes.
Sources & evidence7 sources
[0] Computed Node engine declaration comparison fact
{"changed":true,"from":">=14.17","to":">=16.20.0","fromDeclared":true,"toDeclared":true}[1] Computed module-format declaration comparison fact
{"changed":true,"from":{"main":"./lib/typescript.js"},"to":{"type":"module"},"fromDeclared":true,"toDeclared":true}[2] Computed export-map declaration comparison fact
{"changed":true,"from":null,"to":{".":"./lib/version.cjs","./unstable/fs":"./dist/api/fs.js","./package.json":"./package.json","./unstable/ast":"./dist/ast/index.js","./unstable/sync":"./dist/api/sync/api.js","./unstable/async":"./dist/api/async/api.js","./unstable/proto":"./dist/api/proto.js","./unstable/ast/is":"./dist/ast/is.js","./unstable/ast/clone":"./dist/ast/clone.js","./unstable/ast/utils":"./dist/ast/utils.js","./unstable/ast/factory":"./dist/ast/factory.generated.js","./unstable/ast/scanner":"./dist/ast/scanner.js","./unstable/ast/visitor":"./dist/ast/visitor.js"},"fromDeclared":false,"toDeclared":true}[3] Computed type-entry declaration comparison fact
{"changed":true,"from":{"typings":"./lib/typescript.d.ts","exports":null},"to":{"exports":null},"fromDeclared":true,"toDeclared":true}[4] Computed package-size comparison and measurement methodology fact
{"unpacked":{"status":"available","from":24346827,"to":2497498,"delta":-21849329,"percent":-89.74199800245017,"reasons":[],"sources":{"from":"registry","to":"registry"}},"bundle":{"provider":"bundlephobia","methodology":"provider-estimate","minified":{"status":"available","from":3468553,"to":2660,"delta":-3465893,"percent":-99.92331095993056,"reasons":[]},"gzip":{"status":"available","from":981654,"to":967,"delta":-980687,"percent":-99.90149278666414,"reasons":[]}}}- https://registry.npmjs.org/typescript/6.0.3
- https://registry.npmjs.org/typescript/7.0.2
- https://bundlephobia.com/api/size?package=typescript%406.0.3
- https://bundlephobia.com/api/size?package=typescript%407.0.2
- https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz
- https://registry.npmjs.org/typescript/-/typescript-7.0.2.tgz
[5] Computed dependency declaration comparison fact
[{"name":"@typescript/typescript-aix-ppc64","kind":"added","from":null,"to":{"category":"optional","range":"7.0.2"}},{"name":"@typescript/typescript-darwin-arm64","kind":"added","from":null,"to":{"category":"optional","range":"7.0.2"}},{"name":"@typescript/typescript-darwin-x64","kind":"added","from":null,"to":{"category":"optional","range":"7.0.2"}},{"name":"@typescript/typescript-freebsd-arm64","kind":"added","from":null,"to":{"category":"optional","range":"7.0.2"}},{"name":"@typescript/typescript-freebsd-x64","kind":"added","from":null,"to":{"category":"optional","range":"7.0.2"}},{"name":"@typescript/typescript-linux-arm","kind":"added","from":null,"to":{"category":"optional","range":"7.0.2"}},{"name":"@typescript/typescript-linux-arm64","kind":"added","from":null,"to":{"category":"optional","range":"7.0.2"}},{"name":"@typescript/typescript-linux-loong64","kind":"added","from":null,"to":{"category":"optional","range":"7.0.2"}},{"name":"@typescript/typescript-linux-mips64el","kind":"added","from":null,"to":{"category":"optional","range":"7.0.2"}},{"name":"@typescript/typescript-linux-ppc64","kind":"added","from":null,"to":{"category":"optional","range":"7.0.2"}},{"name":"@typescript/typescript-linux-riscv64","kind":"added","from":null,"to":{"category":"optional","range":"7.0.2"}},{"name":"@typescript/typescript-linux-s390x","kind":"added","from":null,"to":{"category":"optional","range":"7.0.2"}},{"name":"@typescript/typescript-linux-x64","kind":"added","from":null,"to":{"category":"optional","range":"7.0.2"}},{"name":"@typescript/typescript-netbsd-arm64","kind":"added","from":null,"to":{"category":"optional","range":"7.0.2"}},{"name":"@typescript/typescript-netbsd-x64","kind":"added","from":null,"to":{"category":"optional","range":"7.0.2"}},{"name":"@typescript/typescript-openbsd-arm64","kind":"added","from":null,"to":{"category":"optional","range":"7.0.2"}},{"name":"@typescript/typescript-openbsd-x64","kind":"added","from":null,"to":{"category":"optional","range":"7.0.2"}},{"name":"@typescript/typescript-sunos-x64","kind":"added","from":null,"to":{"category":"optional","range":"7.0.2"}},{"name":"@typescript/typescript-win32-arm64","kind":"added","from":null,"to":{"category":"optional","range":"7.0.2"}},{"name":"@typescript/typescript-win32-x64","kind":"added","from":null,"to":{"category":"optional","range":"7.0.2"}}][6] Evidence coverage and limitations coverage
{"scope":{"packageName":"typescript","from":"6.0.3","to":"7.0.2"},"availability":{"releaseNotes":{"status":"partial","reasons":["GitHub changelog directory request failed"],"releases":1,"repositoryChangelog":null},"from":{"advisories":{"status":"available","count":0},"bundle":{"status":"available","url":"https://bundlephobia.com/api/size?package=typescript%406.0.3"},"tarball":{"status":"available","reasons":[],"changelogs":0}},"to":{"advisories":{"status":"available","count":0},"bundle":{"status":"available","url":"https://bundlephobia.com/api/size?package=typescript%407.0.2"},"tarball":{"status":"available","reasons":[],"changelogs":0}}},"comparison":{"advisoryStatus":"available","advisoryCoverage":{"from":"available","to":"available"},"advisoryUncertainGroups":0,"sizeReasons":[]},"gaps":["release notes: GitHub changelog directory request failed","release notes coverage is partial"],"omitted":{"sourceIds":[],"count":0},"truncated":{"sourceIds":[],"count":0},"limitations":["This is direct-package evidence, not the application's dependency tree, a runtime test, or an actual application bundle measurement."]}