Releases: seamapi/react
Releases · seamapi/react
v4.0.0
Changes
Removes unstable thermostat API usage to ensure compatibly with the upcoming stable Thermostat API release.
- Removed
disableClimateSettingSchedules
prop. - Removed
useClimateSettingSchedule
anduseClimateSettingSchedules
. - Removed
ClimateSettingScheduleDetails
andClimateSettingScheduleTable
.
v4.0.0-beta.1
Features
BREAKING CHANGES
- Removed Climate Setting Schedules components, hooks, and options.
- The Climate Setting Schedules API was an experimental API for thermostats. A new API is in development and will return to Seam Components in a later release.
- Removed
disableClimateSettingSchedules
prop. - Removed
ClimateSettingScheduleTable
andClimateSettingScheduleDetails
. - Removed all hooks for Climate Setting Schedules.
v3.1.2
v3.1.1
v3.1.0
v3.0.2
v3.0.1
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
touseSetThermostatFanMode
.- 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 therefetchInterval
option to the hook.- useEvents({...}) + useEvents({...}, { refetchInterval: 30_000 })
v3.0.0-beta.1
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
touseSetThermostatFanMode
.- 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 therefetchInterval
option to the hook.- useEvents({...}) + useEvents({...}, { refetchInterval: 30_000 })