Skip to content

Commit 7a27045

Browse files
committed
ref: Rename usages of node to node-experimental in downstream packages
1 parent ec4e869 commit 7a27045

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+109
-101
lines changed

packages/astro/src/index.server.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Node SDK exports
2-
// Unfortunately, we cannot `export * from '@sentry/node'` because in prod builds,
2+
// Unfortunately, we cannot `export * from '@sentry/node-experimental'` because in prod builds,
33
// Vite puts these exports into a `default` property (Sentry.default) rather than
44
// on the top - level namespace.
55

@@ -72,10 +72,10 @@ export {
7272
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
7373
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
7474
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
75-
} from '@sentry/node';
75+
} from '@sentry/node-experimental';
7676

7777
// We can still leave this for the carrier init and type exports
78-
export * from '@sentry/node';
78+
export * from '@sentry/node-experimental';
7979

8080
export { init } from './server/sdk';
8181

packages/astro/src/integration/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export const sentryAstro = (options: SentryOptions = {}): AstroIntegration => {
9191
// @sentry/node is required in case we have 2 different @sentry/node
9292
// packages installed in the same project.
9393
// Ref: https://github.com/getsentry/sentry-javascript/issues/10121
94-
noExternal: ['@sentry/astro', '@sentry/node'],
94+
noExternal: ['@sentry/astro', '@sentry/node-experimental'],
9595
},
9696
},
9797
});

packages/astro/src/server/middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
getCurrentScope,
88
startSpan,
99
withIsolationScope,
10-
} from '@sentry/node';
10+
} from '@sentry/node-experimental';
1111
import type { Client, Scope, Span } from '@sentry/types';
1212
import { addNonEnumerableProperty, objectify, stripUrlQueryAndFragment } from '@sentry/utils';
1313
import type { APIContext, MiddlewareResponseHandler } from 'astro';

packages/astro/src/server/sdk.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { applySdkMetadata } from '@sentry/core';
2-
import type { NodeOptions } from '@sentry/node';
3-
import { init as initNodeSdk, setTag } from '@sentry/node';
2+
import type { NodeOptions } from '@sentry/node-experimental';
3+
import { init as initNodeSdk, setTag } from '@sentry/node-experimental';
44

55
/**
66
*

packages/astro/test/server/middleware.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { SEMANTIC_ATTRIBUTE_SENTRY_SOURCE } from '@sentry/core';
2-
import * as SentryNode from '@sentry/node';
2+
import * as SentryNode from '@sentry/node-experimental';
33
import type { Client, Span } from '@sentry/types';
44
import { vi } from 'vitest';
55

packages/astro/test/server/sdk.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as SentryNode from '@sentry/node';
2-
import { SDK_VERSION } from '@sentry/node';
1+
import * as SentryNode from '@sentry/node-experimental';
2+
import { SDK_VERSION } from '@sentry/node-experimental';
33
import { vi } from 'vitest';
44

55
import { init } from '../../src/server/sdk';

packages/bun/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export type {
1818
} from '@sentry/types';
1919
export type { AddRequestDataToEventOptions } from '@sentry/utils';
2020

21-
export type { TransactionNamingScheme } from '@sentry/node';
21+
export type { TransactionNamingScheme } from '@sentry/node-experimental';
2222
export type { BunOptions } from './types';
2323

2424
export {
@@ -109,7 +109,7 @@ export {
109109
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
110110
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
111111
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
112-
} from '@sentry/node';
112+
} from '@sentry/node-experimental';
113113

114114
export { BunClient } from './client';
115115
export {
@@ -118,7 +118,7 @@ export {
118118
} from './sdk';
119119

120120
import { Integrations as CoreIntegrations } from '@sentry/core';
121-
import { Integrations as NodeIntegrations } from '@sentry/node';
121+
import { Integrations as NodeIntegrations } from '@sentry/node-experimental';
122122
import { BunServer } from './integrations/bunserver';
123123
export { bunServerIntegration } from './integrations/bunserver';
124124

packages/bun/src/sdk.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
modulesIntegration,
1414
nativeNodeFetchintegration,
1515
nodeContextIntegration,
16-
} from '@sentry/node';
16+
} from '@sentry/node-experimental';
1717
import type { Integration, Options } from '@sentry/types';
1818

1919
import { BunClient } from './client';
@@ -67,7 +67,7 @@ export function getDefaultIntegrations(_options: Options): Integration[] {
6767
* @example
6868
* ```
6969
*
70-
* const { addBreadcrumb } = require('@sentry/node');
70+
* const { addBreadcrumb } = require('@sentry/node-experimental');
7171
* addBreadcrumb({
7272
* message: 'My Breadcrumb',
7373
* // ...
@@ -77,7 +77,7 @@ export function getDefaultIntegrations(_options: Options): Integration[] {
7777
* @example
7878
* ```
7979
*
80-
* const Sentry = require('@sentry/node');
80+
* const Sentry = require('@sentry/node-experimental');
8181
* Sentry.captureMessage('Hello, world!');
8282
* Sentry.captureException(new Error('Good bye'));
8383
* Sentry.captureEvent({

packages/nextjs/src/config/webpack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as fs from 'fs';
22
import * as path from 'path';
33
/* eslint-disable complexity */
44
/* eslint-disable max-lines */
5-
import { getSentryRelease } from '@sentry/node';
5+
import { getSentryRelease } from '@sentry/node-experimental';
66
import { arrayify, dropUndefinedKeys, escapeStringForRegex, loadModule, logger } from '@sentry/utils';
77
import type SentryCliPlugin from '@sentry/webpack-plugin';
88
import * as chalk from 'chalk';

packages/nextjs/src/server/httpIntegration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Integrations } from '@sentry/node';
1+
import { Integrations } from '@sentry/node-experimental';
22

33
/**
44
* A custom HTTP integration where we always enable tracing.

0 commit comments

Comments
 (0)