Releases: kindspells/astro-shield
Releases · kindspells/astro-shield
1.0.1
1.0.0
New Features
- Middleware support! : Now it is possible for
astro-shield
to install a middleware that adds SRI hashes to dynamically generated pages, and not just static pages as until today.
Performance
- We introduced better caching to reduce the amount of network calls that
astro-shield
has to perform when generating SRI hashes for cross-origin resources.
Development
- New end-to-end tests: We introduced new e2e tests to ensure the quality and stability of this integration.
- Higher testing coverage: We increased the testing coverage requirements for this library.
Autogenerated Changelong
Full Changelog: 0.5.1...1.0.0
0.5.1
0.5.0
Breaking Changes
- The package was renamed to
@kindspells/astro-shield
- The internal integration label was set to
@kindspells/astro-shield
New Features
- Now it generates per-page SRI hashes, so we can use them to generate smaller CSP headers.
Autogenerated Changelog
- docs: add spdx license annotations by @castarco in #18
- ci: configure codecov by @castarco in #19
- test: increase tests coverage by @castarco in #20
- feat!: per-page sri hashes by @castarco in #25
- ci: set --access public for pnpm publish by @castarco in #26
Full Changelog: 0.4.2...0.5.0
0.4.2
Development Process Improvements
This release only improves how we release new versions of this package. From now on, all releases will be done from our Github Actions pipelines.
This will ensure that we are able to establish the provenance of that release, said in other words: this allows us to guarantee that the published package comes from a specific commit of this repository, without any alteration.
This guarantee is key for code supply chains security, and it will help with regulations and certifications compliance.
Autogenerated Changelog
- security: configure ci/cd builds & provenance by @castarco in #15
- ci: workaround to allow pnpm publish from tag by @castarco in #16
- fix: add missing install step in release workflow by @castarco in #17
Full Changelog: 0.4.1...0.4.2
Provenance Attestations
0.4.1
0.4.0
Development improvements
- Added new tests
- Added CI pipeline to run tests publicly
- Added local git hooks to avoid pushing broken code
Improvements
- Improved
<script>
matchers to cover more uncommon cases - Improved
<style>
matchers to cover more uncommon cases - Improved
<link rel="stylesheet">
matches to cover more uncommon cases
Fixes
- Use "private" type for the integration return type, to ensure that we won't have type mismatches because of Astro updates.
0.3.0
0.2.1
0.1.7 - First Public Release
What does this lib does?
- Transforms Astro's generated HTML files to add Subresource Integrity hashes to inlined scripts and styles.
- Generates a JS module that exports the list of script and styles hashes, so they can be used to generate CSP headers.