Skip to content

Commit ec10b98

Browse files
committed
Move supabase into its own internal package.
1 parent ada07a7 commit ec10b98

23 files changed

+355
-160
lines changed

.craft.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +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)
36+
- name: npm
37+
id: '@sentry-internal/supabase'
38+
includeNames: /^sentry-internal-supabase-\d.*\.tgz$/
3539

3640
## 2. Browser & Node SDKs
3741
- name: npm

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
"packages/replay-worker",
8080
"packages/solid",
8181
"packages/solidstart",
82+
"packages/supabase",
8283
"packages/svelte",
8384
"packages/sveltekit",
8485
"packages/tanstackstart",

packages/browser/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343
"@sentry-internal/feedback": "9.5.0",
4444
"@sentry-internal/replay": "9.5.0",
4545
"@sentry-internal/replay-canvas": "9.5.0",
46-
"@sentry/core": "9.5.0"
46+
"@sentry/core": "9.5.0",
47+
"@sentry-internal/supabase": "9.5.0"
4748
},
4849
"devDependencies": {
4950
"@sentry-internal/integration-shims": "9.5.0",

packages/browser/src/exports.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,10 @@ export {
6161
spanToTraceHeader,
6262
spanToBaggageHeader,
6363
updateSpanName,
64-
supabaseIntegration,
6564
} from '@sentry/core';
6665

66+
export { supabaseIntegration } from '@sentry-internal/supabase';
67+
6768
export {
6869
SEMANTIC_ATTRIBUTE_SENTRY_OP,
6970
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,

packages/browser/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ export {
5555
makeMultiplexedTransport,
5656
moduleMetadataIntegration,
5757
zodErrorsIntegration,
58-
supabaseIntegration,
5958
thirdPartyErrorFilterIntegration,
6059
} from '@sentry/core';
60+
export { supabaseIntegration } from '@sentry-internal/supabase';
6161
export type { Span } from '@sentry/core';
6262
export { makeBrowserOfflineTransport } from './transports/offline';
6363
export { browserProfilingIntegration } from './profiling/integration';

packages/core/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ export { dedupeIntegration } from './integrations/dedupe';
107107
export { extraErrorDataIntegration } from './integrations/extraerrordata';
108108
export { rewriteFramesIntegration } from './integrations/rewriteframes';
109109
export { zodErrorsIntegration } from './integrations/zoderrors';
110-
export { supabaseIntegration } from './integrations/supabase';
111110
export { thirdPartyErrorFilterIntegration } from './integrations/third-party-errors-filter';
112111
export { profiler } from './profiling';
113112
export { instrumentFetchRequest } from './fetch';

packages/node/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
"@prisma/instrumentation": "6.4.1",
9999
"@sentry/core": "9.5.0",
100100
"@sentry/opentelemetry": "9.5.0",
101+
"@sentry-internal/supabase": "9.5.0",
101102
"import-in-the-middle": "^1.13.0"
102103
},
103104
"devDependencies": {

packages/node/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ 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';
4041

4142
export {
4243
init,
@@ -129,7 +130,6 @@ export {
129130
trpcMiddleware,
130131
updateSpanName,
131132
zodErrorsIntegration,
132-
supabaseIntegration,
133133
profiler,
134134
} from '@sentry/core';
135135

packages/supabase/.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules/
2+
build/

packages/supabase/.eslintrc.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Note: All paths are relative to the directory in which eslint is being run, rather than the directory where this file
2+
// lives
3+
4+
// ESLint config docs: https://eslint.org/docs/user-guide/configuring/
5+
6+
module.exports = {
7+
extends: ['../../.eslintrc.js'],
8+
};

0 commit comments

Comments
 (0)