Skip to content

chore: v2.6.0 - Add meta.verification to docu.json for site-verification tags - #483

Merged
gitfromwildan merged 1 commit into
mainfrom
changeset-release/main
Nov 6, 2026
Merged

gitfromwildan merged 1 commit into
mainfrom
changeset-release/main

Conversation

@gitfromwildan

@gitfromwildan gitfromwildan commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@docubook/[email protected]

Minor Changes

  • #488 dffd7d2 Thanks @gitfromwildan! - Add meta.verification to docu.json for site-verification tags. Each entry, keyed by meta name, becomes a <meta> tag in the <head> of every page Flame builds, including the landing page, so the Algolia Crawler or Google Search Console can verify your domain: { "algolia-site-verification": "ADCCB4B3D3A8BDCE" } renders <meta name="algolia-site-verification" content="ADCCB4B3D3A8BDCE">.

  • #485 a3f1f1b Thanks @gitfromwildan! - flame build now fails when a plugin hook throws. Before, an error in onStart, onLoad, transformFrontmatter, transformHtml or onEnd was logged and the build exited with code 0, shipping pages without that hook's work, such as content an onLoad plugin was meant to remove. The build now exits with code 1, and a page whose hook failed is not written. The error names the hook and, for page hooks, the source file. flame dev still logs hook errors and keeps serving. If a plugin used to throw from a hook on purpose to report a soft problem, make it log a warning instead.

Patch Changes

  • #484 daf7c13 Thanks @gitfromwildan! - Plugins can now run inline scripts on the deployed site. PageContext has a new nonce field, the page's CSP nonce: write <script nonce="${ctx.nonce}"> in injectHead or injectBody. Before, the page's Content Security Policy blocked every inline plugin script, even though flame preview ran them. Flame does not add the nonce to plugin output itself, so a <script> that reaches the page through an unescaped value stays blocked. flame preview now only replaces the nonce the build wrote, so it blocks the same scripts as the deployed site.

  • #482 63f60aa Thanks @gitfromwildan! - A plugin's onLoad handler now runs on every matching file when its filter has the g or y flag. Before, RegExp#test resumed from the previous match, so every other matching file skipped the handler and was built from its unchanged source. A filter that is not a RegExp now fails in setup() with [plugin] onLoad requires a RegExp \filter``.

@docubook/[email protected]

Patch Changes

  • #487 b5a3310 Thanks @gitfromwildan! - Conversations in the Ask AI history can be removed again. The remove (×) button on each conversation was hidden: the Sidepanel reuses the search dialog's .DocSearch-Hit-action-button, which the dialog stylesheet hides outside a selected search hit, and the plugin loads both stylesheets. The plugin's stylesheet now shows the button in the conversation history.
  • Updated dependencies [dffd7d2, daf7c13, 63f60aa, a3f1f1b]:

@vercel

vercel Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docu Ignored Ignored Preview Nov 6, 2026 6:39am UTC

pullfrog[bot]
pullfrog Bot previously approved these changes Nov 6, 2026

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

