Skip to content

Commit 0320b4d

Browse files
committed
chore(repo): Add changeset
1 parent 4ceb47b commit 0320b4d

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.changeset/mighty-bulldogs-try.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
'gatsby-plugin-clerk': major
3+
'@clerk/chrome-extension': major
4+
'@clerk/nextjs': major
5+
'@clerk/clerk-react': major
6+
'@clerk/remix': major
7+
'@clerk/clerk-expo': major
8+
---
9+
10+
- Introduce `@clerk/clerk-react/errors` and `@clerk/clerk-react/internal` subpath exports to expose some internal utilities. Eg
11+
```typescript
12+
// Before
13+
import { __internal__setErrorThrowerOptions } from '@clerk/clerk-react';
14+
// After
15+
import { setErrorThrowerOptions } from '@clerk/clerk-react/internal';
16+
17+
// Before
18+
import { isClerkAPIResponseError, isEmailLinkError, isKnownError, isMetamaskError, EmailLinkErrorCode } from '@clerk/clerk-react';
19+
// After
20+
import { isClerkAPIResponseError, isEmailLinkError, isKnownError, isMetamaskError, EmailLinkErrorCode } from '@clerk/clerk-react/errors';
21+
22+
// Before
23+
import { MultisessionAppSupport } from '@clerk/clerk-react';
24+
// After
25+
import { MultisessionAppSupport } from '@clerk/clerk-react/internal';
26+
```
27+
- Drop from the `@clerk/clerk-react` and all other clerk-react wrapper packages:
28+
- `__internal__setErrorThrowerOptions` internal utility (moved to /internal subpath)
29+
- `WithClerkProp` type
30+
- `MultisessionAppSupport` component (moved to /internal subpath)
31+
- Drop `StructureContext` and related errors to reduce to reduce code complexity since it seems that it was not being used.
32+
- Drop `withUser`, `WithUser`, `withClerk` HOFs and `WithClerk`, `withSession`, `WithSession` HOCs from the `@clerk/clerk-react`
33+
to reduce the export surface since it's trivial to implement if needed.

0 commit comments

Comments
 (0)