Thanks to visit codestin.com
Credit goes to github.com

Skip to content

coder/v0.3.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 17 Jun 20:13
· 4 commits to main since this release
80d6858

Breaking changes

  • The useCoderWorkspacesQuery hook has been removed. Please refactor any code to use the new useCoderQuery or useCoderApi hooks.
  • The CoderAuthWrapper component has been removed in favor of consolidating logic into CoderProvider.
  • useCoderAuth's ejectToken method has been renamed to unlinkToken.

New features

  • Added the useCoderQuery hook for making it easy to query and cache any Coder API endpoint.
  • Added the useCoderApi hook for exposing a lower-level primitive for accessing Coder API resources.
  • Added new logic to the CoderProvider component to provide an auth fallback input. By default, this displays whenever there are no official Coder components on screen, but this can be configured with the fallbackAuthUiMode prop.

Minor changes

  • Updated all official Coder components to use the new Coder API Backstage service under the hood.
  • Exposed a new CODER_QUERY_KEY_PREFIX constant for helping users group queries when combining useCoderApi with the base TanStack Query useQuery hook.