Skip to content

Commit 58a76c3

Browse files
authored
feat: Use SeamEvent type from @seamapi/http (#17)
* feat: Use SeamEvent type from @seamapi/http * fix lockfile * Sync http peerDependencies version
1 parent 1adb61b commit 58a76c3

5 files changed

Lines changed: 206 additions & 37 deletions

File tree

.github/workflows/generate.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ jobs:
3131
uses: ./.github/actions/setup
3232
with:
3333
install_dependencies: 'false'
34-
- name: Sync @seamapi/types version in peerDependencies
34+
- name: Sync @seamapi/http version in peerDependencies
3535
run: |
3636
sudo apt-get install -y jq moreutils
37-
jq '.peerDependencies."@seamapi/types" = .devDependencies."@seamapi/types"' package.json | sponge package.json
37+
jq '.peerDependencies."@seamapi/http" = .devDependencies."@seamapi/http"' package.json | sponge package.json
3838
- name: Normalize package-lock.json
3939
run: npm install
4040
- name: Commit

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,20 +56,20 @@ Refer to the next section for keeping the types updated.
5656

5757
#### Keeping up with the latest types
5858

59-
This package depends on [@seamapi/types] for the latest TypeScript types.
59+
This package depends on [@seamapi/http] for the latest TypeScript `SeamEvent` type.
6060
New versions of this SDK are generally not released when new types are published.
6161
Unless your project frequently runs a blanket `npm update`,
6262
the types will become outdated with the Seam API over time.
63-
Thus, users of this package should explicitly install the types with
63+
Thus, users of this package should explicitly install the new types with
6464

6565
```
66-
$ npm install -D @seamapi/types
66+
$ npm install -D @seamapi/http
6767
```
6868

6969
and update them when consuming new API features with
7070

7171
```
72-
$ npm install -D @seamapi/types@latest
72+
$ npm install -D @seamapi/http@latest
7373
```
7474

7575
## Usage

package-lock.json

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

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,18 +71,18 @@
7171
}
7272
},
7373
"peerDependencies": {
74-
"@seamapi/types": "^1.166.0"
74+
"@seamapi/http": "^2.0.0"
7575
},
7676
"peerDependenciesMeta": {
77-
"@seamapi/types": {
77+
"@seamapi/http": {
7878
"optional": true
7979
}
8080
},
8181
"dependencies": {
8282
"svix": "^1.15.0"
8383
},
8484
"devDependencies": {
85-
"@seamapi/types": "^1.166.0",
85+
"@seamapi/http": "^2.0.0",
8686
"@types/node": "^24.10.9",
8787
"ava": "^8.0.1",
8888
"c8": "^12.0.0",

0 commit comments

Comments
 (0)