Skip to content
New issue

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

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

Already on GitHub? # to your account

Test & fix with helmet v7 and set as a peer dependency on ^6||^7 #88

Merged
merged 2 commits into from
Nov 12, 2024

Conversation

PaulThompson
Copy link
Contributor

In order to pull in the most recent version of helmet, test updating to Helmet latest (v7).

In order to allow further updates to Helmet in future set as a peer dependency.
Set peer dependency for ^7 for current and tested Helmet v7.
Set to peer dependency || ^6 to back-compatibly support Helmet v6 in case that is needed.

The fix for Helmet v7 required removal of helmet.expectCt()

From https://github.com/helmetjs/helmet/blob/main/CHANGELOG.md:

Expect-CT is no longer part of Helmet. If you still need it, you can use the expect-ct package.
https://github.com/helmetjs/helmet/issues/378

From https://github.com/helmetjs/helmet/blob/main/CHANGELOG.md:
Expect-CT is no longer part of Helmet. If you still need it, you can use the expect-ct package. See #378
So that consuming projects can install specific past or future helmet versions
v6 or v7
@venables venables merged commit 5659f38 into venables:main Nov 12, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants