Skip to content

Commit 80c6e6e

Browse files
committed
publish 0.22.0 to npm
1 parent 196dcad commit 80c6e6e

30 files changed

Lines changed: 76 additions & 73 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
# Changelog
22

3-
## Unreleased
3+
## 0.22.0
44

5-
* Omit packages from bundle by default when targeting node ([#1874](https://github.com/evanw/esbuild/issues/1874), [#2830](https://github.com/evanw/esbuild/issues/2830), [#2846](https://github.com/evanw/esbuild/issues/2846), [#2915](https://github.com/evanw/esbuild/issues/2915), [#3145](https://github.com/evanw/esbuild/issues/3145), [#3294](https://github.com/evanw/esbuild/issues/3294), [#3323](https://github.com/evanw/esbuild/issues/3323), [#3582](https://github.com/evanw/esbuild/issues/3582), [#3809](https://github.com/evanw/esbuild/issues/3809), [#3815](https://github.com/evanw/esbuild/issues/3815))
5+
**This release deliberately contains backwards-incompatible changes.** To avoid automatically picking up releases like this, you should either be pinning the exact version of `esbuild` in your `package.json` file (recommended) or be using a version range syntax that only accepts patch upgrades such as `^0.21.0` or `~0.21.0`. See npm's documentation about [semver](https://docs.npmjs.com/cli/v6/using-npm/semver/) for more information.
6+
7+
* Omit packages from bundles by default when targeting node ([#1874](https://github.com/evanw/esbuild/issues/1874), [#2830](https://github.com/evanw/esbuild/issues/2830), [#2846](https://github.com/evanw/esbuild/issues/2846), [#2915](https://github.com/evanw/esbuild/issues/2915), [#3145](https://github.com/evanw/esbuild/issues/3145), [#3294](https://github.com/evanw/esbuild/issues/3294), [#3323](https://github.com/evanw/esbuild/issues/3323), [#3582](https://github.com/evanw/esbuild/issues/3582), [#3809](https://github.com/evanw/esbuild/issues/3809), [#3815](https://github.com/evanw/esbuild/issues/3815))
68

79
This breaking change is an experiment. People are commonly confused when using esbuild to bundle code for node (i.e. for `--platform=node`) because some packages may not be intended for bundlers, and may use node-specific features that don't work with a bundler. Even though esbuild's "getting started" instructions say to use `--packages=external` to work around this problem, many people don't read the documentation and don't do this, and are then confused when it doesn't work. So arguably this is a bad default behavior for esbuild to have if people keep tripping over this.
810

9-
With this release, esbuild will now omit packages from the bundle by default when the platform is `node` (i.e. the previous behavior of `--packages=external` is now the default in this case). If you don't want this behavior, you can do `--packages=bundle` to allow packages to be included in the bundle (i.e. the previous default behavior). Note that `--packages=bundle` doesn't mean all packages are bundled, just that packages are allowed to be bundled. You can still exclude individual packages from the bundle using `--external:` even when `--packages=bundle` is present.
11+
With this release, esbuild will now omit packages from the bundle by default when the platform is `node` (i.e. the previous behavior of `--packages=external` is now the default in this case). _Note that your dependencies must now be present on the file system when your bundle is run._ If you don't want this behavior, you can do `--packages=bundle` to allow packages to be included in the bundle (i.e. the previous default behavior). Note that `--packages=bundle` doesn't mean all packages are bundled, just that packages are allowed to be bundled. You can still exclude individual packages from the bundle using `--external:` even when `--packages=bundle` is present.
1012

11-
The `--packages=` setting considers all import paths that "look like" package imports in the original source code to be packages. Specifically packages that don't start with a path segment of `/` or `.` or `..` are considered to be package imports. The only two exceptions to this rule are [subpath imports](https://nodejs.org/api/packages.html#subpath-imports) (which start with a `#` character) and TypeScript path remappings via `path` and/or `baseUrl` in `tsconfig.json` (which are applied first).
13+
The `--packages=` setting considers all import paths that "look like" package imports in the original source code to be package imports. Specifically import paths that don't start with a path segment of `/` or `.` or `..` are considered to be package imports. The only two exceptions to this rule are [subpath imports](https://nodejs.org/api/packages.html#subpath-imports) (which start with a `#` character) and TypeScript path remappings via `paths` and/or `baseUrl` in `tsconfig.json` (which are applied first).
1214

1315
* Drop support for older platforms ([#3802](https://github.com/evanw/esbuild/issues/3802))
1416

cmd/esbuild/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
package main
22

3-
const esbuildVersion = "0.21.5"
3+
const esbuildVersion = "0.22.0"

npm/@esbuild/aix-ppc64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@esbuild/aix-ppc64",
3-
"version": "0.21.5",
3+
"version": "0.22.0",
44
"description": "The IBM AIX PowerPC 64-bit binary for esbuild, a JavaScript bundler.",
55
"repository": {
66
"type": "git",

npm/@esbuild/android-arm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@esbuild/android-arm",
3-
"version": "0.21.5",
3+
"version": "0.22.0",
44
"description": "A WebAssembly shim for esbuild on Android ARM.",
55
"repository": {
66
"type": "git",

npm/@esbuild/android-arm64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@esbuild/android-arm64",
3-
"version": "0.21.5",
3+
"version": "0.22.0",
44
"description": "The Android ARM 64-bit binary for esbuild, a JavaScript bundler.",
55
"repository": {
66
"type": "git",

npm/@esbuild/android-x64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@esbuild/android-x64",
3-
"version": "0.21.5",
3+
"version": "0.22.0",
44
"description": "A WebAssembly shim for esbuild on Android x64.",
55
"repository": "https://github.com/evanw/esbuild",
66
"license": "MIT",

npm/@esbuild/darwin-arm64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@esbuild/darwin-arm64",
3-
"version": "0.21.5",
3+
"version": "0.22.0",
44
"description": "The macOS ARM 64-bit binary for esbuild, a JavaScript bundler.",
55
"repository": {
66
"type": "git",

npm/@esbuild/darwin-x64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@esbuild/darwin-x64",
3-
"version": "0.21.5",
3+
"version": "0.22.0",
44
"description": "The macOS 64-bit binary for esbuild, a JavaScript bundler.",
55
"repository": {
66
"type": "git",

npm/@esbuild/freebsd-arm64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@esbuild/freebsd-arm64",
3-
"version": "0.21.5",
3+
"version": "0.22.0",
44
"description": "The FreeBSD ARM 64-bit binary for esbuild, a JavaScript bundler.",
55
"repository": {
66
"type": "git",

npm/@esbuild/freebsd-x64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@esbuild/freebsd-x64",
3-
"version": "0.21.5",
3+
"version": "0.22.0",
44
"description": "The FreeBSD 64-bit binary for esbuild, a JavaScript bundler.",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)