Skip to content

chore(deps): bump ondocs from 0.10.0 to 0.18.0 - #281

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/ondocs-0.18.0
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/ondocs-0.18.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 16, 2026

Copy link
Copy Markdown

Bumps ondocs from 0.10.0 to 0.18.0.

Release notes

Sourced from ondocs's releases.

[email protected]

ondocs 0.18.0 answers translated docs sites in their own language, and lays out right-to-left pages correctly.

  • On a French, German or Spanish locale, the Starlight plugin shows the dialog in that language: the button, the labels, the title and the "I don't know" reply. The labels you set in dialog.locales still take priority. These are machine translations that native speakers have not reviewed yet; corrections are welcome in an issue or a pull request.
  • New route.noAnswerMessage option: the route's "I don't know" for every locale, or one per locale ({ root: '…', fr: '…' }).
  • The MCP route the Astro and Starlight integrations serve reads each locale's index, so search and list_pages take a locale. ondocs dev also serves each locale's index.
  • On right-to-left pages, code blocks, inline code and source URLs stay left to right. The suggestion bar, list indents and the floating button follow the page's direction.
  • ⌘I and Ctrl+I open the dialog on keyboard layouts that type no Latin letters, such as Russian or Greek.

Minor Changes

  • #269 ca5fd38 Thanks @​dgesteves! - The Starlight plugin words the dialog in French, German and Spanish on a locale in one of them: the button, every label, the title and the route's "I don't know", under the labels you give in dialog.locales. These are machine translations that native speakers have not reviewed yet: corrections are welcome in an issue or a pull request. A new route.noAnswerMessage option sets the route's "I don't know", for every locale or per locale ({ root: '…', fr: '…' }). The MCP route the Astro and Starlight integrations serve with an adapter now reads each locale's index, so search and list_pages take a locale, as the dialog's questions do. ondocs dev serves each locale's index beside the root one (dist/fr/ask-index.json), on the ask and MCP endpoints.

    On a right-to-left page, code blocks, inline code and the sources' URLs stay left to right, questions and answers run in the direction of their own text, and the selected suggestion's bar, list indents and the floating button follow the page's direction. ⌘I and Ctrl+I open the dialog on keyboard layouts that type no Latin letters, such as Russian or Greek.

[email protected]

ondocs 0.17.0 works with AI SDK 6 as well as 7, so a project on AI SDK 6 can add it without upgrading.

  • The ai peer range is ^6.0.16 || ^7.0.95, and @ai-sdk/openai's is ^3.0.0 || ^4.0.0. CI runs the types, the tests, the CLI and the endpoint on 6.0.16 and the newest 6, and everything on 7.
  • The published types work on both versions with skipLibCheck off. On AI SDK 7 they are unchanged.
  • AI SDK 6 has no timeout for the model's first word, so there the default is 90 seconds for the whole answer.
  • Compatibility lists the Node.js, AI SDK, React and framework versions CI runs.

Upgrading: ondocs now needs Node.js 22.13 or later (it was 22.12). If you build your site on Node.js 22.12, update Node.js first.

Minor Changes

  • #265 8f53d73 Thanks @​dgesteves! - ondocs works with AI SDK 6 as well as 7: the ai peer range is now ^6.0.16 || ^7.0.95, and @ai-sdk/openai's ^3.0.0 || ^4.0.0, so a project on AI SDK 6 can add ondocs without moving to 7. The endpoint streams each answer through the result's own toUIMessageStream(), which both have, and passes the instructions, the end-of-answer callback and generation.telemetry by AI SDK 6's names as well as 7's, which AI SDK 7 reads first. ondocs/mock and Workers AI embeddings use model classes both read, and the type declarations name no type that AI SDK 6 lacks, so they typecheck there without skipLibCheck. AI SDK 6 has no timeout for the model's first word, so there an answer's default timeout is the 90 seconds for the whole answer. Compatibility lists what CI runs.

    ondocs now needs Node.js 22.13 or later (engines: >=22.13.0), up from 22.12: if you build your site on Node.js 22.12, update Node.js first. On 22.12, loading an ES module with require() prints an experimental warning, and one that fails to load ends the process.