Mode: memory-guided (release config). I checked this Changesets release PR against the pending changeset, the linked-versioning config and the npm registry. Verdict: READY.

  • @docubook/flame 2.5.0 → 2.5.1: consumes .changeset/plugin-onload-stateful-filter.md from #482. The new CHANGELOG.md entry matches the changeset text word for word, and its claims match the code — the TypeError message is at plugin-builder.ts:241 and is covered in plugin.test.ts.
  • Release scope: only flame is versioned, which is correct. Nothing under packages/* depends on flame. plugins/search-algolia declares a workspace:^ peer on flame, and 2.5.1 stays inside its ^2.5.0 range, so the plugin needs no bump. pnpm test:release-plan passes, and npm currently lists 2.5.0 as the latest flame version, so 2.5.1 doesn't collide with an existing release.

Pullfrog  | View workflow run | Using claude-opus-5-5 | 𝕏

@gitfromwildan
gitfromwildan force-pushed the changeset-release/main branch from 83eabcd to 1a029c0 Compare November 6, 2026 05:34
@gitfromwildan gitfromwildan changed the title chore: v2.5.1 - A plugin's onLoad handler now runs on every matching file when its filter has… chore: v2.5.1 - Plugins can now run inline scripts on the deployed site Nov 6, 2026
pullfrog[bot]
pullfrog Bot previously approved these changes Nov 6, 2026

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

Mode: memory-guided (release config). Since the last review, the Changesets action regenerated this PR to also release .changeset/plugin-inline-script-nonce.md from #484. Verdict: READY.

  • Added the #484 entry to the @docubook/flame 2.5.1 changelog: the text matches the changeset word for word, and its claims match the code. PageContext.nonce is declared in plugin.ts:39-45, the injectHead/injectBody JSDoc tells plugin authors to add nonce="${ctx.nonce}", and preview.ts and preview.impl.ts now use rotateNonce to swap only the nonce the build wrote.
  • Kept the release scope the same: it still bumps only flame, 2.5.0 → 2.5.1. The new changeset is a flame patch, so no other linked package versions, and 2.5.1 still fits the ^2.5.0 peer range in plugins/search-algolia. npm still lists 2.5.0 as the latest flame.

Pullfrog  | View workflow run | Using claude-opus-5-5 | 𝕏

@gitfromwildan
gitfromwildan force-pushed the changeset-release/main branch from 1a029c0 to 363de92 Compare November 6, 2026 05:49
@gitfromwildan gitfromwildan changed the title chore: v2.5.1 - Plugins can now run inline scripts on the deployed site chore: v2.6.0 - flame build now fails when a plugin hook throws Nov 6, 2026

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ No blocking issues. One release-notes inconsistency is noted inline.

Reviewed changes

Mode: memory-guided (release config). Since the last review, the Changesets action regenerated this PR to also release .changeset/strict-plugin-hooks.md from #485, which moves the release from a patch to a minor. Verdict: READY WITH MINOR FIXES.

  • Bumped @docubook/flame to 2.6.0 instead of 2.5.1: #485 is a flame minor changeset, so the version is correct. Its changelog text matches the changeset word for word, and its claims match the code. BuildPluginBuilder takes { strict } (plugin-builder.ts:30), build.ts:391 and build.impl.ts:393 pass strict: true, and dev keeps the lenient default.
  • Added a ### Minor Changes section above the existing patch entries: #484 and #482 are now listed under ### Patch Changes in the 2.6.0 entry, and their text is unchanged.
  • Kept the release scope the same: still flame only. plugins/search-algolia peers on flame via workspace:^, and Changesets 3 bumps a peer dependent only when its range is left, which 2.6.0 does not do. pnpm test:release-plan passes, and npm lists 2.5.0 as the latest flame, so 2.6.0 is a new version.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using claude-opus-5-5 | 𝕏

Comment thread packages/flame/CHANGELOG.md Resolved
@gitfromwildan gitfromwildan self-assigned this Nov 6, 2026
@pullfrog

pullfrog Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Fixed the one review thread (contradictory 2.6.0 release notes) in #486, a new PR against main. It drops the outdated "an error thrown in onStart is only logged and the build continues" clause from .changeset/plugin-onload-stateful-filter.md (c081e07). That claim contradicted the #485 entry in the same release.

The fix is in the changeset on main because the Changesets action regenerates this release PR from those files. An edit on changeset-release/main would be overwritten. Once #486 merges, this PR's CHANGELOG.md updates on its own. The thread stays open until then. Validation: the change is one line of release-note text with no code involved, so no lint, typecheck, build or test runs were needed.

Pullfrog  | View workflow run | via Pullfrog | Using claude-opus-5-5 | 𝕏

pullfrog[bot]
pullfrog Bot previously approved these changes Nov 6, 2026

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

Mode: memory-guided (release config). Since the last review, the Changesets action regenerated this PR after #486 merged into main. Verdict: READY.

  • Removed the outdated onStart clause from the #482 entry: the 2.6.0 CHANGELOG.md entry now ends at the [plugin] onLoad requires a RegExp \filter`message, matching the updated.changeset/plugin-onload-stateful-filter.md. It no longer contradicts the [#485](https://github.com/DocuBook/docubook/pull/485) entry, which says flame build` now fails when a hook throws. The earlier thread about this is resolved.
  • Kept the release scope the same: this release still versions only flame, 2.5.0 → 2.6.0, and the #485, #484 and #482 entries keep the same order and text otherwise.

Pullfrog  | View workflow run | Using claude-opus-5-5 | 𝕏

pullfrog[bot]
pullfrog Bot previously approved these changes Nov 6, 2026

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

Mode: memory-guided (release config). Since the last review, the Changesets action regenerated this PR after #487 merged into main, so the release now also includes @docubook/plugin-search-algolia. Verdict: READY.

  • Bumped @docubook/plugin-search-algolia from 0.1.1 to 0.1.2: this comes from the patch in .changeset/algolia-history-remove-button.md. The new CHANGELOG.md entry matches the changeset word for word, and its claim matches the code: src/client/style.css:107 shows .DocSearch-Hit-action-button inside .DocSearch-Sidepanel-RecentConversation, and src/__tests__/style.test.ts tests both the upstream rule that hides the button and the plugin rule that shows it.
  • Kept the flame release the same: flame still goes from 2.5.0 to 2.6.0, and its entries and their order are unchanged. The plugin is outside the linked group, so the plugin patch doesn't change any other package's version. pnpm test:release-plan passes. npm doesn't have flame 2.6.0 or plugin 0.1.2 yet, so neither version is taken. flame's npm:@docubook/plugin-search-algolia@^0.1.0 devDep alias accepts 0.1.2, so the lockfile doesn't need to change.

ℹ️ Plugin 0.1.2 will need flame 2.6.0 or later

The plugin's peer dependency "@docubook/flame": "workspace:^" is rewritten at publish time to ^2.6.0. On npm, 0.1.1 declares ^2.5.0. The fix in 0.1.2 only changes CSS, but sites on flame 2.5.x will still get a peer-dependency warning, or an npm ERESOLVE error if flame is pinned, until they upgrade flame too. This is how workspace:^ normally works and is fine to merge as is. It's noted here so the release notes don't come as a surprise.

Technical details
# Plugin peer range follows flame's release version

## Affected sites
- plugins/search-algolia/package.json — `peerDependencies["@docubook/flame"]: "workspace:^"` publishes as `^2.6.0`

## Required outcome
- None for this release. If the plugin should keep supporting older flame minors, its peer range has to be decoupled from the workspace version (e.g. an explicit `^2.5.0`). That is a policy decision for the maintainers.

Pullfrog  | View workflow run | Using claude-opus-5-5 | 𝕏

…ication tags

- @docubook/flame (minor): Add `meta.verification` to `docu.json` for site-verification tags
- @docubook/flame (minor): `flame build` now fails when a plugin hook throws
- @docubook/plugin-search-algolia (patch): Conversations in the Ask AI history can be removed again
- @docubook/flame (patch): Plugins can now run inline scripts on the deployed site
- @docubook/flame (patch): A plugin's `onLoad` handler now runs on every matching file when its `filter` has the `g` or `y` flag
@gitfromwildan
gitfromwildan force-pushed the changeset-release/main branch from daa0d9c to 54443ca Compare November 6, 2026 06:39
@gitfromwildan gitfromwildan changed the title chore: v2.6.0 - flame build now fails when a plugin hook throws chore: v2.6.0 - Add meta.verification to docu.json for site-verification tags Nov 6, 2026

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

Mode: memory-guided (release config). Since the last review, the Changesets action regenerated this PR after #488 merged into main, adding .changeset/meta-verification.md to the release. Verdict: READY.

  • Added the #488 entry under ### Minor Changes in flame 2.6.0: the text matches the changeset word for word, and its claims match the code. verificationTags() (html.shared.ts:73) escapes and writes one <meta> per entry. build.ts passes meta.verification for doc pages, the landing page and the 404 page (lines 297, 665, 710), and build.impl.ts does the same at lines 296, 669 and 714, so Bun and Node/Deno builds match. html.test.ts, schema.test.ts and plugin-integration.test.ts cover it.
  • Kept the release scope the same: #488 is a flame minor, and #485 already made this a minor, so flame stays at 2.6.0 and no other linked package gets a version. The plugin's "Updated dependencies" line now also lists dffd7d2, and the plugin stays at 0.1.2. npm still shows flame 2.5.0 and plugin 0.1.1 as the newest versions, so neither new version is taken.

Pullfrog  | View workflow run | Using claude-opus-5-5 | 𝕏

@gitfromwildan
gitfromwildan merged commit 36dbf5c into main Nov 6, 2026
15 checks passed
@gitfromwildan
gitfromwildan deleted the changeset-release/main branch November 6, 2026 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant