Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[META] v11 breaking changes #1505

Open
12 of 24 tasks
cspotcode opened this issue Oct 11, 2021 · 0 comments
Open
12 of 24 tasks

[META] v11 breaking changes #1505

cspotcode opened this issue Oct 11, 2021 · 0 comments
Milestone

Comments

@cspotcode
Copy link
Collaborator

cspotcode commented Oct 11, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant