-
Notifications
You must be signed in to change notification settings - Fork 402
chore(shared): Bump target/lib to ES2022 #6892
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
2b465b9
5e63366
92e6060
4d8bfbb
00fbbe3
1a20c09
8853dc8
424f7fa
79e5c79
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@clerk/shared": patch | ||
| --- | ||
|
|
||
| Bump target/lib for `@clerk/shared` to ES2022 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,7 +24,7 @@ export default defineConfig(overrideOptions => { | |
| minify: false, | ||
| sourcemap: true, | ||
| dts: true, | ||
| target: 'es2020', | ||
| target: 'es2022', | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chainConfirm runtime/browser support for ES2022 across consumers. Bumping target to ES2022 tightens the minimum runtime. Please verify:
Run: 🏁 Script executed: #!/usr/bin/env bash
# Verify engines and browserslist across the repo
jq -r '.name, .engines // empty, .browserslist // empty' **/package.json 2>/dev/null | sed '/^{\|}$/d' | paste - - - | column -t -s $'\t'Length of output: 88 Below is a revised script to reliably list 🏁 Script executed: #!/usr/bin/env bash
find . -name package.json -print0 | while IFS= read -r -d '' file; do
node_ver=$(jq -r '.engines.node // "<none>"' "$file")
browsers=$(jq -r '.browserslist // "<none>"' "$file")
printf "%s: engines.node=%s, browserslist=%s\n" "$file" "$node_ver" "$browsers"
doneLength of output: 7610 Enforce Node ≥18.17.0 and appropriate browserslist for ES2022
🤖 Prompt for AI Agents |
||
| external: ['react', 'react-dom'], | ||
| esbuildPlugins: [WebWorkerMinifyPlugin as any], | ||
| define: { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mismatch with changeset/PR title: ES2022 here vs ES2020 in release note
tsconfig sets target/lib to ES2022, but the changeset and PR title say ES2020. Please align them before merge.
Two ways to resolve:
Option A — Keep ES2022 (update changeset/PR messaging):
Option B — Actually target ES2020 (update tsconfig):
Also applies to: 15-15
🤖 Prompt for AI Agents