-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(backend): Expose /internal subpath export
- Loading branch information
Showing
40 changed files
with
194 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
'gatsby-plugin-clerk': major | ||
'@clerk/clerk-sdk-node': major | ||
'@clerk/backend': major | ||
'@clerk/fastify': major | ||
'@clerk/nextjs': major | ||
'@clerk/remix': major | ||
--- | ||
|
||
Changes in exports of `@clerk/backend`: | ||
- Expose the following helpers and enums from `@clerk/backend/internal`: | ||
```typescript | ||
import { | ||
AuthStatus, | ||
buildRequestUrl, | ||
constants, | ||
createAuthenticateRequest, | ||
createIsomorphicRequest, | ||
debugRequestState, | ||
makeAuthObjectSerializable, | ||
prunePrivateMetadata, | ||
redirect, | ||
sanitizeAuthObject, | ||
signedInAuthObject, | ||
signedOutAuthObject } from '@clerk/backend/internal'; | ||
``` | ||
- Drop the above exports from the top-level api: | ||
```typescript | ||
// Before | ||
import { AuthStatus, ... } from '@clerk/backend'; | ||
// After | ||
import { AuthStatus, ... } from '@clerk/backend/internal'; | ||
``` | ||
Dropping those exports results in also dropping the exports from `gatsby-plugin-clerk`, `@clerk/clerk-sdk-node`, `@clerk/backend`, `@clerk/fastify`, `@clerk/nextjs`, `@clerk/remix` packages. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
export { constants } from './constants'; | ||
export { redirect } from './redirections'; | ||
export { buildRequestUrl } from './utils'; | ||
|
||
export type { CreateAuthenticateRequestOptions } from './tokens/factory'; | ||
export { createAuthenticateRequest } from './tokens/factory'; | ||
|
||
export { debugRequestState } from './tokens/request'; | ||
|
||
export type { AuthenticateRequestOptions, OptionalVerifyTokenOptions } from './tokens/request'; | ||
|
||
export type { | ||
SignedInAuthObjectOptions, | ||
SignedInAuthObject, | ||
SignedOutAuthObject, | ||
AuthObject, | ||
} from './tokens/authObjects'; | ||
export { | ||
makeAuthObjectSerializable, | ||
sanitizeAuthObject, | ||
prunePrivateMetadata, | ||
signedOutAuthObject, | ||
signedInAuthObject, | ||
} from './tokens/authObjects'; | ||
export { createIsomorphicRequest } from './util/IsomorphicRequest'; | ||
|
||
export { AuthStatus } from './tokens/authStatus'; | ||
export type { RequestState } from './tokens/authStatus'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.