Skip to content

feat!: adopt mod-utils v6 (mod-flexsearch v5)#298

Merged
markdumay merged 1 commit into
mainfrom
feat/mod-utils-v6
Jul 12, 2026
Merged

feat!: adopt mod-utils v6 (mod-flexsearch v5)#298
markdumay merged 1 commit into
mainfrom
feat/mod-utils-v6

Conversation

@markdumay

Copy link
Copy Markdown
Contributor

Summary

  • Bumps mod-flexsearch's own Go module path from /v4 to /v5 and the
    mod-utils requirement from /v5 to /v6 v6.0.1 (never v6.0.0, which has a
    known camelKey defect), in go.mod, config.toml, and
    exampleSite/go.mod/hugo.toml.
  • Part of the mod-utils v6 adoption program (feat!: redesign argument and type system as v6 (core + shims, golden-tested) mod-utils#334); see the
    v5-to-v6 migration notes
    in the mod-utils README.
  • Argument-handling migration (recipe step 4): no-op for this module.
    mod-flexsearch has zero InitArgs.html/InitTypes.html call sites and no
    data/structures definitions — it reads site.Params directly. The only
    mod-utils partial it calls is utilities/LogWarn.html (a deprecated
    site-parameter warning in GetSearchConfig.html), whose signature is
    unchanged in v6. No template files were touched.

Verification

  • hugo mod graph (run from exampleSite/) shows only
    github.com/gethinode/mod-utils/v6@v6.0.1 — no mod-utils/v5 anywhere,
    including _vendor.
  • pnpm run build (hugo --gc --minify -s exampleSite) exits 0 with zero
    ERROR lines. The only WARN lines are pre-existing, unrelated deprecations
    (languageCode, css.Sass/libsass) and asset-pipeline "Processing file"
    notices — identical before and after the bump. No new warnings surfaced.
  • Own-exampleSite visual regression (own harness, tests/visual/ from the
    gethinode/hinode program branch): baseline captured from the pristine
    clone before any change, candidate shot after the migration, compared with
    --include "." (10/10 sitemap pages). Result: 10 ok, 0 flagged
    (0.0000% diff ratio on every page).

Call sites migrated

None — this module has no InitArgs/InitTypes call sites to migrate.

Warning triage

No new warnings. Pre-existing WARN lines (Hugo languageCode/libsass
deprecations, asset "Processing file" notices) are unrelated to mod-utils and
unchanged before/after.

🤖 Generated with Claude Code

Bump go.mod and Hugo module imports from mod-utils/v5 to mod-utils/v6
v6.0.1, and the module's own Go path from /v4 to /v5 in the same
commit, per the mod-utils v6 adoption program.

mod-flexsearch has no InitArgs/InitTypes call sites and no
data/structures definitions, so the Args API migration (recipe step
4) is a no-op here: only utilities/LogWarn.html is used for a
deprecated site-parameter warning, and its signature is unchanged in
v6. No template or structure files were touched.

Verification: exampleSite build exits 0 with zero ERROR lines and no
new WARN lines; hugo mod graph (exampleSite context) shows only
mod-utils/v6; own-exampleSite visual regression (10 pages) shows 0
flagged diffs against the pre-change baseline.

BREAKING CHANGE: requires github.com/gethinode/mod-flexsearch/v5 import
path; adopts mod-utils v6 and migrates argument handling to the Args
API (see gethinode/mod-utils v5-to-v6 migration notes).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@markdumay markdumay merged commit 6299f72 into main Jul 12, 2026
8 checks passed
@markdumay

Copy link
Copy Markdown
Contributor Author

🎉 This PR is included in version 5.0.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