Skip to content

Commit afbbc4d

Browse files
authored
Update compilation target for Node 16 (#6213)
* config(esbuild): Update esbuild target to node16 * config(package): Update root package.json node engine * config(tsconfig): Update all the tsconfigs module and targets * chore: changeset * chore: remove unneeded file
1 parent 18acae3 commit afbbc4d

File tree

29 files changed

+85
-55
lines changed

29 files changed

+85
-55
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
'astro': minor
3+
'@astrojs/prism': minor
4+
'@astrojs/rss': minor
5+
'create-astro': minor
6+
'@astrojs/alpinejs': minor
7+
'@astrojs/cloudflare': minor
8+
'@astrojs/deno': minor
9+
'@astrojs/image': minor
10+
'@astrojs/lit': minor
11+
'@astrojs/mdx': minor
12+
'@astrojs/netlify': minor
13+
'@astrojs/node': minor
14+
'@astrojs/partytown': minor
15+
'@astrojs/preact': minor
16+
'@astrojs/prefetch': minor
17+
'@astrojs/react': minor
18+
'@astrojs/sitemap': minor
19+
'@astrojs/solid-js': minor
20+
'@astrojs/svelte': minor
21+
'@astrojs/tailwind': minor
22+
'@astrojs/turbolinks': minor
23+
'@astrojs/vercel': minor
24+
'@astrojs/vue': minor
25+
'@astrojs/markdown-remark': minor
26+
'@astrojs/telemetry': minor
27+
'@astrojs/webapi': minor
28+
---
29+
30+
Updated compilation settings to disable downlevelling for Node 14

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"packages/astro/test/fixtures/static build/pkg"
4141
],
4242
"engines": {
43-
"node": "^14.18.0 || >=16.12.0",
43+
"node": ">=16.12.0",
4444
"pnpm": ">=7.9.5"
4545
},
4646
"packageManager": "pnpm@7.12.2",

packages/astro-prism/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"include": ["src"],
44
"compilerOptions": {
55
"allowJs": true,
6-
"target": "ES2020",
7-
"module": "ES2020",
6+
"target": "ES2021",
7+
"module": "ES2022",
88
"outDir": "./dist"
99
}
1010
}

packages/astro-rss/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"include": ["src"],
44
"compilerOptions": {
55
"allowJs": true,
6-
"module": "ES2020",
6+
"module": "ES2022",
77
"outDir": "./dist",
8-
"target": "ES2020",
8+
"target": "ES2021",
99
"strictNullChecks": true
1010
}
1111
}

packages/astro/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"compilerOptions": {
55
"allowJs": true,
66
"declarationDir": "./dist",
7-
"module": "ES2020",
7+
"module": "ES2022",
88
"outDir": "./dist",
9-
"target": "ES2020"
9+
"target": "ES2021"
1010
}
1111
}

packages/create-astro/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"allowJs": true,
66
"emitDeclarationOnly": false,
77
"noEmit": true,
8-
"target": "ES2020",
9-
"module": "ES2020",
8+
"target": "ES2021",
9+
"module": "ES2022",
1010
"outDir": "./dist",
1111
"declarationDir": "./dist/types"
1212
}

packages/integrations/alpinejs/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"include": ["src"],
44
"compilerOptions": {
55
"allowJs": true,
6-
"module": "ES2020",
6+
"module": "ES2022",
77
"outDir": "./dist",
8-
"target": "ES2020"
8+
"target": "ES2021"
99
}
1010
}

packages/integrations/cloudflare/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"include": ["src"],
44
"compilerOptions": {
55
"allowJs": true,
6-
"module": "ES2020",
6+
"module": "ES2022",
77
"outDir": "./dist",
8-
"target": "ES2020"
8+
"target": "ES2021"
99
}
1010
}

packages/integrations/deno/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"include": ["src"],
44
"compilerOptions": {
55
"allowJs": true,
6-
"module": "ES2020",
6+
"module": "ES2022",
77
"outDir": "./dist",
8-
"target": "ES2020"
8+
"target": "ES2021"
99
}
1010
}

packages/integrations/image/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"include": ["src", "types.d.ts"],
44
"compilerOptions": {
55
"allowJs": true,
6-
"module": "ES2020",
6+
"module": "ES2022",
77
"outDir": "./dist",
8-
"target": "ES2020",
8+
"target": "ES2021",
99
"typeRoots": ["node_modules/@types", "node_modules/@netlify"]
1010
}
1111
}

0 commit comments

Comments
 (0)