Skip to content

Commit

Permalink
publish 0.25.1 to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
evanw committed Mar 10, 2025
1 parent f9b3952 commit 6bfc1c1
Show file tree
Hide file tree
Showing 31 changed files with 57 additions and 57 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## Unreleased
## 0.25.1

* Fix incorrect paths in inline source maps ([#4070](https://github.com/evanw/esbuild/issues/4070), [#4075](https://github.com/evanw/esbuild/issues/4075), [#4105](https://github.com/evanw/esbuild/issues/4105))

Expand All @@ -18,7 +18,7 @@

* Fix a crash with `switch` optimization ([#4088](https://github.com/evanw/esbuild/issues/4088))

The new code in the previous release to optimize dead code in switch statements accidentally introduced a crash in the edge case where one or more switch case values include a function expression. This is because esbuild now visits the case values first to determine whether any cases are dead code, and then visits the case values once the dead code status is known. That triggered some internal asserts that guard against traversing the AST in an unexpected order. This crash has been fixed by changing esbuild to expect the new traversal ordering. Here's an example of affected code:
The new code in the previous release to optimize dead code in switch statements accidentally introduced a crash in the edge case where one or more switch case values include a function expression. This is because esbuild now visits the case values first to determine whether any cases are dead code, and then visits the case bodies once the dead code status is known. That triggered some internal asserts that guard against traversing the AST in an unexpected order. This crash has been fixed by changing esbuild to expect the new traversal ordering. Here's an example of affected code:

```js
switch (x) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/esbuild/version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package main

const esbuildVersion = "0.25.0"
const esbuildVersion = "0.25.1"
2 changes: 1 addition & 1 deletion npm/@esbuild/aix-ppc64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@esbuild/aix-ppc64",
"version": "0.25.0",
"version": "0.25.1",
"description": "The IBM AIX PowerPC 64-bit binary for esbuild, a JavaScript bundler.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion npm/@esbuild/android-arm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@esbuild/android-arm",
"version": "0.25.0",
"version": "0.25.1",
"description": "A WebAssembly shim for esbuild on Android ARM.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion npm/@esbuild/android-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@esbuild/android-arm64",
"version": "0.25.0",
"version": "0.25.1",
"description": "The Android ARM 64-bit binary for esbuild, a JavaScript bundler.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion npm/@esbuild/android-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@esbuild/android-x64",
"version": "0.25.0",
"version": "0.25.1",
"description": "A WebAssembly shim for esbuild on Android x64.",
"repository": "https://github.com/evanw/esbuild",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion npm/@esbuild/darwin-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@esbuild/darwin-arm64",
"version": "0.25.0",
"version": "0.25.1",
"description": "The macOS ARM 64-bit binary for esbuild, a JavaScript bundler.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion npm/@esbuild/darwin-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@esbuild/darwin-x64",
"version": "0.25.0",
"version": "0.25.1",
"description": "The macOS 64-bit binary for esbuild, a JavaScript bundler.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion npm/@esbuild/freebsd-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@esbuild/freebsd-arm64",
"version": "0.25.0",
"version": "0.25.1",
"description": "The FreeBSD ARM 64-bit binary for esbuild, a JavaScript bundler.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion npm/@esbuild/freebsd-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@esbuild/freebsd-x64",
"version": "0.25.0",
"version": "0.25.1",
"description": "The FreeBSD 64-bit binary for esbuild, a JavaScript bundler.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion npm/@esbuild/linux-arm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@esbuild/linux-arm",
"version": "0.25.0",
"version": "0.25.1",
"description": "The Linux ARM binary for esbuild, a JavaScript bundler.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion npm/@esbuild/linux-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@esbuild/linux-arm64",
"version": "0.25.0",
"version": "0.25.1",
"description": "The Linux ARM 64-bit binary for esbuild, a JavaScript bundler.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion npm/@esbuild/linux-ia32/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@esbuild/linux-ia32",
"version": "0.25.0",
"version": "0.25.1",
"description": "The Linux 32-bit binary for esbuild, a JavaScript bundler.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion npm/@esbuild/linux-loong64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@esbuild/linux-loong64",
"version": "0.25.0",
"version": "0.25.1",
"description": "The Linux LoongArch 64-bit binary for esbuild, a JavaScript bundler.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion npm/@esbuild/linux-mips64el/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@esbuild/linux-mips64el",
"version": "0.25.0",
"version": "0.25.1",
"description": "The Linux MIPS 64-bit Little Endian binary for esbuild, a JavaScript bundler.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion npm/@esbuild/linux-ppc64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@esbuild/linux-ppc64",
"version": "0.25.0",
"version": "0.25.1",
"description": "The Linux PowerPC 64-bit Little Endian binary for esbuild, a JavaScript bundler.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion npm/@esbuild/linux-riscv64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@esbuild/linux-riscv64",
"version": "0.25.0",
"version": "0.25.1",
"description": "The Linux RISC-V 64-bit binary for esbuild, a JavaScript bundler.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion npm/@esbuild/linux-s390x/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@esbuild/linux-s390x",
"version": "0.25.0",
"version": "0.25.1",
"description": "The Linux IBM Z 64-bit Big Endian binary for esbuild, a JavaScript bundler.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion npm/@esbuild/linux-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@esbuild/linux-x64",
"version": "0.25.0",
"version": "0.25.1",
"description": "The Linux 64-bit binary for esbuild, a JavaScript bundler.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion npm/@esbuild/netbsd-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@esbuild/netbsd-arm64",
"version": "0.25.0",
"version": "0.25.1",
"description": "The NetBSD ARM 64-bit binary for esbuild, a JavaScript bundler.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion npm/@esbuild/netbsd-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@esbuild/netbsd-x64",
"version": "0.25.0",
"version": "0.25.1",
"description": "The NetBSD AMD64 binary for esbuild, a JavaScript bundler.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion npm/@esbuild/openbsd-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@esbuild/openbsd-arm64",
"version": "0.25.0",
"version": "0.25.1",
"description": "The OpenBSD ARM 64-bit binary for esbuild, a JavaScript bundler.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion npm/@esbuild/openbsd-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@esbuild/openbsd-x64",
"version": "0.25.0",
"version": "0.25.1",
"description": "The OpenBSD 64-bit binary for esbuild, a JavaScript bundler.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion npm/@esbuild/sunos-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@esbuild/sunos-x64",
"version": "0.25.0",
"version": "0.25.1",
"description": "The illumos 64-bit binary for esbuild, a JavaScript bundler.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion npm/@esbuild/wasi-preview1/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@esbuild/wasi-preview1",
"version": "0.25.0",
"version": "0.25.1",
"description": "The WASI (WebAssembly System Interface) preview 1 binary for esbuild, a JavaScript bundler.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion npm/@esbuild/win32-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@esbuild/win32-arm64",
"version": "0.25.0",
"version": "0.25.1",
"description": "The Windows ARM 64-bit binary for esbuild, a JavaScript bundler.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion npm/@esbuild/win32-ia32/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@esbuild/win32-ia32",
"version": "0.25.0",
"version": "0.25.1",
"description": "The Windows 32-bit binary for esbuild, a JavaScript bundler.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion npm/@esbuild/win32-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@esbuild/win32-x64",
"version": "0.25.0",
"version": "0.25.1",
"description": "The Windows 64-bit binary for esbuild, a JavaScript bundler.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion npm/esbuild-wasm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "esbuild-wasm",
"version": "0.25.0",
"version": "0.25.1",
"description": "The cross-platform WebAssembly binary for esbuild, a JavaScript bundler.",
"repository": {
"type": "git",
Expand Down
52 changes: 26 additions & 26 deletions npm/esbuild/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "esbuild",
"version": "0.25.0",
"version": "0.25.1",
"description": "An extremely fast JavaScript and CSS bundler and minifier.",
"repository": {
"type": "git",
Expand All @@ -18,31 +18,31 @@
"esbuild": "bin/esbuild"
},
"optionalDependencies": {
"@esbuild/aix-ppc64": "0.25.0",
"@esbuild/android-arm": "0.25.0",
"@esbuild/android-arm64": "0.25.0",
"@esbuild/android-x64": "0.25.0",
"@esbuild/darwin-arm64": "0.25.0",
"@esbuild/darwin-x64": "0.25.0",
"@esbuild/freebsd-arm64": "0.25.0",
"@esbuild/freebsd-x64": "0.25.0",
"@esbuild/linux-arm": "0.25.0",
"@esbuild/linux-arm64": "0.25.0",
"@esbuild/linux-ia32": "0.25.0",
"@esbuild/linux-loong64": "0.25.0",
"@esbuild/linux-mips64el": "0.25.0",
"@esbuild/linux-ppc64": "0.25.0",
"@esbuild/linux-riscv64": "0.25.0",
"@esbuild/linux-s390x": "0.25.0",
"@esbuild/linux-x64": "0.25.0",
"@esbuild/netbsd-arm64": "0.25.0",
"@esbuild/netbsd-x64": "0.25.0",
"@esbuild/openbsd-arm64": "0.25.0",
"@esbuild/openbsd-x64": "0.25.0",
"@esbuild/sunos-x64": "0.25.0",
"@esbuild/win32-arm64": "0.25.0",
"@esbuild/win32-ia32": "0.25.0",
"@esbuild/win32-x64": "0.25.0"
"@esbuild/aix-ppc64": "0.25.1",
"@esbuild/android-arm": "0.25.1",
"@esbuild/android-arm64": "0.25.1",
"@esbuild/android-x64": "0.25.1",
"@esbuild/darwin-arm64": "0.25.1",
"@esbuild/darwin-x64": "0.25.1",
"@esbuild/freebsd-arm64": "0.25.1",
"@esbuild/freebsd-x64": "0.25.1",
"@esbuild/linux-arm": "0.25.1",
"@esbuild/linux-arm64": "0.25.1",
"@esbuild/linux-ia32": "0.25.1",
"@esbuild/linux-loong64": "0.25.1",
"@esbuild/linux-mips64el": "0.25.1",
"@esbuild/linux-ppc64": "0.25.1",
"@esbuild/linux-riscv64": "0.25.1",
"@esbuild/linux-s390x": "0.25.1",
"@esbuild/linux-x64": "0.25.1",
"@esbuild/netbsd-arm64": "0.25.1",
"@esbuild/netbsd-x64": "0.25.1",
"@esbuild/openbsd-arm64": "0.25.1",
"@esbuild/openbsd-x64": "0.25.1",
"@esbuild/sunos-x64": "0.25.1",
"@esbuild/win32-arm64": "0.25.1",
"@esbuild/win32-ia32": "0.25.1",
"@esbuild/win32-x64": "0.25.1"
},
"license": "MIT"
}
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.25.0
0.25.1

0 comments on commit 6bfc1c1

Please sign in to comment.