Skip to content

[META] v11 breaking changes #1505

@cspotcode

Description

@cspotcode

Breaking changes we should include in the next major, v11

Implemented in #1760

Minimum node version: v14
Minimum TS version: 4.0 (from https://github.com/DefinitelyTyped/DefinitelyTyped#support-window)

  • Remove ts.createIncrementalProgram fallback to ts.createEmitAndSemanticDiagnosticsBuilderProgram
    • ts-node/src/index.ts

      Lines 988 to 989 in 1cc91d9

      const host: _ts.CompilerHost = ts.createIncrementalCompilerHost
      ? ts.createIncrementalCompilerHost(config.options, sys)
    • ts-node/src/index.ts

      Lines 1023 to 1025 in 1cc91d9

      // Fallback for older TypeScript releases without incremental API.
      let builderProgram = ts.createIncrementalProgram
      ? ts.createIncrementalProgram({
    • TS 3.7 already has both of these
  • stop installing source-map-support in create(); only in register()
  • Re-align TS version support with DefinitelyTyped
  • Make enableExperimentalEsmLoaderInterop() on by default
    • and remove the conditional code, remove that enabler method
  • Re-align node version support w/EOLs
    • Did we officially announce the dropping of node 10? Or do we merely support non-EOLed versions as a general policy
  • remove ts-script entrypoint; replaced by ts-node-script
  • Make ts-node/dist/bin main() export @internal
  • Modify nodeEval function signature to accept context: Context (See TODO in the code)
  • change signature of REPL nodeEval(code: string, context: any to nodeEval(code: string, context: Context
  • remove @tsconfig/bases node10 and node12
  • add @tsconfig/bases node18
  • switch all @tsconfig/bases deps to wildcard (like is typically done for @types) so they will respect whatever version you want to install

Still to do

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions