Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(release): 2.62.1 #23848

Merged
merged 2 commits into from
Jan 26, 2023
Merged

chore(release): 2.62.1 #23848

merged 2 commits into from
Jan 26, 2023

Conversation

mrgrain
Copy link
Contributor

@mrgrain mrgrain commented Jan 26, 2023

See CHANGELOG

rix0rrr and others added 2 commits January 26, 2023 13:11
PR #23813 made imports lazy, but in the resulting code, Nodejs no longer recognizes the exports when importing `aws-cdk-lib` from an ESM module.

To solve this, vend two different index files: one for use by CJS imports, one for use by ESM imports.

ESM modules will still try to load the entire library, so they don't benefit from the speed boost. This is unavoidable: we tried a more complex method that forced ESM to recognize the lazy module references anyway (by tricking the backwards compatibility lexer), but ESM did not experience a speed boost, indicating that it was crawling the entire module irrespective of the submodule accessor's laziness. So, we are opting for the simpler solution of vending two index files instead.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
@mrgrain mrgrain added the pr/no-squash This PR should be merged instead of squash-merging it label Jan 26, 2023
@gitpod-io
Copy link

gitpod-io bot commented Jan 26, 2023

@github-actions github-actions bot added the p2 label Jan 26, 2023
@aws-cdk-automation aws-cdk-automation requested a review from a team January 26, 2023 13:26
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Jan 26, 2023
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 740974f
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify
Copy link
Contributor

mergify bot commented Jan 26, 2023

Thank you for contributing! Your pull request will be automatically updated and merged without squashing (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit 8641449 into v2-release Jan 26, 2023
@mergify mergify bot deleted the patch/v2.62.1 branch January 26, 2023 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS. p2 pr/no-squash This PR should be merged instead of squash-merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants