Skip to content

Commit 2014e5d

Browse files
authored
chore: Remove @apm-js-collab/code-transformer as a dependency (#22317)
`@apm-js-collab/code-transformer` was only ever a dependency to access the `InstrumentationConfig` type. This is now re-exported from `@apm-js-collab/code-transformer-bundler-plugins/core` at the root of `@sentry/server-utils` so it can be used wherever we need it.
1 parent d4098b3 commit 2014e5d

43 files changed

Lines changed: 47 additions & 47 deletions

Some content is hidden

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

dev-packages/e2e-tests/test-applications/astro-7-orchestrion/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"mysql": "^2.18.1"
2525
},
2626
"devDependencies": {
27-
"@apm-js-collab/code-transformer-bundler-plugins": "^0.7.0"
27+
"@apm-js-collab/code-transformer-bundler-plugins": "^0.7.1"
2828
},
2929
"volta": {
3030
"node": "22.22.0",

dev-packages/e2e-tests/test-applications/nuxt-4-orchestrion/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"vue-router": "^5.1.0"
2828
},
2929
"devDependencies": {
30-
"@apm-js-collab/code-transformer-bundler-plugins": "^0.7.0",
30+
"@apm-js-collab/code-transformer-bundler-plugins": "^0.7.1",
3131
"@playwright/test": "~1.56.0",
3232
"@sentry-internal/test-utils": "link:../../../test-utils"
3333
},

dev-packages/e2e-tests/test-applications/sveltekit-2-orchestrion/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"mysql": "^2.18.1"
2525
},
2626
"devDependencies": {
27-
"@apm-js-collab/code-transformer-bundler-plugins": "^0.7.0",
27+
"@apm-js-collab/code-transformer-bundler-plugins": "^0.7.1",
2828
"@playwright/test": "~1.56.0",
2929
"@sentry-internal/test-utils": "link:../../../test-utils",
3030
"@sveltejs/adapter-auto": "^7.0.1",

packages/bun/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"access": "public"
5050
},
5151
"dependencies": {
52-
"@apm-js-collab/code-transformer-bundler-plugins": "^0.7.0",
52+
"@apm-js-collab/code-transformer-bundler-plugins": "^0.7.1",
5353
"@sentry/core": "10.66.0",
5454
"@sentry/node": "10.66.0",
5555
"@sentry/server-utils": "10.66.0"

packages/node-core/src/sdk/apm-js-collab-tracing-hooks.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
declare module '@apm-js-collab/tracing-hooks' {
2-
import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';
2+
import type { InstrumentationConfig } from '@sentry/server-utils';
33

44
type PatchConfig = { instrumentations: InstrumentationConfig[] };
55

packages/server-utils/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,7 @@
116116
"access": "public"
117117
},
118118
"dependencies": {
119-
"@apm-js-collab/code-transformer-bundler-plugins": "^0.7.0",
120-
"@apm-js-collab/code-transformer": "^0.18.0",
119+
"@apm-js-collab/code-transformer-bundler-plugins": "^0.7.1",
121120
"@apm-js-collab/tracing-hooks": "^0.13.0",
122121
"@sentry/conventions": "^0.16.0",
123122
"@sentry/core": "10.66.0"

packages/server-utils/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export type {
2020
TracingChannelPayloadWithSpan,
2121
} from './tracing-channel';
2222
export { vercelAiIntegration } from './vercel-ai';
23-
23+
export type { InstrumentationConfig } from './orchestrion';
2424
export {
2525
fastifyIntegration,
2626
// oxlint-disable-next-line typescript/no-deprecated

packages/server-utils/src/orchestrion/bundler/options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { InstrumentationConfig, CustomTransform } from '@apm-js-collab/code-transformer';
1+
import type { InstrumentationConfig, CustomTransform } from '..';
22
import { SENTRY_INSTRUMENTATIONS } from '../config';
33
import type { CodeTransformerPluginOptions } from '@apm-js-collab/code-transformer-bundler-plugins/core';
44

packages/server-utils/src/orchestrion/bundler/webpack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import { createRequire } from 'node:module';
55
import { dirname } from 'node:path';
6-
import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';
6+
import type { InstrumentationConfig } from '..';
77
import { SENTRY_INSTRUMENTATIONS } from '../config';
88
import type { PluginOptions } from './options';
99
import { orchestrionTransformOptions } from './options';

packages/server-utils/src/orchestrion/config/amqplib.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';
1+
import type { InstrumentationConfig } from '..';
22

33
// `amqplib` splits its API across three files:
44
// - `lib/channel_model.js` holds `class Channel` (publish/consume/ack/nack/reject/…) and

0 commit comments

Comments
 (0)