Repository navigation
Releases
[email protected]
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-spacingis removed (set--sidebar-item-paddinginstead), tag groups no longer collapse, andshow-method-in-nav-barnow defaults toas-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 withjs-yaml, half the size ofyaml. 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/mcpdepends onjs-yamlin place ofyaml, and@rapidoc/prerenderon both. OpenAPI specs are read as before. Inrapidoc-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 serveand the/mcpendpoint ofrapidoc serve: a security scheme's credential isMCP_AUTH_<SCHEME>(MCP_AUTH_<SCHEME>_USERNAMEandMCP_AUTH_<SCHEME>_PASSWORDfor HTTP Basic), the base URL isMCP_BASE_URL(MCP_BASE_URL_<SOURCE>each when a server has several APIs) and the host allow-list isMCP_EXTERNAL_HOSTS. The old names (<SCHEME>,API_KEY,API_BASE_URL,EXTERNAL_HOSTS) are no longer read, so a scheme calledtokenorpathcan no longer send$TOKENor$PATHto 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-LatinoperationId, 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; aGETbecomes an MCP resource as well only withx-mcp-resource: true, no longer because of its path. Swagger 2.0 specs get HTTP Basic fortype: basicand a form body forformDataparameters. 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 exportandrapidoc mcp servesay that one is required, and a tool call without one fails with that message instead of callinghttp://localhost. The runtime refuses a manifest version it does not know,<rapi-doc>'smcpattribute shows the export button fortrueonly, and@rapidoc/mcpno longer exportsparseMcpEnabled. -
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-prefixedbackdrop-filter. In the navigation bar, colored method badges have 2px corners and operation names are 1px smaller. Theambertheme's light scheme has a deeper copper accent,#ab6534, with white text on it (was#ff791awith black text). -
aa3c878:
<rapi-doc>15 clean-up. Removed: thescrollTo(elementId)method (usescrollToPath;scrollTois 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"andtheme="dark"(usecolor-scheme),default-schema-tab="model"(useschema),mcp="none"(usefalse), the hidden "Operations" sidebar row with its partsection-navbar-operations-top, andloading,focusedElementId,searchValandadvancedSearchMatchesas attributes.nav-active-changehas one detail from every source,{ elementId, type, operationId? }:idis gone,typeisoperation,tagorsection, andoperationIdis the spec's own operationId.persist-authsaves 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 withsetApiKeyonspec-loadedstays. 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//hostor{scheme}://host;css-filecopied 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 appliesnav-item-overflowto description headings. The API reference, types and schema no longer list removed attributes; the docs have a "Removed attributes" page instead.@rapidoc/starlightand@rapidoc/docusaurusreaddetail.elementIdonly.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/logingives 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 whoseprotected/folder has norapidoc-server.json, needs a public URL (site.urlorRAPIDOC_PUBLIC_URL) to sign readers in anywhere butlocalhost, limits request bodies, and sendsframe-ancestors(RAPIDOC_FRAME_ANCESTORS), referrer and HSTS headers.rapidocand@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 buildrefuses an output folder that is, holds or is inside a source folder (--out-dir publicemptiedpublic/).rapidoc mockandrapidoc devlisten onlocalhostby default (--host 0.0.0.0for a container or a shared server;devhas--hostnow), 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]
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 withrapidoc15 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 asapi(wasspec),{% workflow %}takes theworkflows:entry's id asdocument(wasfile),{% tab %}takeslabelonly (nameis 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/portalno longer exports the unused second Markdoc renderer (compileMarkdoc,compileDocFile,createMarkdocConfig,markdocTags,extractHeadings, the./markdocsubpath) orsearchRecords;resolveConfigreplacesnormalizeConfigas the config helper. The header and footer for a page with its own document are imported under their real names,@rapidoc/portal/components/PortalPageHeader.astroandPortalPageFooter.astro(werePortalHeader.astroandPortalFooter.astro), and the paths the build's workspace imports moved under@rapidoc/portal/internal/. Withoutsite.url, pages no longer get a canonical link and a sitemap on the placeholder domaindeveloper.portal: a build has neither and prints one note that both needsite.url.rapidoc migratetakes the project folder (rapidoc migrate [dir]) and--force/-f; whenrapidoc.config.yamlexists and it cannot ask (no terminal, or--yes), it stops unless--forceis given.@rapidoc/clihas anexportsfield: it is a command, and none of its files can be imported. New portals fromcreate-rapidocandrapidoc inituse the new attribute names. - 543ef8d: New portals (
npm create rapidoc,rapidoc init) leavetheme.primaryas a comment, so they take the portal's default accents, those of RapiDoc'sambertheme.rapidoc.themeis a comment too, listing the presets.
@rapidoc/[email protected]
Minor Changes
- 22b7bd6: For
rapidoc15: the API pages get its new three-level sidebar and keyboard support. Requiresrapidoc15,@rapidoc/embed1 and@rapidoc/prerender1.
Patch Changes
- 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]
- [email protected]
- @rapidoc/[email protected]
@rapidoc/[email protected]
Minor Changes
- 22b7bd6: For
rapidoc15: the API pages get its new three-level sidebar and keyboard support. Requiresrapidoc15,@rapidoc/embed1 and@rapidoc/prerender1.
Patch Changes
-
aa3c878:
<rapi-doc>15 clean-up. Removed: thescrollTo(elementId)method (usescrollToPath;scrollTois 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"andtheme="dark"(usecolor-scheme),default-schema-tab="model"(useschema),mcp="none"(usefalse), the hidden "Operations" sidebar row with its partsection-navbar-operations-top, andloading,focusedElementId,searchValandadvancedSearchMatchesas attributes.nav-active-changehas one detail from every source,{ elementId, type, operationId? }:idis gone,typeisoperation,tagorsection, andoperationIdis the spec's own operationId.persist-authsaves 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 withsetApiKeyonspec-loadedstays. 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//hostor{scheme}://host;css-filecopied 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 appliesnav-item-overflowto description headings. The API reference, types and schema no longer list removed attributes; the docs have a "Removed attributes" page instead.@rapidoc/starlightand@rapidoc/docusaurusreaddetail.elementIdonly.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]
- [email protected]
- @rapidoc/[email protected]
@rapidoc/[email protected]
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 withrapidoc15 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 serveand the/mcpendpoint ofrapidoc serve: a security scheme's credential isMCP_AUTH_<SCHEME>(MCP_AUTH_<SCHEME>_USERNAMEandMCP_AUTH_<SCHEME>_PASSWORDfor HTTP Basic), the base URL isMCP_BASE_URL(MCP_BASE_URL_<SOURCE>each when a server has several APIs) and the host allow-list isMCP_EXTERNAL_HOSTS. The old names (<SCHEME>,API_KEY,API_BASE_URL,EXTERNAL_HOSTS) are no longer read, so a scheme calledtokenorpathcan no longer send$TOKENor$PATHto 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-LatinoperationId, 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; aGETbecomes an MCP resource as well only withx-mcp-resource: true, no longer because of its path. Swagger 2.0 specs get HTTP Basic fortype: basicand a form body forformDataparameters. 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 exportandrapidoc mcp servesay that one is required, and a tool call without one fails with that message instead of callinghttp://localhost. The runtime refuses a manifest version it does not know,<rapi-doc>'smcpattribute shows the export button fortrueonly, and@rapidoc/mcpno longer exportsparseMcpEnabled. - aa3c878: Security fixes.
@rapidoc/server: the sign-in cookie, which/_rapidoc/auth/logingives 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 whoseprotected/folder has norapidoc-server.json, needs a public URL (site.urlorRAPIDOC_PUBLIC_URL) to sign readers in anywhere butlocalhost, limits request bodies, and sendsframe-ancestors(RAPIDOC_FRAME_ANCESTORS), referrer and HSTS headers.rapidocand@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 buildrefuses an output folder that is, holds or is inside a source folder (--out-dir publicemptiedpublic/).rapidoc mockandrapidoc devlisten onlocalhostby default (--host 0.0.0.0for a container or a shared server;devhas--hostnow), 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()andstartServer()of@rapidoc/serverreturn asummary(mode, paths, public URL, issuer, client ID,providerReady, counts of protected files and zones, MCP tools) in place of the internalsettingsobject and the separatemcpvalue, so no secret can be read from what they return;loadSettingsis no longer exported.rapidoc servenow 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/checkno longer tells a signed-out reader which paths exist, and the server's log has the reader's id only, not the email.@rapidoc/mockexports onlycreateMockApp,startMockServerandDEFAULT_PORT; neither function returns the tokenverifierany more, and the helpersrapidoc lintuses (exampleError,configFor,statefulFindings,statefulReport) moved to@rapidoc/mock/internal, which is not public API (tokenScopes,CONTROL_PREFIX,CONFIG_FILE,STATEFUL_RULES,ImportErrorandisLocalCallerare gone from the entry). In the mock, asecurityrequirement 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 1000X-Mock-Sessionsessions (the one used longest ago is dropped first), and a malformed percent-escape in a/__mockpath answers 400, not 500. - Updated dependencies [aa3c878]
- Updated dependencies [aa3c878]
- Updated dependencies [aa3c878]
- @rapidoc/[email protected]
@rapidoc/[email protected]
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 withrapidoc15 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 withjs-yaml, half the size ofyaml. 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/mcpdepends onjs-yamlin place ofyaml, and@rapidoc/prerenderon both. OpenAPI specs are read as before. Inrapidoc-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-prefixedbackdrop-filter. In the navigation bar, colored method badges have 2px corners and operation names are 1px smaller. Theambertheme's light scheme has a deeper copper accent,#ab6534, with white text on it (was#ff791awith black text). -
aa3c878: Clean-up of
@rapidoc/prerenderbefore 1.0.0. Options have one name each, the name of<rapi-doc>'s property:usePathInNavis nowusePathInNavBar,renderSchema'sstyleisschemaStyle, the API key option isapiKeyName, andgetNavFilterHtmltakessearchPlaceholderonly. 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 (renderRapiDocstill passes any other attribute on to the element).renderRapiDocwrites an attribute only for an option you passed and renders with the element's own defaults, so the defaults are nowlayout: "row",schemaStyle: "tree"andallowAdvancedSearch: 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 isfile not found, not a request tohttp://localhost.getSpecNavigationreturns exactly the documented fields of an operation. A closing slash onbasePathno longer gives two forms of link. Removed from the exports: the default export,resolveSpecInput,renderNavBarHtml,renderTemplateToString,escapeHtmlandgetMethodBadge(usegetNavBarHtml; the others are internal), the typesRapiDocOptionsandRenderNavBarHtmlOptions(nowRenderRapiDocOptionsandNavBarOptions), and thethemeandcolorSchemeoptions ofgetBundledCss, 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 devshows the error on that API's page. An API whosespecis 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 markedx-internalorx-hiddenare not in the index. The "RapiDoc bundle is missing" error tells npm users to reinstallrapidoc. -
aa3c878:
<rapi-doc>15 clean-up. Removed: thescrollTo(elementId)method (usescrollToPath;scrollTois 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"andtheme="dark"(usecolor-scheme),default-schema-tab="model"(useschema),mcp="none"(usefalse), the hidden "Operations" sidebar row with its partsection-navbar-operations-top, andloading,focusedElementId,searchValandadvancedSearchMatchesas attributes.nav-active-changehas one detail from every source,{ elementId, type, operationId? }:idis gone,typeisoperation,tagorsection, andoperationIdis the spec's own operationId.persist-authsaves 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 withsetApiKeyonspec-loadedstays. 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//hostor{scheme}://host;css-filecopied 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 appliesnav-item-overflowto description headings. The API reference, types and schema no longer list removed attributes; the docs have a "Removed attributes" page instead.@rapidoc/starlightand@rapidoc/docusaurusreaddetail.elementIdonly.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/logingives 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 whoseprotected/folder has norapidoc-server.json, needs a public URL (site.urlorRAPIDOC_PUBLIC_URL) to sign readers in anywhere butlocalhost, limits request bodies, and sendsframe-ancestors(RAPIDOC_FRAME_ANCESTORS), referrer and HSTS headers.rapidocand@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 buildrefuses an output folder that is, holds or is inside a source folder (--out-dir publicemptiedpublic/).rapidoc mockandrapidoc devlisten onlocalhostby default (--host 0.0.0.0for a container or a shared server;devhas--hostnow), 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-spacingis removed (set--sidebar-item-paddinginstead), tag groups no longer collapse, andshow-method-in-nav-barnow defaults toas-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]
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 withrapidoc15 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:#f6a821in dark mode and#ab6534with white text in light mode, on its own pages, the API reference and embedded operations (was#f76b39in both). Only the accent changes; the portal's surfaces stay its own. A portal that setstheme.primarykeeps that color in both modes. - 708f82e: With
site.urlset, a build writes arobots.txtthat names the sitemap, so search engines and AI crawlers find every page. Arobots.txtin the project'spublic/folder still replaces it, andsite.noindexstill 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 asapi(wasspec),{% workflow %}takes theworkflows:entry's id asdocument(wasfile),{% tab %}takeslabelonly (nameis 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/portalno longer exports the unused second Markdoc renderer (compileMarkdoc,compileDocFile,createMarkdocConfig,markdocTags,extractHeadings, the./markdocsubpath) orsearchRecords;resolveConfigreplacesnormalizeConfigas the config helper. The header and footer for a page with its own document are imported under their real names,@rapidoc/portal/components/PortalPageHeader.astroandPortalPageFooter.astro(werePortalHeader.astroandPortalFooter.astro), and the paths the build's workspace imports moved under@rapidoc/portal/internal/. Withoutsite.url, pages no longer get a canonical link and a sitemap on the placeholder domaindeveloper.portal: a build has neither and prints one note that both needsite.url.rapidoc migratetakes the project folder (rapidoc migrate [dir]) and--force/-f; whenrapidoc.config.yamlexists and it cannot ask (no terminal, or--yes), it stops unless--forceis given.@rapidoc/clihas anexportsfield: it is a command, and none of its files can be imported. New portals fromcreate-rapidocandrapidoc inituse 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-labeltoken (4.5:1 or more on the default themes). - aa3c878: Clean-up of
@rapidoc/prerenderbefore 1.0.0. Options have one name each, the name of<rapi-doc>'s property:usePathInNavis nowusePathInNavBar,renderSchema'sstyleisschemaStyle, the API key option isapiKeyName, andgetNavFilterHtmltakessearchPlaceholderonly. 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 (renderRapiDocstill passes any other attribute on to the element).renderRapiDocwrites an attribute only for an option you passed and renders with the element's own defaults, so the defaults are nowlayout: "row",schemaStyle: "tree"andallowAdvancedSearch: 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 isfile not found, not a request tohttp://localhost.getSpecNavigationreturns exactly the documented fields of an operation. A closing slash onbasePathno longer gives two forms of link. Removed from the exports: the default export,resolveSpecInput,renderNavBarHtml,renderTemplateToString,escapeHtmlandgetMethodBadge(usegetNavBarHtml; the others are internal), the typesRapiDocOptionsandRenderNavBarHtmlOptions(nowRenderRapiDocOptionsandNavBarOptions), and thethemeandcolorSchemeoptions ofgetBundledCss, 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 devshows the error on that API's page. An API whosespecis 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 markedx-internalorx-hiddenare not in the index. The "RapiDoc bundle is missing" error tells npm users to reinstallrapidoc. - aa3c878: Security fixes.
@rapidoc/server: the sign-in cookie, which/_rapidoc/auth/logingives 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 whoseprotected/folder has norapidoc-server.json, needs a public URL (site.urlorRAPIDOC_PUBLIC_URL) to sign readers in anywhere butlocalhost, limits request bodies, and sendsframe-ancestors(RAPIDOC_FRAME_ANCESTORS), referrer and HSTS headers.rapidocand@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 buildrefuses an output folder that is, holds or is inside a source folder (--out-dir publicemptiedpublic/).rapidoc mockandrapidoc devlisten onlocalhostby default (--host 0.0.0.0for a container or a shared server;devhas--hostnow), 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-spacingis removed (set--sidebar-item-paddinginstead), tag groups no longer collapse, andshow-method-in-nav-barnow defaults toas-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]
- [email protected]
- @rapidoc/[email protected]
- @rapidoc/[email protected]
@rapidoc/[email protected]
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 withrapidoc15 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/logingives 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 whoseprotected/folder has norapidoc-server.json, needs a public URL (site.urlorRAPIDOC_PUBLIC_URL) to sign readers in anywhere butlocalhost, limits request bodies, and sendsframe-ancestors(RAPIDOC_FRAME_ANCESTORS), referrer and HSTS headers.rapidocand@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 buildrefuses an output folder that is, holds or is inside a source folder (--out-dir publicemptiedpublic/).rapidoc mockandrapidoc devlisten onlocalhostby default (--host 0.0.0.0for a container or a shared server;devhas--hostnow), 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()andstartServer()of@rapidoc/serverreturn asummary(mode, paths, public URL, issuer, client ID,providerReady, counts of protected files and zones, MCP tools) in place of the internalsettingsobject and the separatemcpvalue, so no secret can be read from what they return;loadSettingsis no longer exported.rapidoc servenow 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/checkno longer tells a signed-out reader which paths exist, and the server's log has the reader's id only, not the email.@rapidoc/mockexports onlycreateMockApp,startMockServerandDEFAULT_PORT; neither function returns the tokenverifierany more, and the helpersrapidoc lintuses (exampleError,configFor,statefulFindings,statefulReport) moved to@rapidoc/mock/internal, which is not public API (tokenScopes,CONTROL_PREFIX,CONFIG_FILE,STATEFUL_RULES,ImportErrorandisLocalCallerare gone from the entry). In the mock, asecurityrequirement 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 1000X-Mock-Sessionsessions (the one used longest ago is dropped first), and a malformed percent-escape in a/__mockpath answers 400, not 500.
@rapidoc/[email protected]
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 withrapidoc15 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 withjs-yaml, half the size ofyaml. 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/mcpdepends onjs-yamlin place ofyaml, and@rapidoc/prerenderon both. OpenAPI specs are read as before. Inrapidoc-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 serveand the/mcpendpoint ofrapidoc serve: a security scheme's credential isMCP_AUTH_<SCHEME>(MCP_AUTH_<SCHEME>_USERNAMEandMCP_AUTH_<SCHEME>_PASSWORDfor HTTP Basic), the base URL isMCP_BASE_URL(MCP_BASE_URL_<SOURCE>each when a server has several APIs) and the host allow-list isMCP_EXTERNAL_HOSTS. The old names (<SCHEME>,API_KEY,API_BASE_URL,EXTERNAL_HOSTS) are no longer read, so a scheme calledtokenorpathcan no longer send$TOKENor$PATHto 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-LatinoperationId, 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; aGETbecomes an MCP resource as well only withx-mcp-resource: true, no longer because of its path. Swagger 2.0 specs get HTTP Basic fortype: basicand a form body forformDataparameters. 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 exportandrapidoc mcp servesay that one is required, and a tool call without one fails with that message instead of callinghttp://localhost. The runtime refuses a manifest version it does not know,<rapi-doc>'smcpattribute shows the export button fortrueonly, and@rapidoc/mcpno longer exportsparseMcpEnabled.
@rapidoc/[email protected]
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 withrapidoc15 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.
uiPathnow means the same everywhere: the path within the app, router or plugin the integration is registered in. RapiDoc for Hono follows it, so underbasePath("/v1"),app.route("/v1", sub)orapp.use("/v1/*", ...)the page is at/v1/docswith correct links, and auiPaththat held the full path must drop the prefix. The 0.x names are removed: the optionspath(useuiPath) andpublicPath(usepublicUiPath), and the exportDEFAULT_PATH(useDEFAULT_UI_PATH); a request tocreateRespondertakesmount, the prefix the framework took off the path, in place of a per-requestpublicUiPath. An option that is an empty string counts as not set (lang: ""isen,assets: ""isbundled; the site root isuiPath: "/"). The bundle is served withcache-control: no-cacheand its ETag in place ofmax-age=3600, so browsers load a new RapiDoc build on the first visit after a deploy and get a 304 otherwise;If-None-Matchmay be a list or a weak validator, and every response hasx-content-type-options: nosniff. RapiDoc for Express and Fastify build correct links for auiPathwithout 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/sidebarhas 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]
- @rapidoc/[email protected]