From 0276277315e9bb5cba75a0ac5fbc02276ac4ff16 Mon Sep 17 00:00:00 2001 From: Miriam Budayr <35577323+miriambudayr@users.noreply.github.com> Date: Wed, 3 Jul 2024 14:56:40 -0500 Subject: [PATCH 1/5] add stack-utils to all packages that inline the shared folder --- package.json | 4 ++++ packages/cypress/package.json | 2 ++ packages/jest/package.json | 2 ++ packages/puppeteer/package.json | 2 ++ packages/replayio/package.json | 2 ++ packages/test-utils/package.json | 2 ++ yarn.lock | 12 ++++++++++++ 7 files changed, 26 insertions(+) diff --git a/package.json b/package.json index 4171a324..69d8441c 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ "@changesets/changelog-github": "^0.5.0", "@changesets/cli": "^2.27.5", "@replayio/protocol": "^0.73.0", + "@types/stack-utils": "^2.0.3", "@types/ws": "^8", "prettier": "^2.7.1", "turbo": "^2.0.5", @@ -41,5 +42,8 @@ "@jest/environment@npm:^27.5.1": "patch:@jest/environment@npm%3A28.1.3#~/.yarn/patches/@jest-environment-npm-28.1.3-506a81a227.patch", "@jest/environment@npm:^28.1.3": "patch:@jest/environment@npm%3A28.1.3#~/.yarn/patches/@jest-environment-npm-28.1.3-506a81a227.patch", "superstruct": "patch:superstruct@npm%3A1.0.4#~/.yarn/patches/superstruct-npm-1.0.4-44d328b887.patch" + }, + "dependencies": { + "stack-utils": "^2.0.6" } } diff --git a/packages/cypress/package.json b/packages/cypress/package.json index babe86cc..682fcf2b 100644 --- a/packages/cypress/package.json +++ b/packages/cypress/package.json @@ -40,6 +40,7 @@ "@types/debug": "^4.1.7", "@types/node": "^20.11.27", "@types/semver": "^7.3.13", + "@types/stack-utils": "^2.0.3", "@types/uuid": "^9.0.1", "@types/ws": "^8.5.10", "cypress": "^13.11.0", @@ -57,6 +58,7 @@ "p-map": "^4.0.0", "semver": "^7.5.2", "sha-1": "^1.0.0", + "stack-utils": "^2.0.6", "superstruct": "^1.0.4", "terminate": "^2.6.1", "txml": "^3.2.5", diff --git a/packages/jest/package.json b/packages/jest/package.json index d4cfb16f..9604111e 100644 --- a/packages/jest/package.json +++ b/packages/jest/package.json @@ -41,6 +41,7 @@ "@replay-cli/tsconfig": "workspace:^", "@replayio/test-utils": "workspace:^", "@types/node": "^20.11.27", + "@types/stack-utils": "^2.0.3", "typescript": "^5.5.2" }, "dependencies": { @@ -59,6 +60,7 @@ "node-fetch": "^2.6.7", "p-map": "^4.0.0", "sha-1": "^1.0.0", + "stack-utils": "^2.0.6", "superstruct": "^1.0.4", "undici": "^5.28.4", "uuid": "^8.3.2", diff --git a/packages/puppeteer/package.json b/packages/puppeteer/package.json index 3dd0433c..fce84f4a 100644 --- a/packages/puppeteer/package.json +++ b/packages/puppeteer/package.json @@ -24,6 +24,7 @@ "@replay-cli/tsconfig": "workspace:^", "@replayio/test-utils": "workspace:^", "@types/node": "^20.11.27", + "@types/stack-utils": "^2.0.3", "typescript": "^5.5.2" }, "repository": { @@ -47,6 +48,7 @@ "node-fetch": "^2.6.7", "p-map": "^4.0.0", "sha-1": "^1.0.0", + "stack-utils": "^2.0.6", "superstruct": "^1.0.4", "undici": "^5.28.4", "uuid": "^8.3.2", diff --git a/packages/replayio/package.json b/packages/replayio/package.json index 36881149..c3ca3ad0 100644 --- a/packages/replayio/package.json +++ b/packages/replayio/package.json @@ -52,6 +52,7 @@ "pretty-ms": "^7.0.1", "query-registry": "^2.6.0", "semver": "^7.5.4", + "stack-utils": "^2.0.6", "strip-ansi": "^6.0.1", "superstruct": "^1.0.4", "table": "^6.8.2", @@ -69,6 +70,7 @@ "@types/fs-extra": "latest", "@types/inquirer": "^9", "@types/jest": "^28.1.5", + "@types/stack-utils": "^2.0.3", "@types/table": "^6.3.2", "@types/ws": "^8.5.10", "jest": "^28.1.3", diff --git a/packages/test-utils/package.json b/packages/test-utils/package.json index 9dca75bb..9ff38d79 100644 --- a/packages/test-utils/package.json +++ b/packages/test-utils/package.json @@ -38,6 +38,7 @@ "query-registry": "^2.6.0", "semver": "^7.5.4", "sha-1": "^1.0.0", + "stack-utils": "^2.0.6", "superstruct": "^1.0.4", "undici": "^5.28.4", "uuid": "^8.3.2", @@ -51,6 +52,7 @@ "@replay-cli/tsconfig": "workspace:^", "@types/debug": "^4.1.7", "@types/node-fetch": "^2.6.2", + "@types/stack-utils": "^2.0.3", "typescript": "^5.5.2" }, "@replay-cli/pkg-build": { diff --git a/yarn.lock b/yarn.lock index 8dbd5938..feb7b24f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3499,6 +3499,7 @@ __metadata: "@types/debug": "npm:^4.1.7" "@types/node": "npm:^20.11.27" "@types/semver": "npm:^7.3.13" + "@types/stack-utils": "npm:^2.0.3" "@types/uuid": "npm:^9.0.1" "@types/ws": "npm:^8.5.10" chalk: "npm:^4.1.2" @@ -3513,6 +3514,7 @@ __metadata: p-map: "npm:^4.0.0" semver: "npm:^7.5.2" sha-1: "npm:^1.0.0" + stack-utils: "npm:^2.0.6" superstruct: "npm:^1.0.4" terminate: "npm:^2.6.1" txml: "npm:^3.2.5" @@ -3540,6 +3542,7 @@ __metadata: "@replay-cli/tsconfig": "workspace:^" "@replayio/test-utils": "workspace:^" "@types/node": "npm:^20.11.27" + "@types/stack-utils": "npm:^2.0.3" debug: "npm:^4.3.4" fs-extra: "npm:^11.2.0" is-uuid: "npm:^1.0.2" @@ -3552,6 +3555,7 @@ __metadata: node-fetch: "npm:^2.6.7" p-map: "npm:^4.0.0" sha-1: "npm:^1.0.0" + stack-utils: "npm:^2.0.6" superstruct: "npm:^1.0.4" typescript: "npm:^5.5.2" undici: "npm:^5.28.4" @@ -3632,6 +3636,7 @@ __metadata: "@replay-cli/tsconfig": "workspace:^" "@replayio/test-utils": "workspace:^" "@types/node": "npm:^20.11.27" + "@types/stack-utils": "npm:^2.0.3" chalk: "npm:^4.1.2" debug: "npm:^4.3.4" fs-extra: "npm:^11.2.0" @@ -3642,6 +3647,7 @@ __metadata: node-fetch: "npm:^2.6.7" p-map: "npm:^4.0.0" sha-1: "npm:^1.0.0" + stack-utils: "npm:^2.0.6" superstruct: "npm:^1.0.4" typescript: "npm:^5.5.2" undici: "npm:^5.28.4" @@ -3753,6 +3759,7 @@ __metadata: "@replay-cli/tsconfig": "workspace:^" "@types/debug": "npm:^4.1.7" "@types/node-fetch": "npm:^2.6.2" + "@types/stack-utils": "npm:^2.0.3" debug: "npm:^4.3.4" fs-extra: "npm:^11.2.0" jsonata: "npm:^1.8.6" @@ -3763,6 +3770,7 @@ __metadata: query-registry: "npm:^2.6.0" semver: "npm:^7.5.4" sha-1: "npm:^1.0.0" + stack-utils: "npm:^2.0.6" superstruct: "npm:^1.0.4" typescript: "npm:^5.5.2" undici: "npm:^5.28.4" @@ -15709,8 +15717,10 @@ __metadata: "@changesets/changelog-github": "npm:^0.5.0" "@changesets/cli": "npm:^2.27.5" "@replayio/protocol": "npm:^0.73.0" + "@types/stack-utils": "npm:^2.0.3" "@types/ws": "npm:^8" prettier: "npm:^2.7.1" + stack-utils: "npm:^2.0.6" turbo: "npm:^2.0.5" typescript: "npm:^5.5.2" ws: "npm:^8.17.0" @@ -15731,6 +15741,7 @@ __metadata: "@types/inquirer": "npm:^9" "@types/jest": "npm:^28.1.5" "@types/semver": "npm:^7.5.6" + "@types/stack-utils": "npm:^2.0.3" "@types/table": "npm:^6.3.2" "@types/ws": "npm:^8.5.10" assert: "npm:latest" @@ -15754,6 +15765,7 @@ __metadata: pretty-ms: "npm:^7.0.1" query-registry: "npm:^2.6.0" semver: "npm:^7.5.4" + stack-utils: "npm:^2.0.6" strip-ansi: "npm:^6.0.1" superstruct: "npm:^1.0.4" table: "npm:^6.8.2" From dd1af97246a0d60c1f20f6172cce0c647c211f15 Mon Sep 17 00:00:00 2001 From: Miriam Budayr <35577323+miriambudayr@users.noreply.github.com> Date: Wed, 3 Jul 2024 15:04:10 -0500 Subject: [PATCH 2/5] remove stack-utils from root, add to packages/replay package --- packages/replay/package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/replay/package.json b/packages/replay/package.json index b91e5dba..56e5c6a5 100644 --- a/packages/replay/package.json +++ b/packages/replay/package.json @@ -47,6 +47,7 @@ "p-map": "^4.0.0", "query-registry": "^2.6.0", "semver": "^7.5.4", + "stack-utils": "^2.0.6", "superstruct": "^1.0.4", "text-table": "^0.2.0", "undici": "^5.28.4", @@ -61,6 +62,7 @@ "@types/debug": "^4.1.7", "@types/jest": "^28.1.5", "@types/node-fetch": "^2.6.3", + "@types/stack-utils": "^2.0.3", "@types/text-table": "^0.2.2", "@types/ws": "^8.5.10", "jest": "^28.1.3", From 6eb46a95539527751348e97cbeccba67480d041a Mon Sep 17 00:00:00 2001 From: Miriam Budayr <35577323+miriambudayr@users.noreply.github.com> Date: Wed, 3 Jul 2024 15:17:15 -0500 Subject: [PATCH 3/5] revert changes to root package.json and yarn.lock files --- package.json | 4 ---- yarn.lock | 12 ------------ 2 files changed, 16 deletions(-) diff --git a/package.json b/package.json index 69d8441c..4171a324 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,6 @@ "@changesets/changelog-github": "^0.5.0", "@changesets/cli": "^2.27.5", "@replayio/protocol": "^0.73.0", - "@types/stack-utils": "^2.0.3", "@types/ws": "^8", "prettier": "^2.7.1", "turbo": "^2.0.5", @@ -42,8 +41,5 @@ "@jest/environment@npm:^27.5.1": "patch:@jest/environment@npm%3A28.1.3#~/.yarn/patches/@jest-environment-npm-28.1.3-506a81a227.patch", "@jest/environment@npm:^28.1.3": "patch:@jest/environment@npm%3A28.1.3#~/.yarn/patches/@jest-environment-npm-28.1.3-506a81a227.patch", "superstruct": "patch:superstruct@npm%3A1.0.4#~/.yarn/patches/superstruct-npm-1.0.4-44d328b887.patch" - }, - "dependencies": { - "stack-utils": "^2.0.6" } } diff --git a/yarn.lock b/yarn.lock index feb7b24f..8dbd5938 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3499,7 +3499,6 @@ __metadata: "@types/debug": "npm:^4.1.7" "@types/node": "npm:^20.11.27" "@types/semver": "npm:^7.3.13" - "@types/stack-utils": "npm:^2.0.3" "@types/uuid": "npm:^9.0.1" "@types/ws": "npm:^8.5.10" chalk: "npm:^4.1.2" @@ -3514,7 +3513,6 @@ __metadata: p-map: "npm:^4.0.0" semver: "npm:^7.5.2" sha-1: "npm:^1.0.0" - stack-utils: "npm:^2.0.6" superstruct: "npm:^1.0.4" terminate: "npm:^2.6.1" txml: "npm:^3.2.5" @@ -3542,7 +3540,6 @@ __metadata: "@replay-cli/tsconfig": "workspace:^" "@replayio/test-utils": "workspace:^" "@types/node": "npm:^20.11.27" - "@types/stack-utils": "npm:^2.0.3" debug: "npm:^4.3.4" fs-extra: "npm:^11.2.0" is-uuid: "npm:^1.0.2" @@ -3555,7 +3552,6 @@ __metadata: node-fetch: "npm:^2.6.7" p-map: "npm:^4.0.0" sha-1: "npm:^1.0.0" - stack-utils: "npm:^2.0.6" superstruct: "npm:^1.0.4" typescript: "npm:^5.5.2" undici: "npm:^5.28.4" @@ -3636,7 +3632,6 @@ __metadata: "@replay-cli/tsconfig": "workspace:^" "@replayio/test-utils": "workspace:^" "@types/node": "npm:^20.11.27" - "@types/stack-utils": "npm:^2.0.3" chalk: "npm:^4.1.2" debug: "npm:^4.3.4" fs-extra: "npm:^11.2.0" @@ -3647,7 +3642,6 @@ __metadata: node-fetch: "npm:^2.6.7" p-map: "npm:^4.0.0" sha-1: "npm:^1.0.0" - stack-utils: "npm:^2.0.6" superstruct: "npm:^1.0.4" typescript: "npm:^5.5.2" undici: "npm:^5.28.4" @@ -3759,7 +3753,6 @@ __metadata: "@replay-cli/tsconfig": "workspace:^" "@types/debug": "npm:^4.1.7" "@types/node-fetch": "npm:^2.6.2" - "@types/stack-utils": "npm:^2.0.3" debug: "npm:^4.3.4" fs-extra: "npm:^11.2.0" jsonata: "npm:^1.8.6" @@ -3770,7 +3763,6 @@ __metadata: query-registry: "npm:^2.6.0" semver: "npm:^7.5.4" sha-1: "npm:^1.0.0" - stack-utils: "npm:^2.0.6" superstruct: "npm:^1.0.4" typescript: "npm:^5.5.2" undici: "npm:^5.28.4" @@ -15717,10 +15709,8 @@ __metadata: "@changesets/changelog-github": "npm:^0.5.0" "@changesets/cli": "npm:^2.27.5" "@replayio/protocol": "npm:^0.73.0" - "@types/stack-utils": "npm:^2.0.3" "@types/ws": "npm:^8" prettier: "npm:^2.7.1" - stack-utils: "npm:^2.0.6" turbo: "npm:^2.0.5" typescript: "npm:^5.5.2" ws: "npm:^8.17.0" @@ -15741,7 +15731,6 @@ __metadata: "@types/inquirer": "npm:^9" "@types/jest": "npm:^28.1.5" "@types/semver": "npm:^7.5.6" - "@types/stack-utils": "npm:^2.0.3" "@types/table": "npm:^6.3.2" "@types/ws": "npm:^8.5.10" assert: "npm:latest" @@ -15765,7 +15754,6 @@ __metadata: pretty-ms: "npm:^7.0.1" query-registry: "npm:^2.6.0" semver: "npm:^7.5.4" - stack-utils: "npm:^2.0.6" strip-ansi: "npm:^6.0.1" superstruct: "npm:^1.0.4" table: "npm:^6.8.2" From f654cdf6e1baaabe65a6f293912613a0093cd3dd Mon Sep 17 00:00:00 2001 From: Miriam Budayr <35577323+miriambudayr@users.noreply.github.com> Date: Wed, 3 Jul 2024 15:18:17 -0500 Subject: [PATCH 4/5] update yarn.lock --- yarn.lock | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/yarn.lock b/yarn.lock index 8dbd5938..d968f940 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3499,6 +3499,7 @@ __metadata: "@types/debug": "npm:^4.1.7" "@types/node": "npm:^20.11.27" "@types/semver": "npm:^7.3.13" + "@types/stack-utils": "npm:^2.0.3" "@types/uuid": "npm:^9.0.1" "@types/ws": "npm:^8.5.10" chalk: "npm:^4.1.2" @@ -3513,6 +3514,7 @@ __metadata: p-map: "npm:^4.0.0" semver: "npm:^7.5.2" sha-1: "npm:^1.0.0" + stack-utils: "npm:^2.0.6" superstruct: "npm:^1.0.4" terminate: "npm:^2.6.1" txml: "npm:^3.2.5" @@ -3540,6 +3542,7 @@ __metadata: "@replay-cli/tsconfig": "workspace:^" "@replayio/test-utils": "workspace:^" "@types/node": "npm:^20.11.27" + "@types/stack-utils": "npm:^2.0.3" debug: "npm:^4.3.4" fs-extra: "npm:^11.2.0" is-uuid: "npm:^1.0.2" @@ -3552,6 +3555,7 @@ __metadata: node-fetch: "npm:^2.6.7" p-map: "npm:^4.0.0" sha-1: "npm:^1.0.0" + stack-utils: "npm:^2.0.6" superstruct: "npm:^1.0.4" typescript: "npm:^5.5.2" undici: "npm:^5.28.4" @@ -3632,6 +3636,7 @@ __metadata: "@replay-cli/tsconfig": "workspace:^" "@replayio/test-utils": "workspace:^" "@types/node": "npm:^20.11.27" + "@types/stack-utils": "npm:^2.0.3" chalk: "npm:^4.1.2" debug: "npm:^4.3.4" fs-extra: "npm:^11.2.0" @@ -3642,6 +3647,7 @@ __metadata: node-fetch: "npm:^2.6.7" p-map: "npm:^4.0.0" sha-1: "npm:^1.0.0" + stack-utils: "npm:^2.0.6" superstruct: "npm:^1.0.4" typescript: "npm:^5.5.2" undici: "npm:^5.28.4" @@ -3666,6 +3672,7 @@ __metadata: "@types/jest": "npm:^28.1.5" "@types/node-fetch": "npm:^2.6.3" "@types/semver": "npm:^7.5.6" + "@types/stack-utils": "npm:^2.0.3" "@types/text-table": "npm:^0.2.2" "@types/ws": "npm:^8.5.10" commander: "npm:^12.0.0" @@ -3679,6 +3686,7 @@ __metadata: p-map: "npm:^4.0.0" query-registry: "npm:^2.6.0" semver: "npm:^7.5.4" + stack-utils: "npm:^2.0.6" superstruct: "npm:^1.0.4" text-table: "npm:^0.2.0" ts-jest: "npm:^28.0.6" @@ -3753,6 +3761,7 @@ __metadata: "@replay-cli/tsconfig": "workspace:^" "@types/debug": "npm:^4.1.7" "@types/node-fetch": "npm:^2.6.2" + "@types/stack-utils": "npm:^2.0.3" debug: "npm:^4.3.4" fs-extra: "npm:^11.2.0" jsonata: "npm:^1.8.6" @@ -3763,6 +3772,7 @@ __metadata: query-registry: "npm:^2.6.0" semver: "npm:^7.5.4" sha-1: "npm:^1.0.0" + stack-utils: "npm:^2.0.6" superstruct: "npm:^1.0.4" typescript: "npm:^5.5.2" undici: "npm:^5.28.4" @@ -15731,6 +15741,7 @@ __metadata: "@types/inquirer": "npm:^9" "@types/jest": "npm:^28.1.5" "@types/semver": "npm:^7.5.6" + "@types/stack-utils": "npm:^2.0.3" "@types/table": "npm:^6.3.2" "@types/ws": "npm:^8.5.10" assert: "npm:latest" @@ -15754,6 +15765,7 @@ __metadata: pretty-ms: "npm:^7.0.1" query-registry: "npm:^2.6.0" semver: "npm:^7.5.4" + stack-utils: "npm:^2.0.6" strip-ansi: "npm:^6.0.1" superstruct: "npm:^1.0.4" table: "npm:^6.8.2" From a2e3d56e3ea571910e140e51059c82db49c1de7a Mon Sep 17 00:00:00 2001 From: Miriam Budayr <35577323+miriambudayr@users.noreply.github.com> Date: Wed, 3 Jul 2024 15:40:51 -0500 Subject: [PATCH 5/5] add changeset --- .changeset/cool-rocks-decide.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .changeset/cool-rocks-decide.md diff --git a/.changeset/cool-rocks-decide.md b/.changeset/cool-rocks-decide.md new file mode 100644 index 00000000..055a61f5 --- /dev/null +++ b/.changeset/cool-rocks-decide.md @@ -0,0 +1,10 @@ +--- +"@replayio/test-utils": patch +"@replayio/puppeteer": patch +"replayio": patch +"@replayio/cypress": patch +"@replayio/replay": patch +"@replayio/jest": patch +--- + +Add missing stack-utils dependencies