Skip to content

Commit

Permalink
fix #1970: populate "engines.node" with ">=12"
Browse files Browse the repository at this point in the history
  • Loading branch information
evanw committed Jan 29, 2022
1 parent 8f0560d commit 6b16def
Show file tree
Hide file tree
Showing 21 changed files with 70 additions and 1 deletion.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

## Unreleased

* Mark esbuild as supporting node v12+ ([#1970](https://github.com/evanw/esbuild/issues/1970))

Someone requested that esbuild populate the `engines.node` field in `package.json`. This release adds the following to each `package.json` file that esbuild publishes:

```json
"engines": {
"node": ">=12"
},
```

This was chosen because it's the oldest version of node that's currently still receiving support from the node team, and so is the oldest version of node that esbuild supports: https://nodejs.org/en/about/releases/.

* Remove error recovery for invalid `//` comments in CSS ([#1965](https://github.com/evanw/esbuild/issues/1965))

Previously esbuild treated `//` as a comment in CSS and generated a warning, even though comments in CSS use `/* ... */` instead. This allowed you to run esbuild on CSS intended for certain CSS preprocessors that support single-line comments.
Expand Down
3 changes: 3 additions & 0 deletions npm/esbuild-android-arm64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"repository": "https://github.com/evanw/esbuild",
"license": "MIT",
"preferUnplugged": false,
"engines": {
"node": ">=12"
},
"os": [
"android"
],
Expand Down
3 changes: 3 additions & 0 deletions npm/esbuild-darwin-64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"repository": "https://github.com/evanw/esbuild",
"license": "MIT",
"preferUnplugged": false,
"engines": {
"node": ">=12"
},
"os": [
"darwin"
],
Expand Down
3 changes: 3 additions & 0 deletions npm/esbuild-darwin-arm64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"repository": "https://github.com/evanw/esbuild",
"license": "MIT",
"preferUnplugged": false,
"engines": {
"node": ">=12"
},
"os": [
"darwin"
],
Expand Down
3 changes: 3 additions & 0 deletions npm/esbuild-freebsd-64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"repository": "https://github.com/evanw/esbuild",
"license": "MIT",
"preferUnplugged": false,
"engines": {
"node": ">=12"
},
"os": [
"freebsd"
],
Expand Down
3 changes: 3 additions & 0 deletions npm/esbuild-freebsd-arm64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"repository": "https://github.com/evanw/esbuild",
"license": "MIT",
"preferUnplugged": false,
"engines": {
"node": ">=12"
},
"os": [
"freebsd"
],
Expand Down
3 changes: 3 additions & 0 deletions npm/esbuild-linux-32/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"repository": "https://github.com/evanw/esbuild",
"license": "MIT",
"preferUnplugged": false,
"engines": {
"node": ">=12"
},
"os": [
"linux"
],
Expand Down
3 changes: 3 additions & 0 deletions npm/esbuild-linux-64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"repository": "https://github.com/evanw/esbuild",
"license": "MIT",
"preferUnplugged": false,
"engines": {
"node": ">=12"
},
"os": [
"linux"
],
Expand Down
3 changes: 3 additions & 0 deletions npm/esbuild-linux-arm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"repository": "https://github.com/evanw/esbuild",
"license": "MIT",
"preferUnplugged": false,
"engines": {
"node": ">=12"
},
"os": [
"linux"
],
Expand Down
3 changes: 3 additions & 0 deletions npm/esbuild-linux-arm64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"repository": "https://github.com/evanw/esbuild",
"license": "MIT",
"preferUnplugged": false,
"engines": {
"node": ">=12"
},
"os": [
"linux"
],
Expand Down
3 changes: 3 additions & 0 deletions npm/esbuild-linux-mips64le/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"repository": "https://github.com/evanw/esbuild",
"license": "MIT",
"preferUnplugged": false,
"engines": {
"node": ">=12"
},
"os": [
"linux"
],
Expand Down
3 changes: 3 additions & 0 deletions npm/esbuild-linux-ppc64le/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"repository": "https://github.com/evanw/esbuild",
"license": "MIT",
"preferUnplugged": false,
"engines": {
"node": ">=12"
},
"os": [
"linux"
],
Expand Down
3 changes: 3 additions & 0 deletions npm/esbuild-linux-s390x/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"repository": "https://github.com/evanw/esbuild",
"license": "MIT",
"preferUnplugged": false,
"engines": {
"node": ">=12"
},
"os": [
"linux"
],
Expand Down
3 changes: 3 additions & 0 deletions npm/esbuild-netbsd-64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"description": "The NetBSD AMD64 binary for esbuild, a JavaScript bundler.",
"repository": "https://github.com/evanw/esbuild",
"license": "MIT",
"engines": {
"node": ">=12"
},
"os": [
"netbsd"
],
Expand Down
3 changes: 3 additions & 0 deletions npm/esbuild-openbsd-64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"repository": "https://github.com/evanw/esbuild",
"license": "MIT",
"preferUnplugged": false,
"engines": {
"node": ">=12"
},
"os": [
"openbsd"
],
Expand Down
3 changes: 3 additions & 0 deletions npm/esbuild-sunos-64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"repository": "https://github.com/evanw/esbuild",
"license": "MIT",
"preferUnplugged": false,
"engines": {
"node": ">=12"
},
"os": [
"sunos"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/esbuild-wasm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"repository": "https://github.com/evanw/esbuild",
"license": "MIT",
"engines": {
"node": ">=8"
"node": ">=12"
},
"main": "lib/main.js",
"browser": "lib/browser.js",
Expand Down
3 changes: 3 additions & 0 deletions npm/esbuild-windows-32/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"repository": "https://github.com/evanw/esbuild",
"license": "MIT",
"preferUnplugged": false,
"engines": {
"node": ">=12"
},
"os": [
"win32"
],
Expand Down
3 changes: 3 additions & 0 deletions npm/esbuild-windows-64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"repository": "https://github.com/evanw/esbuild",
"license": "MIT",
"preferUnplugged": false,
"engines": {
"node": ">=12"
},
"os": [
"win32"
],
Expand Down
3 changes: 3 additions & 0 deletions npm/esbuild-windows-arm64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"repository": "https://github.com/evanw/esbuild",
"license": "MIT",
"preferUnplugged": false,
"engines": {
"node": ">=12"
},
"os": [
"win32"
],
Expand Down
3 changes: 3 additions & 0 deletions npm/esbuild/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
},
"main": "lib/main.js",
"types": "lib/main.d.ts",
"engines": {
"node": ">=12"
},
"bin": {
"esbuild": "bin/esbuild"
},
Expand Down

0 comments on commit 6b16def

Please sign in to comment.