Upgrading puppeteer 10 to 11
Unknown10.4.0 → 11.0.0
Fetching 1 release from GitHub…0 / 1
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.
Installs 57 packages in all (was 55).
API changes
Generated by DepDelta from published .d.ts files. Not mixed with prose notes.
- changed:
property CDPSessionOnMessageObject.error: { message: string; data: any } → property CDPSessionOnMessageObject.error: { message: string; data: any; code: number } - changed:
property ConnectionCallback.error: Error → property ConnectionCallback.error: ProtocolError - added:
method CDPSession.id(): string
- changed:
constructor DOMWorld(frameManager: FrameManager, frame: Frame, timeoutSettings: TimeoutSettings) → constructor DOMWorld(client: CDPSession, frameManager: FrameManager, frame: Frame, timeoutSettings: TimeoutSettings)
- changed:
constructor CustomError(message: string) → constructor CustomError(message?: string) - added:
class ProtocolError extends CustomError - added:
property ProtocolError.code?: number - added:
property ProtocolError.originalMessage: string
- changed:
constructor Frame(frameManager: FrameManager, parentFrame: Frame | null, frameId: string) → constructor Frame(frameManager: FrameManager, parentFrame: Frame | null, frameId: string, client: CDPSession) - changed:
method FrameManager._ensureIsolatedWorld(name: string): Promise<void> → method FrameManager._ensureIsolatedWorld(session: CDPSession, name: string): Promise<void> - changed:
method FrameManager._handleFrameTree(frameTree: Protocol.Page.FrameTree): void → method FrameManager._handleFrameTree(session: CDPSession, frameTree: Protocol.Page.FrameTree): void - changed:
method FrameManager._onExecutionContextCreated(contextPayload: Protocol.Runtime.ExecutionContextDescription): void → method FrameManager._onExecutionContextCreated(contextPayload: Protocol.Runtime.ExecutionContextDescription, session: CDPSession): void - changed:
method FrameManager._onFrameAttached(frameId: string, parentFrameId?: string): void → method FrameManager._onFrameAttached(session: CDPSession, frameId: string, parentFrameId?: string): void - changed:
method FrameManager._onFrameDetached(frameId: string): void → method FrameManager._onFrameDetached(frameId: string, reason: Protocol.Page.FrameDetachedEventReason): void - changed:
method FrameManager.executionContextById(contextId: number): ExecutionContext → method FrameManager.executionContextById(contextId: number, session?: CDPSession): ExecutionContext - changed:
method FrameManager.initialize(): Promise<void> → method FrameManager.initialize(client?: CDPSession): Promise<void> - added:
method Frame._updateClient(client: CDPSession): void - added:
method Frame.isOOPFrame(): boolean - added:
property Frame._client: CDPSession
- added:
method HTTPRequest.initiator(): Protocol.Network.Initiator
- changed:
method ElementHandle.screenshot(options?: {}): Promise<string | Buffer | void> → method ElementHandle.screenshot(options?: ScreenshotOptions): Promise<string | Buffer> - changed:
method JSHandle.getProperty(propertyName: string): Promise<JSHandle | undefined> → method JSHandle.getProperty(propertyName: string): Promise<JSHandle>
- changed:
constructor Page(client: CDPSession, target: Target, ignoreHTTPSErrors: boolean) → constructor Page(client: CDPSession, target: Target, ignoreHTTPSErrors: boolean, screenshotTaskQueue: TaskQueue) - changed:
method Page.exposeFunction(name: string, puppeteerFunction: Function): Promise<void> → method Page.exposeFunction(name: string, puppeteerFunction: Function | { default: Function }): Promise<void> - changed:
method Page.screenshot(options?: ScreenshotOptions): Promise<Buffer | string | void> → method Page.screenshot(options?: ScreenshotOptions): Promise<Buffer | string> - changed:
static method Page.create(client: CDPSession, target: Target, ignoreHTTPSErrors: boolean, defaultViewport: Viewport | null): Promise<Page> → static method Page.create(client: CDPSession, target: Target, ignoreHTTPSErrors: boolean, defaultViewport: Viewport | null, screenshotTaskQueue: TaskQueue): Promise<Page> - added:
method Page.off<K extends keyof PageEventObject>(eventName: K, handler: (event: PageEventObject[K]) => void): EventEmitter - added:
method Page.waitForFrame(urlOrPredicate: string | ((frame: Frame) => boolean | Promise<boolean>), options?: { timeout?: number }): Promise<Frame>
- changed:
constructor Target(targetInfo: Protocol.Target.TargetInfo, browserContext: BrowserContext, sessionFactory: () => Promise<CDPSession>, ignoreHTTPSErrors: boolean, defaultViewport: Viewport | null) → constructor Target(targetInfo: Protocol.Target.TargetInfo, browserContext: BrowserContext, sessionFactory: () => Promise<CDPSession>, ignoreHTTPSErrors: boolean, defaultViewport: Viewport | null, screenshotTaskQueue: TaskQueue)
- added:
class TaskQueue - added:
constructor TaskQueue() - added:
method TaskQueue.postTask<T>(task: () => Promise<T>): Promise<T>
- added:
property BrowserLaunchArgumentOptions.debuggingPort?: number
- changed:
property CDPSessionOnMessageObject.error: { message: string; data: any } → property CDPSessionOnMessageObject.error: { message: string; data: any; code: number } - changed:
property ConnectionCallback.error: Error → property ConnectionCallback.error: ProtocolError - added:
method CDPSession.id(): string
- changed:
constructor DOMWorld(frameManager: FrameManager, frame: Frame, timeoutSettings: TimeoutSettings) → constructor DOMWorld(client: CDPSession, frameManager: FrameManager, frame: Frame, timeoutSettings: TimeoutSettings)
- changed:
constructor CustomError(message: string) → constructor CustomError(message?: string) - added:
class ProtocolError extends CustomError - added:
property ProtocolError.code?: number - added:
property ProtocolError.originalMessage: string
- changed:
constructor Frame(frameManager: FrameManager, parentFrame: Frame | null, frameId: string) → constructor Frame(frameManager: FrameManager, parentFrame: Frame | null, frameId: string, client: CDPSession) - changed:
method FrameManager._ensureIsolatedWorld(name: string): Promise<void> → method FrameManager._ensureIsolatedWorld(session: CDPSession, name: string): Promise<void> - changed:
method FrameManager._handleFrameTree(frameTree: Protocol.Page.FrameTree): void → method FrameManager._handleFrameTree(session: CDPSession, frameTree: Protocol.Page.FrameTree): void - changed:
method FrameManager._onExecutionContextCreated(contextPayload: Protocol.Runtime.ExecutionContextDescription): void → method FrameManager._onExecutionContextCreated(contextPayload: Protocol.Runtime.ExecutionContextDescription, session: CDPSession): void - changed:
method FrameManager._onFrameAttached(frameId: string, parentFrameId?: string): void → method FrameManager._onFrameAttached(session: CDPSession, frameId: string, parentFrameId?: string): void - changed:
method FrameManager._onFrameDetached(frameId: string): void → method FrameManager._onFrameDetached(frameId: string, reason: Protocol.Page.FrameDetachedEventReason): void - changed:
method FrameManager.executionContextById(contextId: number): ExecutionContext → method FrameManager.executionContextById(contextId: number, session?: CDPSession): ExecutionContext - changed:
method FrameManager.initialize(): Promise<void> → method FrameManager.initialize(client?: CDPSession): Promise<void> - added:
method Frame._updateClient(client: CDPSession): void - added:
method Frame.isOOPFrame(): boolean - added:
property Frame._client: CDPSession
- added:
method HTTPRequest.initiator(): Protocol.Network.Initiator
- changed:
method ElementHandle.screenshot(options?: {}): Promise<string | Buffer | void> → method ElementHandle.screenshot(options?: ScreenshotOptions): Promise<string | Buffer> - changed:
method JSHandle.getProperty(propertyName: string): Promise<JSHandle | undefined> → method JSHandle.getProperty(propertyName: string): Promise<JSHandle>
- changed:
constructor Page(client: CDPSession, target: Target, ignoreHTTPSErrors: boolean) → constructor Page(client: CDPSession, target: Target, ignoreHTTPSErrors: boolean, screenshotTaskQueue: TaskQueue) - changed:
method Page.exposeFunction(name: string, puppeteerFunction: Function): Promise<void> → method Page.exposeFunction(name: string, puppeteerFunction: Function | { default: Function }): Promise<void> - changed:
method Page.screenshot(options?: ScreenshotOptions): Promise<Buffer | string | void> → method Page.screenshot(options?: ScreenshotOptions): Promise<Buffer | string> - changed:
static method Page.create(client: CDPSession, target: Target, ignoreHTTPSErrors: boolean, defaultViewport: Viewport | null): Promise<Page> → static method Page.create(client: CDPSession, target: Target, ignoreHTTPSErrors: boolean, defaultViewport: Viewport | null, screenshotTaskQueue: TaskQueue): Promise<Page> - added:
method Page.off<K extends keyof PageEventObject>(eventName: K, handler: (event: PageEventObject[K]) => void): EventEmitter - added:
method Page.waitForFrame(urlOrPredicate: string | ((frame: Frame) => boolean | Promise<boolean>), options?: { timeout?: number }): Promise<Frame>
- changed:
constructor Target(targetInfo: Protocol.Target.TargetInfo, browserContext: BrowserContext, sessionFactory: () => Promise<CDPSession>, ignoreHTTPSErrors: boolean, defaultViewport: Viewport | null) → constructor Target(targetInfo: Protocol.Target.TargetInfo, browserContext: BrowserContext, sessionFactory: () => Promise<CDPSession>, ignoreHTTPSErrors: boolean, defaultViewport: Viewport | null, screenshotTaskQueue: TaskQueue)
- added:
class TaskQueue - added:
constructor TaskQueue() - added:
method TaskQueue.postTask<T>(task: () => Promise<T>): Promise<T>
- added:
property BrowserLaunchArgumentOptions.debuggingPort?: number
- changed:
constructor CustomError(message: string) → constructor CustomError(message?: string) - changed:
constructor DOMWorld(frameManager: FrameManager, frame: Frame, timeoutSettings: TimeoutSettings) → constructor DOMWorld(client: CDPSession, frameManager: FrameManager, frame: Frame, timeoutSettings: TimeoutSettings) - changed:
constructor Frame(frameManager: FrameManager, parentFrame: Frame | null, frameId: string) → constructor Frame(frameManager: FrameManager, parentFrame: Frame | null, frameId: string, client: CDPSession) - changed:
constructor Page(client: CDPSession, target: Target, ignoreHTTPSErrors: boolean) → constructor Page(client: CDPSession, target: Target, ignoreHTTPSErrors: boolean, screenshotTaskQueue: TaskQueue) - changed:
constructor Target(targetInfo: Protocol.Target.TargetInfo, browserContext: BrowserContext, sessionFactory: () => Promise<CDPSession>, ignoreHTTPSErrors: boolean, defaultViewport: Viewport | null) → constructor Target(targetInfo: Protocol.Target.TargetInfo, browserContext: BrowserContext, sessionFactory: () => Promise<CDPSession>, ignoreHTTPSErrors: boolean, defaultViewport: Viewport | null, screenshotTaskQueue: TaskQueue) - changed:
method ElementHandle.screenshot(options?: {}): Promise<string | Buffer | void> → method ElementHandle.screenshot(options?: ScreenshotOptions): Promise<string | Buffer> - changed:
method FrameManager._ensureIsolatedWorld(name: string): Promise<void> → method FrameManager._ensureIsolatedWorld(session: CDPSession, name: string): Promise<void> - changed:
method FrameManager._handleFrameTree(frameTree: Protocol.Page.FrameTree): void → method FrameManager._handleFrameTree(session: CDPSession, frameTree: Protocol.Page.FrameTree): void - changed:
method FrameManager._onExecutionContextCreated(contextPayload: Protocol.Runtime.ExecutionContextDescription): void → method FrameManager._onExecutionContextCreated(contextPayload: Protocol.Runtime.ExecutionContextDescription, session: CDPSession): void - changed:
method FrameManager._onFrameAttached(frameId: string, parentFrameId?: string): void → method FrameManager._onFrameAttached(session: CDPSession, frameId: string, parentFrameId?: string): void - changed:
method FrameManager._onFrameDetached(frameId: string): void → method FrameManager._onFrameDetached(frameId: string, reason: Protocol.Page.FrameDetachedEventReason): void - changed:
method FrameManager.executionContextById(contextId: number): ExecutionContext → method FrameManager.executionContextById(contextId: number, session?: CDPSession): ExecutionContext - changed:
method FrameManager.initialize(): Promise<void> → method FrameManager.initialize(client?: CDPSession): Promise<void> - changed:
method JSHandle.getProperty(propertyName: string): Promise<JSHandle | undefined> → method JSHandle.getProperty(propertyName: string): Promise<JSHandle> - changed:
method Page.exposeFunction(name: string, puppeteerFunction: Function): Promise<void> → method Page.exposeFunction(name: string, puppeteerFunction: Function | { default: Function }): Promise<void> - changed:
method Page.screenshot(options?: ScreenshotOptions): Promise<Buffer | string | void> → method Page.screenshot(options?: ScreenshotOptions): Promise<Buffer | string> - changed:
property CDPSessionOnMessageObject.error: { message: string; data: any } → property CDPSessionOnMessageObject.error: { message: string; data: any; code: number } - changed:
property ConnectionCallback.error: Error → property ConnectionCallback.error: ProtocolError - changed:
static method Page.create(client: CDPSession, target: Target, ignoreHTTPSErrors: boolean, defaultViewport: Viewport | null): Promise<Page> → static method Page.create(client: CDPSession, target: Target, ignoreHTTPSErrors: boolean, defaultViewport: Viewport | null, screenshotTaskQueue: TaskQueue): Promise<Page> - added:
class ProtocolError extends CustomError - added:
method CDPSession.id(): string - added:
method Frame._updateClient(client: CDPSession): void - added:
method Frame.isOOPFrame(): boolean - added:
method HTTPRequest.initiator(): Protocol.Network.Initiator - added:
method Page.off<K extends keyof PageEventObject>(eventName: K, handler: (event: PageEventObject[K]) => void): EventEmitter - added:
method Page.waitForFrame(urlOrPredicate: string | ((frame: Frame) => boolean | Promise<boolean>), options?: { timeout?: number }): Promise<Frame> - added:
property BrowserLaunchArgumentOptions.debuggingPort?: number - added:
property Frame._client: CDPSession - added:
property ProtocolError.code?: number - added:
property ProtocolError.originalMessage: string