Skip to content

Make integrity calculation opt-in #312

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

Merged
merged 1 commit into from
Jul 31, 2025
Merged

Make integrity calculation opt-in #312

merged 1 commit into from
Jul 31, 2025

Conversation

rafaelfranca
Copy link
Member

This commits introduces a new enable_integrity! method to the importmap configuration, allowing users to opt-in to automatic integrity hash calculation. This change ensures that integrity hashes are not calculated by default, giving developers control over when to enable this feature.

This is already opt-in for Propshaft users, but now it is also opt-in for Sprockets users.

Fixes #311

This commits introduces a new `enable_integrity!` method to the importmap
configuration, allowing users to opt-in to automatic integrity hash
calculation. This change ensures that integrity hashes
are not calculated by default, giving developers control over when to
enable this feature.

This is already opt-in for Propshaft users, but now it is also opt-in for
Sprockets users.
@rafaelfranca rafaelfranca force-pushed the rm-opt-in-integrity branch from f722bd4 to 41339ab Compare July 31, 2025 18:18
@rafaelfranca rafaelfranca merged commit b51f709 into main Jul 31, 2025
68 checks passed
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.

Integrity mismatch errors after upgrading to v2.2.1 - Breaking change in patch release
1 participant