Skip to content

v3.0.0-beta.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@seambot seambot released this 19 Jul 17:34
· 83 commits to main since this release
v3.0.0-beta.1
c0238b1

Features

  • Upgraded react-query to version 5.This only affects consumers that use the hooks since they wrap the react-query API. Refer to the Migrating to TanStack Query v5 guide for details.
  • Update the Seam SDK client from seamapi to seam. This only affects consumers of useSeamClient. Refer to the new SDK migration guide for details.

Changes

  • Renamed useUpdateFanMode to useSetThermostatFanMode.
    - useUpdateFanMode(...)
    + useSetThermostatFanMode(...)
  • The useGenerateAccessCodeCode now returns the code as a string.
    - const { data } = useGenerateAccessCodeCodeParams({ device_id })
    - const code = data?.code
    + const { code } = useGenerateAccessCodeCodeParams({ device_id })
  • Hooks now always take objects and never string arguments.
    - useDevice(device_id)
    + useDevice({ device_id })
    
    - useAccessCode(access_code_id)
    + useAccessCode({ access_code_id })
    
    - useAccessCodes(device_id)
    + useAccessCodes({ device_id })
    
    - useConnectedAccount(connected_account_id)
    + useConnectedAccount({ connected_account_id })
  • The useEvents hook no longer refetches by default. To use the old behavior, pass the refetchInterval option to the hook.
    - useEvents({...})
    + useEvents({...}, { refetchInterval: 30_000 })