Skip to content

Commit 79d30d4

Browse files
authored
Set the target JS version to ES2024 (#11506)
1 parent ac861f8 commit 79d30d4

File tree

12 files changed

+32
-21
lines changed

12 files changed

+32
-21
lines changed

‎.changeset/tasty-melons-exist.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"create-cloudflare": minor
3+
"wrangler": minor
4+
"@cloudflare/vite-plugin": minor
5+
---
6+
7+
Set the target JS version to ES2024

‎packages/create-cloudflare/templates/common/ts/tsconfig.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
/* Visit https://aka.ms/tsconfig.json to read more about this file */
44

55
/* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
6-
"target": "es2021",
6+
"target": "es2024",
77
/* Specify a set of bundled library declaration files that describe the target runtime environment. */
8-
"lib": ["es2021"],
8+
"lib": ["es2024"],
99
/* Specify what JSX code is generated. */
1010
"jsx": "react-jsx" ,
1111

‎packages/create-cloudflare/templates/hello-world-durable-object-with-assets/ts/tsconfig.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
/* Visit https://aka.ms/tsconfig.json to read more about this file */
44

55
/* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
6-
"target": "es2021",
6+
"target": "es2024",
77
/* Specify a set of bundled library declaration files that describe the target runtime environment. */
8-
"lib": ["es2021"],
8+
"lib": ["es2024"],
99
/* Specify what JSX code is generated. */
1010
"jsx": "react-jsx",
1111

‎packages/create-cloudflare/templates/hello-world-durable-object/ts/tsconfig.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
/* Visit https://aka.ms/tsconfig.json to read more about this file */
44

55
/* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
6-
"target": "es2021",
6+
"target": "es2024",
77
/* Specify a set of bundled library declaration files that describe the target runtime environment. */
8-
"lib": ["es2021"],
8+
"lib": ["es2024"],
99
/* Specify what JSX code is generated. */
1010
"jsx": "react-jsx",
1111

‎packages/create-cloudflare/templates/hello-world-with-assets/ts/tsconfig.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
/* Visit https://aka.ms/tsconfig.json to read more about this file */
44

55
/* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
6-
"target": "es2021",
6+
"target": "es2024",
77
/* Specify a set of bundled library declaration files that describe the target runtime environment. */
8-
"lib": ["es2021"],
8+
"lib": ["es2024"],
99
/* Specify what JSX code is generated. */
1010
"jsx": "react-jsx",
1111

‎packages/create-cloudflare/templates/hello-world-workflows/ts/tsconfig.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
/* Visit https://aka.ms/tsconfig.json to read more about this file */
44

55
/* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
6-
"target": "es2021",
6+
"target": "es2024",
77
/* Specify a set of bundled library declaration files that describe the target runtime environment. */
8-
"lib": ["es2021"],
8+
"lib": ["es2024"],
99
/* Specify what JSX code is generated. */
1010
"jsx": "react-jsx",
1111

‎packages/create-cloudflare/templates/hello-world/ts/tsconfig.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
/* Visit https://aka.ms/tsconfig.json to read more about this file */
44

55
/* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
6-
"target": "es2021",
6+
"target": "es2024",
77
/* Specify a set of bundled library declaration files that describe the target runtime environment. */
8-
"lib": ["es2021"],
8+
"lib": ["es2024"],
99
/* Specify what JSX code is generated. */
1010
"jsx": "react-jsx",
1111

‎packages/create-cloudflare/templates/openapi/ts/tsconfig.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/* Base Options: */
44
"esModuleInterop": true,
55
"skipLibCheck": true,
6-
"target": "es2022",
6+
"target": "es2024",
77
"verbatimModuleSyntax": false,
88
"allowJs": true,
99
"resolveJsonModule": true,
@@ -18,7 +18,7 @@
1818
"moduleResolution": "Bundler",
1919
"module": "es2022",
2020
"noEmit": true,
21-
"lib": ["es2022"],
21+
"lib": ["es2024"],
2222
"types": [
2323
"@types/node",
2424
"@types/service-worker-mock",

‎packages/create-cloudflare/templates/queues/ts/tsconfig.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
/* Visit https://aka.ms/tsconfig.json to read more about this file */
44

55
/* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
6-
"target": "es2021",
6+
"target": "es2024",
77
/* Specify a set of bundled library declaration files that describe the target runtime environment. */
8-
"lib": ["es2021"],
8+
"lib": ["es2024"],
99
/* Specify what JSX code is generated. */
1010
"jsx": "react-jsx",
1111

‎packages/create-cloudflare/templates/scheduled/ts/tsconfig.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
/* Visit https://aka.ms/tsconfig.json to read more about this file */
44

55
/* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
6-
"target": "es2021",
6+
"target": "es2024",
77
/* Specify a set of bundled library declaration files that describe the target runtime environment. */
8-
"lib": ["es2021"],
8+
"lib": ["es2024"],
99
/* Specify what JSX code is generated. */
1010
"jsx": "react-jsx",
1111

0 commit comments

Comments
 (0)