"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cli/dts/lib.webworker.d.ts" between
deno-1.10.3.tar.gz and deno-1.11.0.tar.gz

About: Deno is is a simple, modern and secure runtime for JavaScript and TypeScript that uses the V8 JavaScript engine and is built in Rust.

lib.webworker.d.ts  (deno-1.10.3):lib.webworker.d.ts  (deno-1.11.0)
skipping to change at line 382 skipping to change at line 382
interface PushEventInit extends ExtendableEventInit { interface PushEventInit extends ExtendableEventInit {
data?: PushMessageDataInit; data?: PushMessageDataInit;
} }
interface PushPermissionDescriptor extends PermissionDescriptor { interface PushPermissionDescriptor extends PermissionDescriptor {
name: "push"; name: "push";
userVisibleOnly?: boolean; userVisibleOnly?: boolean;
} }
interface PushSubscriptionChangeEventInit extends ExtendableEventInit {
newSubscription?: PushSubscription;
oldSubscription?: PushSubscription;
}
interface PushSubscriptionJSON { interface PushSubscriptionJSON {
endpoint?: string; endpoint?: string;
expirationTime?: number | null; expirationTime?: number | null;
keys?: Record<string, string>; keys?: Record<string, string>;
} }
interface PushSubscriptionOptionsInit { interface PushSubscriptionOptionsInit {
applicationServerKey?: BufferSource | string | null; applicationServerKey?: BufferSource | string | null;
userVisibleOnly?: boolean; userVisibleOnly?: boolean;
} }
skipping to change at line 1570 skipping to change at line 1565
declare var ExtendableMessageEvent: { declare var ExtendableMessageEvent: {
prototype: ExtendableMessageEvent; prototype: ExtendableMessageEvent;
new(type: string, eventInitDict?: ExtendableMessageEventInit): ExtendableMes sageEvent; new(type: string, eventInitDict?: ExtendableMessageEventInit): ExtendableMes sageEvent;
}; };
/** This is the event type for fetch events dispatched on the service worker glo bal scope. It contains information about the fetch, including the request and ho w the receiver will treat the response. It provides the event.respondWith() meth od, which allows us to provide a response to this fetch. */ /** This is the event type for fetch events dispatched on the service worker glo bal scope. It contains information about the fetch, including the request and ho w the receiver will treat the response. It provides the event.respondWith() meth od, which allows us to provide a response to this fetch. */
interface FetchEvent extends ExtendableEvent { interface FetchEvent extends ExtendableEvent {
readonly clientId: string; readonly clientId: string;
readonly preloadResponse: Promise<any>; readonly preloadResponse: Promise<any>;
readonly replacesClientId: string;
readonly request: Request; readonly request: Request;
readonly resultingClientId: string; readonly resultingClientId: string;
respondWith(r: Response | Promise<Response>): void; respondWith(r: Response | Promise<Response>): void;
} }
declare var FetchEvent: { declare var FetchEvent: {
prototype: FetchEvent; prototype: FetchEvent;
new(type: string, eventInitDict: FetchEventInit): FetchEvent; new(type: string, eventInitDict: FetchEventInit): FetchEvent;
}; };
skipping to change at line 2722 skipping to change at line 2716
getKey(name: PushEncryptionKeyName): ArrayBuffer | null; getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
toJSON(): PushSubscriptionJSON; toJSON(): PushSubscriptionJSON;
unsubscribe(): Promise<boolean>; unsubscribe(): Promise<boolean>;
} }
declare var PushSubscription: { declare var PushSubscription: {
prototype: PushSubscription; prototype: PushSubscription;
new(): PushSubscription; new(): PushSubscription;
}; };
interface PushSubscriptionChangeEvent extends ExtendableEvent {
readonly newSubscription: PushSubscription | null;
readonly oldSubscription: PushSubscription | null;
}
declare var PushSubscriptionChangeEvent: {
prototype: PushSubscriptionChangeEvent;
new(type: string, eventInitDict?: PushSubscriptionChangeEventInit): PushSubs
criptionChangeEvent;
};
interface PushSubscriptionOptions { interface PushSubscriptionOptions {
readonly applicationServerKey: ArrayBuffer | null; readonly applicationServerKey: ArrayBuffer | null;
readonly userVisibleOnly: boolean; readonly userVisibleOnly: boolean;
} }
declare var PushSubscriptionOptions: { declare var PushSubscriptionOptions: {
prototype: PushSubscriptionOptions; prototype: PushSubscriptionOptions;
new(): PushSubscriptionOptions; new(): PushSubscriptionOptions;
}; };
skipping to change at line 2933 skipping to change at line 2917
interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap { interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
"activate": ExtendableEvent; "activate": ExtendableEvent;
"fetch": FetchEvent; "fetch": FetchEvent;
"install": ExtendableEvent; "install": ExtendableEvent;
"message": ExtendableMessageEvent; "message": ExtendableMessageEvent;
"messageerror": MessageEvent; "messageerror": MessageEvent;
"notificationclick": NotificationEvent; "notificationclick": NotificationEvent;
"notificationclose": NotificationEvent; "notificationclose": NotificationEvent;
"push": PushEvent; "push": PushEvent;
"pushsubscriptionchange": PushSubscriptionChangeEvent;
"sync": SyncEvent; "sync": SyncEvent;
} }
/** This ServiceWorker API interface represents the global execution context of a service worker. */ /** This ServiceWorker API interface represents the global execution context of a service worker. */
interface ServiceWorkerGlobalScope extends WorkerGlobalScope { interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
readonly clients: Clients; readonly clients: Clients;
onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null; onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null; onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null;
oninstall: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null; oninstall: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null; onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null; onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null;
onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent ) => any) | null; onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent ) => any) | null;
onnotificationclose: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent ) => any) | null; onnotificationclose: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent ) => any) | null;
onpush: ((this: ServiceWorkerGlobalScope, ev: PushEvent) => any) | null; onpush: ((this: ServiceWorkerGlobalScope, ev: PushEvent) => any) | null;
onpushsubscriptionchange: ((this: ServiceWorkerGlobalScope, ev: PushSubscrip tionChangeEvent) => any) | null;
onsync: ((this: ServiceWorkerGlobalScope, ev: SyncEvent) => any) | null; onsync: ((this: ServiceWorkerGlobalScope, ev: SyncEvent) => any) | null;
readonly registration: ServiceWorkerRegistration; readonly registration: ServiceWorkerRegistration;
readonly serviceWorker: ServiceWorker; readonly serviceWorker: ServiceWorker;
skipWaiting(): Promise<void>; skipWaiting(): Promise<void>;
addEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[ K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[ K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventM ap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventM ap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObje ct, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObje ct, options?: boolean | EventListenerOptions): void;
} }
skipping to change at line 3197 skipping to change at line 3179
* Returns the measurement described below. * Returns the measurement described below.
*/ */
readonly actualBoundingBoxLeft: number; readonly actualBoundingBoxLeft: number;
/** /**
* Returns the measurement described below. * Returns the measurement described below.
*/ */
readonly actualBoundingBoxRight: number; readonly actualBoundingBoxRight: number;
/** /**
* Returns the measurement described below. * Returns the measurement described below.
*/ */
readonly alphabeticBaseline: number;
/**
* Returns the measurement described below.
*/
readonly emHeightAscent: number;
/**
* Returns the measurement described below.
*/
readonly emHeightDescent: number;
/**
* Returns the measurement described below.
*/
readonly fontBoundingBoxAscent: number;
/**
* Returns the measurement described below.
*/
readonly fontBoundingBoxDescent: number;
/**
* Returns the measurement described below.
*/
readonly hangingBaseline: number;
/**
* Returns the measurement described below.
*/
readonly ideographicBaseline: number;
/**
* Returns the measurement described below.
*/
readonly width: number; readonly width: number;
} }
declare var TextMetrics: { declare var TextMetrics: {
prototype: TextMetrics; prototype: TextMetrics;
new(): TextMetrics; new(): TextMetrics;
}; };
interface TransformStream<I = any, O = any> { interface TransformStream<I = any, O = any> {
readonly readable: ReadableStream<O>; readonly readable: ReadableStream<O>;
skipping to change at line 4407 skipping to change at line 4361
readonly size: GLint; readonly size: GLint;
readonly type: GLenum; readonly type: GLenum;
} }
declare var WebGLActiveInfo: { declare var WebGLActiveInfo: {
prototype: WebGLActiveInfo; prototype: WebGLActiveInfo;
new(): WebGLActiveInfo; new(): WebGLActiveInfo;
}; };
/** Part of the WebGL API and represents an opaque buffer object storing data su ch as vertices or colors. */ /** Part of the WebGL API and represents an opaque buffer object storing data su ch as vertices or colors. */
interface WebGLBuffer extends WebGLObject { interface WebGLBuffer {
} }
declare var WebGLBuffer: { declare var WebGLBuffer: {
prototype: WebGLBuffer; prototype: WebGLBuffer;
new(): WebGLBuffer; new(): WebGLBuffer;
}; };
/** The WebContextEvent interface is part of the WebGL API and is an interface f or an event that is generated in response to a status change to the WebGL render ing context. */ /** The WebContextEvent interface is part of the WebGL API and is an interface f or an event that is generated in response to a status change to the WebGL render ing context. */
interface WebGLContextEvent extends Event { interface WebGLContextEvent extends Event {
readonly statusMessage: string; readonly statusMessage: string;
} }
declare var WebGLContextEvent: { declare var WebGLContextEvent: {
prototype: WebGLContextEvent; prototype: WebGLContextEvent;
new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent; new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;
}; };
/** Part of the WebGL API and represents a collection of buffers that serve as a rendering destination. */ /** Part of the WebGL API and represents a collection of buffers that serve as a rendering destination. */
interface WebGLFramebuffer extends WebGLObject { interface WebGLFramebuffer {
} }
declare var WebGLFramebuffer: { declare var WebGLFramebuffer: {
prototype: WebGLFramebuffer; prototype: WebGLFramebuffer;
new(): WebGLFramebuffer; new(): WebGLFramebuffer;
}; };
interface WebGLObject {
}
declare var WebGLObject: {
prototype: WebGLObject;
new(): WebGLObject;
};
/** The WebGLProgram is part of the WebGL API and is a combination of two compil ed WebGLShaders consisting of a vertex shader and a fragment shader (both writte n in GLSL). */ /** The WebGLProgram is part of the WebGL API and is a combination of two compil ed WebGLShaders consisting of a vertex shader and a fragment shader (both writte n in GLSL). */
interface WebGLProgram extends WebGLObject { interface WebGLProgram {
} }
declare var WebGLProgram: { declare var WebGLProgram: {
prototype: WebGLProgram; prototype: WebGLProgram;
new(): WebGLProgram; new(): WebGLProgram;
}; };
interface WebGLQuery extends WebGLObject { interface WebGLQuery {
} }
declare var WebGLQuery: { declare var WebGLQuery: {
prototype: WebGLQuery; prototype: WebGLQuery;
new(): WebGLQuery; new(): WebGLQuery;
}; };
/** Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation. */ /** Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation. */
interface WebGLRenderbuffer extends WebGLObject { interface WebGLRenderbuffer {
} }
declare var WebGLRenderbuffer: { declare var WebGLRenderbuffer: {
prototype: WebGLRenderbuffer; prototype: WebGLRenderbuffer;
new(): WebGLRenderbuffer; new(): WebGLRenderbuffer;
}; };
/** Provides an interface to the OpenGL ES 2.0 graphics rendering context for th e drawing surface of an HTML <canvas> element. */ /** Provides an interface to the OpenGL ES 2.0 graphics rendering context for th e drawing surface of an HTML <canvas> element. */
interface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderin gContextOverloads { interface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderin gContextOverloads {
} }
skipping to change at line 5239 skipping to change at line 5185
uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void; uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;
uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void; uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;
uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void; uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;
uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void; uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;
uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void; uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean , value: Float32List): void; uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean , value: Float32List): void;
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean , value: Float32List): void; uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean , value: Float32List): void;
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean , value: Float32List): void; uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean , value: Float32List): void;
} }
interface WebGLSampler extends WebGLObject { interface WebGLSampler {
} }
declare var WebGLSampler: { declare var WebGLSampler: {
prototype: WebGLSampler; prototype: WebGLSampler;
new(): WebGLSampler; new(): WebGLSampler;
}; };
/** The WebGLShader is part of the WebGL API and can either be a vertex or a fra gment shader. A WebGLProgram requires both types of shaders. */ /** The WebGLShader is part of the WebGL API and can either be a vertex or a fra gment shader. A WebGLProgram requires both types of shaders. */
interface WebGLShader extends WebGLObject { interface WebGLShader {
} }
declare var WebGLShader: { declare var WebGLShader: {
prototype: WebGLShader; prototype: WebGLShader;
new(): WebGLShader; new(): WebGLShader;
}; };
/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method. */ /** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method. */
interface WebGLShaderPrecisionFormat { interface WebGLShaderPrecisionFormat {
readonly precision: GLint; readonly precision: GLint;
readonly rangeMax: GLint; readonly rangeMax: GLint;
readonly rangeMin: GLint; readonly rangeMin: GLint;
} }
declare var WebGLShaderPrecisionFormat: { declare var WebGLShaderPrecisionFormat: {
prototype: WebGLShaderPrecisionFormat; prototype: WebGLShaderPrecisionFormat;
new(): WebGLShaderPrecisionFormat; new(): WebGLShaderPrecisionFormat;
}; };
interface WebGLSync extends WebGLObject { interface WebGLSync {
} }
declare var WebGLSync: { declare var WebGLSync: {
prototype: WebGLSync; prototype: WebGLSync;
new(): WebGLSync; new(): WebGLSync;
}; };
/** Part of the WebGL API and represents an opaque texture object providing stor age and state for texturing operations. */ /** Part of the WebGL API and represents an opaque texture object providing stor age and state for texturing operations. */
interface WebGLTexture extends WebGLObject { interface WebGLTexture {
} }
declare var WebGLTexture: { declare var WebGLTexture: {
prototype: WebGLTexture; prototype: WebGLTexture;
new(): WebGLTexture; new(): WebGLTexture;
}; };
interface WebGLTransformFeedback extends WebGLObject { interface WebGLTransformFeedback {
} }
declare var WebGLTransformFeedback: { declare var WebGLTransformFeedback: {
prototype: WebGLTransformFeedback; prototype: WebGLTransformFeedback;
new(): WebGLTransformFeedback; new(): WebGLTransformFeedback;
}; };
/** Part of the WebGL API and represents the location of a uniform variable in a shader program. */ /** Part of the WebGL API and represents the location of a uniform variable in a shader program. */
interface WebGLUniformLocation { interface WebGLUniformLocation {
} }
declare var WebGLUniformLocation: { declare var WebGLUniformLocation: {
prototype: WebGLUniformLocation; prototype: WebGLUniformLocation;
new(): WebGLUniformLocation; new(): WebGLUniformLocation;
}; };
interface WebGLVertexArrayObject extends WebGLObject { interface WebGLVertexArrayObject {
} }
declare var WebGLVertexArrayObject: { declare var WebGLVertexArrayObject: {
prototype: WebGLVertexArrayObject; prototype: WebGLVertexArrayObject;
new(): WebGLVertexArrayObject; new(): WebGLVertexArrayObject;
}; };
interface WebGLVertexArrayObjectOES extends WebGLObject { interface WebGLVertexArrayObjectOES {
} }
interface WebSocketEventMap { interface WebSocketEventMap {
"close": CloseEvent; "close": CloseEvent;
"error": Event; "error": Event;
"message": MessageEvent; "message": MessageEvent;
"open": Event; "open": Event;
} }
/** Provides the API for creating and managing a WebSocket connection to a serve r, as well as for sending and receiving data on the connection. */ /** Provides the API for creating and managing a WebSocket connection to a serve r, as well as for sending and receiving data on the connection. */
skipping to change at line 5383 skipping to change at line 5329
prototype: WebSocket; prototype: WebSocket;
new(url: string, protocols?: string | string[]): WebSocket; new(url: string, protocols?: string | string[]): WebSocket;
readonly CLOSED: number; readonly CLOSED: number;
readonly CLOSING: number; readonly CLOSING: number;
readonly CONNECTING: number; readonly CONNECTING: number;
readonly OPEN: number; readonly OPEN: number;
}; };
/** This ServiceWorker API interface represents the scope of a service worker cl ient that is a document in a browser context, controlled by an active worker. Th e service worker client independently selects and uses a service worker for its own loading and sub-resources. */ /** This ServiceWorker API interface represents the scope of a service worker cl ient that is a document in a browser context, controlled by an active worker. Th e service worker client independently selects and uses a service worker for its own loading and sub-resources. */
interface WindowClient extends Client { interface WindowClient extends Client {
readonly ancestorOrigins: ReadonlyArray<string>;
readonly focused: boolean; readonly focused: boolean;
readonly visibilityState: VisibilityState; readonly visibilityState: VisibilityState;
focus(): Promise<WindowClient>; focus(): Promise<WindowClient>;
navigate(url: string): Promise<WindowClient | null>; navigate(url: string): Promise<WindowClient | null>;
} }
declare var WindowClient: { declare var WindowClient: {
prototype: WindowClient; prototype: WindowClient;
new(): WindowClient; new(): WindowClient;
}; };
skipping to change at line 5506 skipping to change at line 5451
} }
declare var WorkerLocation: { declare var WorkerLocation: {
prototype: WorkerLocation; prototype: WorkerLocation;
new(): WorkerLocation; new(): WorkerLocation;
}; };
/** A subset of the Navigator interface allowed to be accessed from a Worker. Su ch an object is initialized for each worker and is available via the WorkerGloba lScope.navigator property obtained by calling window.self.navigator. */ /** A subset of the Navigator interface allowed to be accessed from a Worker. Su ch an object is initialized for each worker and is available via the WorkerGloba lScope.navigator property obtained by calling window.self.navigator. */
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, Navi gatorLanguage, NavigatorOnLine, NavigatorStorage { interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, Navi gatorLanguage, NavigatorOnLine, NavigatorStorage {
readonly permissions: Permissions; readonly permissions: Permissions;
readonly serviceWorker: ServiceWorkerContainer;
} }
declare var WorkerNavigator: { declare var WorkerNavigator: {
prototype: WorkerNavigator; prototype: WorkerNavigator;
new(): WorkerNavigator; new(): WorkerNavigator;
}; };
/** This Streams API interface provides a standard abstraction for writing strea ming data to a destination, known as a sink. This object comes with built-in bac kpressure and queuing. */ /** This Streams API interface provides a standard abstraction for writing strea ming data to a destination, known as a sink. This object comes with built-in bac kpressure and queuing. */
interface WritableStream<W = any> { interface WritableStream<W = any> {
readonly locked: boolean; readonly locked: boolean;
skipping to change at line 5793 skipping to change at line 5737
}; };
interface GlobalDescriptor { interface GlobalDescriptor {
mutable?: boolean; mutable?: boolean;
value: ValueType; value: ValueType;
} }
interface MemoryDescriptor { interface MemoryDescriptor {
initial: number; initial: number;
maximum?: number; maximum?: number;
shared?: boolean;
} }
interface ModuleExportDescriptor { interface ModuleExportDescriptor {
kind: ImportExportKind; kind: ImportExportKind;
name: string; name: string;
} }
interface ModuleImportDescriptor { interface ModuleImportDescriptor {
kind: ImportExportKind; kind: ImportExportKind;
module: string; module: string;
 End of changes. 22 change blocks. 
69 lines changed or deleted 13 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)