Skip to content

Commit 7fd13fa

Browse files
committed
[HIG-2649] use yarn v3 workspace dependencies (#91)
allows us to only publish `@highlight-run/rrweb` while using the rest of the workspace packages as internal dependencies. makes it easier to manage versions because it allows versioning `@highlight-run/rrweb` alone.
1 parent 47b7f30 commit 7fd13fa

File tree

10 files changed

+813
-13
lines changed

10 files changed

+813
-13
lines changed

.gitignore

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,14 @@ dist
2020

2121
# `.yarn/install-state.gz` is an optimization file that you shouldn't ever have to commit.
2222
# It simply stores the exact state of your project so that the next commands can boot without having to resolve your workspaces all over again.
23-
.yarn/install-state.gz
23+
.yarn/install-state.gz
24+
25+
.pnp.*
26+
.yarn/*
27+
!.yarn/patches
28+
!.yarn/plugins
29+
!.yarn/releases
30+
!.yarn/sdks
31+
!.yarn/versions
32+
33+

.yarn/releases/yarn-berry.cjs

Lines changed: 783 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
yarnPath: '.yarn/releases/yarn-1.23.0-20220130.1630.cjs'
1+
nodeLinker: node-modules
2+
3+
yarnPath: .yarn/releases/yarn-berry.cjs

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"workspaces": [
1818
"packages/*"
1919
],
20+
"packageManager": "[email protected]",
2021
"devDependencies": {
2122
"@monorepo-utils/workspaces-to-typescript-project-references": "^2.8.2",
2223
"@typescript-eslint/eslint-plugin": "^5.25.0",
@@ -44,9 +45,6 @@
4445
"lint": "yarn run concurrently --success=all -r -m=1 'yarn run markdownlint docs' 'yarn eslint packages/*/src --ext .ts,.tsx,.js,.jsx,.svelte'",
4546
"lint:report": "yarn eslint --output-file eslint_report.json --format json packages/*/src --ext .ts,.tsx,.js,.jsx"
4647
},
47-
"resolutions": {
48-
"**/jsdom/cssom": "https://registry.npmjs.org/rrweb-cssom/-/rrweb-cssom-0.6.0.tgz"
49-
},
5048
"browserslist": [
5149
"defaults",
5250
"not op_mini all"

packages/rrdom-nodejs/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@highlight-run/rrdom-nodejs",
33
"version": "0.1.8",
4+
"private": true,
45
"scripts": {
56
"dev": "rollup -c -w",
67
"bundle": "rollup --config",
@@ -46,8 +47,8 @@
4647
"typescript": "^4.7.3"
4748
},
4849
"dependencies": {
49-
"@highlight-run/rrdom": "0.1.17",
50-
"@highlight-run/rrweb-snapshot": "1.1.31",
50+
"@highlight-run/rrdom": "workspace:*",
51+
"@highlight-run/rrweb-snapshot": "workspace:*",
5152
"cssom": "^0.5.0",
5253
"cssstyle": "^2.3.0",
5354
"nwsapi": "^2.2.0"

packages/rrdom/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@highlight-run/rrdom",
33
"version": "0.1.18",
4+
"private": true,
45
"homepage": "https://github.com/rrweb-io/rrweb/tree/main/packages/rrdom#readme",
56
"license": "MIT",
67
"main": "lib/rrdom.js",
@@ -46,6 +47,6 @@
4647
"typescript": "^4.7.3"
4748
},
4849
"dependencies": {
49-
"@highlight-run/rrweb-snapshot": "1.1.31"
50+
"@highlight-run/rrweb-snapshot": "workspace:*"
5051
}
5152
}

packages/rrweb-player/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
{
22
"name": "@highlight-run/rrweb-player",
33
"version": "1.0.1",
4+
"private": true,
45
"devDependencies": {
56
"@rollup/plugin-commonjs": "^22.0.0",
67
"@rollup/plugin-node-resolve": "^13.2.1",
78
"@types/offscreencanvas": "^2019.6.4",
9+
"eslint": "^8.23.1",
810
"eslint-config-google": "^0.14.0",
911
"eslint-plugin-svelte3": "^4.0.0",
1012
"postcss-easy-import": "^3.0.0",
@@ -23,7 +25,7 @@
2325
"typescript": "^4.7.3"
2426
},
2527
"dependencies": {
26-
"@highlight-run/rrweb": "2.1.10",
28+
"@highlight-run/rrweb": "workspace:*",
2729
"@tsconfig/svelte": "^1.0.1"
2830
},
2931
"scripts": {

packages/rrweb-snapshot/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@highlight-run/rrweb-snapshot",
33
"version": "2.0.1",
4+
"private": true,
45
"description": "rrweb's component to take a snapshot of DOM, aka DOM serializer",
56
"scripts": {
67
"prepare": "npm run prepack",
@@ -46,6 +47,7 @@
4647
"@types/node": "^10.11.3",
4748
"@types/puppeteer": "^1.12.4",
4849
"cross-env": "^5.2.0",
50+
"eslint": "^8.23.1",
4951
"jest": "^27.2.4",
5052
"jest-snapshot": "^23.6.0",
5153
"jsdom": "^16.4.0",

packages/rrweb/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@highlight-run/rrweb",
3-
"version": "2.1.10",
3+
"version": "2.2.0",
44
"description": "record and replay the web",
55
"scripts": {
66
"prepare": "npm run prepack",
@@ -58,6 +58,7 @@
5858
"construct-style-sheets-polyfill": "^3.1.0",
5959
"cross-env": "^5.2.0",
6060
"esbuild": "^0.14.38",
61+
"eslint": "^8.23.1",
6162
"fast-mhtml": "^1.1.9",
6263
"identity-obj-proxy": "^3.0.0",
6364
"ignore-styles": "^5.0.1",
@@ -80,8 +81,8 @@
8081
"typescript": "^4.7.3"
8182
},
8283
"dependencies": {
83-
"@highlight-run/rrdom": "0.1.17",
84-
"@highlight-run/rrweb-snapshot": "1.1.31",
84+
"@highlight-run/rrdom": "workspace:*",
85+
"@highlight-run/rrweb-snapshot": "workspace:*",
8586
"@types/css-font-loading-module": "0.0.7",
8687
"@xstate/fsm": "^1.4.0",
8788
"base64-arraybuffer": "^1.0.1",

packages/rrweb/src/record/observers/canvas/serialize-args.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export function serializeArg(
125125
};
126126
}
127127

128-
return value as CanvasArg;
128+
return value as never as CanvasArg;
129129
}
130130

131131
export const serializeArgs = (

0 commit comments

Comments
 (0)