Types to work with Scalar packages
Last release 2 days ago
28 Aug 2026
Ships on a steady schedule
a new release about every 2 weeks
Nearly every release is documented
notes for 54 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
2 years old
130 releases · first in 2024
Release timeline
130 releases since 2024One column per month.
Releases
- 0.18.328 Aug 2026
Release notes
Open source →Patch Changes
-
#9983: Bump the
zodcatalog to^4.4.3so the standalone bundle ships a singlezodinstead of two (4.3.5from@scalar/typesplus4.4.3from theai/@ai-sdkpeer). This makesstandalone.js~68KB raw / ~18KB gzip smaller. -
#9967: Add a new
@scalar/openapi-validatorpackage that validates OpenAPI documents on its own.@scalar/openapi-parsernow uses it under the hood.Two type-level changes in
@scalar/openapi-parserare worth noting:ErrorObject.pathis nowstring | string[]instead ofstring[]. Schema errors carry a JSON Pointer string, semantic errors carry path segments — both shapes were already produced at runtime, the type just says so now. Narrow withArray.isArraybefore treating it as a list.- The unused
ValidationOutcometype and the internalOpenApiDocumentalias are no longer exported.
-
- 0.18.220 Aug 2026
Release notes
Open source →Patch Changes
- #9941: Republish every package through npm trusted publishing. No functional changes.
- 0.18.013 Aug 2026
Release notes
Open source →Minor Changes
- #9868: Control OAuth2 flow tabs from your OpenAPI document. Add
x-orderto a flow to set the order of the tabs in the auth section (the first tab is selected by default, so the lowestx-orderalso becomes the default flow), and addx-scalar-ignoreto a flow to hide its tab — useful for flows that cannot run in the browser, like Client Credentials, which usually fails on CORS.x-scalar-ignoreon a whole security scheme now hides it from the auth selector too.
- #9868: Control OAuth2 flow tabs from your OpenAPI document. Add
- 0.17.17 Aug 2026
Release notes
Open source →Patch Changes
- #9684: Type the
defaultHttpClientconfig against the real client ids.targetKeyandclientKeywere plainstring, so there was no autocomplete and no error when the value was wrong — for example passing the display title'Fetch'instead of the client id'fetch', which silently did nothing. They are now typed to the actual targets and clients, in both the@scalar/typesand@scalar/schemasdefinitions.
- #9684: Type the
- 0.17.031 Jul 2026
Release notes
Open source →Minor Changes
-
#9711: feat: add
pluginUrlsconfiguration option to load API Reference plugins from URLsEach entry must point to an ESM module that exports a plugin (the same shape as the
pluginsentries) as its default export. The standalone build (Scalar.createApiReference) imports the modules before the API reference mounts and registers their default exports alongside the plugins passed directly. Unlikeplugins, the new option is JSON-serializable, so integrations that pass their configuration as JSON (for example the Docker container or Scalar for Aspire) can load plugins without replacing the whole bundle.
Patch Changes
- #9683: Surface the required OAuth scopes for an operation as a dedicated "OAuth scopes" section below the description (above parameters), instead of only inside the "Auth Required" badge popover. Scopes are de-duplicated across security alternatives and shown in both the modern and classic layouts, as well as on AsyncAPI operations.
- #9680: Tie a snippetz plugin's
clientto itstargetat the type level. Before, a plugin could pair any target with any client (for examplenode+curl) without a type error. Nowtarget: 'node'only allows node clients, and TypeScript catches mistakes like using the display title'Fetch'where the lowercase client id'fetch'is expected. - #9685: Type the
hiddenClientsconfig against the real target and client ids. It wasRecord<string, boolean | string[]> | string[] | true, so there was no autocomplete and no error on a typo. An array entry is now typed as a target ('node'), a client name ('fetch'), or a full id ('node/fetch'), and the record form is keyed by target. Runtime stays permissive, so unknown names are still ignored gracefully as before.
-
- 0.16.416 Jul 2026
Release notes
Open source →Patch Changes
- #9719: docs: update the Scalar platform overview block in the README
- 0.16.315 Jul 2026
Release notes
Open source →Patch Changes
- #9710: Republish so the updated README (with the Scalar platform overview) reaches npm. Also renames the README generator metadata in package.json from
readmetoscalarReadme: npm treats areadmefield as the readme text itself, so affected packages were published with a literal[object Object]readme on the registry instead of README.md.
- #9710: Republish so the updated README (with the Scalar platform overview) reaches npm. Also renames the README generator metadata in package.json from
- 0.16.28 Jul 2026
Release notes
Open source →Patch Changes
- #9639: Add a read-only accessor for the global authentication state to the plugin API. Plugin lifecycle hooks (
onInit,onConfigChange) now receive anauthaccessor alongsideconfig, and the plugin manager exposesgetAuthState()for view components. Plugins can read stored secrets and the selected security schemes viaauth.export(),auth.getAuthSecrets(documentName, schemeName), andauth.getAuthSelectedSchemas(payload)without being able to mutate auth.
- #9639: Add a read-only accessor for the global authentication state to the plugin API. Plugin lifecycle hooks (
- 0.16.12 Jul 2026
Release notes
Open source →Patch Changes
- #9630: Render AsyncAPI tags without the extra horizontal indentation on nested channels, and replace the empty "Operations" card in an AsyncAPI tag header with a "Channels" card that lists the channels in the tag.
- 0.16.026 Jun 2026
Release notes
Open source →Minor Changes
-
#9597: Add API Reference UI localization configuration with built-in English, Russian, Spanish, French, German, Simplified Chinese and Arabic translations, including automatic RTL direction for Arabic locales.
Update the shared theme reset so text inputs align to the logical start by default for RTL documents.
Add a
mergeObjectsdeep-merge helper to@scalar/helpers, used by the localization layer to merge translation overrides onto the built-in locale.
Patch Changes
- #9577: Stop marking the per-source
titleandslugas deprecated. They are the supported way to name a document and its URL when using multiplesources, so the deprecation note (and editor strike-through) was misleading.
-
- 0.15.022 Jun 2026
Release notes
Open source →Minor Changes
-
#9515: feat: add
requestBuiltclient plugin hook andonRequestBuiltconfiguration callback that receive the exact fetchRequestthat is sent over the wireThe hook runs after the request has been built, right before it is sent. Header mutations apply to the outgoing request and the body bytes match what the server receives, which makes request signing possible: hashing the body of a rebuilt
multipart/form-datarequest would produce a different multipart boundary than the request that is actually sent.
-
- 0.14.017 Jun 2026
Release notes
Open source →Minor Changes
- #9478: Add
content.startplugin view slot andsidebarvisibility option for plugin view components.content.start: A new view slot that renders custom plugin components before the Introduction/Info section (at the top of the content area).sidebaroption onViewComponent: Plugins can now opt-in to display a sidebar entry for their custom views by providingsidebar: { show: true, label: 'My Page' }. Omittingsidebaror settingshow: falsehides the entry from the sidebar. The entry hooks into the existing navigation, so clicking it scrolls to the plugin view and it highlights as it scrolls into view.
Patch Changes
- #9478: Add
- 0.13.311 Jun 2026
Release notes
Open source →Patch Changes
-
#9342: fix: resolve operations when OpenAPI path items use
$refPath entries and webhooks can reference
components.pathItemsinstead of inlining operations. Navigation, mutators, search, and markdown export now resolve path-item references before reading HTTP methods and path-level parameters.
-
- 0.13.29 Jun 2026
Release notes
Open source →Patch Changes
- #9471: Restore support for the deprecated
sourceinstall command onx-scalar-sdk-installation. When set, it is appended todescriptionas a fenced code block (or used on its own when there is nodescription).descriptionremains the promoted field.
- #9471: Restore support for the deprecated
- 0.13.19 Jun 2026
Nothing published for this version
- 0.13.08 Jun 2026
Release notes
Open source →Minor Changes
-
#9398: feat: read code samples from x-readme, x-stainless and x-scalar extensions
In addition to
x-codeSamples, the code sample picker now reads custom samples fromx-scalar-examples,x-stainless-snippets,x-stainless-examples, andx-readme.code-samples. When more than one is present on an operation, the highest-priority source is used (x-scalar-examples > x-stainless-snippets > x-stainless-examples > x-readme > x-codeSamples). -
#9422: Add a
nonceoption for Content Security Policy support.When you pass a
nonce, the rendered HTML stamps it onto the inline<script>and the CDN<script>tag (and Scalar's own<style>tags, plus a matching<meta property="csp-nonce">). This lets the API Reference run under a strictscript-srcwith nounsafe-inlineand nounsafe-eval.ApiReference({ url: '/openapi.json', // Match this value in your `script-src` CSP directive. nonce: 'r4nd0m', })Note:
style-srcstill needs'unsafe-inline'. The reference renders inlinestyle="…"attributes, which a CSP nonce can never authorize (nonces only apply to<script>,<style>and<link>elements), so a nonce-onlystyle-srcis not possible. The win is a fully strictscript-src. -
#9400: feat(api-reference): add
expandAllSchemaPropertiesconfig option.When enabled, nested schema properties are expanded by default while keeping the "Show/Hide Child Attributes" button available for manual collapsing. Expansion is cycle-safe: every finite branch is expanded fully, and self-referential ($ref or inline) schemas stop at the point they would otherwise recurse forever.
Patch Changes
-
#9438: feat(api-reference): add an AsyncAPI server selector
Adds a server selector for AsyncAPI documents in the API reference introduction. It mirrors the OpenAPI server selector but works with the AsyncAPI server shape (a named map of
host/protocol/pathname), labelling each server with its constructed connection URL.Server selection and variable changes are now persisted to the workspace store via new
asyncapi-server:update:selectedandasyncapi-server:update:variablesevents and their mutators, mirroring the OpenAPI wiring.
-
- 0.12.32 Jun 2026
Release notes
Open source →Patch Changes
-
#9340: feat: add getChannelConnectionContext for AsyncAPI WebSocket channels
Add channel connection context helpers that resolve channel, messages, parameters, servers, security, and connection URL for WebSocket client UI.
-
#9309: feat: add
modelsSectionLabelconfiguration ('Models' | 'Schemas' | string) to use OpenAPI-style Schemas terminology in the sidebar, content, and search. -
#7618: feat(api-reference): add
setPageTitleto customize the browser tab titlePass a
setPageTitlefunction to control the browser tab title. It is called whenever the section in view changes — on sidebar clicks, on scroll, and when switching documents — and receives the section title and the active OpenAPI document:setPageTitle: ({ title, document }) => `${document.title} – ${title}`
-
- 0.12.222 May 2026
Release notes
Open source →Patch Changes
- #9313: feat: add AsyncAPI connection URL builder and server list helpers
- 0.12.122 May 2026
Release notes
Open source →Patch Changes
- #9311: feat: add typed AsyncAPI WebSocket binding schema
- Add
asyncApiWsBindingObjectforbindings.wswithmethod,query,headers, andbindingVersion - Add
asyncApiSchemaObjectOrReference(Schema Object | Reference Object) for WebSocket binding fields that exclude Multi Format Schema Object - Regenerate
@scalar/types/asyncapi/3.1types
- Add
- #9311: feat: add typed AsyncAPI WebSocket binding schema
- 0.12.021 May 2026
Release notes
Open source →Minor Changes
- #9264: feat: add AsyncAPI 3.1 types and
@scalar/types/asyncapi/3.1export - #9297: feat: add asyncapi extensions
Patch Changes
- #9169: feat: add
customFetchto the api-reference configuration and forward it to the API client so requests (including "Test Request" calls) use the custom fetch — enabling things likecredentials: 'include'. The previousfetchoption is deprecated and migrated automatically with a console warning. - #9294: refactor: move the schemas to the schemas folder and generate the types from schemas
- #9292: refactor: move extensions to the schema package
- #9264: feat: add AsyncAPI 3.1 types and
- 0.11.014 May 2026
Release notes
Open source →Minor Changes
- #9211: feat: write pure types without using the zod schemas
- 0.9.65 May 2026
Nothing published for this version
- 0.9.530 Apr 2026
Nothing published for this version
- 0.9.429 Apr 2026
Nothing published for this version
- 0.9.328 Apr 2026
Nothing published for this version
- 0.9.223 Apr 2026
Nothing published for this version
- 0.9.118 Apr 2026
- 0.9.016 Apr 2026
Release notes
Open source →Minor Changes
- #8771: feat(snippetz): migrate R code snippets from httr to httr2
Patch Changes
-
#8817: feat(snippetz): add a Laravel HTTP client plugin for PHP snippets
Added a new
php/laravelclient generator in@scalar/snippetz, including comprehensive request coverage for headers, cookies, auth, query params, JSON, multipart, form-encoded, binary, and fallback bodies.Updated generated client registries and schema wiring so the new client is available across Scalar:
@scalar/typesGROUPED_CLIENTS/AVAILABLE_CLIENTS@scalar/workspace-storereference-config schema- generated docs and integration client enums
Updated api-client expectations for the increased total built-in client count.
- 0.8.09 Apr 2026
- 0.7.63 Apr 2026
- 0.7.525 Mar 2026
- 0.7.418 Mar 2026
- 0.7.312 Mar 2026
Release notes
Open source →Patch Changes
Updated Dependencies
- @scalar/[email protected]
- #8420: fix TypeScript access to navigator.userAgentData in isMacOS without ts-expect-error
- @scalar/[email protected]
- 0.7.210 Mar 2026
Release notes
Open source →Patch Changes
Updated Dependencies
- @scalar/[email protected]
- #8336: feat: support flushing any pending operations
- @scalar/[email protected]
- 0.7.110 Mar 2026
- 0.7.04 Mar 2026
Release notes
Open source →Minor Changes
- #8322: chore: bump required node version to >=22 (LTS)
Patch Changes
Updated Dependencies
- @scalar/[email protected]
- #8322: chore: bump required node version to >=22 (LTS)
- 0.6.103 Mar 2026
Release notes
Open source →Patch Changes
Updated Dependencies
- @scalar/[email protected]
- #8314: chore: limit concurrent operations while migrating workspaces
- @scalar/[email protected]
- 0.6.92 Mar 2026
Release notes
Open source →Patch Changes
Updated Dependencies
- @scalar/[email protected]
- #8310: refactor: move helpers to the helpers package to share primitive helpers
- @scalar/[email protected]
- 0.6.826 Feb 2026
- 0.6.724 Feb 2026
Release notes
Open source →Patch Changes
Updated Dependencies
- @scalar/[email protected]
- #8248: fix: local storage migration script
- @scalar/[email protected]
- 0.6.619 Feb 2026
Release notes
Open source →Patch Changes
- #8212: chore: version bump
Updated Dependencies
- @scalar/[email protected]
- #8212: chore: version bump
- 0.6.316 Feb 2026
Release notes
Open source →Patch Changes
Updated Dependencies
- @scalar/[email protected]
- #8178: chore: package bump due to ci failure
- @scalar/[email protected]
- 0.6.23 Feb 2026
Release notes
Open source →Patch Changes
Updated Dependencies
- @scalar/[email protected]
- #8016: feat: move history and auth into their own store
- @scalar/[email protected]
- 0.6.130 Jan 2026
Release notes
Open source → - 0.6.028 Jan 2026
- 0.5.1024 Jan 2026
Release notes
Open source →Patch Changes
Updated Dependencies
- @scalar/[email protected]
- #7894: fix: the import and export of redirect to proxy
- @scalar/[email protected]
- 0.5.924 Jan 2026
- 0.5.816 Jan 2026
Release notes
Open source → - 0.5.714 Jan 2026
Release notes
Open source → - 0.5.68 Jan 2026
Release notes
Open source →Patch Changes
- #7661: fix: all issues for client modal v2 preparation
Updated Dependencies
- @scalar/[email protected]
- #7661: fix: all issues for client modal v2 preparation
- 0.5.58 Jan 2026
Release notes
Open source →Patch Changes
- #7605: fix: all issues for client modal v2 preparation
Updated Dependencies
- @scalar/[email protected]
- #7605: fix: all issues for client modal v2 preparation
- 0.5.418 Dec 2025
Release notes
Open source →Patch Changes
- #7567: feat: add code samples to client v2
Updated Dependencies
- @scalar/[email protected]
- 0.5.210 Dec 2025
Release notes
Open source →Patch Changes
- #7506
72cd82fThanks @marcalexiei! - fix: use caret version forzod
- #7506
- 0.5.14 Dec 2025
Release notes
Open source →Patch Changes
- #7387
bfd814aThanks @geoffgscott! - hotfix: patch exports from build tooling bug
- #7387
- 0.5.019 Nov 2025
Release notes
Open source →Minor Changes
-
#7373
cbedfabThanks @marcalexiei! - feat(types): legacy - remove unused types -
#7373
cbedfabThanks @marcalexiei! - feat(types): removesexport *from non-index exports
Patch Changes
- #7320
44aeef0Thanks @hanspagel! - feat: rename showToolbar to showDeveloperTools
-
- 0.4.03 Nov 2025
Release notes
Open source →Minor Changes
- #7129
6ec8c29Thanks @geoffgscott! - Simplify ApiReferences state management and migrate to new shared sidebar component. Eliminates the useSidebar and useNav hooks in favour of event bubbling and centralized state management in ApiReference.vue
Patch Changes
-
#7086
eb022f2Thanks @hanspagel! - feat: newcontent.endslot for the plugin API -
#7094
eba18d0Thanks @geoffgscott! - Migrate to workspace store as primary source of truth. -
Updated dependencies [
2239843]:- @scalar/[email protected]
- #7129
- 0.3.214 Oct 2025
Release notes
Open source →Patch Changes
- f3e17d8: fix(types): allow async callbacks for event handlers
- Updated dependencies [f69e7cc]
- @scalar/[email protected]
- 0.3.18 Oct 2025
Release notes
Open source →Patch Changes
- 1e01464: Adds a new ApiReferenceConfigWithSource type and make the base ApiReferenceConfig type agnostic of any document sources.
- Updated dependencies [15c4240]
- @scalar/[email protected]
- 0.3.02 Oct 2025
Release notes
Open source →Minor Changes
- 008a0f3: feat: migrate to Zod 4
Patch Changes
- Updated dependencies [008a0f3]
- @scalar/[email protected]
- 0.2.1619 Sept 2025