Releases: mrgrain/cdk-esbuild
Releases · mrgrain/cdk-esbuild
v4.1.0
v4.0.0
4.0.0 (2023-01-09)
⚠ BREAKING CHANGES
- 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.
Features
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)