From 81eae9c4f52dce5087d61de70848be210fb39fa5 Mon Sep 17 00:00:00 2001 From: Jeremy Meng Date: Wed, 4 Dec 2024 17:38:35 +0000 Subject: [PATCH] [EngSys] unpin chai version @4.3.0 This resolves issue #28185. I had to add "chai" dev dependency back to two packages because "chai-as-promised" needs it as peer dependency --- common/config/rush/common-versions.json | 1 - common/config/rush/pnpm-lock.yaml | 36 ++++++------------- .../package.json | 1 + .../package.json | 1 + 4 files changed, 13 insertions(+), 26 deletions(-) diff --git a/common/config/rush/common-versions.json b/common/config/rush/common-versions.json index de14b4b6ab21..00e13c12c8cd 100644 --- a/common/config/rush/common-versions.json +++ b/common/config/rush/common-versions.json @@ -16,7 +16,6 @@ * instead of the latest version. */ // "some-library": "1.2.3" - "chai": "4.3.10" }, /** * When set to true, for all projects in the repo, all dependencies will be automatically added as preferredVersions, diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index a2b392fcdbcd..637346fdf593 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -946,10 +946,10 @@ dependencies: version: file:projects/eventgrid-system-events.tgz '@rush-temp/eventhubs-checkpointstore-blob': specifier: file:./projects/eventhubs-checkpointstore-blob.tgz - version: file:projects/eventhubs-checkpointstore-blob.tgz(chai@4.3.10) + version: file:projects/eventhubs-checkpointstore-blob.tgz '@rush-temp/eventhubs-checkpointstore-table': specifier: file:./projects/eventhubs-checkpointstore-table.tgz - version: file:projects/eventhubs-checkpointstore-table.tgz(chai@4.3.10) + version: file:projects/eventhubs-checkpointstore-table.tgz '@rush-temp/functions-authentication-events': specifier: file:./projects/functions-authentication-events.tgz version: file:projects/functions-authentication-events.tgz @@ -1235,9 +1235,6 @@ dependencies: '@rush-temp/web-pubsub-express': specifier: file:./projects/web-pubsub-express.tgz version: file:projects/web-pubsub-express.tgz - chai: - specifier: 4.3.10 - version: 4.3.10 packages: @@ -5060,15 +5057,6 @@ packages: check-error: 1.0.3 dev: false - /chai-as-promised@8.0.1(chai@4.3.10): - resolution: {integrity: sha512-OIEJtOL8xxJSH8JJWbIoRjybbzR52iFuDHuF8eb+nTPD6tgXLjRqsgnUGqQfFODxYvq5QdirT0pN9dZ0+Gz6rA==} - peerDependencies: - chai: '>= 2.1.2 < 6' - dependencies: - chai: 4.3.10 - check-error: 2.1.1 - dev: false - /chai-as-promised@8.0.1(chai@5.1.2): resolution: {integrity: sha512-OIEJtOL8xxJSH8JJWbIoRjybbzR52iFuDHuF8eb+nTPD6tgXLjRqsgnUGqQfFODxYvq5QdirT0pN9dZ0+Gz6rA==} peerDependencies: @@ -20255,9 +20243,8 @@ packages: - webdriverio dev: false - file:projects/eventhubs-checkpointstore-blob.tgz(chai@4.3.10): - resolution: {integrity: sha512-QIMCv2kTVX8O/o5j/9cm9cj3M1Yu68nIK2z4ubzIx+w0ZJ4Sby3hc2F+UFe5oj59UyA29uZLX6sfITm7+SuKgQ==, tarball: file:projects/eventhubs-checkpointstore-blob.tgz} - id: file:projects/eventhubs-checkpointstore-blob.tgz + file:projects/eventhubs-checkpointstore-blob.tgz: + resolution: {integrity: sha512-AqSaI6MACDs5mqh3Lim/Qop+IBW9nuhO4z5/QQEEYsbIU0fPadAuNSIYy9tdZHd/rhUAHpQzRoCIHk54+OtZrg==, tarball: file:projects/eventhubs-checkpointstore-blob.tgz} name: '@rush-temp/eventhubs-checkpointstore-blob' version: 0.0.0 dependencies: @@ -20268,7 +20255,8 @@ packages: '@vitest/browser': 2.1.8(@types/node@18.19.67)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.8) '@vitest/coverage-istanbul': 2.1.8(vitest@2.1.8) buffer: 6.0.3 - chai-as-promised: 8.0.1(chai@4.3.10) + chai: 5.1.2 + chai-as-promised: 8.0.1(chai@5.1.2) debug: 4.3.7(supports-color@8.1.1) dotenv: 16.4.5 eslint: 9.16.0 @@ -20283,7 +20271,6 @@ packages: - '@edge-runtime/vm' - '@vitest/ui' - bufferutil - - chai - happy-dom - jiti - jsdom @@ -20303,9 +20290,8 @@ packages: - webdriverio dev: false - file:projects/eventhubs-checkpointstore-table.tgz(chai@4.3.10): - resolution: {integrity: sha512-shPBb4XPKzwZkYDOvEn5AqC4nSdal0o+RW0dFDOE1FAdPmN5uyouad+Na48MtP3aHiDL9ObtRPeh5xkX905SIw==, tarball: file:projects/eventhubs-checkpointstore-table.tgz} - id: file:projects/eventhubs-checkpointstore-table.tgz + file:projects/eventhubs-checkpointstore-table.tgz: + resolution: {integrity: sha512-P3Cu8PCr0Mpwx1KRYGqJtpUu6cUBnu3l8y2XVFNvrMKyrv4sjJuCzhHtYtlNkYMNesgn66If2fQE5sj1akl9QA==, tarball: file:projects/eventhubs-checkpointstore-table.tgz} name: '@rush-temp/eventhubs-checkpointstore-table' version: 0.0.0 dependencies: @@ -20316,7 +20302,8 @@ packages: '@vitest/browser': 2.1.8(@types/node@18.19.67)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.8) '@vitest/coverage-istanbul': 2.1.8(vitest@2.1.8) buffer: 6.0.3 - chai-as-promised: 8.0.1(chai@4.3.10) + chai: 5.1.2 + chai-as-promised: 8.0.1(chai@5.1.2) debug: 4.3.7(supports-color@8.1.1) dotenv: 16.4.5 eslint: 9.16.0 @@ -20330,7 +20317,6 @@ packages: - '@edge-runtime/vm' - '@vitest/ui' - bufferutil - - chai - happy-dom - jiti - jsdom @@ -20698,7 +20684,7 @@ packages: dev: false file:projects/iot-device-update.tgz: - resolution: {integrity: sha512-/KAKSZD3InlQSaS4sF7RFi5sxZH+38eHjRbVP6/AzVtzz6e9cR9rAJvG9ffbEEodn0znE1We00qAVbMQQB0dqg==, tarball: file:projects/iot-device-update.tgz} + resolution: {integrity: sha512-oFZBCkmzOfAe/6o3MolyvY6IlmFANQFBxz2x99rmNOwYWrWFstP5LWTOluKzFAnafGtkPTb8PdzL/Uyk0LgKuw==, tarball: file:projects/iot-device-update.tgz} name: '@rush-temp/iot-device-update' version: 0.0.0 dependencies: diff --git a/sdk/eventhub/eventhubs-checkpointstore-blob/package.json b/sdk/eventhub/eventhubs-checkpointstore-blob/package.json index 50fcc1d6bb00..ffb08fa2363a 100644 --- a/sdk/eventhub/eventhubs-checkpointstore-blob/package.json +++ b/sdk/eventhub/eventhubs-checkpointstore-blob/package.json @@ -92,6 +92,7 @@ "@vitest/browser": "^2.0.5", "@vitest/coverage-istanbul": "^2.0.5", "buffer": "^6.0.3", + "chai": "^5.1.1", "chai-as-promised": "^8.0.0", "debug": "^4.3.6", "dotenv": "^16.4.5", diff --git a/sdk/eventhub/eventhubs-checkpointstore-table/package.json b/sdk/eventhub/eventhubs-checkpointstore-table/package.json index 133b2cc73014..ebd4d9ab99c3 100644 --- a/sdk/eventhub/eventhubs-checkpointstore-table/package.json +++ b/sdk/eventhub/eventhubs-checkpointstore-table/package.json @@ -89,6 +89,7 @@ "@vitest/browser": "^2.0.5", "@vitest/coverage-istanbul": "^2.0.5", "buffer": "^6.0.3", + "chai": "^5.1.1", "chai-as-promised": "^8.0.0", "debug": "^4.1.1", "dotenv": "^16.0.0",