Skip to content

Commit

Permalink
Merge branch 'master' into fix/css-selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
Juice10 authored Jun 26, 2024
2 parents 35952fe + db20184 commit 600f9cf
Show file tree
Hide file tree
Showing 67 changed files with 566 additions and 297 deletions.
6 changes: 6 additions & 0 deletions .changeset/beige-olives-roll.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"rrweb-snapshot": patch
"rrweb": patch
---

Fix that the optional `maskInputFn` was being accidentally ignored during the creation of the full snapshot
12 changes: 11 additions & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,19 @@
"rrdom",
"rrdom-nodejs",
"rrweb-player",
"@rrweb/all",
"@rrweb/replay",
"@rrweb/record",
"@rrweb/types",
"@rrweb/packer",
"@rrweb/web-extension",
"rrvideo"
"rrvideo",
"@rrweb/rrweb-plugin-console-record",
"@rrweb/rrweb-plugin-console-replay",
"@rrweb/rrweb-plugin-sequential-id-record",
"@rrweb/rrweb-plugin-sequential-id-replay",
"@rrweb/rrweb-plugin-canvas-webrtc-record",
"@rrweb/rrweb-plugin-canvas-webrtc-replay"
]
],
"linked": [],
Expand Down
14 changes: 14 additions & 0 deletions .changeset/cool-horses-bow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
"@rrweb/rrweb-plugin-canvas-webrtc-record": patch
"@rrweb/rrweb-plugin-canvas-webrtc-replay": patch
"@rrweb/rrweb-plugin-sequential-id-record": patch
"@rrweb/rrweb-plugin-sequential-id-replay": patch
"@rrweb/rrweb-plugin-console-record": patch
"@rrweb/rrweb-plugin-console-replay": patch
"@rrweb/packer": patch
"@rrweb/record": patch
"@rrweb/replay": patch
"@rrweb/all": patch
---

