Skip to content

Releases: kindspells/astro-shield

1.2.0

26 Mar 15:53
4cd4de4
Compare
Choose a tag to compare

New Features

  • Now it is possible to generate CSP headers for SSR (dynamic) pages

Minor improvements

  • Improved some warning and error messages
  • The hashes module generation now creates intermediate directories in case they don't exist, avoiding some annoying problems.

Development

  • The code is now prepared for other improvements on the security headers front.

Autogenerated Changelog

Full Changelog: 1.1.0...1.2.0

1.1.0

15 Mar 17:51
f092571
Compare
Choose a tag to compare

Fixes

  • Improved warning and error messages
  • Improved documentation to cover edge cases and their workarounds

Performance

  • Improved caching logic for static assets processing

Autogenerated Changelog

Full Changelog: 1.0.1...1.1.0

1.0.1

13 Mar 22:31
50a01b7
Compare
Choose a tag to compare

Fixes

  • Fixed a regression in the package release pipeline

Autogenerated Changelog

Full Changelog: 1.0.0...1.0.1

1.0.0

13 Mar 22:21
a8beb9a
Compare
Choose a tag to compare

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

27 Feb 12:28
2413e8e
Compare
Choose a tag to compare

Changes

  • Fix documentation

Autogenerated Changelog

Full Changelog: 0.5.0...0.5.1

0.5.0

27 Feb 12:08
19e6647
Compare
Choose a tag to compare

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

Full Changelog: 0.4.2...0.5.0

0.4.2

16 Feb 17:27
a1e26c1
Compare
Choose a tag to compare

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

16 Feb 12:39
e5ebb22
Compare
Choose a tag to compare

Improvements

  • Now this lib generates the crossorigin="anonymous" attribute for <script>, <style>, and <link rel="stylesheet"> elements when they refer to external cross-origin resources, to avoid credentials leaks.

0.4.0

15 Feb 20:04
f8e57e5
Compare
Choose a tag to compare

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

11 Feb 17:44
a51dcd5
Compare
Choose a tag to compare

Improvements

  • Generate SRI hashes for "external" scripts and styles (by external we mean not inlined, independently of whether they are remote or server from the same origin)
  • Clarified documentation