[email protected]

ondocs 0.16.4 checks allowedOrigins when the handler is made, and keeps MDX text that only looked like an import or export.

  • createAskHandler and createMcpHandler throw at startup for an allowedOrigins entry no browser sends: a trailing slash, capitals, a default port, a * pattern, 'null' or ''. Each of these matched no request before, so the site silently got no CORS headers. The error names the origin to write. If your server now fails to start after the upgrade, this is why.
  • ondocs index reads MDX imports and exports the way MDX does: only where a block starts. A wrapped paragraph line such as "export the site as static files" stays in the index, and an export inside an indented code fence stays as code.
  • astro dev with an SSR adapter and a base answers from the last build's index, where every question got a 404.

Patch Changes

  • #256 ab8dda6 Thanks @​kasettadoo-sys! - createAskHandler and createMcpHandler check allowedOrigins when they are made. An entry that no browser sends as its Origin, such as 'https://blog.example.com/' with a trailing slash, 'https://Blog.Example.com' or 'https://blog.example.com:443', matched no request, so the page on that origin silently got no CORS headers (and a 403 from the MCP endpoint). Each now fails with the origin to write instead. A list holding '*' says to pass '*' itself, and a string other than '*', which JavaScript code could pass and which was searched as text ('https://blog.example.com' let https://blog.example.co in), is refused. It also refuses 'null', which let a request with Origin: null in (a sandboxed iframe or a file:// page), and '', which splitting an empty environment variable gives and which acted as an empty list.

  • #258 7ff6050 Thanks @​kasettadoo-sys! - astro dev on a site with an SSR adapter and a base answers from the last build's index. The dev server serves that index for the routes the integration adds, and looked for its request at <base>/ask-index.json in request.url. Astro's own base middleware, which runs first, has already stripped base from that URL, so the request fell through to a 404 and every question failed. It now matches the path as requested.

  • #267 942ce90 Thanks @​dgesteves! - ondocs index reads MDX imports and exports more like MDX does. An export line inside a code fence indented in JSX is kept as code, where it was dropped, and an import or export right after a JSX tag line, a {…} expression, a thematic break or a setext underline is dropped, where it was kept as text. allowedOrigins also refuses an entry with * in it, such as 'https://*.example.com', which matched no request: list each origin.

  • #254 e1b25aa Thanks @​kasettadoo-sys! - ondocs index no longer drops MDX text that only looks like an import or export. Any line starting with import or export was read as one, with the lines after it up to a blank line, so a wrapped paragraph such as "you can\nexport the site as static files" lost its second half from the index and the .md copies. As in MDX, an import or export now counts only where a block starts: on the first line, or after a blank line or a heading. An export holding a template string is now dropped whole, where its backticks used to leave part of it in the text.

[email protected]

ondocs 0.16.3 fixes answers that came from the wrong place, and warns before an index gets too big to deploy.

... (truncated)

Changelog

Sourced from ondocs's changelog.

0.18.0

Minor Changes

  • #269 ca5fd38 Thanks @​dgesteves! - The Starlight plugin words the dialog in French, German and Spanish on a locale in one of them: the button, every label, the title and the route's "I don't know", under the labels you give in dialog.locales. These are machine translations that native speakers have not reviewed yet: corrections are welcome in an issue or a pull request. A new route.noAnswerMessage option sets the route's "I don't know", for every locale or per locale ({ root: '…', fr: '…' }). The MCP route the Astro and Starlight integrations serve with an adapter now reads each locale's index, so search and list_pages take a locale, as the dialog's questions do. ondocs dev serves each locale's index beside the root one (dist/fr/ask-index.json), on the ask and MCP endpoints.

    On a right-to-left page, code blocks, inline code and the sources' URLs stay left to right, questions and answers run in the direction of their own text, and the selected suggestion's bar, list indents and the floating button follow the page's direction. ⌘I and Ctrl+I open the dialog on keyboard layouts that type no Latin letters, such as Russian or Greek.

0.17.0

