Releases: 11ty/eleventy-utils
Parse Dependencies (ESM) v2.0.4
- Adds an option to customize acorn parser instance with plugins to support #6
- Moved repo for this plugin to
11ty/eleventy-utils, away from11ty/eleventy-dependency-tree-esmfor easier maintenance.
Previous release (v2.0.3) notes: https://github.com/11ty/eleventy-dependency-tree-esm/releases/tag/v2.0.3
Node Version Check v1.0.1
- Uses npm Trusted Publishers for release
Full Changelog: https://github.com/11ty/eleventy-utils/compare/node-version-check@1.0.0...node-version-check@1.0.1
Eleventy Utils v2.0.8-alpha.1
- Switch to use npm Workspaces and this tests the release workflow.
Full Changelog: https://github.com/11ty/eleventy-utils/compare/v2.0.7...utils@2.0.8-alpha.1
Eleventy Utils v2.0.7
- Fix missing lib sha256.js file with v2.0.6 release.
Eleventy Utils v2.0.6
- Adds
createHashSyncandcreateHashHexSyncfunctions (identical use to async functionscreateHashandcreateHashHexrespectively). These functions automatically swap betweennode:crypto, the web standard WebCrypto API, and an inline script option in all other environments. - Adds Node v24 to CI test suite
import { createHashSync, createHashHexSync } from "@11ty/eleventy-utils";
const base64UrlHash = createHashSync("This", "is", "an", "arbitrary", "string.");
const hexHash = createHashHexSync("This", "is", "an", "arbitrary", "string.");Eleventy Utils v2.0.5
Adds createHashHex export for hex hashes, similar to the createHash function which returns base64 hashes. Currently hex hashes are used by the Fetch plugin.
import { createHashHex } from "@11ty/eleventy-utils";
const hash = await createHashHex("This", "is", "an", "arbitrary", "string.");Full Changelog: v2.0.4...v2.0.5
Eleventy Utils v2.0.4
- Fix bug with
BufferorUint8Arraypassed tocreateHash(when using WebCrypto API) — for Eleventy Image
Full Changelog: v2.0.3...v2.0.4
Eleventy Utils v2.0.3
Adds support for multiple arguments to new createHash utility to pass multiple pieces of content to the hashing function (backwards compatible with Node’s support for multiple .update() calls).
import { createHash } from "@11ty/eleventy-utils";
const base64hash = await createHash("This", "is", "an", "arbitrary", "string.");Full Changelog: v2.0.2...v2.0.3
Eleventy Utils v2.0.2
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
Eleventy Utils v2.0.1
- Adds new DateCompare utility (for use in Fetch and Import utilities) to compare dates with string durations (e.g.
"*","24h","1y")
Full Changelog: v2.0.0...v2.0.1