coder/v0.3.0
·
9 commits
to main
since this release
Breaking changes
- The
useCoderWorkspacesQueryhook has been removed. Please refactor any code to use the newuseCoderQueryoruseCoderApihooks. - The
CoderAuthWrappercomponent has been removed in favor of consolidating logic intoCoderProvider. useCoderAuth'sejectTokenmethod has been renamed tounlinkToken.
New features
- Added the
useCoderQueryhook for making it easy to query and cache any Coder API endpoint. - Added the
useCoderApihook for exposing a lower-level primitive for accessing Coder API resources. - Added new logic to the
CoderProvidercomponent 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 thefallbackAuthUiModeprop.
Minor changes
- Updated all official Coder components to use the new Coder API Backstage service under the hood.
- Exposed a new
CODER_QUERY_KEY_PREFIXconstant for helping users group queries when combininguseCoderApiwith the base TanStack QueryuseQueryhook.