·
4 commits
to main
since this release
Breaking changes
- The
useCoderWorkspacesQuery
hook has been removed. Please refactor any code to use the newuseCoderQuery
oruseCoderApi
hooks. - The
CoderAuthWrapper
component has been removed in favor of consolidating logic intoCoderProvider
. useCoderAuth
'sejectToken
method has been renamed tounlinkToken
.
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 thefallbackAuthUiMode
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 combininguseCoderApi
with the base TanStack QueryuseQuery
hook.