Skip to content

Commit 3e8bfa2

Browse files
authoredMar 13, 2025
chore(tanstack-start): Add deprecation warning for package renaming (#5327)
1 parent 725918d commit 3e8bfa2

File tree

5 files changed

+23
-0
lines changed

5 files changed

+23
-0
lines changed
 

‎.changeset/cuddly-cups-sip.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/tanstack-start': patch
3+
---
4+
5+
Added a warning message to inform users that the package has been renamed from `@clerk/tanstack-start` to `@clerk/tanstack-react-start`. This change aligns our package naming with TanStack Start's conventions. Users should update their dependencies to use the new package name, as this is the last release under the old name.

‎packages/tanstack-start/src/errors.ts

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
import { warnPackageRenaming } from './utils/errors';
2+
3+
warnPackageRenaming();
4+
15
export {
26
isClerkAPIResponseError,
37
isEmailLinkError,

‎packages/tanstack-start/src/index.ts

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
import { warnPackageRenaming } from './utils/errors';
2+
3+
warnPackageRenaming();
4+
15
export * from './client/index';
26

37
// Override Clerk React error thrower to show that errors come from @clerk/tanstack-start

‎packages/tanstack-start/src/server/index.ts

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
import { warnPackageRenaming } from '../utils/errors';
2+
3+
warnPackageRenaming();
4+
15
export * from './middlewareHandler';
26

37
export * from './getAuth';

‎packages/tanstack-start/src/utils/errors.ts

+6
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,9 @@ To fix this, make sure you have the \`clerkHandler()\` configure in you SSR entr
2424
2525
For more info, check out the docs: https://github.com/clerk/javascript/tree/main/packages/tanstack-start#setup-clerkhandler-in-the-ssr-entrypoint,
2626
`);
27+
28+
export const warnPackageRenaming = () => {
29+
console.warn(
30+
'[@clerk/tanstack-start] Warning: This package has moved to @clerk/tanstack-react-start. Please switch to the new package, as this is the last release under this package name.',
31+
);
32+
};

0 commit comments

Comments
 (0)