dominicbirch / bundle-declarations-webpack-plugin

Webpack wrapper around dts-bundle
MIT License
8 stars 1 forks source link

[Snyk] Upgrade dts-bundle-generator from 9.0.0 to 9.1.0 #16

Closed dominicbirch closed 10 months ago

dominicbirch commented 10 months ago

This PR was automatically created by Snyk using the credentials of a real user.


Snyk has created this PR to upgrade dts-bundle-generator from 9.0.0 to 9.1.0.

:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
- The recommended version is **1 version** ahead of your current version. - The recommended version was released **21 days ago**, on 2023-12-27.
Release notes
Package name: dts-bundle-generator
  • 9.1.0 - 2023-12-27

    Release notes

    With this release all known bugs in the tool are fixed (especially long-lived ones!) 🎉

    Fixed

    • Star re-exports (import * as NS / export * as NS) aren't wrapped with a NS name (see #134 and #281)
    • (Re-)Export from re-export from external library doesn't add import/export statements (see #251 and #279)
  • 9.0.0 - 2023-11-27

    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)
from dts-bundle-generator GitHub release notes
Commit messages
Package name: dts-bundle-generator
  • 88c25b8 Bumped version to 9.1.0
  • 2d3e710 Changed tests to pass with typescript@next (v5.4)
  • f0f0c21 Merge pull request #281 from timocov/fix134-ns
  • 2328187 Added wrapping `import/export * as Ns` with a namespace
  • 2b4d91b Remove unused file from tests
  • e1394fd Chore: Upgraded deps
  • fc2d5dd Allow to run e2e tests in parallel
  • 1cd06d7 Merge pull request #279 from timocov/re-export-from-external-library-fix251
  • d35f76e Fixed handling re-export from external libraries
  • 7e97d5e Small refactoring of isReExportFromImportableModule
  • 948408a Changed renamedExports and namedImports to be a map instead of an array/set
  • d6c4b11 Removed unused originalName field
Compare

**Note:** *You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.* For more information: 🧐 [View latest project report](https://app.snyk.io/org/dominicbirch/project/c9843c4b-58cc-4a24-a314-eef0f8a19f6b?utm_source=github&utm_medium=referral&page=upgrade-pr) 🛠 [Adjust upgrade PR settings](https://app.snyk.io/org/dominicbirch/project/c9843c4b-58cc-4a24-a314-eef0f8a19f6b/settings/integration?utm_source=github&utm_medium=referral&page=upgrade-pr) 🔕 [Ignore this dependency or unsubscribe from future upgrade PRs](https://app.snyk.io/org/dominicbirch/project/c9843c4b-58cc-4a24-a314-eef0f8a19f6b/settings/integration?pkg=dts-bundle-generator&utm_source=github&utm_medium=referral&page=upgrade-pr#auto-dep-upgrades)