Skip to content

Releases: 42z-io/hashembed

Use base64 encoding for integrity hashes

03 Nov 04:03
5523bc8
Compare
Choose a tag to compare

Changelog

  • Use base64 for integrity hashes by @reidja in #3

Support integrity hashes

03 Nov 03:38
Compare
Choose a tag to compare

Support retrieval of integrity hashes (SHA-256) for content hashed paths.

Usage:

output := hashedFs.GetHash("/path/to/file.js")
fmt.Println(output)
// Output: 8d77f04c3be2abcd554f262130ba6c30f277318e66588b6a0d95f476c4ae7c48

Changelog

  • Added new HashedFs.GetHash(path) function to retrieve the integrity hash (SHA-256) of a path
  • Modifed FileHasher interface to allow retrieval of the algorithm

v0.0.2

27 Oct 02:22
3cca450
Compare
Choose a tag to compare

Changelog

  • Rename hashembed.FS to hashembed.HashedFS
  • Rename hashembed.FS.Forward to hashembed.FS.GetActualPath
  • Rename hashembed.FS.Reverse to hashembed.FS.GetHashedPath

v0.0.1

26 Oct 03:58
b45e86d
Compare
Choose a tag to compare

Initial release of hashembed - a thin wrapper around embed.FS that allows content hashes to be appended to file paths