Skip to content

Commit

Permalink
Merge branch 'master' into fix/console-bundle-size
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Dec 6, 2024
2 parents 2e79d27 + 1db7a99 commit 40f86e8
Show file tree
Hide file tree
Showing 74 changed files with 505 additions and 306 deletions.
5 changes: 5 additions & 0 deletions .changeset/moody-experts-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rrweb/record": patch
---

Correctly detect when angular has wrapped mutation observer
8 changes: 8 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"calm-bulldogs-speak",
"calm-oranges-sin",
"chatty-cherries-train",
"chilled-penguins-sin",
"clean-plants-play",
"clean-shrimps-lay",
"cold-eyes-hunt",
Expand Down Expand Up @@ -90,11 +91,13 @@
"lovely-pears-cross",
"lovely-students-boil",
"mean-tips-impress",
"metal-mugs-mate",
"mighty-ads-worry",
"mighty-bulldogs-begin",
"mighty-frogs-sparkle",
"modern-doors-watch",
"moody-dots-refuse",
"moody-experts-build",
"nasty-scissors-reply",
"nervous-buses-pump",
"nervous-kiwis-nail",
Expand All @@ -106,6 +109,7 @@
"no-neg-lookbehind",
"old-dryers-hide",
"perfect-bulldogs-punch",
"perfect-dolls-grab",
"polite-olives-wave",
"pretty-meals-flash",
"pretty-plums-rescue",
Expand All @@ -127,6 +131,8 @@
"silly-knives-chew",
"silver-pots-sit",
"silver-windows-float",
"simplifify-hover-replacement",
"single-style-capture",
"six-llamas-brush",
"sixty-impalas-laugh",
"skip-mask-check-on-leaf-elements",
Expand All @@ -137,10 +143,12 @@
"smart-geckos-cover",
"smooth-papayas-boil",
"smooth-poems-bake",
"soft-worms-tan",
"spotty-bees-destroy",
"stupid-ghosts-help",
"swift-dancers-rest",
"swift-peas-film",
"swift-pots-search",
"thin-vans-applaud",
"thirty-baboons-punch",
"three-baboons-bow",
Expand Down
11 changes: 11 additions & 0 deletions .changeset/soft-worms-tan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"@rrweb/all": patch
"rrdom-nodejs": patch
"rrdom": patch
"rrweb-snapshot": major
"rrweb": patch
"@rrweb/rrweb-plugin-canvas-webrtc-record": patch
---

`NodeType` enum was moved from rrweb-snapshot to @rrweb/types
The following types where moved from rrweb-snapshot to @rrweb/types: `documentNode`, `documentTypeNode`, `legacyAttributes`, `textNode`, `cdataNode`, `commentNode`, `elementNode`, `serializedNode`, `serializedNodeWithId`, `serializedElementNodeWithId`, `serializedTextNodeWithId`, `IMirror`, `INode`, `mediaAttributes`, `attributes` and `DataURLOptions`
11 changes: 11 additions & 0 deletions packages/all/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @rrweb/all

## 2.0.0-alpha.18

### Patch Changes

