Upgrading @types/node 6 to 7
Unknown6.14.13 → 7.10.14
Fetching 87 releases from GitHub…0 / 87
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.
API changes
Generated by DepDelta from published .d.ts files. Not mixed with prose notes.
- removed:
var NodeJS.Console: { prototype: Console; new(stdout: WritableStream, stderr?: WritableStream): Console } - changed:
method NodeJS.Process.exit(code?: number): void → method NodeJS.Process.exit(code?: number): never - changed:
method NodeJS.ReadableStream.setEncoding(encoding: string | null): void → method NodeJS.ReadableStream.setEncoding(encoding: string | null): this - changed:
method NodeJS.ReadableStream.unpipe<T extends WritableStream>(destination?: T): void → method NodeJS.ReadableStream.unpipe<T extends WritableStream>(destination?: T): this - changed:
property Console.Console: typeof NodeJS.Console → property Console.Console: NodeJS.ConsoleConstructor - added:
interface NodeJS.ConsoleConstructor - added:
method NodeJS.Process.openStdin(): Socket - added:
new NodeJS.ConsoleConstructor(stdout: WritableStream, stderr?: WritableStream): Console - added:
property NodeJS.ConsoleConstructor.prototype: Console
- added:
function transcode(source: Buffer, fromEnc: TranscodeEncoding, toEnc: TranscodeEncoding): Buffer - added:
type TranscodeEncoding = 'ascii' | 'utf8' | 'utf16le' | 'ucs2' | 'latin1' | 'binary'
- added:
property ForkOptions.stdio?: any[]
- added:
function randomFill(buffer: Buffer, callback: (err: Error, buf: Buffer) => void): void - added:
function randomFill(buffer: Buffer, offset: number, callback: (err: Error, buf: Buffer) => void): void - added:
function randomFill(buffer: Buffer, offset: number, size: number, callback: (err: Error, buf: Buffer) => void): void - added:
function randomFill(buffer: Uint8Array, callback: (err: Error, buf: Uint8Array) => void): void - added:
function randomFill(buffer: Uint8Array, offset: number, callback: (err: Error, buf: Uint8Array) => void): void - added:
function randomFill(buffer: Uint8Array, offset: number, size: number, callback: (err: Error, buf: Uint8Array) => void): void - added:
function randomFillSync(buffer: Buffer | Uint8Array, offset?: number, size?: number): Buffer
- changed:
function createSocket(type: string, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket → function createSocket(type: SocketType, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket - changed:
method Socket.close(callback?: any): void → method Socket.close(callback?: () => void): void - changed:
property SocketOptions.type: 'udp4' | 'udp6' → property SocketOptions.type: SocketType - added:
type SocketType = 'udp4' | 'udp6'
- changed:
function lookup(hostname: string, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void): void → function lookup(hostname: string, callback: (err: NodeJS.ErrnoException, address: string, family: number) => void): void - changed:
function lookup(hostname: string, family: number, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void): void → function lookup(hostname: string, family: number, callback: (err: NodeJS.ErrnoException, address: string, family: number) => void): void - changed:
function lookup(hostname: string, options: LookupAllOptions, callback: (err: NodeJS.ErrnoException | null, addresses: LookupAddress[]) => void): void → function lookup(hostname: string, options: LookupAllOptions, callback: (err: NodeJS.ErrnoException, addresses: LookupAddress[]) => void): void - changed:
function lookup(hostname: string, options: LookupOneOptions, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void): void → function lookup(hostname: string, options: LookupOneOptions, callback: (err: NodeJS.ErrnoException, address: string, family: number) => void): void - changed:
function lookup(hostname: string, options: LookupOptions, callback: (err: NodeJS.ErrnoException | null, address: string | LookupAddress[], family: number) => void): void → function lookup(hostname: string, options: LookupOptions, callback: (err: NodeJS.ErrnoException, address: string | LookupAddress[], family: number) => void): void - changed:
function lookupService(address: string, port: number, callback: (err: NodeJS.ErrnoException | null, hostname: string, service: string) => void): void → function lookupService(address: string, port: number, callback: (err: NodeJS.ErrnoException, hostname: string, service: string) => void): void - changed:
function resolve(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void → function resolve(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void - changed:
function resolve(hostname: string, rrtype: 'A', callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void → function resolve(hostname: string, rrtype: 'A', callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void - changed:
function resolve(hostname: string, rrtype: 'AAAA', callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void → function resolve(hostname: string, rrtype: 'AAAA', callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void - changed:
function resolve(hostname: string, rrtype: 'CNAME', callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void → function resolve(hostname: string, rrtype: 'CNAME', callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void - changed:
function resolve(hostname: string, rrtype: 'MX', callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void): void → function resolve(hostname: string, rrtype: 'MX', callback: (err: NodeJS.ErrnoException, addresses: MxRecord[]) => void): void - changed:
function resolve(hostname: string, rrtype: 'NAPTR', callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void): void → function resolve(hostname: string, rrtype: 'NAPTR', callback: (err: NodeJS.ErrnoException, addresses: NaptrRecord[]) => void): void - changed:
function resolve(hostname: string, rrtype: 'NS', callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void → function resolve(hostname: string, rrtype: 'NS', callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void - changed:
function resolve(hostname: string, rrtype: 'PTR', callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void → function resolve(hostname: string, rrtype: 'PTR', callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void - changed:
function resolve(hostname: string, rrtype: 'SOA', callback: (err: NodeJS.ErrnoException | null, addresses: SoaRecord) => void): void → function resolve(hostname: string, rrtype: 'SOA', callback: (err: NodeJS.ErrnoException, addresses: SoaRecord) => void): void - changed:
function resolve(hostname: string, rrtype: 'SRV', callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void): void → function resolve(hostname: string, rrtype: 'SRV', callback: (err: NodeJS.ErrnoException, addresses: SrvRecord[]) => void): void - changed:
function resolve(hostname: string, rrtype: 'TXT', callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void): void → function resolve(hostname: string, rrtype: 'TXT', callback: (err: NodeJS.ErrnoException, addresses: string[][]) => void): void - changed:
function resolve(hostname: string, rrtype: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][]) => void): void → function resolve(hostname: string, rrtype: string, callback: (err: NodeJS.ErrnoException, addresses: string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][]) => void): void - changed:
function resolve4(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void → function resolve4(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void - changed:
function resolve6(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void → function resolve6(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void - changed:
function resolveCname(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void → function resolveCname(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void - changed:
function resolveMx(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void): void → function resolveMx(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: MxRecord[]) => void): void - changed:
function resolveNaptr(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void): void → function resolveNaptr(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: NaptrRecord[]) => void): void - changed:
function resolveNs(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void → function resolveNs(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void - changed:
function resolvePtr(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void → function resolvePtr(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void - changed:
function resolveSoa(hostname: string, callback: (err: NodeJS.ErrnoException | null, address: SoaRecord) => void): void → function resolveSoa(hostname: string, callback: (err: NodeJS.ErrnoException, address: SoaRecord) => void): void - changed:
function resolveSrv(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void): void → function resolveSrv(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: SrvRecord[]) => void): void - changed:
function resolveTxt(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void): void → function resolveTxt(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: string[][]) => void): void - changed:
function reverse(ip: string, callback: (err: NodeJS.ErrnoException | null, hostnames: string[]) => void): void → function reverse(ip: string, callback: (err: NodeJS.ErrnoException, hostnames: string[]) => void): void - added:
function resolve4(hostname: string, options: ResolveOptions, callback: (err: NodeJS.ErrnoException, addresses: string[] | RecordWithTtl[]) => void): void - added:
function resolve4(hostname: string, options: ResolveWithTtlOptions, callback: (err: NodeJS.ErrnoException, addresses: RecordWithTtl[]) => void): void - added:
function resolve6(hostname: string, options: ResolveOptions, callback: (err: NodeJS.ErrnoException, addresses: string[] | RecordWithTtl[]) => void): void - added:
function resolve6(hostname: string, options: ResolveWithTtlOptions, callback: (err: NodeJS.ErrnoException, addresses: RecordWithTtl[]) => void): void - added:
interface RecordWithTtl - added:
interface ResolveOptions - added:
interface ResolveWithTtlOptions extends ResolveOptions - added:
property RecordWithTtl.address: string - added:
property RecordWithTtl.ttl: number - added:
property ResolveOptions.ttl: boolean - added:
property ResolveWithTtlOptions.ttl: true
- removed:
function readdir(path: string | Buffer, options: { encoding: BufferEncoding | null } | BufferEncoding | undefined | null, callback: (err: NodeJS.ErrnoException | null, files: string[]) => void): void - removed:
function readdir(path: string | Buffer, options: { encoding?: string | null } | string | undefined | null, callback: (err: NodeJS.ErrnoException | null, files: string[] | Buffer[]) => void): void - removed:
function readdirSync(path: string | Buffer, options?: { encoding: BufferEncoding | null } | BufferEncoding | null): string[] - removed:
function readdirSync(path: string | Buffer, options?: { encoding?: string | null } | string | null): string[] | Buffer[] - changed:
function access(path: string | Buffer, callback: (err: NodeJS.ErrnoException | null) => void): void → function access(path: string | Buffer, callback: (err: NodeJS.ErrnoException) => void): void - changed:
function access(path: string | Buffer, mode: number, callback: (err: NodeJS.ErrnoException | null) => void): void → function access(path: string | Buffer, mode: number, callback: (err: NodeJS.ErrnoException) => void): void - changed:
function appendFile(filename: string, data: any, callback?: (err: NodeJS.ErrnoException | null) => void): void → function appendFile(filename: string, data: any, callback?: (err: NodeJS.ErrnoException) => void): void - changed:
function appendFile(filename: string, data: any, encoding: string, callback: (err: NodeJS.ErrnoException | null) => void): void → function appendFile(filename: string, data: any, encoding: string, callback: (err: NodeJS.ErrnoException) => void): void - changed:
function appendFile(filename: string, data: any, options: { encoding?: string; mode?: number; flag?: string }, callback?: (err: NodeJS.ErrnoException | null) => void): void → function appendFile(filename: string, data: any, options: { encoding?: string; mode?: number; flag?: string }, callback?: (err: NodeJS.ErrnoException) => void): void - changed:
function appendFile(filename: string, data: any, options: { encoding?: string; mode?: string; flag?: string }, callback?: (err: NodeJS.ErrnoException | null) => void): void → function appendFile(filename: string, data: any, options: { encoding?: string; mode?: string; flag?: string }, callback?: (err: NodeJS.ErrnoException) => void): void - changed:
function chmod(path: string | Buffer, mode: number, callback?: (err?: NodeJS.ErrnoException | null) => void): void → function chmod(path: string | Buffer, mode: number, callback?: (err?: NodeJS.ErrnoException) => void): void - changed:
function chmod(path: string | Buffer, mode: string, callback?: (err?: NodeJS.ErrnoException | null) => void): void → function chmod(path: string | Buffer, mode: string, callback?: (err?: NodeJS.ErrnoException) => void): void - changed:
function chown(path: string | Buffer, uid: number, gid: number, callback?: (err?: NodeJS.ErrnoException | null) => void): void → function chown(path: string | Buffer, uid: number, gid: number, callback?: (err?: NodeJS.ErrnoException) => void): void - changed:
function close(fd: number, callback?: (err?: NodeJS.ErrnoException | null) => void): void → function close(fd: number, callback?: (err?: NodeJS.ErrnoException) => void): void - changed:
function fchmod(fd: number, mode: number, callback?: (err?: NodeJS.ErrnoException | null) => void): void → function fchmod(fd: number, mode: number, callback?: (err?: NodeJS.ErrnoException) => void): void - changed:
function fchmod(fd: number, mode: string, callback?: (err?: NodeJS.ErrnoException | null) => void): void → function fchmod(fd: number, mode: string, callback?: (err?: NodeJS.ErrnoException) => void): void - changed:
function fchown(fd: number, uid: number, gid: number, callback?: (err?: NodeJS.ErrnoException | null) => void): void → function fchown(fd: number, uid: number, gid: number, callback?: (err?: NodeJS.ErrnoException) => void): void - changed:
function fstat(fd: number, callback?: (err: NodeJS.ErrnoException | null, stats: Stats) => any): void → function fstat(fd: number, callback?: (err: NodeJS.ErrnoException, stats: Stats) => any): void - changed:
function fsync(fd: number, callback?: (err?: NodeJS.ErrnoException | null) => void): void → function fsync(fd: number, callback?: (err?: NodeJS.ErrnoException) => void): void - changed:
function ftruncate(fd: number, callback?: (err?: NodeJS.ErrnoException | null) => void): void → function ftruncate(fd: number, callback?: (err?: NodeJS.ErrnoException) => void): void - changed:
function ftruncate(fd: number, len: number, callback?: (err?: NodeJS.ErrnoException | null) => void): void → function ftruncate(fd: number, len: number, callback?: (err?: NodeJS.ErrnoException) => void): void - changed:
function futimes(fd: number, atime: Date, mtime: Date, callback?: (err?: NodeJS.ErrnoException | null) => void): void → function futimes(fd: number, atime: Date, mtime: Date, callback?: (err?: NodeJS.ErrnoException) => void): void - changed:
function futimes(fd: number, atime: number, mtime: number, callback?: (err?: NodeJS.ErrnoException | null) => void): void → function futimes(fd: number, atime: number, mtime: number, callback?: (err?: NodeJS.ErrnoException) => void): void - changed:
function lchmod(path: string | Buffer, mode: number, callback?: (err?: NodeJS.ErrnoException | null) => void): void → function lchmod(path: string | Buffer, mode: number, callback?: (err?: NodeJS.ErrnoException) => void): void - changed:
function lchmod(path: string | Buffer, mode: string, callback?: (err?: NodeJS.ErrnoException | null) => void): void → function lchmod(path: string | Buffer, mode: string, callback?: (err?: NodeJS.ErrnoException) => void): void - changed:
function lchown(path: string | Buffer, uid: number, gid: number, callback?: (err?: NodeJS.ErrnoException | null) => void): void → function lchown(path: string | Buffer, uid: number, gid: number, callback?: (err?: NodeJS.ErrnoException) => void): void - changed:
function link(srcpath: string | Buffer, dstpath: string | Buffer, callback?: (err?: NodeJS.ErrnoException | null) => void): void → function link(srcpath: string | Buffer, dstpath: string | Buffer, callback?: (err?: NodeJS.ErrnoException) => void): void - changed:
function lstat(path: string | Buffer, callback?: (err: NodeJS.ErrnoException | null, stats: Stats) => any): void → function lstat(path: string | Buffer, callback?: (err: NodeJS.ErrnoException, stats: Stats) => any): void - changed:
function mkdir(path: string | Buffer, callback?: (err?: NodeJS.ErrnoException | null) => void): void → function mkdir(path: string | Buffer, callback?: (err?: NodeJS.ErrnoException) => void): void - changed:
function mkdir(path: string | Buffer, mode: number, callback?: (err?: NodeJS.ErrnoException | null) => void): void → function mkdir(path: string | Buffer, mode: number, callback?: (err?: NodeJS.ErrnoException) => void): void - changed:
function mkdir(path: string | Buffer, mode: string, callback?: (err?: NodeJS.ErrnoException | null) => void): void → function mkdir(path: string | Buffer, mode: string, callback?: (err?: NodeJS.ErrnoException) => void): void - changed:
function mkdtemp(prefix: string, callback?: (err: NodeJS.ErrnoException | null, folder: string) => void): void → function mkdtemp(prefix: string, callback?: (err: NodeJS.ErrnoException, folder: string) => void): void - changed:
function open(path: string | Buffer, flags: string | number, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void → function open(path: string | Buffer, flags: string | number, callback: (err: NodeJS.ErrnoException, fd: number) => void): void - changed:
function open(path: string | Buffer, flags: string | number, mode: number, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void → function open(path: string | Buffer, flags: string | number, mode: number, callback: (err: NodeJS.ErrnoException, fd: number) => void): void - changed:
function read(fd: number, buffer: Buffer, offset: number, length: number, position: number | null, callback?: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: Buffer) => void): void → function read(fd: number, buffer: Buffer, offset: number, length: number, position: number | null, callback?: (err: NodeJS.ErrnoException, bytesRead: number, buffer: Buffer) => void): void - changed:
function readFile(filename: string, callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void): void → function readFile(filename: string, callback: (err: NodeJS.ErrnoException, data: Buffer) => void): void - changed:
function readFile(filename: string, encoding: null, callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void): void → function readFile(filename: string, encoding: null, callback: (err: NodeJS.ErrnoException, data: Buffer) => void): void - changed:
function readFile(filename: string, encoding: string | null, callback: (err: NodeJS.ErrnoException | null, data: string | Buffer) => void): void → function readFile(filename: string, encoding: string | null, callback: (err: NodeJS.ErrnoException, data: string | Buffer) => void): void - changed:
function readFile(filename: string, encoding: string, callback: (err: NodeJS.ErrnoException | null, data: string) => void): void → function readFile(filename: string, encoding: string, callback: (err: NodeJS.ErrnoException, data: string) => void): void - changed:
function readFile(filename: string, options: { encoding: null; flag?: string }, callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void): void → function readFile(filename: string, options: { encoding: null; flag?: string }, callback: (err: NodeJS.ErrnoException, data: Buffer) => void): void - changed:
function readFile(filename: string, options: { encoding: string | null; flag?: string }, callback: (err: NodeJS.ErrnoException | null, data: string | Buffer) => void): void → function readFile(filename: string, options: { encoding: string | null; flag?: string }, callback: (err: NodeJS.ErrnoException, data: string | Buffer) => void): void - changed:
function readFile(filename: string, options: { encoding: string; flag?: string }, callback: (err: NodeJS.ErrnoException | null, data: string) => void): void → function readFile(filename: string, options: { encoding: string; flag?: string }, callback: (err: NodeJS.ErrnoException, data: string) => void): void - changed:
function readFile(filename: string, options: { flag?: string }, callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void): void → function readFile(filename: string, options: { flag?: string }, callback: (err: NodeJS.ErrnoException, data: Buffer) => void): void - changed:
function readdir(path: string | Buffer, callback: (err: NodeJS.ErrnoException | null, files: string[]) => void): void → function readdir(path: string | Buffer, callback: (err: NodeJS.ErrnoException, files: string[]) => void): void - changed:
function readdir(path: string | Buffer, options: { encoding: 'buffer' } | 'buffer', callback: (err: NodeJS.ErrnoException | null, files: Buffer[]) => void): void → function readdir(path: string | Buffer, options: string | {}, callback: (err: NodeJS.ErrnoException, files: string[]) => void): void - changed:
function readdirSync(path: string | Buffer, options: { encoding: 'buffer' } | 'buffer'): Buffer[] → function readdirSync(path: string | Buffer, options?: string | {}): string[] - changed:
function readlink(path: string | Buffer, callback?: (err: NodeJS.ErrnoException | null, linkString: string) => any): void → function readlink(path: string | Buffer, callback?: (err: NodeJS.ErrnoException, linkString: string) => any): void - changed:
function realpath(path: string | Buffer, cache: { [path: string]: string }, callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => any): void → function realpath(path: string | Buffer, cache: { [path: string]: string }, callback: (err: NodeJS.ErrnoException, resolvedPath: string) => any): void - changed:
function realpath(path: string | Buffer, callback?: (err: NodeJS.ErrnoException | null, resolvedPath: string) => any): void → function realpath(path: string | Buffer, callback?: (err: NodeJS.ErrnoException, resolvedPath: string) => any): void - changed:
function rename(oldPath: string, newPath: string, callback?: (err?: NodeJS.ErrnoException | null) => void): void → function rename(oldPath: string, newPath: string, callback?: (err?: NodeJS.ErrnoException) => void): void - changed:
function rmdir(path: string | Buffer, callback?: (err?: NodeJS.ErrnoException | null) => void): void → function rmdir(path: string | Buffer, callback?: (err?: NodeJS.ErrnoException) => void): void - changed:
function stat(path: string | Buffer, callback?: (err: NodeJS.ErrnoException | null, stats: Stats) => any): void → function stat(path: string | Buffer, callback?: (err: NodeJS.ErrnoException, stats: Stats) => any): void - changed:
function symlink(srcpath: string | Buffer, dstpath: string | Buffer, type?: string, callback?: (err?: NodeJS.ErrnoException | null) => void): void → function symlink(srcpath: string | Buffer, dstpath: string | Buffer, type?: string, callback?: (err?: NodeJS.ErrnoException) => void): void - changed:
function truncate(path: string | Buffer, callback?: (err?: NodeJS.ErrnoException | null) => void): void → function truncate(path: string | Buffer, callback?: (err?: NodeJS.ErrnoException) => void): void - changed:
function truncate(path: string | Buffer, len: number, callback?: (err?: NodeJS.ErrnoException | null) => void): void → function truncate(path: string | Buffer, len: number, callback?: (err?: NodeJS.ErrnoException) => void): void - changed:
function unlink(path: string | Buffer, callback?: (err?: NodeJS.ErrnoException | null) => void): void → function unlink(path: string | Buffer, callback?: (err?: NodeJS.ErrnoException) => void): void - changed:
function utimes(path: string | Buffer, atime: Date, mtime: Date, callback?: (err?: NodeJS.ErrnoException | null) => void): void → function utimes(path: string | Buffer, atime: Date, mtime: Date, callback?: (err?: NodeJS.ErrnoException) => void): void - changed:
function utimes(path: string | Buffer, atime: number, mtime: number, callback?: (err?: NodeJS.ErrnoException | null) => void): void → function utimes(path: string | Buffer, atime: number, mtime: number, callback?: (err?: NodeJS.ErrnoException) => void): void - changed:
function write(fd: number, buffer: Buffer, offset: number, length: number, callback?: (err: NodeJS.ErrnoException | null, written: number, buffer: Buffer) => void): void → function write(fd: number, buffer: Buffer, offset: number, length: number, callback?: (err: NodeJS.ErrnoException, written: number, buffer: Buffer) => void): void - changed:
function write(fd: number, buffer: Buffer, offset: number, length: number, position: number | null, callback?: (err: NodeJS.ErrnoException | null, written: number, buffer: Buffer) => void): void → function write(fd: number, buffer: Buffer, offset: number, length: number, position: number | null, callback?: (err: NodeJS.ErrnoException, written: number, buffer: Buffer) => void): void - changed:
function write(fd: number, data: any, callback?: (err: NodeJS.ErrnoException | null, written: number, str: string) => void): void → function write(fd: number, data: any, callback?: (err: NodeJS.ErrnoException, written: number, str: string) => void): void - changed:
function write(fd: number, data: any, offset: number, callback?: (err: NodeJS.ErrnoException | null, written: number, str: string) => void): void → function write(fd: number, data: any, offset: number, callback?: (err: NodeJS.ErrnoException, written: number, str: string) => void): void - changed:
function write(fd: number, data: any, offset: number, encoding: string, callback?: (err: NodeJS.ErrnoException | null, written: number, str: string) => void): void → function write(fd: number, data: any, offset: number, encoding: string, callback?: (err: NodeJS.ErrnoException, written: number, str: string) => void): void - changed:
function writeFile(filename: string, data: any, callback?: (err: NodeJS.ErrnoException | null) => void): void → function writeFile(filename: string, data: any, callback?: (err: NodeJS.ErrnoException) => void): void - changed:
function writeFile(filename: string, data: any, encoding: string, callback: (err: NodeJS.ErrnoException | null) => void): void → function writeFile(filename: string, data: any, encoding: string, callback: (err: NodeJS.ErrnoException) => void): void - changed:
function writeFile(filename: string, data: any, options: { encoding?: string; mode?: number; flag?: string }, callback?: (err: NodeJS.ErrnoException | null) => void): void → function writeFile(filename: string, data: any, options: { encoding?: string; mode?: number; flag?: string }, callback?: (err: NodeJS.ErrnoException) => void): void - changed:
function writeFile(filename: string, data: any, options: { encoding?: string; mode?: string; flag?: string }, callback?: (err: NodeJS.ErrnoException | null) => void): void → function writeFile(filename: string, data: any, options: { encoding?: string; mode?: string; flag?: string }, callback?: (err: NodeJS.ErrnoException) => void): void
- changed:
function get(options: RequestOptions | string, callback?: (res: http.IncomingMessage) => void): http.ClientRequest → function get(options: RequestOptions, callback?: (res: http.IncomingMessage) => void): http.ClientRequest
- changed:
function createServer(options?: { allowHalfOpen?: boolean }, connectionListener?: (socket: Socket) => void): Server → function createServer(options?: { allowHalfOpen?: boolean, pauseOnConnect?: boolean }, connectionListener?: (socket: Socket) => void): Server - changed:
method Socket.destroy(): void → method Socket.destroy(err?: any): void - changed:
method Socket.setEncoding(encoding?: string): void → method Socket.setEncoding(encoding?: string): this - added:
method Socket.pause(): this - added:
method Socket.resume(): this - added:
property Server.listening: boolean
- removed:
call Completer(line: string): CompleterResult - removed:
call Completer(line: string, callback: (err: any, result: CompleterResult) => void): any - removed:
interface Completer - changed:
function createInterface(input: NodeJS.ReadableStream, output?: NodeJS.WritableStream, completer?: Completer, terminal?: boolean): ReadLine → function createInterface(input: NodeJS.ReadableStream, output?: NodeJS.WritableStream, completer?: Completer | AsyncCompleter, terminal?: boolean): ReadLine - changed:
function cursorTo(stream: NodeJS.WritableStream, x: number, y?: number): void → function cursorTo(stream: NodeJS.WritableStream, x: number, y: number): void - changed:
method ReadLine.pause(): this → method ReadLine.pause(): ReadLine - changed:
method ReadLine.resume(): this → method ReadLine.resume(): ReadLine - changed:
property ReadLineOptions.completer?: Completer → property ReadLineOptions.completer?: Completer | AsyncCompleter - added:
type AsyncCompleter = (line: string, callback: (err: any, result: CompleterResult) => void) => any - added:
type Completer = (line: string) => CompleterResult
- changed:
method internal.Readable.setEncoding(encoding: string): void → method internal.Readable.setEncoding(encoding: string): this - changed:
method internal.Readable.unpipe<T extends NodeJS.WritableStream>(destination?: T): void → method internal.Readable.unpipe<T extends NodeJS.WritableStream>(destination?: T): this
- changed:
method TLSSocket.getPeerCertificate(detailed?: boolean): { subject: Certificate; issuerInfo: Certificate; issuer: Certificate; raw: any; valid_from: string; valid_to: string; fingerprint: string; serialNumber: string } → method TLSSocket.getPeerCertificate(detailed: true): DetailedPeerCertificate - added:
interface DetailedPeerCertificate extends PeerCertificate - added:
interface PeerCertificate - added:
method TLSSocket.getPeerCertificate(detailed?: boolean): PeerCertificate | DetailedPeerCertificate - added:
method TLSSocket.getPeerCertificate(detailed?: false): PeerCertificate - added:
property DetailedPeerCertificate.issuerCertificate: DetailedPeerCertificate - added:
property PeerCertificate.exponent: string - added:
property PeerCertificate.ext_key_usage: string[] - added:
property PeerCertificate.fingerprint: string - added:
property PeerCertificate.infoAccess: { [index: string]: string[] } - added:
property PeerCertificate.issuer: Certificate - added:
property PeerCertificate.modulus: string - added:
property PeerCertificate.raw: Buffer - added:
property PeerCertificate.serialNumber: string - added:
property PeerCertificate.subject: Certificate - added:
property PeerCertificate.subjectaltname: string - added:
property PeerCertificate.valid_from: string - added:
property PeerCertificate.valid_to: string
- changed:
function isArray(object: any): boolean → function isArray(object: any): object is any[] - changed:
function isBoolean(object: any): boolean → function isBoolean(object: any): object is boolean - changed:
function isBuffer(object: any): boolean → function isBuffer(object: any): object is Buffer - changed:
function isDate(object: any): boolean → function isDate(object: any): object is Date - changed:
function isError(object: any): boolean → function isError(object: any): object is Error - changed:
function isNull(object: any): boolean → function isNull(object: any): object is null - changed:
function isNullOrUndefined(object: any): boolean → function isNullOrUndefined(object: any): object is null | undefined - changed:
function isNumber(object: any): boolean → function isNumber(object: any): object is number - changed:
function isRegExp(object: any): boolean → function isRegExp(object: any): object is RegExp - changed:
function isString(object: any): boolean → function isString(object: any): object is string - changed:
function isSymbol(object: any): boolean → function isSymbol(object: any): object is symbol - changed:
function isUndefined(object: any): boolean → function isUndefined(object: any): object is undefined
- removed:
const enum DoesZapCodeSpaceFlag - removed:
member DoesZapCodeSpaceFlag.Disabled = 0 - removed:
member DoesZapCodeSpaceFlag.Enabled = 1 - added:
type DoesZapCodeSpaceFlag = 0 | 1
- removed:
var Z_NULL: number - added:
const constants.Z_BEST_COMPRESSION: number - added:
const constants.Z_BEST_SPEED: number - added:
const constants.Z_BLOCK: number - added:
const constants.Z_BUF_ERROR: number - added:
const constants.Z_DATA_ERROR: number - added:
const constants.Z_DEFAULT_COMPRESSION: number - added:
const constants.Z_DEFAULT_STRATEGY: number - added:
const constants.Z_ERRNO: number - added:
const constants.Z_FILTERED: number - added:
const constants.Z_FINISH: number - added:
const constants.Z_FIXED: number - added:
const constants.Z_FULL_FLUSH: number - added:
const constants.Z_HUFFMAN_ONLY: number - added:
const constants.Z_MEM_ERROR: number - added:
const constants.Z_NEED_DICT: number - added:
const constants.Z_NO_COMPRESSION: number - added:
const constants.Z_NO_FLUSH: number - added:
const constants.Z_OK: number - added:
const constants.Z_PARTIAL_FLUSH: number - added:
const constants.Z_RLE: number - added:
const constants.Z_STREAM_END: number - added:
const constants.Z_STREAM_ERROR: number - added:
const constants.Z_SYNC_FLUSH: number - added:
const constants.Z_TREES: number - added:
const constants.Z_VERSION_ERROR: number - added:
namespace constants - added:
property ZlibOptions.flush?: number