unstale

npm / typescript

typescript

What changed in typescript 6 to 7, from its official release notes, upgrade guides and advisories. Also covers @typescript/typescript6. Sources checked 2026-12-05.

23 breaking4 deprecations2 behavior and defaults

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

typescript 78 changes

Breaking changes 7

  • allowSyntheticDefaultImports can no longer be set to false.

    6.0.2, 7.0.2release notes

  • esModuleInterop can no longer be set to false.

    6.0.2, 7.0.2release notes

  • The classic module-resolution mode is no longer supported; bundler or nodenext are recommended.

    6.0.2, 7.0.2release notes

  • noUncheckedSideEffectImports now defaults to true.

    6.0.2, 7.0.2release notes

  • strict now defaults to true, so projects may receive stricter type-checking without setting it explicitly.

    6.0.2, 7.0.2release notes

  • types now defaults to [], so projects relying on global declarations must list them explicitly or set it to ["*"].

    6.0.2, 7.0.2release notes

  • Allows command-line builds to take file paths when the current directory contains a tsconfig.json file.

    6.0.2, 7.0.2release notes

Behavior and default changes 1

typescript 621 changes

Breaking changes 16

  • The amd-module directive no longer has any effect.

    6.0.2release notes

  • The asserts keyword in import declarations is deprecated; use with for import attributes instead.

    6.0.2release notes

  • baseUrl is deprecated and is no longer a module-resolution lookup root; move prefixes into paths entries or add an explicit catch-all path mapping if needed.

    6.0.2release notes

  • The option is deprecated because it only affects ES5 emit; setting it at all now leads to a deprecation error.

    6.0.2release notes

  • Use this flag to ignore tsconfig.json and compile specified files with TypeScript defaults.

    6.0.2release notes

  • The amd module value is no longer supported.

    6.0.2release notes

  • The amd, umd, systemjs, and none module values are no longer supported.

    6.0.2release notes

  • The none module value is no longer supported.

    6.0.2release notes

  • The systemjs module value is no longer supported.

    6.0.2release notes

  • The umd module value is no longer supported.

    6.0.2release notes

  • The default module target is now esnext.

    6.0.2release notes

  • The outFile option has been removed; use an external bundler to concatenate output files.

    6.0.2release notes

  • The no-default-lib reference directive is no longer supported; consider using --noLib or --libReplacement instead.

    6.0.2release notes

  • With a tsconfig.json, rootDir now defaults to the directory containing that file; without one, it is still inferred when invoking tsc from the command line.

    6.0.2release notes

  • The target compiler option now defaults to the most recent supported ECMAScript spec version, currently es2025.

    6.0.2release notes

  • Running tsc with file arguments in a directory containing tsconfig.json now produces an error because the config will not be loaded.

    6.0.2release notes

Deprecations 4

  • Setting alwaysStrict to false is deprecated; TypeScript 6.0 assumes all code is in JavaScript strict mode.

    6.0.2release notes

  • Using module to declare a namespace is now a hard deprecation; use namespace instead.

    6.0.2release notes

  • The node/node10 resolution strategy is deprecated; migrate to nodenext for Node.js or bundler for bundler and Bun projects.

    6.0.2release notes

  • The es5 target is deprecated, and TypeScript's lowest target is now ES2015; use a newer target or an external compiler for ES5 output.

    6.0.2release notes

Behavior and default changes 1

  • The module compiler option now defaults to esnext.

    6.0.2release notes