- [#1593](https://github.com/rrweb-io/rrweb/pull/1593) [`5a78938`](https://github.com/rrweb-io/rrweb/commit/5a789385a341311ba327a768fe0e2f0f2f5002ee) Thanks [@daibhin](https://github.com/daibhin)! - `NodeType` enum was moved from rrweb-snapshot to @rrweb/types
The following types where moved from rrweb-snapshot to @rrweb/types: `documentNode`, `documentTypeNode`, `legacyAttributes`, `textNode`, `cdataNode`, `commentNode`, `elementNode`, `serializedNode`, `serializedNodeWithId`, `serializedElementNodeWithId`, `serializedTextNodeWithId`, `IMirror`, `INode`, `mediaAttributes`, `attributes` and `DataURLOptions`
- Updated dependencies [[`04ee6ed`](https://github.com/rrweb-io/rrweb/commit/04ee6eda57157f0e04f18f907d8f3e59ababc753), [`5fbb904`](https://github.com/rrweb-io/rrweb/commit/5fbb904edb653f3da17e6775ee438d81ef0bba83), [`5a78938`](https://github.com/rrweb-io/rrweb/commit/5a789385a341311ba327a768fe0e2f0f2f5002ee), [`53b83bb`](https://github.com/rrweb-io/rrweb/commit/53b83bb037f9cb30c93179548f436ed776f143ab)]:
- [email protected]
- @rrweb/types@2.0.0-alpha.18
- @rrweb/packer@2.0.0-alpha.18

## 2.0.0-alpha.17

### Patch Changes
Expand Down
8 changes: 4 additions & 4 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.17",
"version": "2.0.0-alpha.18",
"publishConfig": {
"access": "public"
},
Expand Down Expand Up @@ -56,9 +56,9 @@
"typescript": "^5.4.5"
},
"dependencies": {
"@rrweb/types": "^2.0.0-alpha.17",
"@rrweb/packer": "^2.0.0-alpha.17",
"rrweb": "^2.0.0-alpha.17"
"@rrweb/types": "^2.0.0-alpha.18",
"@rrweb/packer": "^2.0.0-alpha.18",
"rrweb": "^2.0.0-alpha.18"
},
"browserslist": [
"supports es6-class"
Expand Down
2 changes: 1 addition & 1 deletion packages/all/test/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { NodeType } from 'rrweb-snapshot';
import { expect } from 'vitest';
import {
NodeType,
EventType,
IncrementalSource,
eventWithTime,
Expand Down
7 changes: 7 additions & 0 deletions packages/packer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @rrweb/packer

## 2.0.0-alpha.18

### Patch Changes

- Updated dependencies []:
- @rrweb/types@2.0.0-alpha.18

## 2.0.0-alpha.17

### Patch Changes
Expand Down
4 changes: 2 additions & 2 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.17",
"version": "2.0.0-alpha.18",
"publishConfig": {
"access": "public"
},
Expand Down Expand Up @@ -78,7 +78,7 @@
},
"dependencies": {
"fflate": "^0.4.4",
"@rrweb/types": "^2.0.0-alpha.17"
"@rrweb/types": "^2.0.0-alpha.18"
},
"browserslist": [
"supports es6-class"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @rrweb/rrweb-plugin-canvas-webrtc-record

## 2.0.0-alpha.18

### Patch Changes

- [#1593](https://github.com/rrweb-io/rrweb/pull/1593) [`5a78938`](https://github.com/rrweb-io/rrweb/commit/5a789385a341311ba327a768fe0e2f0f2f5002ee) Thanks [@daibhin](https://github.com/daibhin)! - `NodeType` enum was moved from rrweb-snapshot to @rrweb/types
The following types where moved from rrweb-snapshot to @rrweb/types: `documentNode`, `documentTypeNode`, `legacyAttributes`, `textNode`, `cdataNode`, `commentNode`, `elementNode`, `serializedNode`, `serializedNodeWithId`, `serializedElementNodeWithId`, `serializedTextNodeWithId`, `IMirror`, `INode`, `mediaAttributes`, `attributes` and `DataURLOptions`
- Updated dependencies [[`04ee6ed`](https://github.com/rrweb-io/rrweb/commit/04ee6eda57157f0e04f18f907d8f3e59ababc753), [`5fbb904`](https://github.com/rrweb-io/rrweb/commit/5fbb904edb653f3da17e6775ee438d81ef0bba83), [`5a78938`](https://github.com/rrweb-io/rrweb/commit/5a789385a341311ba327a768fe0e2f0f2f5002ee), [`53b83bb`](https://github.com/rrweb-io/rrweb/commit/53b83bb037f9cb30c93179548f436ed776f143ab)]:
- [email protected]

## 2.0.0-alpha.17

### Patch Changes
Expand Down
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.17",
"version": "2.0.0-alpha.18",
"description": "",
"type": "module",
"main": "./dist/rrweb-plugin-canvas-webrtc-record.umd.cjs",
Expand Down Expand Up @@ -43,12 +43,12 @@
},
"homepage": "https://github.com/rrweb-io/rrweb#readme",
"devDependencies": {
"rrweb": "^2.0.0-alpha.17",
"rrweb": "^2.0.0-alpha.18",
"typescript": "^5.4.5",
"vite": "^5.3.1",
"vite-plugin-dts": "^3.9.1"
},
"peerDependencies": {
"rrweb": "^2.0.0-alpha.17"
"rrweb": "^2.0.0-alpha.18"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import type { Mirror } from 'rrweb-snapshot';
import SimplePeer from 'simple-peer-light';
import type { RecordPlugin, ICrossOriginIframeMirror } from '@rrweb/types';
import type {
RecordPlugin,
ICrossOriginIframeMirror,
IMirror,
} from '@rrweb/types';
import type { WebRTCDataChannel } from './types';

export const PLUGIN_NAME = 'rrweb/canvas-webrtc@1';
Expand All @@ -25,7 +28,7 @@ export type CrossOriginIframeMessageEventContent = {

export class RRWebPluginCanvasWebRTCRecord {
private peer: SimplePeer.Instance | null = null;
private mirror: Mirror | undefined;
private mirror: IMirror<Node> | undefined;
private crossOriginIframeMirror: ICrossOriginIframeMirror | undefined;
private streamMap: Map<number, MediaStream> = new Map();
private incomingStreams = new Set<MediaStream>();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @rrweb/rrweb-plugin-canvas-webrtc-replay

## 2.0.0-alpha.18

### Patch Changes

- Updated dependencies [[`04ee6ed`](https://github.com/rrweb-io/rrweb/commit/04ee6eda57157f0e04f18f907d8f3e59ababc753), [`5fbb904`](https://github.com/rrweb-io/rrweb/commit/5fbb904edb653f3da17e6775ee438d81ef0bba83), [`5a78938`](https://github.com/rrweb-io/rrweb/commit/5a789385a341311ba327a768fe0e2f0f2f5002ee), [`53b83bb`](https://github.com/rrweb-io/rrweb/commit/53b83bb037f9cb30c93179548f436ed776f143ab)]:
- [email protected]

## 2.0.0-alpha.17

### Patch Changes
Expand Down
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.17",
"version": "2.0.0-alpha.18",
"description": "",
"type": "module",
"main": "./dist/rrweb-plugin-canvas-webrtc-replay.umd.cjs",
Expand Down Expand Up @@ -43,12 +43,12 @@
},
"homepage": "https://github.com/rrweb-io/rrweb#readme",
"devDependencies": {
"rrweb": "^2.0.0-alpha.17",
"rrweb": "^2.0.0-alpha.18",
"typescript": "^5.4.5",
"vite": "^5.3.1",
"vite-plugin-dts": "^3.9.1"
},
"peerDependencies": {
"rrweb": "^2.0.0-alpha.17"
"rrweb": "^2.0.0-alpha.18"
}
}
7 changes: 7 additions & 0 deletions packages/plugins/rrweb-plugin-console-record/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @rrweb/rrweb-plugin-console-record

## 2.0.0-alpha.18

### Patch Changes

- Updated dependencies [[`04ee6ed`](https://github.com/rrweb-io/rrweb/commit/04ee6eda57157f0e04f18f907d8f3e59ababc753), [`5fbb904`](https://github.com/rrweb-io/rrweb/commit/5fbb904edb653f3da17e6775ee438d81ef0bba83), [`5a78938`](https://github.com/rrweb-io/rrweb/commit/5a789385a341311ba327a768fe0e2f0f2f5002ee), [`53b83bb`](https://github.com/rrweb-io/rrweb/commit/53b83bb037f9cb30c93179548f436ed776f143ab)]:
- [email protected]

## 2.0.0-alpha.17

### Patch Changes
Expand Down
4 changes: 2 additions & 2 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.17",
"version": "2.0.0-alpha.18",
"description": "",
"type": "module",
"main": "./dist/rrweb-plugin-console-record.umd.cjs",
Expand Down Expand Up @@ -45,7 +45,7 @@
},
"homepage": "https://github.com/rrweb-io/rrweb#readme",
"devDependencies": {
"rrweb": "^2.0.0-alpha.17",
"rrweb": "^2.0.0-alpha.18",
"typescript": "^5.4.5",
"vite": "^5.3.1",
"vite-plugin-dts": "^3.9.1",
Expand Down
7 changes: 7 additions & 0 deletions packages/plugins/rrweb-plugin-console-replay/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @rrweb/rrweb-plugin-console-replay

## 2.0.0-alpha.18

### Patch Changes

- Updated dependencies [[`04ee6ed`](https://github.com/rrweb-io/rrweb/commit/04ee6eda57157f0e04f18f907d8f3e59ababc753), [`5fbb904`](https://github.com/rrweb-io/rrweb/commit/5fbb904edb653f3da17e6775ee438d81ef0bba83), [`5a78938`](https://github.com/rrweb-io/rrweb/commit/5a789385a341311ba327a768fe0e2f0f2f5002ee), [`53b83bb`](https://github.com/rrweb-io/rrweb/commit/53b83bb037f9cb30c93179548f436ed776f143ab)]:
- [email protected]

## 2.0.0-alpha.17

### Patch Changes
Expand Down
8 changes: 4 additions & 4 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.17",
"version": "2.0.0-alpha.18",
"description": "",
"type": "module",
"main": "./dist/rrweb-plugin-console-replay.umd.cjs",
Expand Down Expand Up @@ -43,13 +43,13 @@
},
"homepage": "https://github.com/rrweb-io/rrweb#readme",
"devDependencies": {
"@rrweb/rrweb-plugin-console-record": "^2.0.0-alpha.17",
"rrweb": "^2.0.0-alpha.17",
"@rrweb/rrweb-plugin-console-record": "^2.0.0-alpha.18",
"rrweb": "^2.0.0-alpha.18",
"typescript": "^5.4.5",
"vite": "^5.3.1",
"vite-plugin-dts": "^3.9.1"
},
"peerDependencies": {
"rrweb": "^2.0.0-alpha.17"
"rrweb": "^2.0.0-alpha.18"
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @rrweb/rrweb-plugin-sequential-id-record

## 2.0.0-alpha.18

### Patch Changes

- Updated dependencies [[`04ee6ed`](https://github.com/rrweb-io/rrweb/commit/04ee6eda57157f0e04f18f907d8f3e59ababc753), [`5fbb904`](https://github.com/rrweb-io/rrweb/commit/5fbb904edb653f3da17e6775ee438d81ef0bba83), [`5a78938`](https://github.com/rrweb-io/rrweb/commit/5a789385a341311ba327a768fe0e2f0f2f5002ee), [`53b83bb`](https://github.com/rrweb-io/rrweb/commit/53b83bb037f9cb30c93179548f436ed776f143ab)]:
- [email protected]

## 2.0.0-alpha.17

### Patch Changes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rrweb/rrweb-plugin-sequential-id-record",
"version": "2.0.0-alpha.17",
"version": "2.0.0-alpha.18",
"description": "",
"type": "module",
"main": "./dist/rrweb-plugin-sequential-id-record.umd.cjs",
Expand Down Expand Up @@ -43,12 +43,12 @@
},
"homepage": "https://github.com/rrweb-io/rrweb#readme",
"devDependencies": {
"rrweb": "^2.0.0-alpha.17",
"rrweb": "^2.0.0-alpha.18",
"typescript": "^5.4.5",
"vite": "^5.3.1",
"vite-plugin-dts": "^3.9.1"
},
"peerDependencies": {
"rrweb": "^2.0.0-alpha.17"
"rrweb": "^2.0.0-alpha.18"
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @rrweb/rrweb-plugin-sequential-id-replay

## 2.0.0-alpha.18

### Patch Changes

- Updated dependencies [[`04ee6ed`](https://github.com/rrweb-io/rrweb/commit/04ee6eda57157f0e04f18f907d8f3e59ababc753), [`5fbb904`](https://github.com/rrweb-io/rrweb/commit/5fbb904edb653f3da17e6775ee438d81ef0bba83), [`5a78938`](https://github.com/rrweb-io/rrweb/commit/5a789385a341311ba327a768fe0e2f0f2f5002ee), [`53b83bb`](https://github.com/rrweb-io/rrweb/commit/53b83bb037f9cb30c93179548f436ed776f143ab)]:
- [email protected]

## 2.0.0-alpha.17

### Patch Changes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rrweb/rrweb-plugin-sequential-id-replay",
"version": "2.0.0-alpha.17",
"version": "2.0.0-alpha.18",
"description": "",
"type": "module",
"main": "./dist/rrweb-plugin-sequential-id-replay.umd.cjs",
Expand Down Expand Up @@ -43,13 +43,13 @@
},
"homepage": "https://github.com/rrweb-io/rrweb#readme",
"devDependencies": {
"@rrweb/rrweb-plugin-sequential-id-record": "^2.0.0-alpha.17",
"rrweb": "^2.0.0-alpha.17",
"@rrweb/rrweb-plugin-sequential-id-record": "^2.0.0-alpha.18",
"rrweb": "^2.0.0-alpha.18",
"typescript": "^5.4.5",
"vite": "^5.3.1",
"vite-plugin-dts": "^3.9.1"
},
"peerDependencies": {
"rrweb": "^2.0.0-alpha.17"
"rrweb": "^2.0.0-alpha.18"
}
}
10 changes: 10 additions & 0 deletions packages/record/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @rrweb/record

## 2.0.0-alpha.18

### Patch Changes

- [#1597](https://github.com/rrweb-io/rrweb/pull/1597) [`bd9eb70`](https://github.com/rrweb-io/rrweb/commit/bd9eb70629aeb5970f6188025f184ff4b0d5dcd4) Thanks [@pauldambra](https://github.com/pauldambra)! - Correctly detect when angular has wrapped mutation observer

- Updated dependencies [[`04ee6ed`](https://github.com/rrweb-io/rrweb/commit/04ee6eda57157f0e04f18f907d8f3e59ababc753), [`5fbb904`](https://github.com/rrweb-io/rrweb/commit/5fbb904edb653f3da17e6775ee438d81ef0bba83), [`5a78938`](https://github.com/rrweb-io/rrweb/commit/5a789385a341311ba327a768fe0e2f0f2f5002ee), [`53b83bb`](https://github.com/rrweb-io/rrweb/commit/53b83bb037f9cb30c93179548f436ed776f143ab)]:
- [email protected]
- @rrweb/types@2.0.0-alpha.18

## 2.0.0-alpha.17

### Patch Changes
Expand Down
Loading

0 comments on commit 40f86e8

Please sign in to comment.