pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/www/esbuild
Module Name: pkgsrc
Committed By: bsiegert
Date: Sat Nov 16 10:12:17 UTC 2024
Modified Files:
pkgsrc/www/esbuild: Makefile distinfo go-modules.mk
Log Message:
esbuild: update to 0.24.0
0.24.0
------
Fix class field decorators in TypeScript if useDefineForClassFields is false
Setting the useDefineForClassFields flag to false in tsconfig.json means class
fields use the legacy TypeScript behavior instead of the standard JavaScript
behavior. Specifically they use assign semantics instead of define semantics
(e.g. setters are triggered) and fields without an initializer are not
initialized at all. However, when this legacy behavior is combined with
standard JavaScript decorators, TypeScript switches to always initializing all
fields, even those without initializers. Previously esbuild incorrectly
continued to omit field initializers for this edge case. These field
initializers in this case should now be emitted starting with this release.
Avoid incorrect cycle warning with tsconfig.json multiple inheritance
TypeScript 5.0 introduced multiple inheritance for tsconfig.json files where
extends can be an array of file paths. Previously esbuild would incorrectly
treat files encountered more than once when processing separate subtrees of the
multiple inheritance hierarchy as an inheritance cycle. With this release,
tsconfig.json files containing this edge case should work correctly without
generating a warning.
Handle Yarn Plug'n'Play stack overflow with tsconfig.json
Previously a tsconfig.json file that extends another file in a package with an
exports map could cause a stack overflow when Yarn's Plug'n'Play resolution was
active. This edge case should work now starting with this release.
Work around more issues with Deno 1.31+
This version of Deno broke the stdin and stdout properties on command objects
for inherited streams, which matters when you run esbuild's Deno module as the
entry point (i.e. when import.meta.main is true). Previously esbuild would
crash in Deno 1.31+ if you ran esbuild like that. This should be fixed starting
with this release.
0.23.1
------
Allow using the node: import prefix with es* targets
The node: prefix on imports is an alternate way to import built-in node
modules. For example, import fs from "fs" can also be written import fs from
"node:fs". This only works with certain newer versions of node, so esbuild
removes it when you target older versions of node such as with --target=node14
so that your code still works. With the way esbuild's platform-specific feature
compatibility table works, this was added by saying that only newer versions of
node support this feature. However, that means that a target such as
--target=node18,es2022 removes the node: prefix because none of the es* targets
are known to support this feature. This release adds the support for the node:
flag to esbuild's internal compatibility table for es* to allow you to use
compound targets.
Fix a panic when using the CLI with invalid build flags if --analyze is present
Previously esbuild's CLI could crash if it was invoked with flags that aren't
valid for a "build" API call and the --analyze flag is present. This was caused
by esbuild's internals attempting to add a Go plugin (which is how --analyze is
implemented) to a null build object. The panic has been fixed in this release.
Fix incorrect location of certain error messages
This release fixes a regression that caused certain errors relating to variable
declarations to be reported at an incorrect location. The regression was
introduced in version 0.18.7 of esbuild.
Print comments before case clauses in switch statements
With this release, esbuild will attempt to print comments that come before case
clauses in switch statements. This is similar to what esbuild already does for
comments inside of certain types of expressions. Note that these types of
comments are not printed if minification is enabled (specifically whitespace
minification).
Fix a memory leak with pluginData
With this release, the build context's internal pluginData cache will now be
cleared when starting a new build. This should fix a leak of memory from
plugins that return pluginData objects from onResolve and/or onLoad callbacks.
0.23
----
Revert the recent change to avoid bundling dependencies for node
This release reverts the recent change in version 0.22.0 that made
--packages=external the default behavior with --platform=node. The default is
now back to --packages=bundle.
I've just been made aware that Amazon doesn't pin their dependencies in their
"AWS CDK" product, which means that whenever esbuild publishes a new release,
many people (potentially everyone?) using their SDK around the world instantly
starts using it without Amazon checking that it works first. This change in
version 0.22.0 happened to break their SDK. I'm amazed that things haven't
broken before this point. This revert attempts to avoid these problems for
Amazon's customers. Hopefully Amazon will pin their dependencies in the future.
In addition, this is probably a sign that esbuild is used widely enough that it
now needs to switch to a more complicated release model. I may have esbuild use
a beta channel model for further development.
Fix preserving collapsed JSX whitespace
When transformed, certain whitespace inside JSX elements is ignored completely
if it collapses to an empty string. However, the whitespace should only be
ignored if the JSX is being transformed, not if it's being preserved. This
release fixes a bug where esbuild was previously incorrectly ignoring collapsed
whitespace with --jsx=preserve.
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 pkgsrc/www/esbuild/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/www/esbuild/distinfo \
pkgsrc/www/esbuild/go-modules.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/www/esbuild/Makefile
diff -u pkgsrc/www/esbuild/Makefile:1.13 pkgsrc/www/esbuild/Makefile:1.14
--- pkgsrc/www/esbuild/Makefile:1.13 Fri Sep 6 18:49:00 2024
+++ pkgsrc/www/esbuild/Makefile Sat Nov 16 10:12:17 2024
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.13 2024/09/06 18:49:00 bsiegert Exp $
+# $NetBSD: Makefile,v 1.14 2024/11/16 10:12:17 bsiegert Exp $
-DISTNAME= esbuild-0.22.0
+DISTNAME= esbuild-0.24.0
GITHUB_TAG= v${PKGVERSION_NOREV}
-PKGREVISION= 3
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_GITHUB:=evanw/}
Index: pkgsrc/www/esbuild/distinfo
diff -u pkgsrc/www/esbuild/distinfo:1.2 pkgsrc/www/esbuild/distinfo:1.3
--- pkgsrc/www/esbuild/distinfo:1.2 Mon Jul 1 18:12:45 2024
+++ pkgsrc/www/esbuild/distinfo Sat Nov 16 10:12:17 2024
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.2 2024/07/01 18:12:45 bsiegert Exp $
+$NetBSD: distinfo,v 1.3 2024/11/16 10:12:17 bsiegert Exp $
-BLAKE2s (esbuild-0.22.0.tar.gz) = 284f5c191f9768db991118ae3c45ac15ee8368b003c88c16df589892219f7501
-SHA512 (esbuild-0.22.0.tar.gz) = 947bbf6b42cc83bc1fc8eaf1dbe8dc0e9e37ae0abee3e56abc10fe148b942f7672ff11be406bc973a2d0b6958bc20c1af9b658a2c3f08aae3f35eada1affb8f9
-Size (esbuild-0.22.0.tar.gz) = 1888093 bytes
+BLAKE2s (esbuild-0.24.0.tar.gz) = 78a93759523a35713277001155c2030b478ce3fc24a46dc2bffdee7bd917de17
+SHA512 (esbuild-0.24.0.tar.gz) = 4e13a8858ecb04d16e0a4e26ae36267639705a31512edc73d452051cdf30db578a4403384958a55066820a1bff66425d298e871609d71192facca1244fff0fb6
+Size (esbuild-0.24.0.tar.gz) = 1895084 bytes
BLAKE2s (golang.org_x_sys_@v_v0.0.0-20220715151400-c0bba94af5f8.mod) = 66613eb38a59b8a7f75e1aaeb294a1c4ea290d4e9ae699137566025e50ed741c
SHA512 (golang.org_x_sys_@v_v0.0.0-20220715151400-c0bba94af5f8.mod) = 85e511b1261c1935f5ee4754ad31d1d946f9e10f0af9905f44c4348d6ce5104319c03fb38517dde616698f6487b0c62788cfa96bc0ffb3b6db80accd7e552655
Size (golang.org_x_sys_@v_v0.0.0-20220715151400-c0bba94af5f8.mod) = 33 bytes
Index: pkgsrc/www/esbuild/go-modules.mk
diff -u pkgsrc/www/esbuild/go-modules.mk:1.2 pkgsrc/www/esbuild/go-modules.mk:1.3
--- pkgsrc/www/esbuild/go-modules.mk:1.2 Mon Jul 1 18:12:45 2024
+++ pkgsrc/www/esbuild/go-modules.mk Sat Nov 16 10:12:17 2024
@@ -1,4 +1,4 @@
-# $NetBSD: go-modules.mk,v 1.2 2024/07/01 18:12:45 bsiegert Exp $
+# $NetBSD: go-modules.mk,v 1.3 2024/11/16 10:12:17 bsiegert Exp $
GO_MODULE_FILES+= golang.org/x/sys/@v/v0.0.0-20220715151400-c0bba94af5f8.mod
GO_MODULE_FILES+= golang.org/x/sys/@v/v0.0.0-20220715151400-c0bba94af5f8.zip
Home |
Main Index |
Thread Index |
Old Index