Skip to content

Eleventy Utils v2.0.2

Compare
Choose a tag to compare
@zachleat zachleat released this 24 Apr 20:56
· 14 commits to main since this release

Adds new createHash async function to generate base64 hashes from string content (used in Bundle and Image plugins), compatible with WebCrypto (Node 19+) and falls back to use node:crypto in other cases.

import { createHash } from "@11ty/eleventy-utils";

const base64hash = await createHash("This is an arbitrary string.");

Full Changelog: v2.0.1...v2.0.2