You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Align experimental/unstable prefixes to use consistent naming:
14
+
15
+
- Renamed all `__unstable_*` methods to `__internal_*` (for internal APIs)
16
+
- Renamed all `experimental__*` and `experimental_*` methods to `__experimental_*` (for beta features)
17
+
- Removed deprecated billing-related props and `experimental__forceOauthFirst`
18
+
- Moved `createTheme` and `simple` to `@clerk/ui/themes/experimental` export path (removed `__experimental_` prefix since they're now in the experimental export)
Copy file name to clipboardExpand all lines: docs/CONTRIBUTING.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -195,6 +195,10 @@ Read more about this in the [`clerk-docs` CONTRIBUTING.md](https://github.com/cl
195
195
196
196
Then, to preview how the `<Typedoc />` component renders, the `clerk-docs` PR will have a Vercel preview. Or to get local previews set up, see the [section in `clerk/clerk` about setting up local docs](https://github.com/clerk/clerk?tab=readme-ov-file#5-optional-set-up-local-docs).
197
197
198
+
### Experimental and internal APIs
199
+
200
+
In some cases, we might need to add new methods to our publicly exposed APIs that are meant for internal use, or as experimental releases before the APIs are stabilized. For internal methods or properties, use the `__internal_` prefix. For experimental methods or properties that are attached to existing APIs, use the `__experimental_` prefix. For new exports, it is also acceptable to export from an `/experimental` subpath. Exports from `/experimental` are not covered by regular SemVer guarantees.
201
+
198
202
## Opening a Pull Request
199
203
200
204
1. Search our repository for open or closed [Pull Requests](https://github.com/clerk/javascript/pulls) that relate to your submission. You don't want to duplicate effort.
Copy file name to clipboardExpand all lines: eslint.config.mjs
+63Lines changed: 63 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -89,6 +89,61 @@ const noNavigateUseClerk = {
89
89
},
90
90
};
91
91
92
+
constnoUnstableMethods={
93
+
meta: {
94
+
type: 'problem',
95
+
docs: {
96
+
description: 'Disallow methods or properties starting with `__unstable_`',
97
+
recommended: false,
98
+
},
99
+
messages: {
100
+
noUnstable:
101
+
'Do not define methods or properties starting with `__unstable_`. For internal APIs, use `__internal_`, for experimental APIs, use `__experimental_`.',
0 commit comments