5.3.3 (2024-12-15)
5.3.2 (2024-12-01)
5.3.1 (2024-11-15)
5.3.0 (2024-11-09)
5.2.10 (2024-11-09)
5.2.9 (2024-11-02)
5.2.8 (2024-09-15)
5.2.7 (2024-09-01)
5.2.6 (2024-08-15)
5.2.5 (2024-08-01)
5.2.4 (2024-07-15)
5.2.3 (2024-07-01)
5.2.2 (2024-06-15)
5.2.1 (2024-06-01)
5.2.0 (2024-05-25)
5.1.0 (2024-05-01)
5.0.16 (2024-04-15)
5.0.15 (2024-04-01)
5.0.14 (2024-03-15)
5.0.13 (2024-03-01)
5.0.12 (2024-02-15)
5.0.11 (2024-02-01)
5.0.10 (2024-01-15)
5.0.9 (2024-01-01)
5.0.8 (2023-12-24)
5.0.7 (2023-12-15)
5.0.6 (2023-12-01)
5.0.5 (2023-11-15)
5.0.4 (2023-11-01)
5.0.3 (2023-10-15)
5.0.2 (2023-10-01)
5.0.1 (2023-09-15)
5.0.0-rc.0 (2023-09-09)
TsConfigOptions
renamed toTsconfigRaw
which is the name esbuild uses.- The JavaScript versions of all classes have been removed. They have been functionally identical to the TypeScript versions since the beginning. Please use the TypeScript versions of the classes going forward.
- Low-level experimental classes
EsbuildAsset
andEsbuildCode
have been removed. Please useTypeScriptAsset
andTypeScriptCode
respectively. - The required minimum version of
aws-cdk-lib
is now2.51.0
. If you need to use an older version ofaws-cdk-lib
, please stay on v4. - Support for node14 and node16 has been dropped. If you need to use one of these versions, please use @mrgrain/cdk-esbuild@v4
- drop support for node14 and node16 (#718) (9b76a6d)
- set minimum
aws-cdk-lib
version to 2.51.0 (#730) (b9064af) - update esbuild to ^0.19.0 (#731) (37e376a)
- upgrade to jsii@5.1 and typescript@5.1 (#665) (fd7404f)
4.2.3 (2023-09-01)
4.2.2 (2023-08-15)
4.2.1 (2023-08-01)
4.2.0 (2023-07-26)
- upgrade to esbuild@0.18.x (#658) (dfc8fec)
4.1.13 (2023-07-26)
4.1.12 (2023-07-26)
4.1.11 (2023-07-15)
4.1.10 (2023-07-01)
4.1.9 (2023-06-15)
4.1.8 (2023-05-15)
4.1.7 (2023-05-01)
4.1.6 (2023-04-15)
4.1.5 (2023-04-01)
4.1.4 (2023-03-15)
4.1.3 (2023-03-01)
4.1.2 (2023-02-15)
4.1.1 (2023-01-30)
4.1.0 (2023-01-14)
4.0.0 (2023-01-09)
- New minimal version requirement of
aws-cdk-lib >= 2.12.0
. Versions before that depend on vulnerable packages and should not be used anymore. Please upgrade to a more recent version ofaws-cdk-lib
. - New unified provider interface to replace
buildFn
,transformFn
,esbuildBinaryPath
andesbuildModulePath
. Please configure the includedEsbuildProvider
for more options or provide a custom implementation as an escape hatch tobuildProvider
andtransformProvider
respectively. props.copyDir
now removes the destination directory and any containing files if it exists. This will only affect edge cases when an asset has already been bundled and re-bundling is forced. Previously the destination directory would not have been cleared out, leading to outdated files being included in the bundle or an error message in same cases. The previous behavior was not correct and cannot be restored.- The default format and platform
InlineXCode
classes has been changed tocsj
andnode
. If you are using these classes to create browser or ESM compatible code, please updateformat
andplatform
onprops.transformOptions
to the required values. - Removal of
InlineJsxCode
andInlineTsxCode
classes. UseInlineJavaScriptCode
orInlineTypeScriptCode
respectively and settransformOptions.loader
tojsx
ortsx
. InlineJavaScriptCode
andInlineTypeScriptCode
now only takeTransformerProps
as second argument. Please provide any transform options viaprops.transformOptions
. PreviouslyTransformOptions
could be provided at the top-level.
InlineJavaScriptCode
andInlineTypeScriptCode
transform to CommonJS and Node by default (#282) (37736a7)- graduate
InlineJavaScriptCode
andInlineTypeScriptCode
to stable (#283) (be31a04) - new
IBuildProvider
andITransformProvider
to unify esbuild provider options (#286) (f60ab8e) - publish for go (#341) (66a0df0)
- support overriding the default esbuild API implementations (#313) (eee3443)
- use shorter package name for go (#342) (2026131)
- remove deprecated support of top-level TransformOptions on InlineCode classes (#281) (7159ef9)
- upgrade minium version requirement for
aws-cdk-lib
(#315) (86096f7)
3.13.0 (2022-12-18)
3.11.6 (2022-12-17)
3.11.5 (2022-12-03)
3.11.4 (2022-11-05)
3.11.3 (2022-10-29)
3.11.2 (2022-08-24)
3.11.1 (2022-08-22)
3.11.0 (2022-08-20)
3.10.0 (2022-08-14)
3.9.0 (2022-08-14)
- lazy evaluate
InlineCode
and show message before transforming (#217) (98f7d1d) - support NO_COLOR (#213) (1abd267), closes #211
- upgrade esbuild to ^0.15.0 (#207) (7d74485), closes #204
3.8.1 (2022-08-13)
3.8.0 (2022-08-13)
esbuildBinaryPath
not working withCode
, not available forInlineCode
(#210) (dc2609b), closes #203- esbuild messages printed out twice (#212) (2596368)
3.7.2 (2022-07-15)
3.7.0 (2022-07-13)
- support absolute entry points, as long as they are within the working directory (0e56b44)
3.6.0 (2022-06-23)
- allow setting of esbuildBinaryPath via Construct interface (f4eeebe)
- upgrade esbuild to support
supported
buildOption and newcopy
loader (3ac5d92)
- make TypeScriptCode and JavaScriptCode correctly extend aws_lambda.Code in jsii (d04db27)
3.5.0 (2022-06-02)
- support logOverride buildOption (d1cad61)
3.4.0 (2022-05-26)
- copyDir supports more complex scenarios (08c59fb)
3.3.0 (2022-03-06)
- support mangleQuoted option (f4d8859)
3.2.0 (2022-02-04)
- support esbuild mangle-props (a2566d1)
3.1.0 (2022-01-28)
- support new build option
drop
from esbuild (54445ad)
3.0.0 (2021-12-09)
- upgrade to AWS CDK v2 (c83b3e4)
- remove imports from aws-cdk-lib/core (68ee09a)
2.2.0 (2021-12-04)
This release contains an upgrade of esbuild with backwards-incompatible changes. This is inline with the versioning strategy for this package, which is to release esbuild upgrades with minor versions as long as esbuild has not reached version 1.0.0. The backwards-incompatible changes are fairly obscure this time around, but please make sure to read the 0.14.0 release notes.
- upgrade esbuild to ^0.14.0 (#143) (4568b92)
- examples/esbuild-with-plugins: example of how to use the escape hatch to run esbuild with plugins (#142) (0876f0e)
2.1.0 (2021-11-25)
- escape hatch to provide a custom build or transform function (#141) (aacfac1)
Inline*Code
now takesTransformerProps
as second parameter, passing inTransformOptions
is still supported but deprecated (#141) (aacfac1)
2.0.0 (2021-11-07)
-
Major release of this package to make it JSII compatible (#114) (727c78a), closes #114 #117 #119 #120 #123
-
Deprecated features from v1 have been removed. Please see upgrading instructions below.
- Update the package dependency to v2:
npm install --save @mrgrain/cdk-esbuild@^2.0.0
esbuild
is now installed as an optional dependency. If your setup does not automatically install optional dependencies, add it as an explicit dependency.- Remove any use of
bundlerPriority
. - Unstable construct
EsbuildBundling
has been renamed toEsbuildBundler
and its interface has slightly changed. Like most other constructs, it now takesentryPoints
as first parameter, with an optionalprops
object as the second.
-
JSII compatibility & v2 GA (#114) (727c78a), closes #114 #117 #119 #120 #123
-
Generated docs now contain links to esbuild documentation (#123) (95f2fd0)
1.133.0 (2021-11-21)
- This is a release on the legacy v1 branch. Please upgrade to v2 as soon as possible.
- works with cdk-1.133.0
tl;dr No more "versioned" release on this legacy branch.
Until now, I have release a new version of this package every time a new CDK version was released. Even if no updates where necessary. This practice will stop with this release and I will only release a new version on the legacy v1 branch, if an update is required for compatibility. Please upgrade to v2 of this package as soon as possible!
Upgrading instructions to v2 of this package
If you're using the tag cdk-v1
, you will already receive the latest stable v2 release. If you're using a versioned tag (e.g. cdk-1.29.0
), this tag format is deprecated and release have not been tagged for a while now.
1.132.0 (2021-11-21)
- works with cdk-1.132.0
This is a release on the legacy v1 branch. Please upgrade to v2 as soon as possible.
If you're using the tag cdk-v1
, you will already receive the latest stable v2 release. If you're using a versioned tag (e.g. cdk-1.29.0
), this tag format is deprecated and future releases won't be tagged like this.
1.131.0 (2021-11-07)
- works with cdk-1.131.0
This is a release on the legacy v1 branch. Please upgrade to v2 as soon as possible.
If you're using the tag cdk-v1
, you will already receive the latest stable v2 release. If you're using a versioned tag (e.g. cdk-1.29.0
), this tag format is deprecated and future releases won't be tagged like this.
1.130.0 (2021-11-07)
- works with cdk-1.130.0
This is the first release on the legacy v1 branch. Please upgrade to v2 as soon as possible.
If you're using the tag cdk-v1
, you will already receive the latest stable v2 release. If you're using a versioned tag (e.g. cdk-1.29.0
), this tag format is deprecated and future releases won't be tagged like this.
1.129.0 (2021-10-28)
This will be the final release tagged with a specific version of AWS CDK (i.e. cdk-1.29.0
). From now on, a single tag cdk-v1
will point to the latest stable release for v1 of AWS CDK.
Please also note, that a new major version of this package already has a release candidate. Using the cdk-v1
will result in BREAKING CHANGES once the new version is stable.
1.128.0 (2021-10-16)
- works with cdk-1.128.0
1.127.0 (2021-10-09)
- works with cdk-1.127.0
- example/website: How to monitor a website with Synthetics (621d2d4)
1.126.0 (2021-10-09)
- works with cdk-1.126.0
- [Experimental]
Code
is now compatible with@aws-cdk/aws-synthetics
(#99) (f840300)
1.125.0 (2021-10-01)
esbuild
released a breaking change to the tree shaking options and introduced a new way how platform-specific binaries are installed. Please check the esbuild v0.13.0 release notes for details.
-
works with cdk-1.125.0
-
upgrade
esbuild
minimum version to ^0.13.0 (3d0b5ee)
1.124.0 (2021-10-01)
- works with cdk-1.124.0
1.123.0 (2021-09-22)
- works with cdk-1.123.0
1.122.0 (2021-09-12)
- works with cdk-1.122.0
1.121.0 (2021-09-12)
- works with cdk-1.121.0
1.120.0 (2021-09-12)
- works with cdk-1.120.0
1.119.0 (2021-09-12)
- works with cdk-1.119.0
1.118.0 (2021-09-12)
- works with cdk-1.118.0
- fix error handling type issue in latest tsc version (b5e36e2)
1.117.0 (2021-08-08)
- works with cdk-1.117.0
1.116.0 (2021-08-08)
- works with cdk-1.116.0
1.115.0 (2021-08-08)
- works with cdk-1.115.0
1.114.0 (2021-08-08)
- works with cdk-1.114.0
1.113.0 (2021-08-08)
- works with cdk-1.113.0
1.112.0 (2021-08-08)
- works with cdk-1.112.0
1.111.0 (2021-08-08)
- works with cdk-1.111.0
1.110.0 (2021-06-24)
- works with cdk-1.110.0
1.109.0 (2021-06-24)
- works with cdk-1.109.0
1.108.0 (2021-06-09)
- works with cdk-1.108.0
1.107.0 (2021-06-03)
- works with cdk-1.107.0
1.106.0 (2021-05-31)
- works with cdk-1.106.0
1.105.0 (2021-05-19)
- works with cdk-1.105.0
- upgraded esbuild to v0.12.0 which contains backwards-incompatible changes (mostly related to CSS bundling)
1.104.0 (2021-05-19)
- works with cdk-1.104.0 (fb0de78)
1.103.0 (2021-05-13)
- works with cdk-1.103.0
- removed deprecated
forceDockerBundling
andlocalBundling
(cc40b90)
1.102.0 (2021-05-04)
- works with cdk-1.102.0 (c616c1b)
- new high-level constructs prop
bundlerPriority
to replace deprecatedforceDockerBundling
(cc4c933) - examples/lambda: added new complete example for lambda function (f8ca3c0)
- examples/website: changed start command to work with latest esbuild versions (45b4c91)
1.101.0 (2021-05-01)
- works with cdk-1.101.0
- pretty print esbuild build errors and warnings when using local bundler (7f15bed)
- pretty print esbuild transform errors and warnings (1eeeb10)
- set bundling priority explicitly, deprecating
localBundling
in favour ofpriority
(425665a)
1.100.0 (2021-05-01)
- no changes, cdk version constraints are now less strict
1.99.0 (2021-04-19)
- update to cdk-1.99.0 (cfffb19)
1.98.0 (2021-04-13)
- update to cdk-1.98.0 (0165256)
1.97.0 (2021-04-11)
- update to cdk-1.97.0 (fedb40a)
- esbuild minimum version updated to
^0.11.0
which includes breaking changes re how some files are interpreted as well as updated behaviour for entry points; please check esbuild's change log (35c9046) - use esbuild's handling of
process.env.NODE_ENV
, notably the value will now be set todevelopment
unless minification is enabled (04bc5ed)
- support object maps for entry points (62a4431)
1.96.0 (2021-04-11)
- update to cdk-1.96.0 (ae26510)
- removed deprecated
projectRoot
prop, please usebuildOptions.absWorkingPath
instead (40e7ab0)
1.95.0 (2021-03-28)
- update to cdk-1.95.0 (0a98ef3)
- exported
TypeScriptAsset
&JavaScriptAsset
are now implementings3.Asset
and replace the previously deprecated aliases for code classes of the same name; replace any previous use withTypeScriptCode
&JavaScriptCode
for lambda functions (9b86eab)
- added various InlineCode constructs using the transform api (6ef1c97)
- support added for
outfile
build option (90ef5ec)
1.94.1 (2021-03-17)
- change cdk version constraints to work with patches (fa0fa5f)
1.94.0 (2021-03-16)
- update to cdk-1.94.0 (1623339)
- deprecated
&TypeScriptAsset
in favour ofJavaScriptAsset
TypeScriptCode
&JavaScriptCode
(f31074e) - deprecated
in favour ofprojectRoot
buildOptions.absWorkDir
(ef7ae23)
NowabsWorkDir
will take priority, thenprojectRoot
. If neither are provided it falls back to the current working directory, which is esbuild's default behaviour.
The automatic project root detection has been removed. - upgraded esbuild dependency requirement to
^0.9.0
which contains breaking changes (f27d987)
- set sensible defaults for website deployment (a7a925d)
- new
copyDir
prop to copy additional files into the output (1dccb25) - support for multiple
entryPoints
(e41757b) bundleOptions.outdir
can now be provided as an additional path prefix for rendered files in the auto-generated cdk output directory (9be0f62)
1.93.1 (2021-03-12)
Required release to make version available on npm.
1.93.0 (2021-03-12)
- update to cdk-1.93.0 (2dd043b)
projectRoot
auto detection now searches upwards from the entry point, instead of current working directory- deprecated
&TypeScriptAsset
in favour ofJavaScriptAsset
TypeScriptCode
&JavaScriptCode
(f31074e)
- added implementation of S3 deployment source which can be used for static website deployment (f31074e)