Commit 4207002
authored
fix(deps): update all non-major dependencies (#25)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [aws-cdk-lib](https://togithub.com/aws/aws-cdk)
([source](https://togithub.com/aws/aws-cdk/tree/HEAD/packages/aws-cdk-lib))
| [`^2.135.0` ->
`^2.143.0`](https://renovatebot.com/diffs/npm/aws-cdk-lib/2.141.0/2.143.0)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
| [aws-sdk](https://togithub.com/aws/aws-sdk-js) | [`^2.1593.0` ->
`^2.1628.0`](https://renovatebot.com/diffs/npm/aws-sdk/2.1618.0/2.1628.0)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
| [esbuild](https://togithub.com/evanw/esbuild) | [`^0.20.2` ->
`^0.21.4`](https://renovatebot.com/diffs/npm/esbuild/0.20.2/0.21.4) |
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
| [jsii-release](https://togithub.com/cdklabs/publib) | [`^0.2.813` ->
`^0.2.838`](https://renovatebot.com/diffs/npm/jsii-release/0.2.832/0.2.838)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
| [ts-jest](https://kulshekhar.github.io/ts-jest)
([source](https://togithub.com/kulshekhar/ts-jest)) | [`^29.1.2` ->
`^29.1.3`](https://renovatebot.com/diffs/npm/ts-jest/29.1.2/29.1.3) |
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
| [typedoc](https://typedoc.org)
([source](https://togithub.com/TypeStrong/TypeDoc)) | [`^0.25.12` ->
`^0.25.13`](https://renovatebot.com/diffs/npm/typedoc/0.25.13/0.25.13) |
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
| [typescript](https://www.typescriptlang.org/)
([source](https://togithub.com/Microsoft/TypeScript)) | [`^5.4.4` ->
`^5.4.5`](https://renovatebot.com/diffs/npm/typescript/5.4.5/5.4.5) |
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
---
### Release Notes
<details>
<summary>aws/aws-cdk (aws-cdk-lib)</summary>
### [`v2.143.0`](https://togithub.com/aws/aws-cdk/releases/tag/v2.143.0)
[Compare
Source](https://togithub.com/aws/aws-cdk/compare/v2.142.1...v2.143.0)
##### Features
- **codebuild:** add deleteReports property to the ReportGroup Construct
([#​30141](https://togithub.com/aws/aws-cdk/issues/30141))
([c3003ab](https://togithub.com/aws/aws-cdk/commit/c3003ab41f0efc763f39eb2cab490c8a005e146b))
- update L1 CloudFormation resource definitions
([#​30182](https://togithub.com/aws/aws-cdk/issues/30182))
([555d1c7](https://togithub.com/aws/aws-cdk/commit/555d1c7f3d355ff98501539a7ec6e34fac1feb09))
- **batch:** jobStateTimeLimitActions property added
([#​30158](https://togithub.com/aws/aws-cdk/issues/30158))
([411a58c](https://togithub.com/aws/aws-cdk/commit/411a58cb427c2794dad889127a613d0999b707bb)),
closes [#​30142](https://togithub.com/aws/aws-cdk/issues/30142)
- **cognito:** add enablePropagateAdditionalUserContextData to
UserClient Construct
([#​30178](https://togithub.com/aws/aws-cdk/issues/30178))
([e00c0ca](https://togithub.com/aws/aws-cdk/commit/e00c0ca6f98b6137a9f14deaef123c9daefe95e7))
- **ec2:** support placementGroup for ec2.Instance
([#​30293](https://togithub.com/aws/aws-cdk/issues/30293))
([f4b1d5a](https://togithub.com/aws/aws-cdk/commit/f4b1d5a94f49bd8dd607a11a94ff27895c8417ec)),
closes [#​30292](https://togithub.com/aws/aws-cdk/issues/30292)
- **ecs-patterns:** dualstack NLB
([#​30069](https://togithub.com/aws/aws-cdk/issues/30069))
([623cedb](https://togithub.com/aws/aws-cdk/commit/623cedb429fba5bcf6ecdf2bb8277fcc2b88eba4)),
closes [#​29614](https://togithub.com/aws/aws-cdk/issues/29614)
##### Bug Fixes
- **ecs:** add feature flag and remove ecs default deployment alarm
settings
([#​30217](https://togithub.com/aws/aws-cdk/issues/30217))
([1e94267](https://togithub.com/aws/aws-cdk/commit/1e942675b2971a45be7a537183ee04296fd4ee67))
- **elbv2:** unable to deploy template with IPv4 load balancer when
denyAllIgwTraffic set
([#​29956](https://togithub.com/aws/aws-cdk/issues/29956))
([42d424e](https://togithub.com/aws/aws-cdk/commit/42d424ed0d931f312c5ee69c6aef634e80e83065)),
closes [#​30247](https://togithub.com/aws/aws-cdk/issues/30247)
- **events_targets:** kinesisfirehosestream not accepting
ideliverystream for imported deliverystream
([#​30189](https://togithub.com/aws/aws-cdk/issues/30189))
([d7e6a10](https://togithub.com/aws/aws-cdk/commit/d7e6a10a618074cf0db7412a4525e28fc47cd7f7))
- **rds:** readers not always be created after the writer
([#​30277](https://togithub.com/aws/aws-cdk/issues/30277))
([e8676cb](https://togithub.com/aws/aws-cdk/commit/e8676cbed76905c879bdb0981a6464b683074632)),
closes [#​30260](https://togithub.com/aws/aws-cdk/issues/30260)
- **s3:** bucketKey does not support SSE-S3
([#​30184](https://togithub.com/aws/aws-cdk/issues/30184))
([c7c75f8](https://togithub.com/aws/aws-cdk/commit/c7c75f8069ea10006853c32bd95ea9d3f70f8a05)),
closes [#​30183](https://togithub.com/aws/aws-cdk/issues/30183)
- **stepfunctions-tasks:** runtime language used to evaluate expressions
is ignored
([#​30302](https://togithub.com/aws/aws-cdk/issues/30302))
([dfea721](https://togithub.com/aws/aws-cdk/commit/dfea72118790ea591d9de720f337c1e14eb11411))
***
#### Alpha modules (2.143.0-alpha.0)
### [`v2.142.1`](https://togithub.com/aws/aws-cdk/releases/tag/v2.142.1)
[Compare
Source](https://togithub.com/aws/aws-cdk/compare/v2.142.0...v2.142.1)
##### Reverts
- fix(diff): properties from ChangeSet diff were ignored
([#​30243](https://togithub.com/aws/aws-cdk/issues/30243))
([3748472](https://togithub.com/aws/aws-cdk/commit/37484726f235013ec0e71cefb9e1fc35caf12e74))
***
#### Alpha modules (2.142.1-alpha.0)
### [`v2.142.0`](https://togithub.com/aws/aws-cdk/releases/tag/v2.142.0)
[Compare
Source](https://togithub.com/aws/aws-cdk/compare/v2.141.0...v2.142.0)
##### Features
- **asg:** support keypair functionality for asg
([#​29679](https://togithub.com/aws/aws-cdk/issues/29679))
([f6b649d](https://togithub.com/aws/aws-cdk/commit/f6b649d47f8bc30ca741fbb7a4852d51e8275002)),
closes [#​29237](https://togithub.com/aws/aws-cdk/issues/29237)
- **codepipeline:** `GitPullRequestFilter` for pipeline trigger
([#​29128](https://togithub.com/aws/aws-cdk/issues/29128))
([5ce1b64](https://togithub.com/aws/aws-cdk/commit/5ce1b6485eb4336634f4f14bfe3d0b17b071e83b)),
closes [#​29126](https://togithub.com/aws/aws-cdk/issues/29126)
- **docdb:** add copyTagsToSnapshot property to the DatabaseCluster
Construct
([#​30120](https://togithub.com/aws/aws-cdk/issues/30120))
([30f0db6](https://togithub.com/aws/aws-cdk/commit/30f0db6ad810f0e93187082bd50ddb46726d8f5f)),
closes [#​30090](https://togithub.com/aws/aws-cdk/issues/30090)
- **docdb:** support CA certificate for cluster instances
([#​28791](https://togithub.com/aws/aws-cdk/issues/28791))
([e87f25e](https://togithub.com/aws/aws-cdk/commit/e87f25e1e93350e53aadb15e19ed7a9bf378c315)),
closes [#​27138](https://togithub.com/aws/aws-cdk/issues/27138)
[#​28356](https://togithub.com/aws/aws-cdk/issues/28356)
- **events-targets:** add support for AppSync as an EventBridge rule
target ([#​29584](https://togithub.com/aws/aws-cdk/issues/29584))
([5be88a3](https://togithub.com/aws/aws-cdk/commit/5be88a3055fe1e6b55884847d1b8a75b03341b39)),
closes [#​29884](https://togithub.com/aws/aws-cdk/issues/29884)
- **servicecatalog:** `ProductStack` memoryLimit prop
([#​30105](https://togithub.com/aws/aws-cdk/issues/30105))
([4b6dc8c](https://togithub.com/aws/aws-cdk/commit/4b6dc8c650822bcd0231c8890bd94a934a0cd34d)),
closes [#​29862](https://togithub.com/aws/aws-cdk/issues/29862)
##### Bug Fixes
- **apigateway:** set authorization scope when authorization type is
Cognito ([#​30035](https://togithub.com/aws/aws-cdk/issues/30035))
([38a2284](https://togithub.com/aws/aws-cdk/commit/38a2284bccd9119f3bcc8d0baef8525ab416bb67))
- **autoscaling:** cooldown cannot be set with step scaling actions
([#​30150](https://togithub.com/aws/aws-cdk/issues/30150))
([6810762](https://togithub.com/aws/aws-cdk/commit/68107624e50d738be7e10fd22072b5a40983e720)),
closes [#​29779](https://togithub.com/aws/aws-cdk/issues/29779)
- **cli:** cdk bootstrap --help does not show some options
([#​30113](https://togithub.com/aws/aws-cdk/issues/30113))
([8debd20](https://togithub.com/aws/aws-cdk/commit/8debd205b1f52e172de844f349d4e76e39df269d))
- **cli:** handle attributes of AWS::KMS::Key when hotswapping
([#​30112](https://togithub.com/aws/aws-cdk/issues/30112))
([a1dcaa6](https://togithub.com/aws/aws-cdk/commit/a1dcaa6c4a3db245d1becf0e9ace1d488b6d528d)),
closes [#​25418](https://togithub.com/aws/aws-cdk/issues/25418)
- **cli:** template created during import should be written to assets
folder ([#​29830](https://togithub.com/aws/aws-cdk/issues/29830))
([a96cf55](https://togithub.com/aws/aws-cdk/commit/a96cf5500242890cddbbaa46af7f7228c7126d98)),
closes [#​22928](https://togithub.com/aws/aws-cdk/issues/22928)
[#​22530](https://togithub.com/aws/aws-cdk/issues/22530)
- **diff:** properties from ChangeSet diff were ignored
([#​30093](https://togithub.com/aws/aws-cdk/issues/30093))
([9c3f3f5](https://togithub.com/aws/aws-cdk/commit/9c3f3f5dbb9b4b9f86911d9cd7c056a9fc0432b3)),
closes [#​29731](https://togithub.com/aws/aws-cdk/issues/29731)
- **ecs:** require task pidMode for Linux-based Fargate tasks, not host
([#​30020](https://togithub.com/aws/aws-cdk/issues/30020))
([3e9e0a8](https://togithub.com/aws/aws-cdk/commit/3e9e0a8696630c9368adf012aff1fb919e398164)),
closes [#​29995](https://togithub.com/aws/aws-cdk/issues/29995)
- **eks:** in place updates for EKS security group and Subnets
([#​30114](https://togithub.com/aws/aws-cdk/issues/30114))
([eb39d9e](https://togithub.com/aws/aws-cdk/commit/eb39d9e1924240d433dc91b7f8d98ebcf5cd87c8)),
closes [#​28584](https://togithub.com/aws/aws-cdk/issues/28584)
- **iam:** fromUserArn returns incorrect principalAccount
([#​30023](https://togithub.com/aws/aws-cdk/issues/30023))
([f9f3681](https://togithub.com/aws/aws-cdk/commit/f9f3681be9fc6a0c998cd26119053c5832ef9806)),
closes
[/github.com/aws/aws-cdk/issues/29999#issuecomment-2087672380](https://togithub.com/aws//github.com/aws/aws-cdk/issues/29999/issues/issuecomment-2087672380)
- **s3:** add bucket policy dependency to notification resource
([#​30053](https://togithub.com/aws/aws-cdk/issues/30053))
([71986ff](https://togithub.com/aws/aws-cdk/commit/71986ff986d13bbb496b33c0554f657e77dbb2d0)),
closes [#​27600](https://togithub.com/aws/aws-cdk/issues/27600)
[#​16811](https://togithub.com/aws/aws-cdk/issues/16811)
- **stepfunctions-tasks:** documentation fix for
retryOnServiceExceptions
([#​30077](https://togithub.com/aws/aws-cdk/issues/30077))
([205163f](https://togithub.com/aws/aws-cdk/commit/205163fc0d2cac84d3d746a98c393e137f0e2388))
***
#### Alpha modules (2.142.0-alpha.0)
##### Features
- **pipes-targets:** add step function target
([#​29987](https://togithub.com/aws/aws-cdk/issues/29987))
([b0975e4](https://togithub.com/aws/aws-cdk/commit/b0975e410a404d07952e01303af01224ccfad864)),
closes [#​29665](https://togithub.com/aws/aws-cdk/issues/29665)
[#​29665](https://togithub.com/aws/aws-cdk/issues/29665)
- **redshift:** multi AZ cluster
([#​29976](https://togithub.com/aws/aws-cdk/issues/29976))
([a53517c](https://togithub.com/aws/aws-cdk/commit/a53517c6772332cc2a15c9b38e964a933e9c8355))
</details>
<details>
<summary>aws/aws-sdk-js (aws-sdk)</summary>
###
[`v2.1628.0`](https://togithub.com/aws/aws-sdk-js/blob/HEAD/CHANGELOG.md#216280)
[Compare
Source](https://togithub.com/aws/aws-sdk-js/compare/v2.1627.0...v2.1628.0)
- feature: IoTFleetWise: AWS IoT FleetWise now supports listing vehicles
with attributes filter, ListVehicles API is updated to support
additional attributes filter.
###
[`v2.1627.0`](https://togithub.com/aws/aws-sdk-js/blob/HEAD/CHANGELOG.md#216270)
[Compare
Source](https://togithub.com/aws/aws-sdk-js/compare/v2.1626.0...v2.1627.0)
- bugfix: SSO: fix sso credential resolution failure when sso-session
access token requires a refresh
- bugfix: Typing: Align the typing for constructor param of
TokenFileWebIdentityCredentials with STS client
- bugfix: rest-json: use rules.payload when extracting data for event
stream
- feature: EMRServerless: This release adds the capability to run
interactive workloads using Apache Livy Endpoint.
- feature: MetadataService: Update AWS.MetadataService to expose the
fetchMetadataToken function.
###
[`v2.1626.0`](https://togithub.com/aws/aws-sdk-js/blob/HEAD/CHANGELOG.md#216260)
[Compare
Source](https://togithub.com/aws/aws-sdk-js/compare/v2.1625.0...v2.1626.0)
- bugfix: EC2: do not serialize empty lists for EC2
- feature: Chatbot: This change adds support for tagging Chatbot
configurations.
- feature: CloudFormation: Added DeletionMode FORCE_DELETE_STACK for
deleting a stack that is stuck in DELETE_FAILED state due to resource
deletion failure.
- feature: KMS: This release includes feature to import customer's
asymmetric (RSA, ECC and SM2) and HMAC keys into KMS in China.
- feature: OpenSearch: This release adds support for enabling or
disabling a data source configured as part of Zero-ETL integration with
Amazon S3, by setting its status.
- feature: WAFV2: You can now use Security Lake to collect web ACL
traffic data.
###
[`v2.1625.0`](https://togithub.com/aws/aws-sdk-js/blob/HEAD/CHANGELOG.md#216250)
[Compare
Source](https://togithub.com/aws/aws-sdk-js/compare/v2.1624.0...v2.1625.0)
- feature: CloudFront: Model update; no change to SDK functionality.
- feature: Glue: Add Maintenance window to CreateJob and UpdateJob APIs
and JobRun response. Add a new Job Run State for EXPIRED.
- feature: Lightsail: This release adds support for Amazon Lightsail
instances to switch between dual-stack or IPv4 only and IPv6-only public
IP address types.
- feature: MailManager: This release includes a new Amazon SES feature
called Mail Manager, which is a set of email gateway capabilities
designed to help customers strengthen their organization's email
infrastructure, simplify email workflow management, and streamline email
compliance control.
- feature: PI: Performance Insights added a new input parameter called
AuthorizedActions to support the fine-grained access feature.
Performance Insights also restricted the acceptable input characters.
- feature: StorageGateway: Added new SMBSecurityStrategy enum named
MandatoryEncryptionNoAes128, new mode enforces encryption and disables
AES 128-bit algorithums.
###
[`v2.1624.0`](https://togithub.com/aws/aws-sdk-js/blob/HEAD/CHANGELOG.md#216240)
[Compare
Source](https://togithub.com/aws/aws-sdk-js/compare/v2.1623.0...v2.1624.0)
- feature: BedrockAgent: This release adds support for using Guardrails
with Bedrock Agents.
- feature: BedrockAgentRuntime: This release adds support for using
Guardrails with Bedrock Agents.
- feature: ControlTower: Added ListControlOperations API and filtering
support for ListEnabledControls API. Updates also includes added
metadata for enabled controls and control operations.
- feature: OSIS: Add support for creating an OpenSearch Ingestion
pipeline that is attached to a provided VPC. Add information about the
destinations of an OpenSearch Ingestion pipeline to the GetPipeline and
ListPipelines APIs.
- feature: RDS: This release adds support for EngineLifecycleSupport on
DBInstances, DBClusters, and GlobalClusters.
- feature: SecretsManager: add v2 smoke tests and smithy smokeTests
trait for SDK testing
###
[`v2.1623.0`](https://togithub.com/aws/aws-sdk-js/blob/HEAD/CHANGELOG.md#216230)
[Compare
Source](https://togithub.com/aws/aws-sdk-js/compare/v2.1622.0...v2.1623.0)
- feature: ApplicationAutoScaling: add v2 smoke tests and smithy
smokeTests trait for SDK testing.
- feature: CodeBuild: Aws CodeBuild now supports 36 hours build timeout
- feature: ELBv2: This release adds dualstack-without-public-ipv4 IP
address type for ALB.
- feature: LakeFormation: Introduces a new API, GetDataLakePrincipal,
that returns the identity of the invoking principal
- feature: Transfer: Enable use of CloudFormation traits in Smithy model
to improve generated CloudFormation schema from the Smithy API model.
###
[`v2.1622.0`](https://togithub.com/aws/aws-sdk-js/blob/HEAD/CHANGELOG.md#216220)
[Compare
Source](https://togithub.com/aws/aws-sdk-js/compare/v2.1621.0...v2.1622.0)
- feature: ACMPCA: This release adds support for waiters to fail on
AccessDeniedException when having insufficient permissions
- feature: Kafka: AWS MSK support for Broker Removal.
- feature: MWAA: Amazon MWAA now supports Airflow web server auto
scaling to automatically handle increased demand from REST APIs, Command
Line Interface (CLI), or more Airflow User Interface (UI) users.
Customers can specify maximum and minimum web server instances during
environment creation and update workflow.
- feature: QuickSight: This release adds DescribeKeyRegistration and
UpdateKeyRegistration APIs to manage QuickSight Customer Managed Keys
(CMK).
- feature: SageMaker: Introduced WorkerAccessConfiguration to SageMaker
Workteam. This allows customers to configure resource access for workers
in a workteam.
###
[`v2.1621.0`](https://togithub.com/aws/aws-sdk-js/blob/HEAD/CHANGELOG.md#216210)
[Compare
Source](https://togithub.com/aws/aws-sdk-js/compare/v2.1620.0...v2.1621.0)
- feature: BedrockAgentRuntime: Updating Bedrock Knowledge Base Metadata
& Filters feature with two new filters listContains and stringContains
- feature: CodeBuild: CodeBuild Reserved Capacity VPC Support
- feature: DataSync: Task executions now display a CANCELLING status
when an execution is in the process of being cancelled.
- feature: Grafana: This release adds new ServiceAccount and
ServiceAccountToken APIs.
- feature: MedicalImaging: Added support for importing medical imaging
data from Amazon S3 buckets across accounts and regions.
###
[`v2.1620.0`](https://togithub.com/aws/aws-sdk-js/blob/HEAD/CHANGELOG.md#216200)
[Compare
Source](https://togithub.com/aws/aws-sdk-js/compare/v2.1619.0...v2.1620.0)
- feature: Connect: Amazon Connect provides enhanced search capabilities
for flows & flow modules on the Connect admin website and
programmatically using APIs. You can search for flows and flow modules
by name, description, type, status, and tags, to filter and identify a
specific flow in your Connect instances.
- feature: S3: Updated a few x-id in the http uri traits
###
[`v2.1619.0`](https://togithub.com/aws/aws-sdk-js/blob/HEAD/CHANGELOG.md#216190)
[Compare
Source](https://togithub.com/aws/aws-sdk-js/compare/v2.1618.0...v2.1619.0)
- feature: EventBridge: Amazon EventBridge introduces KMS
customer-managed key (CMK) encryption support for custom and partner
events published on EventBridge Event Bus (including default bus) and
UpdateEventBus API.
- feature: VPCLattice: This release adds TLS Passthrough support. It
also increases max number of target group per rule to 10.
</details>
<details>
<summary>evanw/esbuild (esbuild)</summary>
###
[`v0.21.4`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#0214)
[Compare
Source](https://togithub.com/evanw/esbuild/compare/v0.21.3...v0.21.4)
- Update support for import assertions and import attributes in node
([#​3778](https://togithub.com/evanw/esbuild/issues/3778))
Import assertions (the `assert` keyword) have been removed from node
starting in v22.0.0. So esbuild will now strip them and generate a
warning with `--target=node22` or above:
▲ [WARNING] The "assert" keyword is not supported in the configured
target environment ("node22") [assert-to-with]
example.mjs:1:40:
1 │ import json from "esbuild/package.json" assert { type: "json" }
│ ~~~~~~
╵ with
Did you mean to use "with" instead of "assert"?
Import attributes (the `with` keyword) have been backported to node 18
starting in v18.20.0. So esbuild will no longer strip them with
`--target=node18.N` if `N` is 20 or greater.
- Fix `for await` transform when a label is present
This release fixes a bug where the `for await` transform, which wraps
the loop in a `try` statement, previously failed to also move the loop's
label into the `try` statement. This bug only affects code that uses
both of these features in combination. Here's an example of some
affected code:
```js
// Original code
async function test() {
outer: for await (const x of [Promise.resolve([0, 1])]) {
for (const y of x) if (y) break outer
throw 'fail'
}
}
// Old output (with --target=es6)
function test() {
return __async(this, null, function* () {
outer: try {
for (var iter = __forAwait([Promise.resolve([0, 1])]), more, temp,
error; more = !(temp = yield iter.next()).done; more = false) {
const x = temp.value;
for (const y of x) if (y) break outer;
throw "fail";
}
} catch (temp) {
error = [temp];
} finally {
try {
more && (temp = iter.return) && (yield temp.call(iter));
} finally {
if (error)
throw error[0];
}
}
});
}
// New output (with --target=es6)
function test() {
return __async(this, null, function* () {
try {
outer: for (var iter = __forAwait([Promise.resolve([0, 1])]), more,
temp, error; more = !(temp = yield iter.next()).done; more = false) {
const x = temp.value;
for (const y of x) if (y) break outer;
throw "fail";
}
} catch (temp) {
error = [temp];
} finally {
try {
more && (temp = iter.return) && (yield temp.call(iter));
} finally {
if (error)
throw error[0];
}
}
});
}
```
- Do additional constant folding after cross-module enum inlining
([#​3416](https://togithub.com/evanw/esbuild/issues/3416),
[#​3425](https://togithub.com/evanw/esbuild/issues/3425))
This release adds a few more cases where esbuild does constant folding
after cross-module enum inlining.
```ts
// Original code: enum.ts
export enum Platform {
WINDOWS = 'windows',
MACOS = 'macos',
LINUX = 'linux',
}
// Original code: main.ts
import { Platform } from './enum';
declare const PLATFORM: string;
export function logPlatform() {
if (PLATFORM == Platform.WINDOWS) console.log('Windows');
else if (PLATFORM == Platform.MACOS) console.log('macOS');
else if (PLATFORM == Platform.LINUX) console.log('Linux');
else console.log('Other');
}
// Old output (with --bundle '--define:PLATFORM="macos"' --minify
--format=esm)
function
n(){"windows"=="macos"?console.log("Windows"):"macos"=="macos"?console.log("macOS"):"linux"=="macos"?console.log("Linux"):console.log("Other")}export{n
as logPlatform};
// New output (with --bundle '--define:PLATFORM="macos"' --minify
--format=esm)
function n(){console.log("macOS")}export{n as logPlatform};
```
- Pass import attributes to on-resolve plugins
([#​3384](https://togithub.com/evanw/esbuild/issues/3384),
[#​3639](https://togithub.com/evanw/esbuild/issues/3639),
[#​3646](https://togithub.com/evanw/esbuild/issues/3646))
With this release, on-resolve plugins will now have access to the import
attributes on the import via the `with` property of the arguments
object. This mirrors the `with` property of the arguments object that's
already passed to on-load plugins. In addition, you can now pass `with`
to the `resolve()` API call which will then forward that value on to all
relevant plugins. Here's an example of a plugin that can now be written:
```js
const examplePlugin = {
name: 'Example plugin',
setup(build) {
build.onResolve({ filter: /.*/ }, args => {
if (args.with.type === 'external')
return { external: true }
})
}
}
require('esbuild').build({
stdin: {
contents: `
import foo from "./foo" with { type: "external" }
foo()
`,
},
bundle: true,
format: 'esm',
write: false,
plugins: [examplePlugin],
}).then(result => {
console.log(result.outputFiles[0].text)
})
```
- Formatting support for the `@position-try` rule
([#​3773](https://togithub.com/evanw/esbuild/issues/3773))
Chrome shipped this new CSS at-rule in version 125 as part of the [CSS
anchor positioning
API](https://developer.chrome.com/blog/anchor-positioning-api). With
this release, esbuild now knows to expect a declaration list inside of
the `@position-try` body block and will format it appropriately.
- Always allow internal string import and export aliases
([#​3343](https://togithub.com/evanw/esbuild/issues/3343))
Import and export names can be string literals in ES2022+. Previously
esbuild forbid any usage of these aliases when the target was below
ES2022. Starting with this release, esbuild will only forbid such usage
when the alias would otherwise end up in output as a string literal.
String literal aliases that are only used internally in the bundle and
are "compiled away" are no longer errors. This makes it possible to use
string literal aliases with esbuild's `inject` feature even when the
target is earlier than ES2022.
###
[`v0.21.3`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#0213)
[Compare
Source](https://togithub.com/evanw/esbuild/compare/v0.21.2...v0.21.3)
- Implement the decorator metadata proposal
([#​3760](https://togithub.com/evanw/esbuild/issues/3760))
This release implements the [decorator metadata
proposal](https://togithub.com/tc39/proposal-decorator-metadata), which
is a sub-proposal of the [decorators
proposal](https://togithub.com/tc39/proposal-decorators). Microsoft
shipped the decorators proposal in [TypeScript
5.0](https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/#decorators)
and the decorator metadata proposal in [TypeScript
5.2](https://devblogs.microsoft.com/typescript/announcing-typescript-5-2/#decorator-metadata),
so it's important that esbuild also supports both of these features.
Here's a quick example:
```js
// Shim the "Symbol.metadata" symbol
Symbol.metadata ??= Symbol('Symbol.metadata')
const track = (_, context) => {
(context.metadata.names ||= []).push(context.name)
}
class Foo {
@​track foo = 1
@​track bar = 2
}
// Prints ["foo", "bar"]
console.log(Foo[Symbol.metadata].names)
```
**1 parent 3fc808c commit 4207002
2 files changed
+756
-852
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments