Skip to content

Releases: kindspells/astro-shield

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

0.2.1

11 Feb 09:31
ac88392
Compare
Choose a tag to compare

Improvements

  • Now there is no need to pass the dist path to the integration function
  • Better documentation
  • Better types

Breaking Changes

  • Now parameters are passed as an options object instead of individual ordered values

0.1.7 - First Public Release

10 Feb 23:30
011ca07
Compare
Choose a tag to compare

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.