Minor Changes

  • #265 8f53d73 Thanks @​dgesteves! - ondocs works with AI SDK 6 as well as 7: the ai peer range is now ^6.0.16 || ^7.0.95, and @ai-sdk/openai's ^3.0.0 || ^4.0.0, so a project on AI SDK 6 can add ondocs without moving to 7. The endpoint streams each answer through the result's own toUIMessageStream(), which both have, and passes the instructions, the end-of-answer callback and generation.telemetry by AI SDK 6's names as well as 7's, which AI SDK 7 reads first. ondocs/mock and Workers AI embeddings use model classes both read, and the type declarations name no type that AI SDK 6 lacks, so they typecheck there without skipLibCheck. AI SDK 6 has no timeout for the model's first word, so there an answer's default timeout is the 90 seconds for the whole answer. Compatibility lists what CI runs.

    ondocs now needs Node.js 22.13 or later (engines: >=22.13.0), up from 22.12: if you build your site on Node.js 22.12, update Node.js first. On 22.12, loading an ES module with require() prints an experimental warning, and one that fails to load ends the process.

0.16.4

Patch Changes

  • #256 ab8dda6 Thanks @​kasettadoo-sys! - createAskHandler and createMcpHandler check allowedOrigins when they are made. An entry that no browser sends as its Origin, such as 'https://blog.example.com/' with a trailing slash, 'https://Blog.Example.com' or 'https://blog.example.com:443', matched no request, so the page on that origin silently got no CORS headers (and a 403 from the MCP endpoint). Each now fails with the origin to write instead. A list holding '*' says to pass '*' itself, and a string other than '*', which JavaScript code could pass and which was searched as text ('https://blog.example.com' let https://blog.example.co in), is refused. It also refuses 'null', which let a request with Origin: null in (a sandboxed iframe or a file:// page), and '', which splitting an empty environment variable gives and which acted as an empty list.

  • #258 7ff6050 Thanks @​kasettadoo-sys! - astro dev on a site with an SSR adapter and a base answers from the last build's index. The dev server serves that index for the routes the integration adds, and looked for its request at <base>/ask-index.json in request.url. Astro's own base middleware, which runs first, has already stripped base from that URL, so the request fell through to a 404 and every question failed. It now matches the path as requested.

  • #267 942ce90 Thanks @​dgesteves! - ondocs index reads MDX imports and exports more like MDX does. An export line inside a code fence indented in JSX is kept as code, where it was dropped, and an import or export right after a JSX tag line, a {…} expression, a thematic break or a setext underline is dropped, where it was kept as text. allowedOrigins also refuses an entry with * in it, such as 'https://*.example.com', which matched no request: list each origin.

  • #254 e1b25aa Thanks @​kasettadoo-sys! - ondocs index no longer drops MDX text that only looks like an import or export. Any line starting with import or export was read as one, with the lines after it up to a blank line, so a wrapped paragraph such as "you can\nexport the site as static files" lost its second half from the index and the .md copies. As in MDX, an import or export now counts only where a block starts: on the first line, or after a blank line or a heading. An export holding a template string is now dropped whole, where its backticks used to leave part of it in the text.

0.16.3

