TypeScript icon indicating copy to clipboard operation
TypeScript copied to clipboard

6.0 Deprecation Candidates

Open RyanCavanaugh opened this issue 2 years ago • 16 comments

  • Change the default rootDir to the location of the tsconfig.json (i.e. "."). This can be safely transitioned by having a warning at 6.0 if the rootDir we would have inferred doesn't match ".".

RyanCavanaugh avatar Jun 02 '23 16:06 RyanCavanaugh

This is a tracking issue, so I'm locking this since I don't want a flood of "You should deprecate X" comments here. Post on the relevant thread for X instead, and if it seems like a possible fit for deprecation, we'll cross-link here.

RyanCavanaugh avatar Jun 02 '23 16:06 RyanCavanaugh

Module stuff:

  • Deprecate conditional imports/exports fallback lookups
  • Deprecate --moduleResolution classic
    • Change default moduleResolution for --module es2015 et al.
  • Deprecate --moduleResolution node/node10
    • Change default moduleResolution for --module commonjs
  • Deprecate allowSyntheticDefaultExports and esModuleInterop (make the latter always true)

andrewbranch avatar Jun 02 '23 16:06 andrewbranch

We've talked quite a bit about moving strictNullChecks and noImplicitAny to being on by default. In order to transition our userbase, would it make sense to require them to either

  • set to true either explicitly or implicitly (i.e. via --strict) or
  • explicitly be set to false?

DanielRosenwasser avatar Jun 09 '23 22:06 DanielRosenwasser

tsc foo.ts not applying tsconfig.json - See #57159 and many others

RyanCavanaugh avatar Jan 25 '24 16:01 RyanCavanaugh

no-default-lib

RyanCavanaugh avatar Mar 01 '24 19:03 RyanCavanaugh

amd-module

RyanCavanaugh avatar Mar 01 '24 19:03 RyanCavanaugh

Mix tsconfig.json with extra files #27379

RyanCavanaugh avatar May 03 '24 16:05 RyanCavanaugh

May be default types should be [] verses undefined

sheetalkamat avatar May 03 '24 20:05 sheetalkamat

#58453 error on asserts in import statements

RyanCavanaugh avatar May 16 '24 19:05 RyanCavanaugh

Multi-file global value namespaces

RyanCavanaugh avatar Sep 27 '24 23:09 RyanCavanaugh

--rootDirs? https://www.typescriptlang.org/tsconfig/#rootDirs

andrewbranch avatar Oct 31 '24 18:10 andrewbranch

Import assertions should start erroring (saying to use import attributes instead) in --module esnext and --module preserve. They will already error in --module nodenext when #60534 is done.

andrewbranch avatar Dec 11 '24 22:12 andrewbranch

I forgot to include --baseUrl earlier

andrewbranch avatar Mar 11 '25 21:03 andrewbranch

module Foo { (synonym of namespace Foo {), see #61450 for RWC results

RyanCavanaugh avatar Mar 21 '25 19:03 RyanCavanaugh