Skip to content

Releases

[email protected]

Choose a tag to compare

@github-actions github-actions released this 24 Nov 08:09
575709c

Major Changes

  • aa3c878: The sidebar has a new look with three levels: upper-case section labels (Overview, tag groups, Components, or the tags themselves when there are no tag groups), rows with icons for the API title, servers and authentication, and compact operation rows under a guide line with the method first. The current item is a filled block. A tag's name opens a closed tag as well as going to its section. nav-item-spacing is removed (set --sidebar-item-padding instead), tag groups no longer collapse, and show-method-in-nav-bar now defaults to as-colored-text. See the v14 to v15 migration guide. RapiDoc Portal's docs sidebar takes the same three levels: a tab's top-level groups are section labels, their items rows with icons, deeper items compact rows under a guide line.

Patch Changes

  • aa3c878: rapidoc/flow (<rapi-flow>) is 41 KB smaller (283 KB to 242 KB minified, 89 KB to 76 KB gzipped): Arazzo documents are now read with js-yaml, half the size of yaml. Values are read the same way (YAML 1.2, merge keys, no dates); a tag the reader does not know keeps its plain value, and stray control characters are dropped. @rapidoc/mcp depends on js-yaml in place of yaml, and @rapidoc/prerender on both. OpenAPI specs are read as before. In rapidoc-min.js, the syntax highlighter no longer carries grammars for Astro, Svelte, Vue, Objective-C, Perl, R and TOML. The first three are drawn as HTML and Objective-C as C; Perl, R and TOML code shows as plain text.

  • aa3c878: MCP servers read their settings from MCP_ variables only, the same in an exported server, rapidoc mcp serve and the /mcp endpoint of rapidoc serve: a security scheme's credential is MCP_AUTH_<SCHEME> (MCP_AUTH_<SCHEME>_USERNAME and MCP_AUTH_<SCHEME>_PASSWORD for HTTP Basic), the base URL is MCP_BASE_URL (MCP_BASE_URL_<SOURCE> each when a server has several APIs) and the host allow-list is MCP_EXTERNAL_HOSTS. The old names (<SCHEME>, API_KEY, API_BASE_URL, EXTERNAL_HOSTS) are no longer read, so a scheme called token or path can no longer send $TOKEN or $PATH to an API, and two schemes that would share a variable stop the export with a message. Tool names are now always valid and stable: at most 64 characters, never empty for a non-Latin operationId, and a name two operations share ends in a short hash of the operation instead of _2, so reordering the spec renames nothing. Every operation is a tool with all its parameters; a GET becomes an MCP resource as well only with x-mcp-resource: true, no longer because of its path. Swagger 2.0 specs get HTTP Basic for type: basic and a form body for formData parameters. A spec with a relative server URL or none is resolved against the address it was loaded from; read from a file, the manifest has no base URL, rapidoc mcp export and rapidoc mcp serve say that one is required, and a tool call without one fails with that message instead of calling http://localhost. The runtime refuses a manifest version it does not know, <rapi-doc>'s mcp attribute shows the export button for true only, and @rapidoc/mcp no longer exports parseMcpEnabled.

  • f0c81ab: The navigation bar's filter area has its frosted-glass background again in Chrome and Edge: the minified bundle had kept only the -webkit- prefixed backdrop-filter. In the navigation bar, colored method badges have 2px corners and operation names are 1px smaller. The amber theme's light scheme has a deeper copper accent, #ab6534, with white text on it (was #ff791a with black text).

  • aa3c878: <rapi-doc> 15 clean-up. Removed: the scrollTo(elementId) method (use scrollToPath; scrollTo is the browser's own method again), mock-server-status-strategy (write the strategy in front of the codes: mock-server-status-code="random:200, 500"), theme="light" and theme="dark" (use color-scheme), default-schema-tab="model" (use schema), mcp="none" (use false), the hidden "Operations" sidebar row with its part section-navbar-operations-top, and loading, focusedElementId, searchVal and advancedSearchMatches as attributes. nav-active-change has one detail from every source, { elementId, type, operationId? }: id is gone, type is operation, tag or section, and operationId is the spec's own operationId. persist-auth saves keys per API (by spec URL, else title), so two APIs on one site no longer share a token; keys saved by v14 are not carried over, and saved keys are applied once per spec load, so a key set with setApiKey on spec-loaded stays. Relative server URLs (api/v1, ../v2, /v1) resolve against the spec's address. Fixed: the mock stays on after the element is moved in the page; OAuth with a scheme name that has a dot or starts with a digit; the Authentication section with a server URL such as //host or {scheme}://host; css-file copied once instead of on every render; the header's local file button reads YAML and reports a file it cannot read. The sidebar follows right-to-left pages, strikes deprecated operations through, and applies nav-item-overflow to description headings. The API reference, types and schema no longer list removed attributes; the docs have a "Removed attributes" page instead. @rapidoc/starlight and @rapidoc/docusaurus read detail.elementId only.

    The sidebar is usable with a keyboard and a screen reader: every item is a real link (so it is announced as one, opens in a new tab with a middle click, and shows its address), a tag's arrow is a separate button that answers Enter and Space, the current item is marked with aria-current, and the menu button of narrow layouts says whether the menu is open and Escape closes it. The look, class names and CSS parts are unchanged.

  • aa3c878: Security fixes. @rapidoc/server: the sign-in cookie, which /_rapidoc/auth/login gives any visitor, was accepted as a session, opening pages for all signed-in readers without signing in (pages limited to groups or emails were not affected); every sealed cookie and token now has one use. The server also refuses a build whose protected/ folder has no rapidoc-server.json, needs a public URL (site.url or RAPIDOC_PUBLIC_URL) to sign readers in anywhere but localhost, limits request bodies, and sends frame-ancestors (RAPIDOC_FRAME_ANCESTORS), referrer and HSTS headers. rapidoc and @rapidoc/prerender: HTML in descriptions is reduced to a fixed list of elements and attributes, in every browser and in pre-rendered pages, where it was not sanitized at all; javascript: addresses from a spec are no longer links; a spec value can no longer pass for a template in the prerenderer. rapidoc build refuses an output folder that is, holds or is inside a source folder (--out-dir public emptied public/). rapidoc mock and rapidoc dev listen on localhost by default (--host 0.0.0.0 for a container or a shared server; dev has --host now), and the mock takes an imported spec only from a program on its machine or its own page, never from another site's page or through a proxy, and does not let it read other local files.

[email protected]

Choose a tag to compare

@github-actions github-actions released this 24 Nov 08:08
575709c

Major Changes

  • aa3c878: RapiDoc and its family, in sync: RapiDoc Portal and the RapiDoc CLI (with the server, the mock, the prerenderer, the MCP builder and create-rapidoc), the integration contract (@rapidoc/embed) and RapiDoc for Hono, Express and Fastify were reviewed end to end together with rapidoc 15 and are 1.0.0, a new start for the family. The same names for the same things, one sidebar from <rapi-doc> to the portal, and safer defaults everywhere; names that were wrong or unclear were corrected once, with no old spellings kept: the portal site's "Upgrading from 0.2 to 1.0" page lists every change. From here they follow semver: a breaking change to the config, the CLI, the integration contract or an integration's options comes only in a new major version.

Patch Changes

  • aa3c878: Clean-up before 1.0, with no old names kept. Markdoc tags: {% api-operation %} takes the API's id as api (was spec), {% workflow %} takes the workflows: entry's id as document (was file), {% tab %} takes label only (name is gone), and {% card-grid columns=N %} now sets the number of columns (1 to 4, default 3; it was ignored and always 2). An old attribute fails the build as an unknown attribute. @rapidoc/portal no longer exports the unused second Markdoc renderer (compileMarkdoc, compileDocFile, createMarkdocConfig, markdocTags, extractHeadings, the ./markdoc subpath) or searchRecords; resolveConfig replaces normalizeConfig as the config helper. The header and footer for a page with its own document are imported under their real names, @rapidoc/portal/components/PortalPageHeader.astro and PortalPageFooter.astro (were PortalHeader.astro and PortalFooter.astro), and the paths the build's workspace imports moved under @rapidoc/portal/internal/. Without site.url, pages no longer get a canonical link and a sitemap on the placeholder domain developer.portal: a build has neither and prints one note that both need site.url. rapidoc migrate takes the project folder (rapidoc migrate [dir]) and --force / -f; when rapidoc.config.yaml exists and it cannot ask (no terminal, or --yes), it stops unless --force is given. @rapidoc/cli has an exports field: it is a command, and none of its files can be imported. New portals from create-rapidoc and rapidoc init use the new attribute names.
  • 543ef8d: New portals (npm create rapidoc, rapidoc init) leave theme.primary as a comment, so they take the portal's default accents, those of RapiDoc's amber theme. rapidoc.theme is a comment too, listing the presets.

@rapidoc/[email protected]

Choose a tag to compare

@github-actions github-actions released this 24 Nov 08:09
575709c

Minor Changes

  • 22b7bd6: For rapidoc 15: the API pages get its new three-level sidebar and keyboard support. Requires rapidoc 15, @rapidoc/embed 1 and @rapidoc/prerender 1.

Patch Changes

@rapidoc/[email protected]

Choose a tag to compare

@github-actions github-actions released this 24 Nov 08:09
575709c

Minor Changes

  • 22b7bd6: For rapidoc 15: the API pages get its new three-level sidebar and keyboard support. Requires rapidoc 15, @rapidoc/embed 1 and @rapidoc/prerender 1.

Patch Changes

  • aa3c878: <rapi-doc> 15 clean-up. Removed: the scrollTo(elementId) method (use scrollToPath; scrollTo is the browser's own method again), mock-server-status-strategy (write the strategy in front of the codes: mock-server-status-code="random:200, 500"), theme="light" and theme="dark" (use color-scheme), default-schema-tab="model" (use schema), mcp="none" (use false), the hidden "Operations" sidebar row with its part section-navbar-operations-top, and loading, focusedElementId, searchVal and advancedSearchMatches as attributes. nav-active-change has one detail from every source, { elementId, type, operationId? }: id is gone, type is operation, tag or section, and operationId is the spec's own operationId. persist-auth saves keys per API (by spec URL, else title), so two APIs on one site no longer share a token; keys saved by v14 are not carried over, and saved keys are applied once per spec load, so a key set with setApiKey on spec-loaded stays. Relative server URLs (api/v1, ../v2, /v1) resolve against the spec's address. Fixed: the mock stays on after the element is moved in the page; OAuth with a scheme name that has a dot or starts with a digit; the Authentication section with a server URL such as //host or {scheme}://host; css-file copied once instead of on every render; the header's local file button reads YAML and reports a file it cannot read. The sidebar follows right-to-left pages, strikes deprecated operations through, and applies nav-item-overflow to description headings. The API reference, types and schema no longer list removed attributes; the docs have a "Removed attributes" page instead. @rapidoc/starlight and @rapidoc/docusaurus read detail.elementId only.

    The sidebar is usable with a keyboard and a screen reader: every item is a real link (so it is announced as one, opens in a new tab with a middle click, and shows its address), a tag's arrow is a separate button that answers Enter and Space, the current item is marked with aria-current, and the menu button of narrow layouts says whether the menu is open and Escape closes it. The look, class names and CSS parts are unchanged.

  • Updated dependencies [aa3c878]

  • Updated dependencies [aa3c878]

  • Updated dependencies [aa3c878]

  • Updated dependencies [f0c81ab]

  • Updated dependencies [aa3c878]

  • Updated dependencies [aa3c878]

  • Updated dependencies [aa3c878]

  • Updated dependencies [aa3c878]

  • Updated dependencies [aa3c878]

@rapidoc/[email protected]

Choose a tag to compare

@github-actions github-actions released this 24 Nov 08:09
575709c

Major Changes

  • aa3c878: RapiDoc and its family, in sync: RapiDoc Portal and the RapiDoc CLI (with the server, the mock, the prerenderer, the MCP builder and create-rapidoc), the integration contract (@rapidoc/embed) and RapiDoc for Hono, Express and Fastify were reviewed end to end together with rapidoc 15 and are 1.0.0, a new start for the family. The same names for the same things, one sidebar from <rapi-doc> to the portal, and safer defaults everywhere; names that were wrong or unclear were corrected once, with no old spellings kept: the portal site's "Upgrading from 0.2 to 1.0" page lists every change. From here they follow semver: a breaking change to the config, the CLI, the integration contract or an integration's options comes only in a new major version.

Patch Changes

  • aa3c878: MCP servers read their settings from MCP_ variables only, the same in an exported server, rapidoc mcp serve and the /mcp endpoint of rapidoc serve: a security scheme's credential is MCP_AUTH_<SCHEME> (MCP_AUTH_<SCHEME>_USERNAME and MCP_AUTH_<SCHEME>_PASSWORD for HTTP Basic), the base URL is MCP_BASE_URL (MCP_BASE_URL_<SOURCE> each when a server has several APIs) and the host allow-list is MCP_EXTERNAL_HOSTS. The old names (<SCHEME>, API_KEY, API_BASE_URL, EXTERNAL_HOSTS) are no longer read, so a scheme called token or path can no longer send $TOKEN or $PATH to an API, and two schemes that would share a variable stop the export with a message. Tool names are now always valid and stable: at most 64 characters, never empty for a non-Latin operationId, and a name two operations share ends in a short hash of the operation instead of _2, so reordering the spec renames nothing. Every operation is a tool with all its parameters; a GET becomes an MCP resource as well only with x-mcp-resource: true, no longer because of its path. Swagger 2.0 specs get HTTP Basic for type: basic and a form body for formData parameters. A spec with a relative server URL or none is resolved against the address it was loaded from; read from a file, the manifest has no base URL, rapidoc mcp export and rapidoc mcp serve say that one is required, and a tool call without one fails with that message instead of calling http://localhost. The runtime refuses a manifest version it does not know, <rapi-doc>'s mcp attribute shows the export button for true only, and @rapidoc/mcp no longer exports parseMcpEnabled.
  • aa3c878: Security fixes. @rapidoc/server: the sign-in cookie, which /_rapidoc/auth/login gives any visitor, was accepted as a session, opening pages for all signed-in readers without signing in (pages limited to groups or emails were not affected); every sealed cookie and token now has one use. The server also refuses a build whose protected/ folder has no rapidoc-server.json, needs a public URL (site.url or RAPIDOC_PUBLIC_URL) to sign readers in anywhere but localhost, limits request bodies, and sends frame-ancestors (RAPIDOC_FRAME_ANCESTORS), referrer and HSTS headers. rapidoc and @rapidoc/prerender: HTML in descriptions is reduced to a fixed list of elements and attributes, in every browser and in pre-rendered pages, where it was not sanitized at all; javascript: addresses from a spec are no longer links; a spec value can no longer pass for a template in the prerenderer. rapidoc build refuses an output folder that is, holds or is inside a source folder (--out-dir public emptied public/). rapidoc mock and rapidoc dev listen on localhost by default (--host 0.0.0.0 for a container or a shared server; dev has --host now), and the mock takes an imported spec only from a program on its machine or its own page, never from another site's page or through a proxy, and does not let it read other local files.
  • aa3c878: Clean-up of the server's and the mock's JavaScript API and a few behaviours before 1.0. createApp() and startServer() of @rapidoc/server return a summary (mode, paths, public URL, issuer, client ID, providerReady, counts of protected files and zones, MCP tools) in place of the internal settings object and the separate mcp value, so no secret can be read from what they return; loadSettings is no longer exported. rapidoc serve now starts when the sign-in provider is down: public pages are served, sign-in ends on the sign-in error page, and the server finds the provider again when a reader signs in; a wrong issuer still stops the start. /_rapidoc/access/check no longer tells a signed-out reader which paths exist, and the server's log has the reader's id only, not the email. @rapidoc/mock exports only createMockApp, startMockServer and DEFAULT_PORT; neither function returns the token verifier any more, and the helpers rapidoc lint uses (exampleError, configFor, statefulFindings, statefulReport) moved to @rapidoc/mock/internal, which is not public API (tokenScopes, CONTROL_PREFIX, CONFIG_FILE, STATEFUL_RULES, ImportError and isLocalCaller are gone from the entry). In the mock, a security requirement that names a scheme the spec does not define now answers 401 (it was left open) with a warning at start, each API keeps at most 1000 X-Mock-Session sessions (the one used longest ago is dropped first), and a malformed percent-escape in a /__mock path answers 400, not 500.
  • Updated dependencies [aa3c878]
  • Updated dependencies [aa3c878]
  • Updated dependencies [aa3c878]

@rapidoc/[email protected]

Choose a tag to compare

@github-actions github-actions released this 24 Nov 08:09
575709c

Major Changes

  • aa3c878: RapiDoc and its family, in sync: RapiDoc Portal and the RapiDoc CLI (with the server, the mock, the prerenderer, the MCP builder and create-rapidoc), the integration contract (@rapidoc/embed) and RapiDoc for Hono, Express and Fastify were reviewed end to end together with rapidoc 15 and are 1.0.0, a new start for the family. The same names for the same things, one sidebar from <rapi-doc> to the portal, and safer defaults everywhere; names that were wrong or unclear were corrected once, with no old spellings kept: the portal site's "Upgrading from 0.2 to 1.0" page lists every change. From here they follow semver: a breaking change to the config, the CLI, the integration contract or an integration's options comes only in a new major version.

Patch Changes

  • aa3c878: rapidoc/flow (<rapi-flow>) is 41 KB smaller (283 KB to 242 KB minified, 89 KB to 76 KB gzipped): Arazzo documents are now read with js-yaml, half the size of yaml. Values are read the same way (YAML 1.2, merge keys, no dates); a tag the reader does not know keeps its plain value, and stray control characters are dropped. @rapidoc/mcp depends on js-yaml in place of yaml, and @rapidoc/prerender on both. OpenAPI specs are read as before. In rapidoc-min.js, the syntax highlighter no longer carries grammars for Astro, Svelte, Vue, Objective-C, Perl, R and TOML. The first three are drawn as HTML and Objective-C as C; Perl, R and TOML code shows as plain text.

  • f0c81ab: The navigation bar's filter area has its frosted-glass background again in Chrome and Edge: the minified bundle had kept only the -webkit- prefixed backdrop-filter. In the navigation bar, colored method badges have 2px corners and operation names are 1px smaller. The amber theme's light scheme has a deeper copper accent, #ab6534, with white text on it (was #ff791a with black text).

  • aa3c878: Clean-up of @rapidoc/prerender before 1.0.0. Options have one name each, the name of <rapi-doc>'s property: usePathInNav is now usePathInNavBar, renderSchema's style is schemaStyle, the API key option is apiKeyName, and getNavFilterHtml takes searchPlaceholder only. Every option that is an attribute of <rapi-doc> can also be written in kebab-case, in every function, and an option name a function does not know is an error that lists the valid ones (renderRapiDoc still passes any other attribute on to the element). renderRapiDoc writes an attribute only for an option you passed and renders with the element's own defaults, so the defaults are now layout: "row", schemaStyle: "tree" and allowAdvancedSearch: true; pass the old values ("column", "table", false) to keep them. A spec that cannot be loaded throws an error that says what was being loaded and why, in place of an almost empty result, and a path that is not a file is file not found, not a request to http://localhost. getSpecNavigation returns exactly the documented fields of an operation. A closing slash on basePath no longer gives two forms of link. Removed from the exports: the default export, resolveSpecInput, renderNavBarHtml, renderTemplateToString, escapeHtml and getMethodBadge (use getNavBarHtml; the others are internal), the types RapiDocOptions and RenderNavBarHtmlOptions (now RenderRapiDocOptions and NavBarOptions), and the theme and colorScheme options of getBundledCss, which did nothing. In RapiDoc Portal, a build now fails, naming the API and the spec, when a spec cannot be read, parsed or fetched, where it used to publish the API page with an empty sidebar; rapidoc dev shows the error on that API's page. An API whose spec is a URL gets its tag pages (the sidebar's links to them returned 404), from one fetch at build time. Search results for operations open the operation: they link to its tag's page and anchor as the sidebar does, and operations marked x-internal or x-hidden are not in the index. The "RapiDoc bundle is missing" error tells npm users to reinstall rapidoc.

  • aa3c878: <rapi-doc> 15 clean-up. Removed: the scrollTo(elementId) method (use scrollToPath; scrollTo is the browser's own method again), mock-server-status-strategy (write the strategy in front of the codes: mock-server-status-code="random:200, 500"), theme="light" and theme="dark" (use color-scheme), default-schema-tab="model" (use schema), mcp="none" (use false), the hidden "Operations" sidebar row with its part section-navbar-operations-top, and loading, focusedElementId, searchVal and advancedSearchMatches as attributes. nav-active-change has one detail from every source, { elementId, type, operationId? }: id is gone, type is operation, tag or section, and operationId is the spec's own operationId. persist-auth saves keys per API (by spec URL, else title), so two APIs on one site no longer share a token; keys saved by v14 are not carried over, and saved keys are applied once per spec load, so a key set with setApiKey on spec-loaded stays. Relative server URLs (api/v1, ../v2, /v1) resolve against the spec's address. Fixed: the mock stays on after the element is moved in the page; OAuth with a scheme name that has a dot or starts with a digit; the Authentication section with a server URL such as //host or {scheme}://host; css-file copied once instead of on every render; the header's local file button reads YAML and reports a file it cannot read. The sidebar follows right-to-left pages, strikes deprecated operations through, and applies nav-item-overflow to description headings. The API reference, types and schema no longer list removed attributes; the docs have a "Removed attributes" page instead. @rapidoc/starlight and @rapidoc/docusaurus read detail.elementId only.

    The sidebar is usable with a keyboard and a screen reader: every item is a real link (so it is announced as one, opens in a new tab with a middle click, and shows its address), a tag's arrow is a separate button that answers Enter and Space, the current item is marked with aria-current, and the menu button of narrow layouts says whether the menu is open and Escape closes it. The look, class names and CSS parts are unchanged.

  • aa3c878: Security fixes. @rapidoc/server: the sign-in cookie, which /_rapidoc/auth/login gives any visitor, was accepted as a session, opening pages for all signed-in readers without signing in (pages limited to groups or emails were not affected); every sealed cookie and token now has one use. The server also refuses a build whose protected/ folder has no rapidoc-server.json, needs a public URL (site.url or RAPIDOC_PUBLIC_URL) to sign readers in anywhere but localhost, limits request bodies, and sends frame-ancestors (RAPIDOC_FRAME_ANCESTORS), referrer and HSTS headers. rapidoc and @rapidoc/prerender: HTML in descriptions is reduced to a fixed list of elements and attributes, in every browser and in pre-rendered pages, where it was not sanitized at all; javascript: addresses from a spec are no longer links; a spec value can no longer pass for a template in the prerenderer. rapidoc build refuses an output folder that is, holds or is inside a source folder (--out-dir public emptied public/). rapidoc mock and rapidoc dev listen on localhost by default (--host 0.0.0.0 for a container or a shared server; dev has --host now), and the mock takes an imported spec only from a program on its machine or its own page, never from another site's page or through a proxy, and does not let it read other local files.

  • aa3c878: The sidebar has a new look with three levels: upper-case section labels (Overview, tag groups, Components, or the tags themselves when there are no tag groups), rows with icons for the API title, servers and authentication, and compact operation rows under a guide line with the method first. The current item is a filled block. A tag's name opens a closed tag as well as going to its section. nav-item-spacing is removed (set --sidebar-item-padding instead), tag groups no longer collapse, and show-method-in-nav-bar now defaults to as-colored-text. See the v14 to v15 migration guide. RapiDoc Portal's docs sidebar takes the same three levels: a tab's top-level groups are section labels, their items rows with icons, deeper items compact rows under a guide line.

@rapidoc/[email protected]

Choose a tag to compare

@github-actions github-actions released this 24 Nov 08:09
575709c

Major Changes

  • aa3c878: RapiDoc and its family, in sync: RapiDoc Portal and the RapiDoc CLI (with the server, the mock, the prerenderer, the MCP builder and create-rapidoc), the integration contract (@rapidoc/embed) and RapiDoc for Hono, Express and Fastify were reviewed end to end together with rapidoc 15 and are 1.0.0, a new start for the family. The same names for the same things, one sidebar from <rapi-doc> to the portal, and safer defaults everywhere; names that were wrong or unclear were corrected once, with no old spellings kept: the portal site's "Upgrading from 0.2 to 1.0" page lists every change. From here they follow semver: a breaking change to the config, the CLI, the integration contract or an integration's options comes only in a new major version.

Minor Changes

  • 57367d1: Without theme.primary, a portal now uses the accents of RapiDoc's default theme, amber: #f6a821 in dark mode and #ab6534 with white text in light mode, on its own pages, the API reference and embedded operations (was #f76b39 in both). Only the accent changes; the portal's surfaces stay its own. A portal that sets theme.primary keeps that color in both modes.
  • 708f82e: With site.url set, a build writes a robots.txt that names the sitemap, so search engines and AI crawlers find every page. A robots.txt in the project's public/ folder still replaces it, and site.noindex still writes one that keeps crawlers out.

Patch Changes

  • aa3c878: Clean-up before 1.0, with no old names kept. Markdoc tags: {% api-operation %} takes the API's id as api (was spec), {% workflow %} takes the workflows: entry's id as document (was file), {% tab %} takes label only (name is gone), and {% card-grid columns=N %} now sets the number of columns (1 to 4, default 3; it was ignored and always 2). An old attribute fails the build as an unknown attribute. @rapidoc/portal no longer exports the unused second Markdoc renderer (compileMarkdoc, compileDocFile, createMarkdocConfig, markdocTags, extractHeadings, the ./markdoc subpath) or searchRecords; resolveConfig replaces normalizeConfig as the config helper. The header and footer for a page with its own document are imported under their real names, @rapidoc/portal/components/PortalPageHeader.astro and PortalPageFooter.astro (were PortalHeader.astro and PortalFooter.astro), and the paths the build's workspace imports moved under @rapidoc/portal/internal/. Without site.url, pages no longer get a canonical link and a sitemap on the placeholder domain developer.portal: a build has neither and prints one note that both need site.url. rapidoc migrate takes the project folder (rapidoc migrate [dir]) and --force / -f; when rapidoc.config.yaml exists and it cannot ask (no terminal, or --yes), it stops unless --force is given. @rapidoc/cli has an exports field: it is a command, and none of its files can be imported. New portals from create-rapidoc and rapidoc init use the new attribute names.
  • 7c9a56d: The sidebars' group headings and section labels, in the guides and the API reference, are a step fainter than the links, so the links read first. Their color is the new --portal-sidebar-label token (4.5:1 or more on the default themes).
  • aa3c878: Clean-up of @rapidoc/prerender before 1.0.0. Options have one name each, the name of <rapi-doc>'s property: usePathInNav is now usePathInNavBar, renderSchema's style is schemaStyle, the API key option is apiKeyName, and getNavFilterHtml takes searchPlaceholder only. Every option that is an attribute of <rapi-doc> can also be written in kebab-case, in every function, and an option name a function does not know is an error that lists the valid ones (renderRapiDoc still passes any other attribute on to the element). renderRapiDoc writes an attribute only for an option you passed and renders with the element's own defaults, so the defaults are now layout: "row", schemaStyle: "tree" and allowAdvancedSearch: true; pass the old values ("column", "table", false) to keep them. A spec that cannot be loaded throws an error that says what was being loaded and why, in place of an almost empty result, and a path that is not a file is file not found, not a request to http://localhost. getSpecNavigation returns exactly the documented fields of an operation. A closing slash on basePath no longer gives two forms of link. Removed from the exports: the default export, resolveSpecInput, renderNavBarHtml, renderTemplateToString, escapeHtml and getMethodBadge (use getNavBarHtml; the others are internal), the types RapiDocOptions and RenderNavBarHtmlOptions (now RenderRapiDocOptions and NavBarOptions), and the theme and colorScheme options of getBundledCss, which did nothing. In RapiDoc Portal, a build now fails, naming the API and the spec, when a spec cannot be read, parsed or fetched, where it used to publish the API page with an empty sidebar; rapidoc dev shows the error on that API's page. An API whose spec is a URL gets its tag pages (the sidebar's links to them returned 404), from one fetch at build time. Search results for operations open the operation: they link to its tag's page and anchor as the sidebar does, and operations marked x-internal or x-hidden are not in the index. The "RapiDoc bundle is missing" error tells npm users to reinstall rapidoc.
  • aa3c878: Security fixes. @rapidoc/server: the sign-in cookie, which /_rapidoc/auth/login gives any visitor, was accepted as a session, opening pages for all signed-in readers without signing in (pages limited to groups or emails were not affected); every sealed cookie and token now has one use. The server also refuses a build whose protected/ folder has no rapidoc-server.json, needs a public URL (site.url or RAPIDOC_PUBLIC_URL) to sign readers in anywhere but localhost, limits request bodies, and sends frame-ancestors (RAPIDOC_FRAME_ANCESTORS), referrer and HSTS headers. rapidoc and @rapidoc/prerender: HTML in descriptions is reduced to a fixed list of elements and attributes, in every browser and in pre-rendered pages, where it was not sanitized at all; javascript: addresses from a spec are no longer links; a spec value can no longer pass for a template in the prerenderer. rapidoc build refuses an output folder that is, holds or is inside a source folder (--out-dir public emptied public/). rapidoc mock and rapidoc dev listen on localhost by default (--host 0.0.0.0 for a container or a shared server; dev has --host now), and the mock takes an imported spec only from a program on its machine or its own page, never from another site's page or through a proxy, and does not let it read other local files.
  • aa3c878: The sidebar has a new look with three levels: upper-case section labels (Overview, tag groups, Components, or the tags themselves when there are no tag groups), rows with icons for the API title, servers and authentication, and compact operation rows under a guide line with the method first. The current item is a filled block. A tag's name opens a closed tag as well as going to its section. nav-item-spacing is removed (set --sidebar-item-padding instead), tag groups no longer collapse, and show-method-in-nav-bar now defaults to as-colored-text. See the v14 to v15 migration guide. RapiDoc Portal's docs sidebar takes the same three levels: a tab's top-level groups are section labels, their items rows with icons, deeper items compact rows under a guide line.
  • Updated dependencies [aa3c878]
  • Updated dependencies [aa3c878]
  • Updated dependencies [f0c81ab]
  • Updated dependencies [aa3c878]
  • Updated dependencies [aa3c878]
  • Updated dependencies [aa3c878]
  • Updated dependencies [aa3c878]
  • Updated dependencies [aa3c878]

@rapidoc/[email protected]

Choose a tag to compare

@github-actions github-actions released this 24 Nov 08:09
575709c

Major Changes

  • aa3c878: RapiDoc and its family, in sync: RapiDoc Portal and the RapiDoc CLI (with the server, the mock, the prerenderer, the MCP builder and create-rapidoc), the integration contract (@rapidoc/embed) and RapiDoc for Hono, Express and Fastify were reviewed end to end together with rapidoc 15 and are 1.0.0, a new start for the family. The same names for the same things, one sidebar from <rapi-doc> to the portal, and safer defaults everywhere; names that were wrong or unclear were corrected once, with no old spellings kept: the portal site's "Upgrading from 0.2 to 1.0" page lists every change. From here they follow semver: a breaking change to the config, the CLI, the integration contract or an integration's options comes only in a new major version.

Patch Changes

  • aa3c878: Security fixes. @rapidoc/server: the sign-in cookie, which /_rapidoc/auth/login gives any visitor, was accepted as a session, opening pages for all signed-in readers without signing in (pages limited to groups or emails were not affected); every sealed cookie and token now has one use. The server also refuses a build whose protected/ folder has no rapidoc-server.json, needs a public URL (site.url or RAPIDOC_PUBLIC_URL) to sign readers in anywhere but localhost, limits request bodies, and sends frame-ancestors (RAPIDOC_FRAME_ANCESTORS), referrer and HSTS headers. rapidoc and @rapidoc/prerender: HTML in descriptions is reduced to a fixed list of elements and attributes, in every browser and in pre-rendered pages, where it was not sanitized at all; javascript: addresses from a spec are no longer links; a spec value can no longer pass for a template in the prerenderer. rapidoc build refuses an output folder that is, holds or is inside a source folder (--out-dir public emptied public/). rapidoc mock and rapidoc dev listen on localhost by default (--host 0.0.0.0 for a container or a shared server; dev has --host now), and the mock takes an imported spec only from a program on its machine or its own page, never from another site's page or through a proxy, and does not let it read other local files.
  • aa3c878: Clean-up of the server's and the mock's JavaScript API and a few behaviours before 1.0. createApp() and startServer() of @rapidoc/server return a summary (mode, paths, public URL, issuer, client ID, providerReady, counts of protected files and zones, MCP tools) in place of the internal settings object and the separate mcp value, so no secret can be read from what they return; loadSettings is no longer exported. rapidoc serve now starts when the sign-in provider is down: public pages are served, sign-in ends on the sign-in error page, and the server finds the provider again when a reader signs in; a wrong issuer still stops the start. /_rapidoc/access/check no longer tells a signed-out reader which paths exist, and the server's log has the reader's id only, not the email. @rapidoc/mock exports only createMockApp, startMockServer and DEFAULT_PORT; neither function returns the token verifier any more, and the helpers rapidoc lint uses (exampleError, configFor, statefulFindings, statefulReport) moved to @rapidoc/mock/internal, which is not public API (tokenScopes, CONTROL_PREFIX, CONFIG_FILE, STATEFUL_RULES, ImportError and isLocalCaller are gone from the entry). In the mock, a security requirement that names a scheme the spec does not define now answers 401 (it was left open) with a warning at start, each API keeps at most 1000 X-Mock-Session sessions (the one used longest ago is dropped first), and a malformed percent-escape in a /__mock path answers 400, not 500.

@rapidoc/[email protected]

Choose a tag to compare

@github-actions github-actions released this 24 Nov 08:09
575709c

Major Changes

  • aa3c878: RapiDoc and its family, in sync: RapiDoc Portal and the RapiDoc CLI (with the server, the mock, the prerenderer, the MCP builder and create-rapidoc), the integration contract (@rapidoc/embed) and RapiDoc for Hono, Express and Fastify were reviewed end to end together with rapidoc 15 and are 1.0.0, a new start for the family. The same names for the same things, one sidebar from <rapi-doc> to the portal, and safer defaults everywhere; names that were wrong or unclear were corrected once, with no old spellings kept: the portal site's "Upgrading from 0.2 to 1.0" page lists every change. From here they follow semver: a breaking change to the config, the CLI, the integration contract or an integration's options comes only in a new major version.

Patch Changes

  • aa3c878: rapidoc/flow (<rapi-flow>) is 41 KB smaller (283 KB to 242 KB minified, 89 KB to 76 KB gzipped): Arazzo documents are now read with js-yaml, half the size of yaml. Values are read the same way (YAML 1.2, merge keys, no dates); a tag the reader does not know keeps its plain value, and stray control characters are dropped. @rapidoc/mcp depends on js-yaml in place of yaml, and @rapidoc/prerender on both. OpenAPI specs are read as before. In rapidoc-min.js, the syntax highlighter no longer carries grammars for Astro, Svelte, Vue, Objective-C, Perl, R and TOML. The first three are drawn as HTML and Objective-C as C; Perl, R and TOML code shows as plain text.
  • aa3c878: MCP servers read their settings from MCP_ variables only, the same in an exported server, rapidoc mcp serve and the /mcp endpoint of rapidoc serve: a security scheme's credential is MCP_AUTH_<SCHEME> (MCP_AUTH_<SCHEME>_USERNAME and MCP_AUTH_<SCHEME>_PASSWORD for HTTP Basic), the base URL is MCP_BASE_URL (MCP_BASE_URL_<SOURCE> each when a server has several APIs) and the host allow-list is MCP_EXTERNAL_HOSTS. The old names (<SCHEME>, API_KEY, API_BASE_URL, EXTERNAL_HOSTS) are no longer read, so a scheme called token or path can no longer send $TOKEN or $PATH to an API, and two schemes that would share a variable stop the export with a message. Tool names are now always valid and stable: at most 64 characters, never empty for a non-Latin operationId, and a name two operations share ends in a short hash of the operation instead of _2, so reordering the spec renames nothing. Every operation is a tool with all its parameters; a GET becomes an MCP resource as well only with x-mcp-resource: true, no longer because of its path. Swagger 2.0 specs get HTTP Basic for type: basic and a form body for formData parameters. A spec with a relative server URL or none is resolved against the address it was loaded from; read from a file, the manifest has no base URL, rapidoc mcp export and rapidoc mcp serve say that one is required, and a tool call without one fails with that message instead of calling http://localhost. The runtime refuses a manifest version it does not know, <rapi-doc>'s mcp attribute shows the export button for true only, and @rapidoc/mcp no longer exports parseMcpEnabled.

@rapidoc/[email protected]

Choose a tag to compare

@github-actions github-actions released this 24 Nov 08:09
575709c

Major Changes

  • aa3c878: RapiDoc and its family, in sync: RapiDoc Portal and the RapiDoc CLI (with the server, the mock, the prerenderer, the MCP builder and create-rapidoc), the integration contract (@rapidoc/embed) and RapiDoc for Hono, Express and Fastify were reviewed end to end together with rapidoc 15 and are 1.0.0, a new start for the family. The same names for the same things, one sidebar from <rapi-doc> to the portal, and safer defaults everywhere; names that were wrong or unclear were corrected once, with no old spellings kept: the portal site's "Upgrading from 0.2 to 1.0" page lists every change. From here they follow semver: a breaking change to the config, the CLI, the integration contract or an integration's options comes only in a new major version.

Patch Changes

  • aa3c878: Clean-up before 1.0.0 of the integration contract and RapiDoc for Hono, Express and Fastify. uiPath now means the same everywhere: the path within the app, router or plugin the integration is registered in. RapiDoc for Hono follows it, so under basePath("/v1"), app.route("/v1", sub) or app.use("/v1/*", ...) the page is at /v1/docs with correct links, and a uiPath that held the full path must drop the prefix. The 0.x names are removed: the options path (use uiPath) and publicPath (use publicUiPath), and the export DEFAULT_PATH (use DEFAULT_UI_PATH); a request to createResponder takes mount, the prefix the framework took off the path, in place of a per-request publicUiPath. An option that is an empty string counts as not set (lang: "" is en, assets: "" is bundled; the site root is uiPath: "/"). The bundle is served with cache-control: no-cache and its ETag in place of max-age=3600, so browsers load a new RapiDoc build on the first visit after a deploy and get a 304 otherwise; If-None-Match may be a list or a weak validator, and every response has x-content-type-options: nosniff. RapiDoc for Express and Fastify build correct links for a uiPath without a leading slash under a mount point or prefix, and RapiDoc for Fastify also answers at {uiPath}/. Peer ranges have upper bounds: hono ^4, express ^4 || ^5, fastify ^4 || ^5. @rapidoc/embed/sidebar has its own types. The contract (still version 2) now compares a page's inline spec as parsed JSON and the rest byte for byte, and has six more fixtures.
  • Updated dependencies [aa3c878]
  • Updated dependencies [aa3c878]