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

(WIP) Fix Incorrect Declaration Directory and Update Dependencies #5

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

pietrobondioli
Copy link

Description

This PR addresses a longstanding issue where the library was not correctly pointing to the declaration files' path. This forced developers to locally declare library types, compromising type safety for various plugins. Additionally, this PR updates all packages to their latest versions, thereby resolving at least 74 critical vulnerabilities previously identified with the old versions. It also adds @pietrobondioli as a contributor.

Changes

  • Removed the "declarationDir": "./types" from tsconfig.json, resolving the issue where the typings were pointing to the wrong location.
  • Updated all dependencies to the latest versions, addressing 74 known critical vulnerabilities.
  • Added @pietrobondioli to the list of contributors.

Impact

Correcting the type declaration path enhances type safety, as the library's own types are now correctly provided, negating the need for developers to use local type declarations like declare module 'iframe-message-proxy';.

Moreover, the dependency updates are a significant step forward in terms of security. Previously, the project had at least 74 critical vulnerabilities due to outdated dependencies. This update not only mitigates those vulnerabilities but also potentially improves performance and compatibility through the incorporation of the latest dependency features and bug fixes.

Additional Notes

Please review the changes especially concerning the dependencies, to ensure no breaking changes or functionality loss occurs due to the updates. The attention to the removal of "declarationDir": "./types" from tsconfig.json is warranted, as the package.json already specifies the "files" and "typings" paths accurately.

(WIP) The WIP tag on the title is because I still running tests to check if no functionality was broken.

For years this library was not pointing to the right declaration files
path, forcing developers to use declare locally declare library types:

`declare module 'iframe-message-proxy';`

This made a lot of plugins non-type safe.
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