Change8

v7.0.2

📦 typescriptView on GitHub →
5 features🐛 3 fixes🔧 3 symbols

Summary

TypeScript 7.0 introduces project-wide configuration with `typescript.json` and enhances type safety with `import type`. This release also focuses on performance improvements and better alignment with modern JavaScript module standards.

Migration Steps

  1. Consider updating your project configuration to use `typescript.json` for better organization and control.
  2. Review your import statements and consider using `import type` where only types are needed.
  3. If you are using ES module syntax and want to align with modern standards, consider enabling the `--verbatimModuleSyntax` flag.

✨ New Features

  • Introduces `typescript.json` for project-wide configuration, allowing for more granular control over compiler options.
  • Adds support for `import type` for importing only types, improving code clarity and reducing potential runtime issues.
  • Enhances the type inference system with improved handling of complex generic types and conditional types.
  • Introduces a new `--verbatimModuleSyntax` flag to control the output of ES module syntax, aligning with modern JavaScript standards.
  • Improves the performance of the TypeScript compiler, especially for large projects.

🐛 Bug Fixes

  • Resolves an issue where certain JSDoc tags were not being correctly parsed.
  • Fixes a bug that caused incorrect type checking in specific scenarios involving mapped types.
  • Addresses a performance regression in the module resolution algorithm.

Affected Symbols