Skip to content

Commit

Permalink
Release 0.9.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuyz0112 committed Nov 29, 2020
1 parent 64c5f61 commit 48edcfb
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rrweb",
"version": "0.9.9",
"version": "0.9.10",
"description": "record and replay the web",
"scripts": {
"test": "npm run bundle:browser && cross-env TS_NODE_CACHE=false TS_NODE_FILES=true mocha -r ts-node/register test/**/*.test.ts",
Expand Down
6 changes: 4 additions & 2 deletions typings/record/mutation.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { MaskInputOptions } from 'rrweb-snapshot';
import { MaskInputOptions, SlimDOMOptions } from 'rrweb-snapshot';
import { mutationRecord, blockClass, mutationCallBack } from '../types';
export default class MutationBuffer {
private frozen;
Expand All @@ -12,10 +12,12 @@ export default class MutationBuffer {
private droppedSet;
private emissionCallback;
private blockClass;
private blockSelector;
private inlineStylesheet;
private maskInputOptions;
private recordCanvas;
init(cb: mutationCallBack, blockClass: blockClass, inlineStylesheet: boolean, maskInputOptions: MaskInputOptions, recordCanvas: boolean): void;
private slimDOMOptions;
init(cb: mutationCallBack, blockClass: blockClass, blockSelector: string | null, inlineStylesheet: boolean, maskInputOptions: MaskInputOptions, recordCanvas: boolean, slimDOMOptions: SlimDOMOptions): void;
freeze(): void;
unfreeze(): void;
isFrozen(): boolean;
Expand Down
6 changes: 5 additions & 1 deletion typings/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { serializedNodeWithId, idNodeMap, INode, MaskInputOptions } from 'rrweb-snapshot';
import { serializedNodeWithId, idNodeMap, INode, MaskInputOptions, SlimDOMOptions } from 'rrweb-snapshot';
import { PackFn, UnpackFn } from './packer/base';
import { FontFaceDescriptors } from 'css-font-loading-module';
export declare enum EventType {
Expand Down Expand Up @@ -110,10 +110,12 @@ export declare type recordOptions<T> = {
checkoutEveryNth?: number;
checkoutEveryNms?: number;
blockClass?: blockClass;
blockSelector?: string;
ignoreClass?: string;
maskAllInputs?: boolean;
maskInputOptions?: MaskInputOptions;
maskInputFn?: MaskInputFn;
slimDOMOptions?: SlimDOMOptions;
inlineStylesheet?: boolean;
hooks?: hooksParam;
packFn?: PackFn;
Expand All @@ -131,6 +133,7 @@ export declare type observerParam = {
inputCb: inputCallback;
mediaInteractionCb: mediaInteractionCallback;
blockClass: blockClass;
blockSelector: string | null;
ignoreClass: string;
maskInputOptions: MaskInputOptions;
maskInputFn?: MaskInputFn;
Expand All @@ -141,6 +144,7 @@ export declare type observerParam = {
sampling: SamplingStrategy;
recordCanvas: boolean;
collectFonts: boolean;
slimDOMOptions: SlimDOMOptions;
};
export declare type hooksParam = {
mutation?: mutationCallBack;
Expand Down
1 change: 1 addition & 0 deletions typings/utils.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export declare function patch(source: {
export declare function getWindowHeight(): number;
export declare function getWindowWidth(): number;
export declare function isBlocked(node: Node | null, blockClass: blockClass): boolean;
export declare function isIgnored(n: Node | INode): boolean;
export declare function isAncestorRemoved(target: INode): boolean;
export declare function isTouchEvent(event: MouseEvent | TouchEvent): event is TouchEvent;
export declare function polyfill(win?: Window & typeof globalThis): void;
Expand Down

0 comments on commit 48edcfb

Please sign in to comment.