Skip to content

v3.0.1

Compare
Choose a tag to compare
@seambot seambot released this 23 Jul 20:51
· 43 commits to main since this release
v3.0.1
7d2e8b6

Features

  • Requires React v18 or later.
  • 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 })