@datadog/browser-rum-nextjs 7.9.0 → 7.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,7 +21,7 @@ function nextjsPlugin() {
21
21
  if (addError) for (const subscriber of onRumStartSubscribers) subscriber(addError);
22
22
  },
23
23
  getConfigurationTelemetry() {
24
- const nextjsVersion = _datadog_browser_core.globalObject.next?.version;
24
+ const nextjsVersion = _datadog_js_core_util.globalObject.next?.version;
25
25
  return {
26
26
  router: true,
27
27
  integrations: (0, _datadog_browser_core.toIntegrations)(nextjsVersion && (0, _datadog_browser_core.toMajorVersionIntegration)("nextjs", nextjsVersion), routerType)
@@ -1 +1 @@
1
- {"version":3,"file":"nextjsPlugin.js","names":["mockable","globalObject","toIntegrations","toMajorVersionIntegration","buildUrl"],"sources":["../../src/domain/nextjsPlugin.ts"],"sourcesContent":["import { buildUrl } from '@datadog/js-core/util'\nimport { globalObject, mockable, toIntegrations, toMajorVersionIntegration } from '@datadog/browser-core'\nimport type { RumPlugin, RumPublicApi, StartRumResult } from '@datadog/browser-rum-core'\n\nexport type NextjsPlugin = Pick<Required<RumPlugin>, 'name' | 'onInit' | 'onRumStart' | 'getConfigurationTelemetry'>\n\ntype NextjsRouterType = 'app-router' | 'pages-router'\ninterface NextjsGlobalObject {\n next?: { version?: string }\n}\ntype InitSubscriber = (rumPublicApi: RumPublicApi) => void\ntype StartSubscriber = (addError: StartRumResult['addError']) => void\n\nlet globalPublicApi: RumPublicApi | undefined\nlet globalAddError: StartRumResult['addError'] | undefined\nlet lastNavigationUrl: string | undefined\nlet routerType: NextjsRouterType | undefined\n\nconst onRumInitSubscribers: InitSubscriber[] = []\nconst onRumStartSubscribers: StartSubscriber[] = []\n\nexport function nextjsPlugin(): NextjsPlugin {\n return {\n name: 'nextjs',\n onInit({ publicApi, initConfiguration }) {\n globalPublicApi = publicApi\n initConfiguration.trackViewsManually = true\n routerType = mockable(detectNextjsRouterType)()\n\n for (const subscriber of onRumInitSubscribers) {\n subscriber(publicApi)\n }\n },\n onRumStart({ addError }) {\n globalAddError = addError\n if (addError) {\n for (const subscriber of onRumStartSubscribers) {\n subscriber(addError)\n }\n }\n },\n getConfigurationTelemetry() {\n const nextjsVersion = (globalObject as NextjsGlobalObject).next?.version\n return {\n router: true,\n integrations: toIntegrations(nextjsVersion && toMajorVersionIntegration('nextjs', nextjsVersion), routerType),\n }\n },\n } satisfies RumPlugin\n}\n\n// The App Router doesn't hydrate from a `__NEXT_DATA__` payload (it streams RSC data instead),\n// so its absence is used as a best-effort signal that the app router is in use.\nfunction detectNextjsRouterType(): NextjsRouterType {\n return document.getElementById('__NEXT_DATA__') ? 'pages-router' : 'app-router'\n}\n\nexport function startNextjsView(viewName: string) {\n if (globalPublicApi) {\n // Use the URL captured by onRouterTransitionStart if available, since React renders before pushState updates window.location\n const url = lastNavigationUrl ? buildUrl(lastNavigationUrl, window.location.origin).href : undefined\n lastNavigationUrl = undefined\n globalPublicApi.startView({ name: viewName, url })\n }\n}\n\n// Must be re-exported from the user's instrumentation-client.ts so we can capture the URL before React renders\nexport function onRouterTransitionStart(url: string) {\n lastNavigationUrl = url\n}\n\nexport function onRumInit(callback: InitSubscriber) {\n if (globalPublicApi) {\n callback(globalPublicApi)\n } else {\n onRumInitSubscribers.push(callback)\n }\n}\n\nexport function onRumStart(callback: StartSubscriber) {\n if (globalAddError) {\n callback(globalAddError)\n } else {\n onRumStartSubscribers.push(callback)\n }\n}\n\nexport function resetNextjsPlugin() {\n globalPublicApi = undefined\n globalAddError = undefined\n onRumInitSubscribers.length = 0\n onRumStartSubscribers.length = 0\n lastNavigationUrl = undefined\n routerType = undefined\n}\n"],"mappings":";;;AAaA,IAAI;AACJ,IAAI;AACJ,IAAI;AACJ,IAAI;AAEJ,MAAM,uBAAyC,CAAC;AAChD,MAAM,wBAA2C,CAAC;AAElD,SAAgB,eAA6B;CAC3C,OAAO;EACL,MAAM;EACN,OAAO,EAAE,WAAW,qBAAqB;GACvC,kBAAkB;GAClB,kBAAkB,qBAAqB;GACvC,cAAA,GAAaA,sBAAAA,SAAAA,CAAS,sBAAsB,CAAC,CAAC;GAE9C,KAAK,MAAM,cAAc,sBACvB,WAAW,SAAS;EAExB;EACA,WAAW,EAAE,YAAY;GACvB,iBAAiB;GACjB,IAAI,UACF,KAAK,MAAM,cAAc,uBACvB,WAAW,QAAQ;EAGzB;EACA,4BAA4B;GAC1B,MAAM,gBAAiBC,sBAAAA,aAAoC,MAAM;GACjE,OAAO;IACL,QAAQ;IACR,eAAA,GAAcC,sBAAAA,eAAAA,CAAe,kBAAA,GAAiBC,sBAAAA,0BAAAA,CAA0B,UAAU,aAAa,GAAG,UAAU;GAC9G;EACF;CACF;AACF;AAIA,SAAS,yBAA2C;CAClD,OAAO,SAAS,eAAe,eAAe,IAAI,iBAAiB;AACrE;AAEA,SAAgB,gBAAgB,UAAkB;CAChD,IAAI,iBAAiB;EAEnB,MAAM,MAAM,qBAAA,GAAoBC,sBAAAA,SAAAA,CAAS,mBAAmB,OAAO,SAAS,MAAM,CAAC,CAAC,OAAO,KAAA;EAC3F,oBAAoB,KAAA;EACpB,gBAAgB,UAAU;GAAE,MAAM;GAAU;EAAI,CAAC;CACnD;AACF;AAGA,SAAgB,wBAAwB,KAAa;CACnD,oBAAoB;AACtB;AAUA,SAAgB,WAAW,UAA2B;CACpD,IAAI,gBACF,SAAS,cAAc;MAEvB,sBAAsB,KAAK,QAAQ;AAEvC"}
1
+ {"version":3,"file":"nextjsPlugin.js","names":["mockable","globalObject","toIntegrations","toMajorVersionIntegration","buildUrl"],"sources":["../../src/domain/nextjsPlugin.ts"],"sourcesContent":["import { buildUrl, globalObject } from '@datadog/js-core/util'\nimport { mockable, toIntegrations, toMajorVersionIntegration } from '@datadog/browser-core'\nimport type { RumPlugin, RumPublicApi, StartRumResult } from '@datadog/browser-rum-core'\n\nexport type NextjsPlugin = Pick<Required<RumPlugin>, 'name' | 'onInit' | 'onRumStart' | 'getConfigurationTelemetry'>\n\ntype NextjsRouterType = 'app-router' | 'pages-router'\ninterface NextjsGlobalObject {\n next?: { version?: string }\n}\ntype InitSubscriber = (rumPublicApi: RumPublicApi) => void\ntype StartSubscriber = (addError: StartRumResult['addError']) => void\n\nlet globalPublicApi: RumPublicApi | undefined\nlet globalAddError: StartRumResult['addError'] | undefined\nlet lastNavigationUrl: string | undefined\nlet routerType: NextjsRouterType | undefined\n\nconst onRumInitSubscribers: InitSubscriber[] = []\nconst onRumStartSubscribers: StartSubscriber[] = []\n\nexport function nextjsPlugin(): NextjsPlugin {\n return {\n name: 'nextjs',\n onInit({ publicApi, initConfiguration }) {\n globalPublicApi = publicApi\n initConfiguration.trackViewsManually = true\n routerType = mockable(detectNextjsRouterType)()\n\n for (const subscriber of onRumInitSubscribers) {\n subscriber(publicApi)\n }\n },\n onRumStart({ addError }) {\n globalAddError = addError\n if (addError) {\n for (const subscriber of onRumStartSubscribers) {\n subscriber(addError)\n }\n }\n },\n getConfigurationTelemetry() {\n const nextjsVersion = (globalObject as NextjsGlobalObject).next?.version\n return {\n router: true,\n integrations: toIntegrations(nextjsVersion && toMajorVersionIntegration('nextjs', nextjsVersion), routerType),\n }\n },\n } satisfies RumPlugin\n}\n\n// The App Router doesn't hydrate from a `__NEXT_DATA__` payload (it streams RSC data instead),\n// so its absence is used as a best-effort signal that the app router is in use.\nfunction detectNextjsRouterType(): NextjsRouterType {\n return document.getElementById('__NEXT_DATA__') ? 'pages-router' : 'app-router'\n}\n\nexport function startNextjsView(viewName: string) {\n if (globalPublicApi) {\n // Use the URL captured by onRouterTransitionStart if available, since React renders before pushState updates window.location\n const url = lastNavigationUrl ? buildUrl(lastNavigationUrl, window.location.origin).href : undefined\n lastNavigationUrl = undefined\n globalPublicApi.startView({ name: viewName, url })\n }\n}\n\n// Must be re-exported from the user's instrumentation-client.ts so we can capture the URL before React renders\nexport function onRouterTransitionStart(url: string) {\n lastNavigationUrl = url\n}\n\nexport function onRumInit(callback: InitSubscriber) {\n if (globalPublicApi) {\n callback(globalPublicApi)\n } else {\n onRumInitSubscribers.push(callback)\n }\n}\n\nexport function onRumStart(callback: StartSubscriber) {\n if (globalAddError) {\n callback(globalAddError)\n } else {\n onRumStartSubscribers.push(callback)\n }\n}\n\nexport function resetNextjsPlugin() {\n globalPublicApi = undefined\n globalAddError = undefined\n onRumInitSubscribers.length = 0\n onRumStartSubscribers.length = 0\n lastNavigationUrl = undefined\n routerType = undefined\n}\n"],"mappings":";;;AAaA,IAAI;AACJ,IAAI;AACJ,IAAI;AACJ,IAAI;AAEJ,MAAM,uBAAyC,CAAC;AAChD,MAAM,wBAA2C,CAAC;AAElD,SAAgB,eAA6B;CAC3C,OAAO;EACL,MAAM;EACN,OAAO,EAAE,WAAW,qBAAqB;GACvC,kBAAkB;GAClB,kBAAkB,qBAAqB;GACvC,cAAA,GAAaA,sBAAAA,SAAAA,CAAS,sBAAsB,CAAC,CAAC;GAE9C,KAAK,MAAM,cAAc,sBACvB,WAAW,SAAS;EAExB;EACA,WAAW,EAAE,YAAY;GACvB,iBAAiB;GACjB,IAAI,UACF,KAAK,MAAM,cAAc,uBACvB,WAAW,QAAQ;EAGzB;EACA,4BAA4B;GAC1B,MAAM,gBAAiBC,sBAAAA,aAAoC,MAAM;GACjE,OAAO;IACL,QAAQ;IACR,eAAA,GAAcC,sBAAAA,eAAAA,CAAe,kBAAA,GAAiBC,sBAAAA,0BAAAA,CAA0B,UAAU,aAAa,GAAG,UAAU;GAC9G;EACF;CACF;AACF;AAIA,SAAS,yBAA2C;CAClD,OAAO,SAAS,eAAe,eAAe,IAAI,iBAAiB;AACrE;AAEA,SAAgB,gBAAgB,UAAkB;CAChD,IAAI,iBAAiB;EAEnB,MAAM,MAAM,qBAAA,GAAoBC,sBAAAA,SAAAA,CAAS,mBAAmB,OAAO,SAAS,MAAM,CAAC,CAAC,OAAO,KAAA;EAC3F,oBAAoB,KAAA;EACpB,gBAAgB,UAAU;GAAE,MAAM;GAAU;EAAI,CAAC;CACnD;AACF;AAGA,SAAgB,wBAAwB,KAAa;CACnD,oBAAoB;AACtB;AAUA,SAAgB,WAAW,UAA2B;CACpD,IAAI,gBACF,SAAS,cAAc;MAEvB,sBAAsB,KAAK,QAAQ;AAEvC"}
@@ -1,5 +1,5 @@
1
- import { buildUrl } from "@datadog/js-core/util";
2
- import { globalObject, mockable, toIntegrations, toMajorVersionIntegration } from "@datadog/browser-core";
1
+ import { buildUrl, globalObject } from "@datadog/js-core/util";
2
+ import { mockable, toIntegrations, toMajorVersionIntegration } from "@datadog/browser-core";
3
3
  //#region src/domain/nextjsPlugin.ts
4
4
  let globalPublicApi;
5
5
  let globalAddError;
@@ -1 +1 @@
1
- {"version":3,"file":"nextjsPlugin.mjs","names":[],"sources":["../../src/domain/nextjsPlugin.ts"],"sourcesContent":["import { buildUrl } from '@datadog/js-core/util'\nimport { globalObject, mockable, toIntegrations, toMajorVersionIntegration } from '@datadog/browser-core'\nimport type { RumPlugin, RumPublicApi, StartRumResult } from '@datadog/browser-rum-core'\n\nexport type NextjsPlugin = Pick<Required<RumPlugin>, 'name' | 'onInit' | 'onRumStart' | 'getConfigurationTelemetry'>\n\ntype NextjsRouterType = 'app-router' | 'pages-router'\ninterface NextjsGlobalObject {\n next?: { version?: string }\n}\ntype InitSubscriber = (rumPublicApi: RumPublicApi) => void\ntype StartSubscriber = (addError: StartRumResult['addError']) => void\n\nlet globalPublicApi: RumPublicApi | undefined\nlet globalAddError: StartRumResult['addError'] | undefined\nlet lastNavigationUrl: string | undefined\nlet routerType: NextjsRouterType | undefined\n\nconst onRumInitSubscribers: InitSubscriber[] = []\nconst onRumStartSubscribers: StartSubscriber[] = []\n\nexport function nextjsPlugin(): NextjsPlugin {\n return {\n name: 'nextjs',\n onInit({ publicApi, initConfiguration }) {\n globalPublicApi = publicApi\n initConfiguration.trackViewsManually = true\n routerType = mockable(detectNextjsRouterType)()\n\n for (const subscriber of onRumInitSubscribers) {\n subscriber(publicApi)\n }\n },\n onRumStart({ addError }) {\n globalAddError = addError\n if (addError) {\n for (const subscriber of onRumStartSubscribers) {\n subscriber(addError)\n }\n }\n },\n getConfigurationTelemetry() {\n const nextjsVersion = (globalObject as NextjsGlobalObject).next?.version\n return {\n router: true,\n integrations: toIntegrations(nextjsVersion && toMajorVersionIntegration('nextjs', nextjsVersion), routerType),\n }\n },\n } satisfies RumPlugin\n}\n\n// The App Router doesn't hydrate from a `__NEXT_DATA__` payload (it streams RSC data instead),\n// so its absence is used as a best-effort signal that the app router is in use.\nfunction detectNextjsRouterType(): NextjsRouterType {\n return document.getElementById('__NEXT_DATA__') ? 'pages-router' : 'app-router'\n}\n\nexport function startNextjsView(viewName: string) {\n if (globalPublicApi) {\n // Use the URL captured by onRouterTransitionStart if available, since React renders before pushState updates window.location\n const url = lastNavigationUrl ? buildUrl(lastNavigationUrl, window.location.origin).href : undefined\n lastNavigationUrl = undefined\n globalPublicApi.startView({ name: viewName, url })\n }\n}\n\n// Must be re-exported from the user's instrumentation-client.ts so we can capture the URL before React renders\nexport function onRouterTransitionStart(url: string) {\n lastNavigationUrl = url\n}\n\nexport function onRumInit(callback: InitSubscriber) {\n if (globalPublicApi) {\n callback(globalPublicApi)\n } else {\n onRumInitSubscribers.push(callback)\n }\n}\n\nexport function onRumStart(callback: StartSubscriber) {\n if (globalAddError) {\n callback(globalAddError)\n } else {\n onRumStartSubscribers.push(callback)\n }\n}\n\nexport function resetNextjsPlugin() {\n globalPublicApi = undefined\n globalAddError = undefined\n onRumInitSubscribers.length = 0\n onRumStartSubscribers.length = 0\n lastNavigationUrl = undefined\n routerType = undefined\n}\n"],"mappings":";;;AAaA,IAAI;AACJ,IAAI;AACJ,IAAI;AACJ,IAAI;AAEJ,MAAM,uBAAyC,CAAC;AAChD,MAAM,wBAA2C,CAAC;AAElD,SAAgB,eAA6B;CAC3C,OAAO;EACL,MAAM;EACN,OAAO,EAAE,WAAW,qBAAqB;GACvC,kBAAkB;GAClB,kBAAkB,qBAAqB;GACvC,aAAa,SAAS,sBAAsB,CAAC,CAAC;GAE9C,KAAK,MAAM,cAAc,sBACvB,WAAW,SAAS;EAExB;EACA,WAAW,EAAE,YAAY;GACvB,iBAAiB;GACjB,IAAI,UACF,KAAK,MAAM,cAAc,uBACvB,WAAW,QAAQ;EAGzB;EACA,4BAA4B;GAC1B,MAAM,gBAAiB,aAAoC,MAAM;GACjE,OAAO;IACL,QAAQ;IACR,cAAc,eAAe,iBAAiB,0BAA0B,UAAU,aAAa,GAAG,UAAU;GAC9G;EACF;CACF;AACF;AAIA,SAAS,yBAA2C;CAClD,OAAO,SAAS,eAAe,eAAe,IAAI,iBAAiB;AACrE;AAEA,SAAgB,gBAAgB,UAAkB;CAChD,IAAI,iBAAiB;EAEnB,MAAM,MAAM,oBAAoB,SAAS,mBAAmB,OAAO,SAAS,MAAM,CAAC,CAAC,OAAO,KAAA;EAC3F,oBAAoB,KAAA;EACpB,gBAAgB,UAAU;GAAE,MAAM;GAAU;EAAI,CAAC;CACnD;AACF;AAGA,SAAgB,wBAAwB,KAAa;CACnD,oBAAoB;AACtB;AAUA,SAAgB,WAAW,UAA2B;CACpD,IAAI,gBACF,SAAS,cAAc;MAEvB,sBAAsB,KAAK,QAAQ;AAEvC"}
1
+ {"version":3,"file":"nextjsPlugin.mjs","names":[],"sources":["../../src/domain/nextjsPlugin.ts"],"sourcesContent":["import { buildUrl, globalObject } from '@datadog/js-core/util'\nimport { mockable, toIntegrations, toMajorVersionIntegration } from '@datadog/browser-core'\nimport type { RumPlugin, RumPublicApi, StartRumResult } from '@datadog/browser-rum-core'\n\nexport type NextjsPlugin = Pick<Required<RumPlugin>, 'name' | 'onInit' | 'onRumStart' | 'getConfigurationTelemetry'>\n\ntype NextjsRouterType = 'app-router' | 'pages-router'\ninterface NextjsGlobalObject {\n next?: { version?: string }\n}\ntype InitSubscriber = (rumPublicApi: RumPublicApi) => void\ntype StartSubscriber = (addError: StartRumResult['addError']) => void\n\nlet globalPublicApi: RumPublicApi | undefined\nlet globalAddError: StartRumResult['addError'] | undefined\nlet lastNavigationUrl: string | undefined\nlet routerType: NextjsRouterType | undefined\n\nconst onRumInitSubscribers: InitSubscriber[] = []\nconst onRumStartSubscribers: StartSubscriber[] = []\n\nexport function nextjsPlugin(): NextjsPlugin {\n return {\n name: 'nextjs',\n onInit({ publicApi, initConfiguration }) {\n globalPublicApi = publicApi\n initConfiguration.trackViewsManually = true\n routerType = mockable(detectNextjsRouterType)()\n\n for (const subscriber of onRumInitSubscribers) {\n subscriber(publicApi)\n }\n },\n onRumStart({ addError }) {\n globalAddError = addError\n if (addError) {\n for (const subscriber of onRumStartSubscribers) {\n subscriber(addError)\n }\n }\n },\n getConfigurationTelemetry() {\n const nextjsVersion = (globalObject as NextjsGlobalObject).next?.version\n return {\n router: true,\n integrations: toIntegrations(nextjsVersion && toMajorVersionIntegration('nextjs', nextjsVersion), routerType),\n }\n },\n } satisfies RumPlugin\n}\n\n// The App Router doesn't hydrate from a `__NEXT_DATA__` payload (it streams RSC data instead),\n// so its absence is used as a best-effort signal that the app router is in use.\nfunction detectNextjsRouterType(): NextjsRouterType {\n return document.getElementById('__NEXT_DATA__') ? 'pages-router' : 'app-router'\n}\n\nexport function startNextjsView(viewName: string) {\n if (globalPublicApi) {\n // Use the URL captured by onRouterTransitionStart if available, since React renders before pushState updates window.location\n const url = lastNavigationUrl ? buildUrl(lastNavigationUrl, window.location.origin).href : undefined\n lastNavigationUrl = undefined\n globalPublicApi.startView({ name: viewName, url })\n }\n}\n\n// Must be re-exported from the user's instrumentation-client.ts so we can capture the URL before React renders\nexport function onRouterTransitionStart(url: string) {\n lastNavigationUrl = url\n}\n\nexport function onRumInit(callback: InitSubscriber) {\n if (globalPublicApi) {\n callback(globalPublicApi)\n } else {\n onRumInitSubscribers.push(callback)\n }\n}\n\nexport function onRumStart(callback: StartSubscriber) {\n if (globalAddError) {\n callback(globalAddError)\n } else {\n onRumStartSubscribers.push(callback)\n }\n}\n\nexport function resetNextjsPlugin() {\n globalPublicApi = undefined\n globalAddError = undefined\n onRumInitSubscribers.length = 0\n onRumStartSubscribers.length = 0\n lastNavigationUrl = undefined\n routerType = undefined\n}\n"],"mappings":";;;AAaA,IAAI;AACJ,IAAI;AACJ,IAAI;AACJ,IAAI;AAEJ,MAAM,uBAAyC,CAAC;AAChD,MAAM,wBAA2C,CAAC;AAElD,SAAgB,eAA6B;CAC3C,OAAO;EACL,MAAM;EACN,OAAO,EAAE,WAAW,qBAAqB;GACvC,kBAAkB;GAClB,kBAAkB,qBAAqB;GACvC,aAAa,SAAS,sBAAsB,CAAC,CAAC;GAE9C,KAAK,MAAM,cAAc,sBACvB,WAAW,SAAS;EAExB;EACA,WAAW,EAAE,YAAY;GACvB,iBAAiB;GACjB,IAAI,UACF,KAAK,MAAM,cAAc,uBACvB,WAAW,QAAQ;EAGzB;EACA,4BAA4B;GAC1B,MAAM,gBAAiB,aAAoC,MAAM;GACjE,OAAO;IACL,QAAQ;IACR,cAAc,eAAe,iBAAiB,0BAA0B,UAAU,aAAa,GAAG,UAAU;GAC9G;EACF;CACF;AACF;AAIA,SAAS,yBAA2C;CAClD,OAAO,SAAS,eAAe,eAAe,IAAI,iBAAiB;AACrE;AAEA,SAAgB,gBAAgB,UAAkB;CAChD,IAAI,iBAAiB;EAEnB,MAAM,MAAM,oBAAoB,SAAS,mBAAmB,OAAO,SAAS,MAAM,CAAC,CAAC,OAAO,KAAA;EAC3F,oBAAoB,KAAA;EACpB,gBAAgB,UAAU;GAAE,MAAM;GAAU;EAAI,CAAC;CACnD;AACF;AAGA,SAAgB,wBAAwB,KAAa;CACnD,oBAAoB;AACtB;AAUA,SAAgB,WAAW,UAA2B;CACpD,IAAI,gBACF,SAAS,cAAc;MAEvB,sBAAsB,KAAK,QAAQ;AAEvC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datadog/browser-rum-nextjs",
3
- "version": "7.9.0",
3
+ "version": "7.10.0",
4
4
  "license": "Apache-2.0",
5
5
  "main": "cjs/entries/main.js",
6
6
  "module": "esm/entries/main.mjs",
@@ -17,10 +17,10 @@
17
17
  "prepack": "yarn build"
18
18
  },
19
19
  "dependencies": {
20
- "@datadog/browser-core": "7.9.0",
21
- "@datadog/browser-rum-core": "7.9.0",
22
- "@datadog/browser-rum-react": "7.9.0",
23
- "@datadog/js-core": "0.0.10"
20
+ "@datadog/browser-core": "7.10.0",
21
+ "@datadog/browser-rum-core": "7.10.0",
22
+ "@datadog/browser-rum-react": "7.10.0",
23
+ "@datadog/js-core": "0.0.11"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "next": ">=13.0.0",
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/react": "19.2.18",
47
- "next": "16.3.0",
47
+ "next": "16.3.1",
48
48
  "react": "19.2.8",
49
49
  "react-dom": "19.2.8"
50
50
  }
@@ -1,5 +1,5 @@
1
- import { buildUrl } from '@datadog/js-core/util'
2
- import { globalObject, mockable, toIntegrations, toMajorVersionIntegration } from '@datadog/browser-core'
1
+ import { buildUrl, globalObject } from '@datadog/js-core/util'
2
+ import { mockable, toIntegrations, toMajorVersionIntegration } from '@datadog/browser-core'
3
3
  import type { RumPlugin, RumPublicApi, StartRumResult } from '@datadog/browser-rum-core'
4
4
 
5
5
  export type NextjsPlugin = Pick<Required<RumPlugin>, 'name' | 'onInit' | 'onRumStart' | 'getConfigurationTelemetry'>