Keep package version in sync with other packages
5 changes: 5 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@
},
"changesets": [
"attribute-text-reductions",
"beige-olives-roll",
"brave-numbers-joke",
"breezy-cats-heal",
"breezy-mice-breathe",
"bright-socks-clap",
"calm-bulldogs-speak",
"calm-oranges-sin",
"chatty-cherries-train",
Expand Down Expand Up @@ -69,6 +71,7 @@
"khaki-dots-bathe",
"kind-kids-design",
"large-ants-prove",
"last-jest-to-vitest",
"lazy-squids-draw",
"lazy-toes-confess",
"lemon-lamps-switch",
Expand Down Expand Up @@ -117,6 +120,7 @@
"silver-pots-sit",
"silver-windows-float",
"sixty-impalas-laugh",
"skip-mask-check-on-leaf-elements",
"slimy-eagles-grow",
"small-hats-kneel",
"small-olives-arrive",
Expand All @@ -143,6 +147,7 @@
"twenty-planets-repeat",
"violet-melons-itch",
"violet-zebras-cry",
"wicked-lions-return",
"wise-spiders-jog",
"witty-kids-talk",
"yellow-mails-cheat",
Expand Down
2 changes: 2 additions & 0 deletions .changeset/wicked-lions-return.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
3 changes: 2 additions & 1 deletion .vscode/rrweb-monorepo.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
"@rrweb/rrweb-plugin-sequential-id",
"@rrweb/rrweb-plugin-canvas-webrtc-record",
"@rrweb/rrweb-plugin-canvas-webrtc-replay"
]
],
"typescript.tsdk": " rrweb monorepo/node_modules/typescript/lib"
}
}
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,19 @@
"markdownlint": "^0.25.1",
"markdownlint-cli": "^0.31.1",
"prettier": "2.8.4",
"turbo": "^2.0.3",
"typescript": "^4.9.5"
"turbo": "^2.0.4",
"typescript": "^5.4.5"
},
"scripts": {
"build:all": "NODE_OPTIONS='--max-old-space-size=4096' yarn run concurrently --success=all -r -m=1 'yarn workspaces-to-typescript-project-references' 'yarn turbo run prepublish'",
"test": "yarn run concurrently --success=all -r -m=1 'yarn workspaces-to-typescript-project-references --check' 'yarn turbo run test --concurrency=1 --continue'",
"build:all": "NODE_OPTIONS='--max-old-space-size=4096' yarn turbo run prepublish",
"references:update": "yarn workspaces-to-typescript-project-references",
"test": "yarn turbo run test --concurrency=1 --continue",
"test:watch": "yarn turbo run test:watch",
"test:update": "yarn turbo run test:update",
"check-types": "yarn turbo run check-types --continue",
"format": "yarn prettier --write '**/*.{ts,md}'",
"format:head": "git diff --name-only HEAD^ |grep '\\.ts$\\|\\.md$' |xargs yarn prettier --write",
"dev": "CLEAR_DIST_DIR=false yarn turbo run dev --concurrency=17",
"dev": "yarn turbo run dev --concurrency=17",
"repl": "cd packages/rrweb && npm run repl",
"live-stream": "cd packages/rrweb && yarn live-stream",
"lint": "yarn run concurrently --success=all -r -m=1 'yarn run markdownlint docs' 'yarn eslint packages/*/src --ext .ts,.tsx,.js,.jsx,.svelte'",
Expand Down
18 changes: 9 additions & 9 deletions packages/all/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rrweb/all",
"version": "2.0.0-alpha.15",
"version": "2.0.0-alpha.16",
"publishConfig": {
"access": "public"
},
Expand All @@ -10,11 +10,11 @@
],
"scripts": {
"dev": "vite build --watch",
"build": "tsc -noEmit && vite build",
"build": "yarn turbo run prepublish",
"test": "vitest run",
"test:watch": "vitest watch",
"check-types": "tsc -noEmit",
"prepublish": "npm run build",
"prepublish": "tsc -noEmit && vite build",
"lint": "yarn eslint src/**/*.ts"
},
"homepage": "https://github.com/rrweb-io/rrweb/tree/main/packages/@rrweb/all#readme",
Expand Down Expand Up @@ -50,15 +50,15 @@
],
"devDependencies": {
"puppeteer": "^20.9.0",
"vite": "^5.2.8",
"vite-plugin-dts": "^3.8.1",
"vite": "^5.3.1",
"vite-plugin-dts": "^3.9.1",
"vitest": "^1.4.0",
"typescript": "^4.7.3"
"typescript": "^5.4.5"
},
"dependencies": {
"@rrweb/types": "^2.0.0-alpha.15",
"@rrweb/packer": "^2.0.0-alpha.15",
"rrweb": "^2.0.0-alpha.15"
"@rrweb/types": "^2.0.0-alpha.16",
"@rrweb/packer": "^2.0.0-alpha.16",
"rrweb": "^2.0.0-alpha.16"
},
"browserslist": [
"supports es6-class"
Expand Down
14 changes: 7 additions & 7 deletions packages/packer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rrweb/packer",
"version": "2.0.0-alpha.15",
"version": "2.0.0-alpha.16",
"publishConfig": {
"access": "public"
},
Expand All @@ -10,11 +10,11 @@
],
"scripts": {
"dev": "vite build --watch",
"build": "tsc -noEmit && vite build",
"build": "yarn turbo run prepublish",
"test": "vitest run",
"test:watch": "vitest watch",
"check-types": "tsc -noEmit",
"prepublish": "npm run build",
"prepublish": "tsc -noEmit && vite build",
"lint": "yarn eslint src/**/*.ts"
},
"homepage": "https://github.com/rrweb-io/rrweb/tree/main/packages/@rrweb/packer#readme",
Expand Down Expand Up @@ -71,14 +71,14 @@
"package.json"
],
"devDependencies": {
"vite": "^5.2.8",
"vite-plugin-dts": "^3.8.1",
"vite": "^5.3.1",
"vite-plugin-dts": "^3.9.1",
"vitest": "^1.4.0",
"typescript": "^4.7.3"
"typescript": "^5.4.5"
},
"dependencies": {
"fflate": "^0.4.4",
"@rrweb/types": "^2.0.0-alpha.15"
"@rrweb/types": "^2.0.0-alpha.16"
},
"browserslist": [
"supports es6-class"
Expand Down
2 changes: 1 addition & 1 deletion packages/packer/src/pack.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { strFromU8, strToU8, zlibSync } from 'fflate';
import type { PackFn } from '@rrweb/types';
import { eventWithTimeAndPacker, MARK } from './base';
import { type eventWithTimeAndPacker, MARK } from './base';

export const pack: PackFn = (event) => {
const _e: eventWithTimeAndPacker = {
Expand Down
2 changes: 1 addition & 1 deletion packages/packer/src/unpack.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { strFromU8, strToU8, unzlibSync } from 'fflate';
import { eventWithTimeAndPacker, MARK } from './base';
import { type eventWithTimeAndPacker, MARK } from './base';
import type { UnpackFn, eventWithTime } from '@rrweb/types';

export const unpack: UnpackFn = (raw: string) => {
Expand Down
16 changes: 8 additions & 8 deletions packages/plugins/rrweb-plugin-canvas-webrtc-record/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rrweb/rrweb-plugin-canvas-webrtc-record",
"version": "2.0.0-alpha.15",
"version": "2.0.0-alpha.16",
"description": "",
"type": "module",
"main": "./dist/rrweb-plugin-canvas-webrtc-record.umd.cjs",
Expand All @@ -25,9 +25,9 @@
],
"scripts": {
"dev": "vite build --watch",
"build": "tsc -noEmit && vite build",
"build": "yarn turbo run prepublish",
"check-types": "tsc -noEmit",
"prepublish": "npm run build"
"prepublish": "tsc -noEmit && vite build"
},
"repository": {
"type": "git",
Expand All @@ -43,12 +43,12 @@
},
"homepage": "https://github.com/rrweb-io/rrweb#readme",
"devDependencies": {
"rrweb": "^2.0.0-alpha.15",
"typescript": "^4.7.3",
"vite": "^5.2.8",
"vite-plugin-dts": "^3.8.1"
"rrweb": "^2.0.0-alpha.16",
"typescript": "^5.4.5",
"vite": "^5.3.1",
"vite-plugin-dts": "^3.9.1"
},
"peerDependencies": {
"rrweb": "^2.0.0-alpha.15"
"rrweb": "^2.0.0-alpha.16"
}
}
16 changes: 8 additions & 8 deletions packages/plugins/rrweb-plugin-canvas-webrtc-replay/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rrweb/rrweb-plugin-canvas-webrtc-replay",
"version": "2.0.0-alpha.15",
"version": "2.0.0-alpha.16",
"description": "",
"type": "module",
"main": "./dist/rrweb-plugin-canvas-webrtc-replay.umd.cjs",
Expand All @@ -25,9 +25,9 @@
],
"scripts": {
"dev": "vite build --watch",
"build": "tsc -noEmit && vite build",
"build": "yarn turbo run prepublish",
"check-types": "tsc -noEmit",
"prepublish": "npm run build"
"prepublish": "tsc -noEmit && vite build"
},
"repository": {
"type": "git",
Expand All @@ -43,12 +43,12 @@
},
"homepage": "https://github.com/rrweb-io/rrweb#readme",
"devDependencies": {
"rrweb": "^2.0.0-alpha.15",
"typescript": "^4.7.3",
"vite": "^5.2.8",
"vite-plugin-dts": "^3.8.1"
"rrweb": "^2.0.0-alpha.16",
"typescript": "^5.4.5",
"vite": "^5.3.1",
"vite-plugin-dts": "^3.9.1"
},
"peerDependencies": {
"rrweb": "^2.0.0-alpha.15"
"rrweb": "^2.0.0-alpha.16"
}
}
16 changes: 8 additions & 8 deletions packages/plugins/rrweb-plugin-console-record/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rrweb/rrweb-plugin-console-record",
"version": "2.0.0-alpha.15",
"version": "2.0.0-alpha.16",
"description": "",
"type": "module",
"main": "./dist/rrweb-plugin-console-record.umd.cjs",
Expand All @@ -27,9 +27,9 @@
"dev": "vite build --watch",
"test": "vitest run",
"test:watch": "vitest watch",
"build": "tsc -noEmit && vite build",
"build": "yarn turbo run prepublish",
"check-types": "tsc -noEmit",
"prepublish": "npm run build"
"prepublish": "tsc -noEmit && vite build"
},
"repository": {
"type": "git",
Expand All @@ -45,14 +45,14 @@
},
"homepage": "https://github.com/rrweb-io/rrweb#readme",
"devDependencies": {
"rrweb": "^2.0.0-alpha.15",
"typescript": "^4.7.3",
"vite": "^5.2.8",
"vite-plugin-dts": "^3.8.1",
"rrweb": "^2.0.0-alpha.16",
"typescript": "^5.4.5",
"vite": "^5.3.1",
"vite-plugin-dts": "^3.9.1",
"vitest": "^1.4.0",
"puppeteer": "^20.9.0"
},
"peerDependencies": {
"rrweb": "^2.0.0-alpha.15"
"rrweb": "^2.0.0-alpha.16"
}
}
18 changes: 9 additions & 9 deletions packages/plugins/rrweb-plugin-console-replay/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rrweb/rrweb-plugin-console-replay",
"version": "2.0.0-alpha.15",
"version": "2.0.0-alpha.16",
"description": "",
"type": "module",
"main": "./dist/rrweb-plugin-console-replay.umd.cjs",
Expand All @@ -25,9 +25,9 @@
],
"scripts": {
"dev": "vite build --watch",
"build": "tsc -noEmit && vite build",
"build": "yarn turbo run prepublish",
"check-types": "tsc -noEmit",
"prepublish": "npm run build"
"prepublish": "tsc -noEmit && vite build"
},
"repository": {
"type": "git",
Expand All @@ -43,13 +43,13 @@
},
"homepage": "https://github.com/rrweb-io/rrweb#readme",
"devDependencies": {
"@rrweb/rrweb-plugin-console-record": "^2.0.0-alpha.15",
"rrweb": "^2.0.0-alpha.15",
"typescript": "^4.7.3",
"vite": "^5.2.8",
"vite-plugin-dts": "^3.8.1"
"@rrweb/rrweb-plugin-console-record": "^2.0.0-alpha.16",
"rrweb": "^2.0.0-alpha.16",
"typescript": "^5.4.5",
"vite": "^5.3.1",
"vite-plugin-dts": "^3.9.1"
},
"peerDependencies": {
"rrweb": "^2.0.0-alpha.15"
"rrweb": "^2.0.0-alpha.16"
}
}
4 changes: 2 additions & 2 deletions packages/plugins/rrweb-plugin-console-replay/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
LogLevel,
LogData,
type LogLevel,
type LogData,
PLUGIN_NAME,
} from '@rrweb/rrweb-plugin-console-record';
import type { eventWithTime } from '@rrweb/types';
Expand Down
Loading

0 comments on commit 600f9cf

Please sign in to comment.