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

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

PaulThompson
Copy link

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
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.

None yet

1 participant