From 2e0cbdf28cbd406352ac3232f4dceda9e68e6e79 Mon Sep 17 00:00:00 2001 From: Marc Pichler Date: Fri, 6 Dec 2024 18:59:13 +0100 Subject: [PATCH] feat!: widen peer dependency range to include zone.js v0.15.0 (#2571) Co-authored-by: Mend Renovate --- .../auto-instrumentations-web/package.json | 2 +- package-lock.json | 36 +++++++++---------- .../package.json | 2 +- .../package.json | 4 +-- .../src/instrumentation.ts | 6 ++-- .../src/internal-types.ts | 1 + .../test/userInteraction.nozone.test.ts | 4 ++- 7 files changed, 27 insertions(+), 28 deletions(-) diff --git a/metapackages/auto-instrumentations-web/package.json b/metapackages/auto-instrumentations-web/package.json index 9f0d093163..64bc1fb283 100644 --- a/metapackages/auto-instrumentations-web/package.json +++ b/metapackages/auto-instrumentations-web/package.json @@ -31,7 +31,7 @@ }, "peerDependencies": { "@opentelemetry/api": "^1.3.0", - "zone.js": "^0.11.4 || ^0.13.0 || ^0.14.0" + "zone.js": "^0.11.4 || ^0.13.0 || ^0.14.0 || ^0.15.0" }, "devDependencies": { "@babel/core": "7.24.6", diff --git a/package-lock.json b/package-lock.json index 33881c7e65..3e7b08cd04 100644 --- a/package-lock.json +++ b/package-lock.json @@ -536,7 +536,7 @@ }, "peerDependencies": { "@opentelemetry/api": "^1.3.0", - "zone.js": "^0.11.4 || ^0.13.0 || ^0.14.0" + "zone.js": "^0.11.4 || ^0.13.0 || ^0.14.0 || ^0.15.0" } }, "metapackages/auto-instrumentations-web/node_modules/@babel/core": { @@ -33597,7 +33597,8 @@ "node_modules/tslib": { "version": "2.6.2", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", - "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", + "dev": true }, "node_modules/tsscmp": { "version": "1.0.6", @@ -35379,12 +35380,9 @@ } }, "node_modules/zone.js": { - "version": "0.11.4", - "resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.11.4.tgz", - "integrity": "sha512-DDh2Ab+A/B+9mJyajPjHFPWfYU1H+pdun4wnnk0OcQTNjem1XQSZ2CDW+rfZEUDjv5M19SBqAkjZi0x5wuB5Qw==", - "dependencies": { - "tslib": "^2.0.0" - } + "version": "0.14.10", + "resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.14.10.tgz", + "integrity": "sha512-YGAhaO7J5ywOXW6InXNlLmfU194F8lVgu7bRntUF3TiG8Y3nBK0x1UJJuHUP/e8IyihkjCYqhCScpSwnlaSRkQ==" }, "packages/baggage-span-processor": { "name": "@opentelemetry/baggage-span-processor", @@ -38520,7 +38518,7 @@ "webpack": "5.94.0", "webpack-cli": "5.1.4", "webpack-merge": "5.10.0", - "zone.js": "^0.11.4 || ^0.13.0 || ^0.14.0" + "zone.js": "^0.11.4 || ^0.13.0 || ^0.14.0 || ^0.15.0" }, "engines": { "node": ">=14" @@ -38699,14 +38697,14 @@ "webpack": "5.94.0", "webpack-cli": "5.1.4", "webpack-merge": "5.10.0", - "zone.js": "^0.11.4 || ^0.13.0 || ^0.14.0" + "zone.js": "^0.11.4 || ^0.13.0 || ^0.14.0 || ^0.15.0" }, "engines": { "node": ">=14" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0", - "zone.js": "^0.11.4 || ^0.13.0 || ^0.14.0" + "zone.js": "^0.11.4 || ^0.13.0 || ^0.14.0 || ^0.15.0" } }, "plugins/web/opentelemetry-instrumentation-user-interaction/node_modules/@babel/core": { @@ -48377,7 +48375,7 @@ "webpack": "5.94.0", "webpack-cli": "5.1.4", "webpack-merge": "5.10.0", - "zone.js": "^0.11.4 || ^0.13.0 || ^0.14.0" + "zone.js": "^0.11.4 || ^0.13.0 || ^0.14.0 || ^0.15.0" }, "dependencies": { "@babel/core": { @@ -49848,7 +49846,7 @@ "webpack": "5.94.0", "webpack-cli": "5.1.4", "webpack-merge": "5.10.0", - "zone.js": "^0.11.4 || ^0.13.0 || ^0.14.0" + "zone.js": "^0.11.4 || ^0.13.0 || ^0.14.0 || ^0.15.0" }, "dependencies": { "@babel/core": { @@ -68802,7 +68800,8 @@ "tslib": { "version": "2.6.2", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", - "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", + "dev": true }, "tsscmp": { "version": "1.0.6", @@ -70137,12 +70136,9 @@ } }, "zone.js": { - "version": "0.11.4", - "resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.11.4.tgz", - "integrity": "sha512-DDh2Ab+A/B+9mJyajPjHFPWfYU1H+pdun4wnnk0OcQTNjem1XQSZ2CDW+rfZEUDjv5M19SBqAkjZi0x5wuB5Qw==", - "requires": { - "tslib": "^2.0.0" - } + "version": "0.14.10", + "resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.14.10.tgz", + "integrity": "sha512-YGAhaO7J5ywOXW6InXNlLmfU194F8lVgu7bRntUF3TiG8Y3nBK0x1UJJuHUP/e8IyihkjCYqhCScpSwnlaSRkQ==" } } } diff --git a/plugins/web/opentelemetry-instrumentation-long-task/package.json b/plugins/web/opentelemetry-instrumentation-long-task/package.json index 698fc2941d..abc2dbbcb5 100644 --- a/plugins/web/opentelemetry-instrumentation-long-task/package.json +++ b/plugins/web/opentelemetry-instrumentation-long-task/package.json @@ -74,7 +74,7 @@ "webpack": "5.94.0", "webpack-cli": "5.1.4", "webpack-merge": "5.10.0", - "zone.js": "^0.11.4 || ^0.13.0 || ^0.14.0" + "zone.js": "^0.11.4 || ^0.13.0 || ^0.14.0 || ^0.15.0" }, "dependencies": { "@opentelemetry/core": "^1.8.0", diff --git a/plugins/web/opentelemetry-instrumentation-user-interaction/package.json b/plugins/web/opentelemetry-instrumentation-user-interaction/package.json index e3dac68dd5..110e78f90b 100644 --- a/plugins/web/opentelemetry-instrumentation-user-interaction/package.json +++ b/plugins/web/opentelemetry-instrumentation-user-interaction/package.json @@ -76,7 +76,7 @@ "webpack": "5.94.0", "webpack-cli": "5.1.4", "webpack-merge": "5.10.0", - "zone.js": "^0.11.4 || ^0.13.0 || ^0.14.0" + "zone.js": "^0.11.4 || ^0.13.0 || ^0.14.0 || ^0.15.0" }, "dependencies": { "@opentelemetry/core": "^1.8.0", @@ -85,7 +85,7 @@ }, "peerDependencies": { "@opentelemetry/api": "^1.3.0", - "zone.js": "^0.11.4 || ^0.13.0 || ^0.14.0" + "zone.js": "^0.11.4 || ^0.13.0 || ^0.14.0 || ^0.15.0" }, "sideEffects": false, "homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/web/opentelemetry-instrumentation-user-interaction#readme" diff --git a/plugins/web/opentelemetry-instrumentation-user-interaction/src/instrumentation.ts b/plugins/web/opentelemetry-instrumentation-user-interaction/src/instrumentation.ts index c1b7ff4cad..6216be899a 100644 --- a/plugins/web/opentelemetry-instrumentation-user-interaction/src/instrumentation.ts +++ b/plugins/web/opentelemetry-instrumentation-user-interaction/src/instrumentation.ts @@ -575,7 +575,7 @@ export class UserInteractionInstrumentation extends InstrumentationBase import { HrTime } from '@opentelemetry/api'; import { EventName } from './types'; diff --git a/plugins/web/opentelemetry-instrumentation-user-interaction/test/userInteraction.nozone.test.ts b/plugins/web/opentelemetry-instrumentation-user-interaction/test/userInteraction.nozone.test.ts index c62ef63ae2..57fa3faba1 100644 --- a/plugins/web/opentelemetry-instrumentation-user-interaction/test/userInteraction.nozone.test.ts +++ b/plugins/web/opentelemetry-instrumentation-user-interaction/test/userInteraction.nozone.test.ts @@ -58,7 +58,9 @@ describe('UserInteractionInstrumentation', () => { }); sandbox - .stub(userInteractionInstrumentation, 'getZoneWithPrototype') + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore this is private, but it exists + .stub(userInteractionInstrumentation, '_getZoneWithPrototype') .callsFake(() => { return false as any; });