Patch Changes

  • #253 3cdf7d0 Thanks @​dgesteves! - The answer cache starts fresh when the same pages are embedded, or embedded with another model or size. Its key covered the index's content hash, which counts the pages' text but not their vectors, so with a shared store (upstashAnswerCache) a deploy that moved from a keyword-only index to an embedded one, or from text-embedding-3-small to -large, kept serving the answers the old index found for up to ttlSeconds. Keys for keyword-only retrieval are unchanged; a site with embeddings starts its cache once more after upgrading.

  • #257 86f1d2c Thanks @​dgesteves! - ondocs dev and ondocs eval find an index in public/, site/ or _site/ without --index. These are where ondocs init has ondocs index -o write it on a Hugo site or a Next.js site on GitHub Pages (public/ask-index.json), an MkDocs site (site/) and a Jekyll or Eleventy site (_site/), so following init's steps and then running npx ondocs dev said "No index found". They are looked in after the folders the plugins write to.

  • #259 09c87c4 Thanks @​dgesteves! - ondocs dev reads the index again after a reload fails. It noted the file's new modification time before reading it, so when a question arrived while a build was still writing the file, that question got a 500, and every later one was answered from the old index until the file changed again; on a file system that keeps modification times to the second, the finished file often did not. The file now counts as read only once it loads, and questions that arrive during a reload wait for it.

  • #255 e8ffaba Thanks @​dgesteves! - ondocs index cites a Docusaurus page whose front matter id starts with a number at the URL Docusaurus serves it at. The number prefix was dropped from the id as from a file name, so id: 01-intro was cited at /docs/intro and id: 2-step at /docs/step, where Docusaurus serves /docs/01-intro and /docs/2-step, and the citations led to a 404. As in Docusaurus, the prefix is now dropped from file and folder names only.

  • #264 3df7321 Thanks @​dgesteves! - The default instructions ask a how-to answer to quote the exact command, option or config line the sources give, as code, to name the component, rule or function they say it uses, and, when the question names no version or setup, to give the step for each one the sources cover. They also say never to write a command, option or name the sources do not show. The rule that asked for brevity said nothing about the step, and answers to "how do I…" questions often described what to do without the command that does it. The rules stay five, so instructions: (defaults) => defaults + '\n6. …' keeps reading in order. With answerCache, whose key covers the instructions, cached answers start fresh after upgrading.

  • #262 5bbc11a Thanks @​dgesteves! - ondocs index and the Docusaurus, Astro, Starlight and VitePress plugins warn when they write an index over 20 MiB. Cloudflare Pages and Workers refuse a static asset over 25 MiB, which is how the endpoints ondocs init writes for them read the index, and a Worker has 128 MB of memory to load it in. Until now the first sign was a failed deploy: 12,000 chunks at 1,536 dimensions make a 34.8 MiB index, and the CLI printed only its size. The warning names the ways to make the index smaller that it does not take already: 512 dimensions (--dimensions 512 or dimensions: 512, not offered for a Workers AI model or a model of your own, whose vector size is fixed), keyword-only (--embedding none or embedding: 'none'), fewer pages (--ignore or exclude), and, with the CLI, one index per locale. Limits has the sizes.

0.16.2

Patch Changes

  • #249 6516f98 Thanks @​dgesteves! - When the page has already added Turnstile's script and it is still loading as the dialog opens, the dialog waits for that script instead of adding a second one, so Turnstile no longer runs twice. If Turnstile is still not there 5 seconds later, as with a tag that failed before the dialog opened, the dialog replaces the tag with its own.

... (truncated)

Commits
  • c413c57 Merge pull request #276 from dgesteves/changeset-release/main
  • a44fab2 chore: release
  • 765f196 Merge pull request #269 from dgesteves/fix/od2-54-i18n-rtl
  • 3754beb Merge pull request #274 from dgesteves/dependabot/npm_and_yarn/astrojs/starli...
  • 37503b6 Merge pull request #272 from dgesteves/dependabot/npm_and_yarn/ai-sdk-b8adef516b
  • 6bdd63a docs: the launcher is 3.6 KB gzipped
  • ff2935a Merge remote-tracking branch 'origin/main' into fix/od2-54-i18n-rtl
  • 138df09 Merge pull request #270 from dgesteves/fix/vite-6.4.5
  • 705ace5 chore(deps): bump the ai-sdk group across 1 directory with 2 updates
  • 0af67a5 Merge pull request #271 from dgesteves/changeset-release/main
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [ondocs](https://github.com/dgesteves/ondocs) from 0.10.0 to 0.18.0.
- [Release notes](https://github.com/dgesteves/ondocs/releases)
- [Changelog](https://github.com/dgesteves/ondocs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/dgesteves/ondocs/compare/[email protected]@0.18.0)

---
updated-dependencies:
- dependency-name: ondocs
  dependency-version: 0.18.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot
dependabot Bot requested a review from dgesteves as a code owner November 16, 2026 12:53
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 16, 2026
@dgesteves

Copy link
Copy Markdown
Owner

Superseded by #284, which applied this update (merged).

@dgesteves dgesteves closed this Nov 16, 2026
@dependabot @github

dependabot Bot commented on behalf of github Nov 16, 2026

Copy link
Copy Markdown
Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/ondocs-0.18.0 branch November 16, 2026 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant