Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 3 beta #638

Merged
merged 6 commits into from
Jul 19, 2024
Merged

Version 3 beta #638

merged 6 commits into from
Jul 19, 2024

Conversation

razor-x
Copy link
Collaborator

@razor-x razor-x commented Jun 28, 2024

  • feat: Upgrade react-query to v5
  • Rename isLoading to isPending
  • Remove use of onSuccess
  • Update to uuid v10

phpnode and others added 5 commits June 27, 2024 17:10
BREAKING CHANGE: See
https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5 if using the react-query API exposed by the hooks.

The most notable change is that isLoading has been renamed to isPending.
* Update from seamapi to @seamapi/javescript-http

* Update useDevices hook

* Move use-toggle-lock

* Update use-device

* Update types

* Update more hooks

* Update use-toggle-lock

* Fix use-create-connect-webview

* Update access code query hooks

* ci: Format code

* ci: Format code

* Update useDeleteAccessCode

* Update use-generate-access-code-code

* Rename MutationParams to MutationVariables

* ci: Format code

* Update types for AccessCodeDevice

* Update types

* Add newlines

* Update access code mutations

* Rename mutationParams

* ci: Format code

* Set query data on creating access code

* Support starts_at, ends_at, and type for updating access code

* Remove normalizedParams from useDevice

* Move useToggleLock params to variables

* Remove redundant type annotations

* Update types

* Update useEvents

* Update useNoiseThresholds

* Update useClimateSettingSchedule

* Update useClimateSettingSchedules

* ci: Format code

* Update useCreateClimateSettingSchedule

* Update useDeleteClimateSettingSchedule

* ci: Format code

* Do not require device_id in useUpdateAccessCode

* Update useUpdateClimateSettingSchedule

* Use SeamEvent for useEvents

* Use some new types

* Add SeamEvent type cast

* Move thermostat functions to module

* Update heat and cool thermostat hooks

* Update use-set-thermostat-off

* Rename getUpdatedThermostat to getUpdatedDevice

* Rename useUpdateFanMode to useSetThermostatFanMode

* Update useUpdateThermostat

* Update usage of useGenerateAccessCodeCode

* Add isLockDevice

* Add isThermostatDevice

* Add isNoiseSensorDevice

* Replace CommonDevice with Device

* Update usage of useConnectedAccount

* Update usage of useAccessCode

* Use more base types from @seamapi/types

* Fix nullish conditional

* Replace subtypes

* Prefer arrow functions

* Resolve AccessCode nullish type errors

* Update SupportedDeviceTable hooks to use new types

* Prefer basic type over hook data type

* Update types

* Use new types in validation error

* Use new error and warning types

* Remove noise_sensor event type assertions

* Assert type from useEvents

* Fix ClimateSetting type

* Remove seamapi

* Add missing properties in story sample data

* Use getInputErrorMessages

* Update dependencies

* ci: Format code

* Update fake-seam-connect

* Add noise_level_decibels to seed

* Add lock capability flags

* Update fake-seam-connect

* Use @seamapi/http v1.0.0

* ci: Generate code

---------

Co-authored-by: Seam Bot <devops@getseam.com>
* Implement shake

* Update src/lib/object.ts

Co-authored-by: Charles Pick <charles@codemix.com>

* ci: Format code

* Fix Shook type error

* Fix type error

---------

Co-authored-by: Charles Pick <charles@codemix.com>
Co-authored-by: Seam Bot <devops@getseam.com>
@razor-x razor-x merged commit ad7fc33 into beta Jul 19, 2024
10 of 12 checks passed
@razor-x razor-x deleted the tmp-next branch July 19, 2024 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants