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(deps): update dts-bundle-generator to v9 #431

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 27, 2023

Mend Renovate logo banner

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
dts-bundle-generator 8.1.2 -> 9.0.0 age adoption passing confidence

Release Notes

timocov/dts-bundle-generator (dts-bundle-generator)

v9.0.0: 9.0.0

Compare Source

Release notes

This release is one of biggest and the most valuable releases in years.

It introduces a fix for a limitation that existed since very first release i.e. resolving of name collisions 🎉.

Now, if you have 2 nodes with the same name in the bundle, one of them will be renamed (by adding $NUM suffix) to avoid clashing and accidental declaration merging (but if you have 2 interfaces declared in the same module to have declaration merging it should work as expected too).

Because of this new mechanism it helped to address some of the issues that I wasn't aware of but it seems that it existed in some of the packages, i.e. using a wrong name because of renaming during import (import { name as newName } case) (see "Additional information" section in this PR).

One of known changes in the declaration generation with this release is that a function/class/etc that was originally exported with the default export will never be exported directly but via re-export export { name as default }. This should not affect the result of the bundle but I think it is worth to note it.

But there is more, please refer to the change log below.

Last but not least, I want to thank @​Atrue for the contribution which was a motivation to make this release happen 🙏

Added
  • Use language service "rename" functionality to avoid name collisions (see #​130 and #​270)
  • Support for auto renaming nodes with the same name in the bundle (see #​116 and #​270)
Fixed
  • Inlining a library with namespaced imports/exports inlines export statements (see #​271 and #​278)
  • Incorrect handling re-export with namespace (see #​274 and #​277)
  • Double-underscored names aren't exported (see #​275 and #​276)
  • Invalid bundle while using import as statements in the code (see #​184 and #​270)
  • Incorrect handling namespaced imports/exports (see #​266)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

Copy link

changeset-bot bot commented Nov 27, 2023

⚠️ No Changeset found

Latest commit: 752832d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@wKovacs64 wKovacs64 merged commit a37ddc3 into main Nov 30, 2023
9 checks passed
@wKovacs64 wKovacs64 deleted the renovate/dts-bundle-generator-9.x branch November 30, 2023 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant