Skip to content

Commit f71fb33

Browse files
committed
feat: Move @seamapi/http to peerDependencies
1 parent 5872c3a commit f71fb33

File tree

5 files changed

+55
-35
lines changed

5 files changed

+55
-35
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,21 @@ $ npm install @seamapi/react
4444

4545
[npm]: https://www.npmjs.com/
4646

47+
### Peer dependencies
48+
49+
If your project uses a recent version of npm, peer dependencies will be handled automatically.
50+
If you package manager does not automatically install peer dependencies, install these packages:
51+
52+
```
53+
@seamapi/http react react-dom
54+
```
55+
56+
If using TypeScript, install these packages as development dependencies:
57+
58+
```
59+
@seamapi/types @types/react @types/react-dom
60+
```
61+
4762
## Usage
4863

4964
### With React

package-lock.json

Lines changed: 34 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109
"npm": ">= 9.0.0"
110110
},
111111
"peerDependencies": {
112+
"@seamapi/http": "^1.37.0",
112113
"@seamapi/types": "^1.395.3",
113114
"@types/react": "^18.0.0",
114115
"@types/react-dom": "^18.0.0",
@@ -128,7 +129,6 @@
128129
},
129130
"dependencies": {
130131
"@floating-ui/react": "^0.27.5",
131-
"@seamapi/http": "^1.30.2",
132132
"@tanstack/react-query": "^5.27.5",
133133
"classnames": "^2.3.2",
134134
"luxon": "^3.3.0",
@@ -145,6 +145,7 @@
145145
"@rxfork/r2wc-react-to-web-component": "^2.4.0",
146146
"@seamapi/fake-devicedb": "^1.6.1",
147147
"@seamapi/fake-seam-connect": "^1.76.0",
148+
"@seamapi/http": "^1.37.0",
148149
"@seamapi/types": "^1.395.3",
149150
"@storybook/addon-designs": "^7.0.1",
150151
"@storybook/addon-essentials": "^7.0.2",

src/lib/seam/access-codes/use-generate-access-code-code.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type {
2-
AccessCodesGenerateCodeBody,
2+
AccessCodesGenerateCodeParams,
33
SeamHttpApiError,
44
} from '@seamapi/http/connect'
55
import { useMutation, type UseMutationResult } from '@tanstack/react-query'
@@ -11,7 +11,7 @@ export type UseGenerateAccessCodeCodeParams = never
1111
export type UseGenerateAccessCodeCodeData = string
1212

1313
export type UseGenerateAccessCodeCodeMutationVariables =
14-
AccessCodesGenerateCodeBody
14+
AccessCodesGenerateCodeParams
1515

1616
export function useGenerateAccessCodeCode(): UseMutationResult<
1717
UseGenerateAccessCodeCodeData,

src/lib/seam/thermostats/use-delete-thermostat-climate-preset.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type {
22
SeamHttpApiError,
3-
ThermostatsDeleteClimatePresetBody,
3+
ThermostatsDeleteClimatePresetParams,
44
} from '@seamapi/http/connect'
55
import {
66
useMutation,
@@ -16,7 +16,7 @@ export type UseDeleteThermostatClimatePresetParams = never
1616
export type UseDeleteThermostatClimatePresetData = undefined
1717

1818
export type UseDeleteThermostatClimatePresetVariables =
19-
ThermostatsDeleteClimatePresetBody
19+
ThermostatsDeleteClimatePresetParams
2020

2121
export function useDeleteThermostatClimatePreset(): UseMutationResult<
2222
UseDeleteThermostatClimatePresetData,

0 commit comments

Comments
 (0)