Skip to content

feat: declare script globals as an array of {path, name} tables - #246

Merged
markdumay merged 1 commit into
mainfrom
feat/globals-array-of-tables
Jul 19, 2026
Merged

feat: declare script globals as an array of {path, name} tables#246
markdumay merged 1 commit into
mainfrom
feat/globals-array-of-tables

Conversation

@markdumay

Copy link
Copy Markdown
Contributor

Summary

Migrates the declared script-globals from a path-keyed map to the array-of-tables form [[...globals]] with path + name, matching the case-preserving globals convention (Hugo lowercases TOML config keys, so path-keyed maps break for capitalized bundle filenames). This module's bundle name is lowercase so it was never broken, but the convention is moving uniformly across the ecosystem. Same window registration, new schema.

Requires

Hinode with the array-of-tables globals reader (v3.10.0+, from hinode#2064). That reader also still accepts the legacy map form, so older hinode keeps working with the prior release of this module.

Verification

Part of the coordinated globals-convention change; proven end-to-end on infusal.io (array-format gsap + map-format modules coexist under the backward-compatible reader).

🤖 Generated with Claude Code

Match mod-utils/hinode's array-of-tables globals convention (Hugo
lowercases config keys, so path-keyed global maps break for capitalized
bundle filenames). Same window.bootstrap registration, new schema.
@markdumay
markdumay merged commit 8043451 into main Jul 19, 2026
8 checks passed
@markdumay
markdumay deleted the feat/globals-array-of-tables branch July 19, 2026 05:12
@markdumay

Copy link
Copy Markdown
Contributor Author

🎉 This PR is included in version 1.5.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant