npm / @scalar/api-client-react
@scalar/api-client-react
What changed in @scalar/api-client-react 1 to 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
8 breaking1 security1 deprecations34 new APIs and options16 behavior and defaults1 tooling64 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@scalar/api-client-react 27 changes
New APIs and options 2
Added customFetch config to the client.
Updates to api-client v2 with a new hook based API.
Behavior and default changes 2
Options are now reactive in api-client.
The proxyUrl can now be updated in api-client.
Tooling 1
TypeScript 6 builds and compiler API consumers are supported while preserving runtime output and public handler types.
Fixes and other changes 2
Vite configuration imports are now compatible with the native config loader.
Restores support for inline OpenAPI documents via the content configuration field.
@scalar/api-client-react 1118 changes
Breaking changes 8
Secret OAuth URLs are used before the default flow URLs.
The export document button was rolled back.
Node.js >=22 (LTS) is now required to use @scalar/api-client-react.
The default for createAnySecurityScheme is now false.
The web layout now defaults to using a proxy.
The import modal was removed.
Enables form rows by default.
Required parameters are now enabled by default.
Security 1
Auth secret extraction is hardened.
Deprecations 1
Mark a tool as deprecated without disabling it; its description starts with
[DEPRECATED].
New APIs and options 32
Adds MCP config support through the updated @scalar/types dependency.
Support was added for operation-level authentication.
Support was added for operation-level servers.
Adds configuration to hide the search API.
Post-response scripts and testing were added to API Client v2.
The API client now supports loading files into the store.
The API client now supports team workspaces.
Adds support for managing active environments.
The workspace picker now supports groups.
Adds a client-side request tool to the agent.
The client v2 adds an import modal, giving developers an import flow in the API client.
Adds inline agent chat.
Adds exports for creating external actions.
The V2 command palette is extensible, with improved types for developers integrating with it.
Requests can be canceled and streaming responses stopped.
HAR types are exposed for developers using the package's types.
The API client adds support for saving, reverting, and viewing history.
Adds support for default headers, allowing developers to configure headers applied by default.
Adds support for global cookies.
The auth component is now exported for use by developers.
The address bar now has a button to copy the URL.
The API client adds UI for OAuth2 credentials location.
A clear button was added to the password field.
Client v2 adds code samples.
Declare credential placeholder mappings on a security scheme to substitute credentials in SDK installation instructions, using the document's current authentication selection. Secret values are masked; missing or ambiguous values remain placeholders.
Set
mask: falsein a credential placeholder mapping to show a public identifier without masking it.Add this OpenAPI extension to configure tool exposure at the source; dashboard values override it field by field.
Send MCP annotations with a tool; this field only works on operations.
Add a custom message to the notice of a deprecated tool.
Set a tool description; on a tag or the document root, this field sets the description of the group its tools belong to.
Control whether an operation becomes a tool, including MCP-only or SDK-only exposure; values on operations, tags, and the document root follow a defined precedence.
Set a tool name; names are sent in snake case, cut to 108 characters, and given a numbered suffix when already taken.
Behavior and default changes 14
The API client caches the last response for an example.
Sync with source flow now includes conflict resolution.
Adds an app drag region for macOS.
Auth URL and token URL are persisted in local storage.
The correct authentication is preselected for documents and operations.
OAuth flow refresh tokens are stored on the auth store.
The API client desktop and web layouts are unified.
The import document palette now supports the file plugin.
The code block copy UI has been improved.
The Scalar agent can be enabled or disabled.
Code input now supports arrays and objects.
Client v2 adds default auth.
Parameter tooltips support Markdown.
Uses “current” instead of “latest” in the Scalar registry URL.
Fixes and other changes 62
Authentication closes by default when it is not required.
Fixed environment navigation in the API client.
Fixed example extraction in the API client.
OAuth credentials location persistence is fixed.
Overflow issues in the Mac app are fixed.
Schema is now propagated to the request body form-data table.
Code snippet HAR request URLs now URL-encode substituted path parameter values to match request sending behavior.
Uploaded files are sent correctly, and code samples show file references.
Fixes conditional rendering for the token URL.
The fallback theme is now reactive.
OAuth2 URLs are resolved against the interpolated server URL.
Schema examples are now cached correctly.
Fixed an index clamp issue.
Removed unnecessary property truncation in generated examples.
Markdown in descriptions now renders when selecting multiple security schemes.
The document is no longer mutated after ingress.
All listeners are disabled when the modal is closed.
The caret position was changed to the right.
Modal animation now uses Vue Transition for better cross-browser support.
The client opens to the correct example name.
Inconsistent styles throughout the API reference have been fixed.
The checkbox input now has full-width and full-height classes so it renders correctly in Safari.
Object values in form-urlencoded request bodies are now handled.
The save modal has been improved.
Prevents the API client modal from disappearing when reopened in Safari.
Import errors from the command palette are now handled gracefully.
Correctly handles redirects after document deletion.
Correctly displays the watch mode toggle state.
Changes are correctly dropped when the modal closes.
A failsafe was added for an incorrect array parameter style.
References are now resolved and validated correctly.
Fixed z-index issues in the address bar.
The client no longer adds a content type of none.
Restores the old client search.
The agent flag changes from enabled to disabled.
OAuth2 relative URLs are resolved against relative server URLs.
Improves sidebar click behavior.
Inputs to useCommandPalette state are reactive.
Adds agent scalar to localhost.
Reverts changes to the document when the modal is closed.
Uses getExample in the references responses.
Documents can now be collapsed.
Fixed the import and export of redirect to proxy.
Parameter upsert and deletion are more robust.
The body is attached only to methods that allow it.
Requests are canceled when navigating away from an operation page.
Sidebar state is synchronized when the sidebar is rebuilt.
Serialization support was added for contentType in params.
Allows multiple security requirements with different scopes.
Fixes invalid examples generated for additional properties.
Fixes the slot name for menu items.
Fixed complex auth.
The hideClientButton config is now passed into the client modal.
A proxy fix is included.
Readonly properties are filtered out of requestBody.
Path parameters now work on the client.
The client now reads the deprecated schema.example value.
Removes the scrollbar from buttons in the API client UI.
Ensures PATCH is uppercased.
The client now receives reactive auth config.
Example resolution in the request body was fixed.
Fixes caching of get schema examples via options.