Skip to content

Commit 1e9023d

Browse files
committed
add tanstackstart-solid
1 parent 4a254a3 commit 1e9023d

File tree

7 files changed

+35
-9
lines changed

7 files changed

+35
-9
lines changed

.craft.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ targets:
114114
- name: npm
115115
id: '@sentry/tanstackstart-react'
116116
includeNames: /^sentry-tanstackstart-react-\d.*\.tgz$/
117+
- name: npm
118+
id: '@sentry/tanstackstart-solid'
119+
includeNames: /^sentry-tanstackstart-solid-\d.*\.tgz$/
117120
- name: npm
118121
id: '@sentry/gatsby'
119122
includeNames: /^sentry-gatsby-\d.*\.tgz$/

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ body:
5151
- '@sentry/svelte'
5252
- '@sentry/sveltekit'
5353
- '@sentry/tanstackstart-react'
54+
- '@sentry/tanstackstart-solid'
5455
- '@sentry/vue'
5556
- '@sentry/wasm'
5657
- Sentry Browser Loader

.yarn/install-state.gz

984 Bytes
Binary file not shown.

dev-packages/e2e-tests/verdaccio-config/config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,12 @@ packages:
182182
unpublish: $all
183183
# proxy: npmjs # Don't proxy for E2E tests!
184184

185+
'@sentry/tanstackstart-solid':
186+
access: $all
187+
publish: $all
188+
unpublish: $all
189+
# proxy: npmjs # Don't proxy for E2E tests!
190+
185191
'@sentry/types':
186192
access: $all
187193
publish: $all

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
"packages/sveltekit",
8484
"packages/tanstackstart",
8585
"packages/tanstackstart-react",
86+
"packages/tanstackstart-solid",
8687
"packages/types",
8788
"packages/typescript",
8889
"packages/vercel-edge",

packages/tanstackstart-solid/src/server/index.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,38 @@
11
export * from '@sentry/node';
22

3+
import type { Component, JSX } from 'solid-js';
4+
35
/**
46
* A passthrough error boundary for the server that doesn't depend on any react. Error boundaries don't catch SSR errors
57
* so they should simply be a passthrough.
68
*/
7-
export const ErrorBoundary = (props: React.PropsWithChildren<unknown>): React.ReactNode => {
9+
export const ErrorBoundary = (props: { children?: JSX.Element | (() => JSX.Element) }): JSX.Element => {
810
if (!props.children) {
911
return null;
1012
}
1113

1214
if (typeof props.children === 'function') {
13-
return (props.children as () => React.ReactNode)();
15+
return props.children();
1416
}
1517

1618
return props.children;
1719
};
1820

1921
/**
20-
* A passthrough redux enhancer for the server that doesn't depend on anything from the `@sentry/react` package.
22+
* A passthrough store enhancer for the server that doesn't depend on anything from the `@sentry/react` package.
2123
*/
22-
export function createReduxEnhancer() {
24+
export function createStoreEnhancer() {
2325
return (createStore: unknown) => createStore;
2426
}
2527

2628
/**
2729
* A passthrough error boundary wrapper for the server that doesn't depend on any react. Error boundaries don't catch
2830
* SSR errors so they should simply be a passthrough.
2931
*/
30-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
31-
export function withErrorBoundary<P extends Record<string, any>>(
32-
WrappedComponent: React.ComponentType<P>,
33-
): React.FC<P> {
34-
return WrappedComponent as React.FC<P>;
32+
export function withErrorBoundary<P extends Record<string, unknown>>(
33+
WrappedComponent: Component<P>,
34+
): Component<P> {
35+
return WrappedComponent;
3536
}
3637

3738
/**

yarn.lock

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9808,6 +9808,20 @@ __metadata:
98089808
languageName: unknown
98099809
linkType: soft
98109810

9811+
"@sentry/tanstackstart-solid@workspace:packages/tanstackstart-solid":
9812+
version: 0.0.0-use.local
9813+
resolution: "@sentry/tanstackstart-solid@workspace:packages/tanstackstart-solid"
9814+
dependencies:
9815+
"@opentelemetry/api": "npm:^1.9.0"
9816+
"@opentelemetry/semantic-conventions": "npm:^1.30.0"
9817+
"@sentry-internal/browser-utils": "npm:9.10.1"
9818+
"@sentry/core": "npm:9.10.1"
9819+
"@sentry/node": "npm:9.10.1"
9820+
"@sentry/opentelemetry": "npm:9.10.1"
9821+
"@sentry/solid": "npm:9.10.1"
9822+
languageName: unknown
9823+
linkType: soft
9824+
98119825
"@sentry/tanstackstart@workspace:packages/tanstackstart":
98129826
version: 0.0.0-use.local
98139827
resolution: "@sentry/tanstackstart@workspace:packages/tanstackstart"

0 commit comments

Comments
 (0)