Skip to content

Commit a51bbe0

Browse files
committed
Revert "Merge upstream from remote rrweb (#26)"
This reverts commit eb1fb6d.
1 parent eb1fb6d commit a51bbe0

File tree

144 files changed

+3209
-7411
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+3209
-7411
lines changed

.changeset/config.json

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,6 @@
99
"commit": false,
1010
"fixed": [
1111
[
12-
"@saola.ai/rrweb-all",
13-
"@saola.ai/replay",
14-
"@saola.ai/record",
15-
"@saola.ai/rrweb-packer",
16-
"@saola.ai/rrweb-utils",
17-
"@saola.ai/rrweb-plugin-console-record",
18-
"@saola.ai/rrweb-plugin-console-replay",
19-
"@saola.ai/rrweb-plugin-sequential-id-record",
20-
"@saola.ai/rrweb-plugin-sequential-id-replay",
21-
"@saola.ai/rrweb-plugin-canvas-webrtc-record",
22-
"@saola.ai/rrweb-plugin-canvas-webrtc-replay",
2312
"@saola.ai/rrweb",
2413
"@saola.ai/rrweb-snapshot",
2514
"@saola.ai/rrdom",

.github/workflows/ci-cd.yml.disabled

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ jobs:
4141
if: failure()
4242
with:
4343
name: image-diff
44-
path: packages/**/__image_snapshots__/__diff_output__/*.png
44+
path: packages/rrweb/test/*/__image_snapshots__/__diff_output__/*.png
4545
if-no-files-found: ignore

.vscode/rrweb-monorepo.code-workspace

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@
4040
"name": "@rrweb/types",
4141
"path": "../packages/types"
4242
},
43-
{
44-
"name": "@rrweb/utils",
45-
"path": "../packages/utils"
46-
},
4743
{
4844
"name": "@rrweb/packer",
4945
"path": "../packages/packer"
@@ -92,14 +88,12 @@
9288
"@rrweb/record",
9389
"@rrweb/replay",
9490
"@rrweb/types",
95-
"@rrweb/utils",
9691
"@rrweb/packer",
9792
"@rrweb/rrweb-plugin-console-record",
9893
"@rrweb/rrweb-plugin-console-replay",
9994
"@rrweb/rrweb-plugin-sequential-id",
10095
"@rrweb/rrweb-plugin-canvas-webrtc-record",
10196
"@rrweb/rrweb-plugin-canvas-webrtc-replay"
102-
],
103-
"typescript.tsdk": " rrweb monorepo/node_modules/typescript/lib"
97+
]
10498
}
10599
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Since we want the record and replay sides to share a strongly typed data structu
6262

6363
1. Fork this repository.
6464
2. Run `yarn install` in the root to install required dependencies for all sub-packages (note: `npm install` is _not_ recommended).
65-
3. Run `yarn build:all` to build all packages and get a stable base, then `yarn dev` in the root to get auto-building for all the sub-packages whenever you modify anything.
65+
3. Run `yarn dev` in the root to get auto-building for all the sub-packages whenever you modify anything.
6666
4. Navigate to one of the sub-packages (in the `packages` folder) where you'd like to make a change.
6767
5. Patch the code and run `yarn test` to run the tests, make sure they pass before you commit anything. Add test cases in order to avoid future regression.
6868
6. If tests are failing, but the change in output is desirable, run `yarn test:update` and carefully commit the changes in test output.

docs/recipes/optimize-storage.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ rrweb.record({
4949
rrweb.record({
5050
emit(event) {},
5151
sampling: {
52-
// Configure which kinds of mouse interaction should be recorded
52+
// Configure which kins of mouse interaction should be recorded
5353
mouseInteraction: {
5454
MouseUp: false,
5555
MouseDown: false,
@@ -78,7 +78,7 @@ import { pack } from '@rrweb/packer';
7878

7979
rrweb.record({
8080
emit(event) {},
81-
packFn: pack,
81+
packFn: rrweb.pack,
8282
});
8383
```
8484

@@ -88,7 +88,7 @@ And you need to pass packer.unpack as the `unpackFn` in replaying.
8888
import { unpack } from '@rrweb/packer';
8989

9090
const replayer = new rrweb.Replayer(events, {
91-
unpackFn: unpack,
91+
unpackFn: rrweb.unpack,
9292
});
9393
```
9494

guide.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ Besides the `rrweb` and `@rrweb/record` packages, rrweb also provides other pack
4747
- [@rrweb/replay](packages/replay): A package for replaying rrweb sessions.
4848
- [@rrweb/packer](packages/packer): A package for packing and unpacking rrweb data.
4949
- [@rrweb/types](packages/types): Contains types shared across rrweb packages.
50-
- [@rrweb/utils](packages/utils): Contains utility functions shared across rrweb packages.
5150
- [web-extension](packages/web-extension): A web extension for rrweb.
5251
- [rrvideo](packages/rrvideo): A package for handling video operations in rrweb.
5352
- [@rrweb/rrweb-plugin-console-record](packages/plugins/rrweb-plugin-console-record): A plugin for recording console logs.

guide.zh_CN.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ rrweb 代码分为录制和回放两部分,大多数时候用户在被录制
4343
- [@rrweb/record](packages/record):一个用于录制 rrweb 会话的包。
4444
- [@rrweb/replay](packages/replay):一个用于回放 rrweb 会话的包。
4545
- [@rrweb/packer](packages/packer):一个用于打包和解包 rrweb 数据的包。
46-
- [@rrweb/types](packages/types):包含 rrweb 包中共享的类型定义。
47-
- [@rrweb/utils](packages/utils):包含 rrweb 包中共享的工具函数。
46+
- [@rrweb/types](packages/types):包含 rrweb 中使用的类型定义。
4847
- [web-extension](packages/web-extension):rrweb 的网页扩展。
4948
- [rrvideo](packages/rrvideo):一个用于处理 rrweb 中视频操作的包。
5049
- [@rrweb/rrweb-plugin-console-record](packages/plugins/rrweb-plugin-console-record):一个用于记录控制台日志的插件。

package.json

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,29 +30,26 @@
3030
"@typescript-eslint/parser": "^5.62.0",
3131
"browserslist": "^4.22.1",
3232
"concurrently": "^7.1.0",
33-
"cross-env": "^7.0.3",
3433
"esbuild-plugin-umd-wrapper": "^2.0.0",
3534
"eslint": "^8.53.0",
36-
"eslint-plugin-compat": "^5.0.0",
35+
"eslint-plugin-compat": "^4.2.0",
3736
"eslint-plugin-jest": "^27.6.0",
3837
"eslint-plugin-tsdoc": "^0.2.17",
39-
"happy-dom": "^14.12.0",
4038
"markdownlint": "^0.25.1",
4139
"markdownlint-cli": "^0.31.1",
4240
"prettier": "2.8.4",
43-
"turbo": "^2.0.4",
44-
"typescript": "^5.4.5"
41+
"turbo": "^2.0.3",
42+
"typescript": "^4.9.5"
4543
},
4644
"scripts": {
47-
"build:all": "NODE_OPTIONS='--max-old-space-size=4096' yarn turbo run prepublish",
48-
"references:update": "yarn workspaces-to-typescript-project-references",
49-
"test": "yarn turbo run test --concurrency=1 --continue",
45+
"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'",
46+
"test": "yarn run concurrently --success=all -r -m=1 'yarn workspaces-to-typescript-project-references --check' 'yarn turbo run test --concurrency=1 --continue'",
5047
"test:watch": "yarn turbo run test:watch",
5148
"test:update": "yarn turbo run test:update",
5249
"check-types": "yarn turbo run check-types --continue",
5350
"format": "yarn prettier --write '**/*.{ts,md}'",
5451
"format:head": "git diff --name-only HEAD^ |grep '\\.ts$\\|\\.md$' |xargs yarn prettier --write",
55-
"dev": "yarn turbo run dev --concurrency=18",
52+
"dev": "CLEAR_DIST_DIR=false yarn turbo run dev --concurrency=17",
5653
"repl": "cd packages/rrweb && npm run repl",
5754
"live-stream": "cd packages/rrweb && yarn live-stream",
5855
"lint": "yarn run concurrently --success=all -r -m=1 'yarn run markdownlint docs' 'yarn eslint packages/*/src --ext .ts,.tsx,.js,.jsx,.svelte'",
@@ -61,8 +58,7 @@
6158
},
6259
"resolutions": {
6360
"**/cssom": "https://registry.npmjs.org/rrweb-cssom/-/rrweb-cssom-0.6.0.tgz",
64-
"**/@types/dom-webcodecs": "0.1.5",
65-
"typescript": "^5.4.5"
61+
"**/@types/dom-webcodecs": "0.1.5"
6662
},
6763
"browserslist": [
6864
"defaults",

packages/all/CHANGELOG.md

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,5 @@
11
# @rrweb/all
22

3-
## 2.0.13
4-
5-
### Patch Changes
6-
7-
- Merge from rrweb remote upstream
8-
9-
- Updated dependencies []:
10-
- @saola.ai/[email protected]
11-
- @saola.ai/[email protected]
12-
- @saola.ai/[email protected]
13-
14-
## 2.0.0-alpha.17
15-
16-
### Patch Changes
17-
18-
- [`db20184`](https://github.com/rrweb-io/rrweb/commit/db201841accd2b5df3cd7c88779aa62ab158501c) Thanks [@Juice10](https://github.com/Juice10)! - Keep package version in sync with other packages
19-
20-
- Updated dependencies [[`db20184`](https://github.com/rrweb-io/rrweb/commit/db201841accd2b5df3cd7c88779aa62ab158501c), [`40bbc25`](https://github.com/rrweb-io/rrweb/commit/40bbc25fc287badc317a53f2d3f21b1c9f2b211b), [`68076b7`](https://github.com/rrweb-io/rrweb/commit/68076b724ff19d198d4f351a05063b85e1705a8c), [`8059d96`](https://github.com/rrweb-io/rrweb/commit/8059d9695146626b102b2059a3a9b932d5f598f6), [`335639a`](https://github.com/rrweb-io/rrweb/commit/335639af9b0ce7f70eb0f38ce113d877c7325158), [`be6bf52`](https://github.com/rrweb-io/rrweb/commit/be6bf52c248c35de1b3491e3a3440ff61f876414)]:
21-
- @rrweb/packer@2.0.0-alpha.17
22-
23-
- @rrweb/types@2.0.0-alpha.17
24-
253
## 2.0.0
264

275
### Major Changes

packages/all/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@saola.ai/rrweb-all",
3-
"version": "2.0.13",
3+
"version": "2.0.0",
44
"publishConfig": {
55
"access": "public"
66
},
@@ -10,11 +10,11 @@
1010
],
1111
"scripts": {
1212
"dev": "vite build --watch",
13-
"build": "yarn turbo run prepublish",
13+
"build": "tsc -noEmit && vite build",
1414
"test": "vitest run",
1515
"test:watch": "vitest watch",
1616
"check-types": "tsc -noEmit",
17-
"prepublish": "tsc -noEmit && vite build",
17+
"prepublish": "npm run build",
1818
"lint": "yarn eslint src/**/*.ts"
1919
},
2020
"homepage": "https://github.com/rrweb-io/rrweb/tree/main/packages/@rrweb/all#readme",
@@ -50,15 +50,15 @@
5050
],
5151
"devDependencies": {
5252
"puppeteer": "^20.9.0",
53-
"vite": "^5.3.1",
54-
"vite-plugin-dts": "^3.9.1",
53+
"vite": "^5.2.8",
54+
"vite-plugin-dts": "^3.8.1",
5555
"vitest": "^1.4.0",
56-
"typescript": "^5.4.5"
56+
"typescript": "^4.7.3"
5757
},
5858
"dependencies": {
59-
"@saola.ai/rrweb-types": "^2.0.13",
60-
"@saola.ai/rrweb-packer": "^2.0.13",
61-
"@saola.ai/rrweb": "^2.0.13"
59+
"@saola.ai/rrweb-types": "^2.0.0",
60+
"@saola.ai/rrweb-packer": "^2.0.0",
61+
"@saola.ai/rrweb": "^2.0.0"
6262
},
6363
"browserslist": [
6464
"supports es6-class"

0 commit comments

Comments
 (0)