Skip to content

Commit 40bcf5f

Browse files
committed
Make supabase a public package
1 parent 4119e3f commit 40bcf5f

File tree

15 files changed

+12
-18
lines changed

15 files changed

+12
-18
lines changed

.craft.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ targets:
3232
- name: npm
3333
id: '@sentry-internal/replay-canvas'
3434
includeNames: /^sentry-internal-replay-canvas-\d.*\.tgz$/
35-
## 1.8 Supabase package (browser and node)
35+
## 1.8 Supabase package (browser and node)
3636
- name: npm
37-
id: '@sentry-internal/supabase'
38-
includeNames: /^sentry-internal-supabase-\d.*\.tgz$/
37+
id: '@sentry/supabase'
38+
includeNames: /^sentry-supabase-\d.*\.tgz$/
3939

4040
## 2. Browser & Node SDKs
4141
- name: npm

dev-packages/e2e-tests/test-applications/supabase-nextjs/lib/initSupabaseAdmin.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { createClient } from '@supabase/supabase-js';
22
import * as Sentry from '@sentry/nextjs';
3+
import { supabaseIntegration } from '@sentry/supabase';
34

45
// These are the default development keys for a local Supabase instance
56
const NEXT_PUBLIC_SUPABASE_URL = 'http://localhost:54321';
@@ -15,7 +16,7 @@ export const supabase = createClient(NEXT_PUBLIC_SUPABASE_URL, SUPABASE_SERVICE_
1516
});
1617

1718
Sentry.addIntegration(
18-
Sentry.supabaseIntegration({
19+
supabaseIntegration({
1920
supabaseClient: supabase,
2021
}),
2122
);

dev-packages/e2e-tests/test-applications/supabase-nextjs/lib/initSupabaseAnon.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { createClient } from '@supabase/supabase-js';
22
import * as Sentry from '@sentry/nextjs';
3+
import { supabaseIntegration } from '@sentry/supabase';
34

45
// These are the default development keys for a local Supabase instance
56
const NEXT_PUBLIC_SUPABASE_URL = 'http://localhost:54321';
@@ -9,7 +10,7 @@ const NEXT_PUBLIC_SUPABASE_ANON_KEY =
910
export const supabase = createClient(NEXT_PUBLIC_SUPABASE_URL, NEXT_PUBLIC_SUPABASE_ANON_KEY);
1011

1112
Sentry.addIntegration(
12-
Sentry.supabaseIntegration({
13+
supabaseIntegration({
1314
supabaseClient: supabase,
1415
}),
1516
);

dev-packages/e2e-tests/test-applications/supabase-nextjs/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"dependencies": {
1616
"@next/font": "14.2.15",
1717
"@sentry/nextjs": "latest || *",
18+
"@sentry/supabase": "latest || *",
1819
"@supabase/auth-helpers-react": "0.5.0",
1920
"@supabase/auth-ui-react": "0.4.7",
2021
"@supabase/supabase-js": "2.49.1",

packages/astro/src/index.server.ts

-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ export {
117117
startSession,
118118
startSpan,
119119
startSpanManual,
120-
supabaseIntegration,
121120
tediousIntegration,
122121
trpcMiddleware,
123122
updateSpanName,

packages/aws-serverless/src/index.ts

-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ export {
109109
spanToBaggageHeader,
110110
trpcMiddleware,
111111
updateSpanName,
112-
supabaseIntegration,
113112
zodErrorsIntegration,
114113
profiler,
115114
amqplibIntegration,

packages/browser/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"@sentry-internal/replay": "9.6.1",
4545
"@sentry-internal/replay-canvas": "9.6.1",
4646
"@sentry/core": "9.6.1",
47-
"@sentry-internal/supabase": "9.6.1"
47+
"@sentry/supabase": "9.6.1"
4848
},
4949
"devDependencies": {
5050
"@sentry-internal/integration-shims": "9.6.1",

packages/browser/src/exports.ts

-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ export {
6363
updateSpanName,
6464
} from '@sentry/core';
6565

66-
export { supabaseIntegration } from '@sentry-internal/supabase';
67-
6866
export {
6967
SEMANTIC_ATTRIBUTE_SENTRY_OP,
7068
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,

packages/browser/src/index.ts

-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ export {
5757
zodErrorsIntegration,
5858
thirdPartyErrorFilterIntegration,
5959
} from '@sentry/core';
60-
export { supabaseIntegration } from '@sentry-internal/supabase';
6160
export type { Span } from '@sentry/core';
6261
export { makeBrowserOfflineTransport } from './transports/offline';
6362
export { browserProfilingIntegration } from './profiling/integration';

packages/bun/src/index.ts

-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ export {
130130
updateSpanName,
131131
zodErrorsIntegration,
132132
profiler,
133-
supabaseIntegration,
134133
amqplibIntegration,
135134
vercelAIIntegration,
136135
} from '@sentry/node';

packages/google-cloud-serverless/src/index.ts

-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ export {
108108
spanToBaggageHeader,
109109
trpcMiddleware,
110110
updateSpanName,
111-
supabaseIntegration,
112111
zodErrorsIntegration,
113112
profiler,
114113
amqplibIntegration,

packages/node/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@
9898
"@prisma/instrumentation": "6.5.0",
9999
"@sentry/core": "9.6.1",
100100
"@sentry/opentelemetry": "9.6.1",
101-
"@sentry-internal/supabase": "9.6.1",
102101
"import-in-the-middle": "^1.13.0"
103102
},
104103
"devDependencies": {

packages/node/src/index.ts

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ export { childProcessIntegration } from './integrations/childProcess';
3737

3838
export { SentryContextManager } from './otel/contextManager';
3939
export { generateInstrumentOnce } from './otel/instrument';
40-
export { supabaseIntegration } from '@sentry-internal/supabase';
4140

4241
export {
4342
init,

packages/remix/test/integration/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929
"@sentry/node": "file:../../../node",
3030
"@sentry/opentelemetry": "file:../../../opentelemetry",
3131
"@sentry/react": "file:../../../react",
32+
"@sentry/supabase": "file:../../../supabase",
3233
"@sentry-internal/browser-utils": "file:../../../browser-utils",
3334
"@sentry-internal/replay": "file:../../../replay-internal",
3435
"@sentry-internal/replay-canvas": "file:../../../replay-canvas",
35-
"@sentry-internal/supabase": "file:../../../supabase",
3636
"@sentry-internal/feedback": "file:../../../feedback",
3737
"@sentry-internal/browser-integration-tests": "file:../../../../dev-packages/browser-integration-tests",
3838
"@vanilla-extract/css": "1.13.0",

packages/supabase/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@sentry-internal/supabase",
2+
"name": "@sentry/supabase",
33
"version": "9.6.1",
44
"description": "Sentry SDK integration for `@supabase/supabase-js`",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
@@ -54,7 +54,7 @@
5454
"build:types:watch": "tsc -p tsconfig.types.json --watch",
5555
"build:tarball": "npm pack",
5656
"circularDepCheck": "madge --circular src/index.ts",
57-
"clean": "rimraf build sentry-internal-supabase-*.tgz",
57+
"clean": "rimraf build sentry-supabase-*.tgz",
5858
"fix": "eslint . --format stylish --fix",
5959
"lint": "eslint . --format stylish",
6060
"yalc:publish": "yalc publish --push --sig"

0 commit comments

Comments
 (0)