Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/cuddly-cups-sip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/tanstack-start': patch
---

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.
4 changes: 4 additions & 0 deletions packages/tanstack-start/src/errors.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import { warnPackageRenaming } from './utils/errors';

warnPackageRenaming();

export {
isClerkAPIResponseError,
isEmailLinkError,
Expand Down
4 changes: 4 additions & 0 deletions packages/tanstack-start/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import { warnPackageRenaming } from './utils/errors';

warnPackageRenaming();

export * from './client/index';

// Override Clerk React error thrower to show that errors come from @clerk/tanstack-start
Expand Down
4 changes: 4 additions & 0 deletions packages/tanstack-start/src/server/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import { warnPackageRenaming } from '../utils/errors';

warnPackageRenaming();

export * from './middlewareHandler';

export * from './getAuth';
Expand Down
6 changes: 6 additions & 0 deletions packages/tanstack-start/src/utils/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,9 @@ To fix this, make sure you have the \`clerkHandler()\` configure in you SSR entr

For more info, check out the docs: https://github.com/clerk/javascript/tree/main/packages/tanstack-start#setup-clerkhandler-in-the-ssr-entrypoint,
`);

export const warnPackageRenaming = () => {
console.warn(
'[@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.',
);
};