Upgrading ts-node 8 to 9
Unknown8.10.2 → 9.1.1
Fetching 3 releases from GitHub…0 / 3
UnknownUpgrade verdict
DepDelta is still reading the notes for this range, so breaking changes can't be ruled out yet.
In plain terms
- DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
- This page updates as the notes come in.
Must act Still reading release notes
DepDelta is still reading the release notes in this range. This updates as they come in.
Node.js requirement changed in 9.0.0: >=6.0.0 → >=10.0.0.
Adds create-require ^1.1.0.
Installs 8 packages in all (was 7).
API changes
Generated by DepDelta from published .d.ts files. Not mixed with prose notes.
- changed:
property NodeJS.Process[REGISTER_INSTANCE]?: Register → property NodeJS.Process[REGISTER_INSTANCE]?: Service
- changed:
function main(argv: string[]): void → function main(argv?: string[], entrypointArgs?: Record<string, any>): void
- changed:
function registerAndCreateEsmHooks(opts?: RegisterOptions): { resolve: (specifier: string, context: { parentURL: string }, defaultResolve: any) => Promise<{ url: string }>; getFormat: (url: string, context: {}, defaultGetFormat: any) => Promise<{ format: 'json' | 'module' | 'builtin' | 'commonjs' | 'dynamic' | 'wasm' }>; transformSource: (source: string | Buffer, context: { url: string; format: '… → function registerAndCreateEsmHooks(opts?: RegisterOptions): { resolve: (specifier: string, context: { parentURL: string }, defaultResolve: any) => Promise<{ url: string }>; getFormat: (url: string, context: {}, defaultGetFormat: any) => Promise<{ format: 'module' | 'json' | 'builtin' | 'commonjs' | 'dynamic' | 'wasm' }>; transformSource: (source: string | Buffer, context: { url: string; format: '…
- removed:
interface Register - removed:
method Register.compile(code: string, fileName: string, lineOffset?: number): string - removed:
method Register.enabled(enabled?: boolean): boolean - removed:
method Register.getTypeInfo(code: string, fileName: string, position: number): TypeInfo - removed:
method Register.ignored(fileName: string): boolean - removed:
property Register.config: _ts.ParsedCommandLine - removed:
property Register.options: RegisterOptions - removed:
property Register.ts: TSCommon - changed:
function create(rawOptions?: CreateOptions): Register → function create(rawOptions?: CreateOptions): Service - changed:
function register(opts?: RegisterOptions): Register → function register(opts?: RegisterOptions): Service - added:
export { CreateReplOptions } from './repl' - added:
export { ReplService } from './repl' - added:
export { createRepl } from './repl' - added:
interface Service - added:
method Service.compile(code: string, fileName: string, lineOffset?: number): string - added:
method Service.enabled(enabled?: boolean): boolean - added:
method Service.getTypeInfo(code: string, fileName: string, position: number): TypeInfo - added:
method Service.ignored(fileName: string): boolean - added:
property CreateOptions.require?: Array<string> - added:
property Service.config: _ts.ParsedCommandLine - added:
property Service.options: RegisterOptions - added:
property Service.ts: TSCommon - added:
type Register = Service
- added:
class EvalState - added:
constructor EvalState(path: string) - added:
function createEvalAwarePartialHost(state: EvalState): EvalAwarePartialHost - added:
function createRepl(options?: CreateReplOptions): ReplService - added:
interface CreateReplOptions - added:
interface ReplService - added:
method ReplService.evalCode(code: string): void - added:
method ReplService.nodeEval(code: string, _context: any, _filename: string, callback: (err: Error | null, result?: any) => any): void - added:
method ReplService.setService(service: Service): void - added:
method ReplService.start(code?: string): void - added:
property CreateReplOptions.service?: Service - added:
property CreateReplOptions.state?: EvalState - added:
property CreateReplOptions.stderr?: NodeJS.WritableStream - added:
property CreateReplOptions.stdin?: NodeJS.ReadableStream - added:
property CreateReplOptions.stdout?: NodeJS.WritableStream - added:
property EvalState.__tsNodeEvalStateBrand: unknown - added:
property EvalState.path: string - added:
property ReplService.evalAwarePartialHost: EvalAwarePartialHost - added:
readonly property ReplService.state: EvalState - added:
type EvalAwarePartialHost = Pick<CreateOptions, 'readFile' | 'fileExists'>