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

release: 0.24.0 #440

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
437 commits
Select commit Hold shift + click to select a range
7b3867d
codegen metadata
stainless-bot Oct 3, 2024
781156c
codegen metadata
stainless-bot Oct 4, 2024
078c672
codegen metadata
stainless-bot Oct 4, 2024
d0129ee
codegen metadata
stainless-bot Oct 4, 2024
40583ca
codegen metadata
stainless-bot Oct 4, 2024
b2e65c7
codegen metadata
stainless-bot Oct 4, 2024
288ffcd
codegen metadata
stainless-bot Oct 4, 2024
3c75246
codegen metadata
stainless-bot Oct 4, 2024
884f093
codegen metadata
stainless-bot Oct 4, 2024
2b9f792
codegen metadata
stainless-bot Oct 4, 2024
a3e3ada
codegen metadata
stainless-bot Oct 4, 2024
1b1ddf2
codegen metadata
stainless-bot Oct 7, 2024
7c693c3
codegen metadata
stainless-bot Oct 7, 2024
76f75d4
codegen metadata
stainless-bot Oct 7, 2024
f99ae78
codegen metadata
stainless-bot Oct 7, 2024
ae9d74b
codegen metadata
stainless-bot Oct 7, 2024
0fb9594
codegen metadata
stainless-bot Oct 8, 2024
4777a46
codegen metadata
stainless-bot Oct 8, 2024
61c63a4
codegen metadata
stainless-bot Oct 8, 2024
fc8ee6c
codegen metadata
stainless-bot Oct 8, 2024
dc355a9
codegen metadata
stainless-bot Oct 10, 2024
8f05116
codegen metadata
stainless-bot Oct 10, 2024
4fad508
codegen metadata
stainless-bot Oct 10, 2024
83eb314
codegen metadata
stainless-bot Oct 10, 2024
0e1f074
codegen metadata
stainless-bot Oct 10, 2024
b9add89
codegen metadata
stainless-bot Oct 10, 2024
e231267
codegen metadata
stainless-bot Oct 10, 2024
ebc04ca
codegen metadata
stainless-bot Oct 10, 2024
9724812
codegen metadata
stainless-bot Oct 11, 2024
e345788
codegen metadata
stainless-bot Oct 11, 2024
c82bd8b
codegen metadata
stainless-bot Oct 11, 2024
516b544
codegen metadata
stainless-bot Oct 11, 2024
84be155
codegen metadata
stainless-bot Oct 12, 2024
aff2c41
codegen metadata
stainless-bot Oct 12, 2024
db97cf3
codegen metadata
stainless-bot Oct 15, 2024
3dd05a1
codegen metadata
stainless-bot Oct 15, 2024
87a0579
codegen metadata
stainless-bot Oct 15, 2024
29c9a91
codegen metadata
stainless-bot Oct 15, 2024
5c5103a
codegen metadata
stainless-bot Oct 15, 2024
c6ef141
codegen metadata
stainless-bot Oct 15, 2024
3c69212
codegen metadata
stainless-bot Oct 15, 2024
1625820
feat(api): api update (#446)
stainless-app[bot] Oct 15, 2024
af5ce4d
codegen metadata
stainless-bot Oct 15, 2024
5d94f5d
codegen metadata
stainless-bot Oct 15, 2024
a1651fc
codegen metadata
stainless-bot Oct 15, 2024
82ba5f1
codegen metadata
stainless-bot Oct 16, 2024
2514141
feat(api): api update (#447)
stainless-app[bot] Oct 16, 2024
1965599
codegen metadata
stainless-bot Oct 16, 2024
7e3a276
codegen metadata
stainless-bot Oct 16, 2024
5430edb
codegen metadata
stainless-bot Oct 16, 2024
8a38208
codegen metadata
stainless-bot Oct 16, 2024
580764c
codegen metadata
stainless-bot Oct 16, 2024
ff64425
codegen metadata
stainless-bot Oct 16, 2024
b90694f
codegen metadata
stainless-bot Oct 16, 2024
01d351b
codegen metadata
stainless-bot Oct 17, 2024
f17ac5d
codegen metadata
stainless-bot Oct 17, 2024
5d6e6a0
codegen metadata
stainless-bot Oct 17, 2024
ab08494
codegen metadata
stainless-bot Oct 17, 2024
af8a258
codegen metadata
stainless-bot Oct 17, 2024
f0ddc9b
codegen metadata
stainless-bot Oct 17, 2024
739743e
codegen metadata
stainless-bot Oct 18, 2024
89f38d4
codegen metadata
stainless-bot Oct 18, 2024
e7b26f4
feat(api): api update (#448)
stainless-app[bot] Oct 18, 2024
0e54d1e
codegen metadata
stainless-bot Oct 18, 2024
39922ac
codegen metadata
stainless-bot Oct 18, 2024
d6c129e
codegen metadata
stainless-bot Oct 18, 2024
6dbc965
codegen metadata
stainless-bot Oct 18, 2024
4bc2284
codegen metadata
stainless-bot Oct 18, 2024
011b97e
codegen metadata
stainless-bot Oct 18, 2024
a9d3cbc
codegen metadata
stainless-bot Oct 18, 2024
794e68e
codegen metadata
stainless-bot Oct 21, 2024
abd1785
codegen metadata
stainless-bot Oct 21, 2024
ed0ef16
feat(api): api update (#449)
stainless-app[bot] Oct 21, 2024
116564f
codegen metadata
stainless-bot Oct 21, 2024
fbd82cd
codegen metadata
stainless-bot Oct 22, 2024
a988ab3
codegen metadata
stainless-bot Oct 22, 2024
49b7cdc
codegen metadata
stainless-bot Oct 22, 2024
4abd814
codegen metadata
stainless-bot Oct 22, 2024
41e653a
codegen metadata
stainless-bot Oct 22, 2024
ae05a1a
codegen metadata
stainless-bot Oct 22, 2024
ecbef3b
feat(api): api update (#450)
stainless-app[bot] Oct 23, 2024
2fbd21a
codegen metadata
stainless-bot Oct 23, 2024
d74aa20
codegen metadata
stainless-bot Oct 23, 2024
666d428
codegen metadata
stainless-bot Oct 23, 2024
5db1d68
codegen metadata
stainless-bot Oct 24, 2024
8834a0e
codegen metadata
stainless-bot Oct 24, 2024
58e94a8
codegen metadata
stainless-bot Oct 24, 2024
60d19e9
codegen metadata
stainless-bot Oct 24, 2024
00fd52e
codegen metadata
stainless-bot Oct 24, 2024
9986152
codegen metadata
stainless-bot Oct 24, 2024
5d8754a
codegen metadata
stainless-bot Oct 25, 2024
3a00742
codegen metadata
stainless-bot Oct 25, 2024
f65b028
feat(api): api update (#451)
stainless-app[bot] Oct 25, 2024
a1f8f0b
chore: rebuild project due to codegen change (#452)
stainless-app[bot] Oct 25, 2024
a9f572d
codegen metadata
stainless-bot Oct 28, 2024
2af07b0
codegen metadata
stainless-bot Oct 28, 2024
6b1ce5a
codegen metadata
stainless-bot Oct 28, 2024
7fd08fe
codegen metadata
stainless-bot Oct 28, 2024
4bd1b0b
codegen metadata
stainless-bot Oct 28, 2024
0aaec6a
codegen metadata
stainless-bot Oct 28, 2024
a673208
codegen metadata
stainless-bot Oct 28, 2024
fdfe40c
codegen metadata
stainless-bot Oct 28, 2024
bd08f00
codegen metadata
stainless-bot Oct 28, 2024
225c943
feat(api): api update (#453)
stainless-app[bot] Oct 28, 2024
a3b25f1
codegen metadata
stainless-bot Oct 28, 2024
ae878df
codegen metadata
stainless-bot Oct 28, 2024
169f196
codegen metadata
stainless-bot Oct 29, 2024
1a7d8fb
codegen metadata
stainless-bot Oct 29, 2024
f16b1d8
codegen metadata
stainless-bot Oct 29, 2024
88e2324
codegen metadata
stainless-bot Oct 29, 2024
0ef936a
codegen metadata
stainless-bot Oct 29, 2024
e8dc722
codegen metadata
stainless-bot Oct 29, 2024
f01c961
codegen metadata
stainless-bot Oct 29, 2024
bcd051a
codegen metadata
stainless-bot Oct 29, 2024
24b769c
codegen metadata
stainless-bot Oct 29, 2024
a9843d0
codegen metadata
stainless-bot Oct 29, 2024
3acd585
codegen metadata
stainless-bot Oct 29, 2024
ba5a756
codegen metadata
stainless-bot Oct 29, 2024
96925c7
codegen metadata
stainless-bot Oct 30, 2024
8237932
codegen metadata
stainless-bot Oct 30, 2024
d813da6
codegen metadata
stainless-bot Oct 30, 2024
d7ba7f8
codegen metadata
stainless-bot Oct 30, 2024
36011ab
codegen metadata
stainless-bot Oct 31, 2024
3accca6
codegen metadata
stainless-bot Oct 31, 2024
ef434f9
codegen metadata
stainless-bot Oct 31, 2024
26bae5b
codegen metadata
stainless-bot Oct 31, 2024
7a16e67
feat(api): api update (#454)
stainless-app[bot] Oct 31, 2024
2ae23ea
codegen metadata
stainless-bot Nov 1, 2024
19831ab
codegen metadata
stainless-bot Nov 1, 2024
1a69c8b
codegen metadata
stainless-bot Nov 1, 2024
1e6a18d
codegen metadata
stainless-bot Nov 1, 2024
692e4a3
codegen metadata
stainless-bot Nov 1, 2024
c02656e
chore: rebuild project due to codegen change (#455)
stainless-app[bot] Nov 1, 2024
7c52505
codegen metadata
stainless-bot Nov 1, 2024
20e73ec
codegen metadata
stainless-bot Nov 1, 2024
a743193
chore: rebuild project due to codegen change (#456)
stainless-app[bot] Nov 1, 2024
ff0a99c
codegen metadata
stainless-bot Nov 1, 2024
9ab1961
codegen metadata
stainless-bot Nov 1, 2024
46a566a
codegen metadata
stainless-bot Nov 3, 2024
844ecd6
codegen metadata
stainless-bot Nov 3, 2024
aa2e343
codegen metadata
stainless-bot Nov 4, 2024
322b8e2
codegen metadata
stainless-bot Nov 4, 2024
f21e6f6
codegen metadata
stainless-bot Nov 4, 2024
efab992
codegen metadata
stainless-bot Nov 4, 2024
8d04185
codegen metadata
stainless-bot Nov 4, 2024
a998607
codegen metadata
stainless-bot Nov 4, 2024
7becdb8
codegen metadata
stainless-bot Nov 4, 2024
729ac8f
codegen metadata
stainless-bot Nov 4, 2024
c0387fa
codegen metadata
stainless-bot Nov 4, 2024
d7168b0
codegen metadata
stainless-bot Nov 4, 2024
247e192
codegen metadata
stainless-bot Nov 5, 2024
4042267
codegen metadata
stainless-bot Nov 5, 2024
1f6992a
codegen metadata
stainless-bot Nov 5, 2024
4bff2a9
codegen metadata
stainless-bot Nov 5, 2024
1a1787e
codegen metadata
stainless-bot Nov 5, 2024
d19f599
codegen metadata
stainless-bot Nov 5, 2024
5f968df
codegen metadata
stainless-bot Nov 6, 2024
4d32465
codegen metadata
stainless-bot Nov 6, 2024
1a1f2bc
codegen metadata
stainless-bot Nov 6, 2024
8478d22
codegen metadata
stainless-bot Nov 6, 2024
2e3144c
codegen metadata
stainless-bot Nov 8, 2024
9977561
codegen metadata
stainless-bot Nov 8, 2024
074280b
codegen metadata
stainless-bot Nov 8, 2024
971b597
codegen metadata
stainless-bot Nov 8, 2024
31280b9
codegen metadata
stainless-bot Nov 8, 2024
b78504f
codegen metadata
stainless-bot Nov 8, 2024
636d468
chore: rebuild project due to codegen change (#457)
stainless-app[bot] Nov 12, 2024
a82abfb
codegen metadata
stainless-bot Nov 12, 2024
b632f76
codegen metadata
stainless-bot Nov 12, 2024
cac396d
codegen metadata
stainless-bot Nov 12, 2024
fde6cb9
codegen metadata
stainless-bot Nov 12, 2024
696111d
codegen metadata
stainless-bot Nov 12, 2024
3010252
codegen metadata
stainless-bot Nov 12, 2024
edb49c4
codegen metadata
stainless-bot Nov 12, 2024
7ea03c7
codegen metadata
stainless-bot Nov 12, 2024
85c3411
codegen metadata
stainless-bot Nov 12, 2024
4d786be
codegen metadata
stainless-bot Nov 12, 2024
45e1433
codegen metadata
stainless-bot Nov 13, 2024
cf1b03d
codegen metadata
stainless-bot Nov 13, 2024
4e4e510
codegen metadata
stainless-bot Nov 13, 2024
daf0ea1
codegen metadata
stainless-bot Nov 13, 2024
3942d45
codegen metadata
stainless-bot Nov 14, 2024
dd1bc5f
codegen metadata
stainless-bot Nov 14, 2024
274f9d4
codegen metadata
stainless-bot Nov 14, 2024
b8f349f
codegen metadata
stainless-bot Nov 14, 2024
aedc8f0
codegen metadata
stainless-bot Nov 14, 2024
b649f28
codegen metadata
stainless-bot Nov 14, 2024
6143eeb
codegen metadata
stainless-bot Nov 14, 2024
344c10e
codegen metadata
stainless-bot Nov 14, 2024
e635ec1
codegen metadata
stainless-bot Nov 14, 2024
0eca8dd
codegen metadata
stainless-bot Nov 14, 2024
9719bf5
codegen metadata
stainless-bot Nov 14, 2024
f62f82d
codegen metadata
stainless-bot Nov 14, 2024
ebd88f3
feat(api): api update (#458)
stainless-app[bot] Nov 14, 2024
dcb3302
codegen metadata
stainless-bot Nov 14, 2024
7af526b
codegen metadata
stainless-bot Nov 15, 2024
47bc69d
codegen metadata
stainless-bot Nov 15, 2024
e5172d3
feat(api): api update (#459)
stainless-app[bot] Nov 15, 2024
61912fd
codegen metadata
stainless-bot Nov 15, 2024
f2cb264
codegen metadata
stainless-bot Nov 15, 2024
44b4929
codegen metadata
stainless-bot Nov 15, 2024
59cf902
codegen metadata
stainless-bot Nov 15, 2024
5602a57
codegen metadata
stainless-bot Nov 15, 2024
1924477
codegen metadata
stainless-bot Nov 15, 2024
8e48d8c
codegen metadata
stainless-bot Nov 15, 2024
ca05e8f
codegen metadata
stainless-bot Nov 15, 2024
f964994
codegen metadata
stainless-bot Nov 15, 2024
69d4490
codegen metadata
stainless-bot Nov 15, 2024
d58ae63
codegen metadata
stainless-bot Nov 15, 2024
443ee45
codegen metadata
stainless-bot Nov 16, 2024
aeca778
codegen metadata
stainless-bot Nov 16, 2024
b257e65
codegen metadata
stainless-bot Nov 18, 2024
7d0bdd3
codegen metadata
stainless-bot Nov 18, 2024
aecd244
codegen metadata
stainless-bot Nov 18, 2024
36e3e98
codegen metadata
stainless-bot Nov 18, 2024
5637446
codegen metadata
stainless-bot Nov 18, 2024
a3c3b0b
codegen metadata
stainless-bot Nov 18, 2024
3c6b3c5
codegen metadata
stainless-bot Nov 18, 2024
c7f2823
codegen metadata
stainless-bot Nov 18, 2024
526c952
codegen metadata
stainless-bot Nov 18, 2024
bd6466f
codegen metadata
stainless-bot Nov 18, 2024
67c99c2
codegen metadata
stainless-bot Nov 18, 2024
70adfc2
codegen metadata
stainless-bot Nov 18, 2024
67a58bb
chore: rebuild project due to codegen change (#461)
stainless-app[bot] Nov 19, 2024
749e9ca
codegen metadata
stainless-bot Nov 19, 2024
bb890ad
codegen metadata
stainless-bot Nov 19, 2024
32cdda5
codegen metadata
stainless-bot Nov 19, 2024
b56fe63
codegen metadata
stainless-bot Nov 19, 2024
b62e8b8
codegen metadata
stainless-bot Nov 19, 2024
e9caaa0
codegen metadata
stainless-bot Nov 19, 2024
e5b9dc9
codegen metadata
stainless-bot Nov 19, 2024
03b3a61
codegen metadata
stainless-bot Nov 19, 2024
6487120
codegen metadata
stainless-bot Nov 19, 2024
45e09e5
codegen metadata
stainless-bot Nov 19, 2024
2b524d4
codegen metadata
stainless-bot Nov 19, 2024
66152f0
codegen metadata
stainless-bot Nov 19, 2024
2cb0b87
docs: remove suggestion to use `npm` call out (#462)
stainless-app[bot] Nov 20, 2024
cc848fb
chore: remove redundant word in comment (#463)
stainless-app[bot] Nov 20, 2024
9d5bafe
codegen metadata
stainless-bot Nov 20, 2024
06878f4
codegen metadata
stainless-bot Nov 20, 2024
53913eb
codegen metadata
stainless-bot Nov 20, 2024
c059ae5
codegen metadata
stainless-bot Nov 20, 2024
18d5f3f
codegen metadata
stainless-bot Nov 20, 2024
4a27e55
codegen metadata
stainless-bot Nov 20, 2024
ebf6390
codegen metadata
stainless-bot Nov 21, 2024
7ee4009
codegen metadata
stainless-bot Nov 21, 2024
5eafff7
codegen metadata
stainless-bot Nov 21, 2024
3b44e26
codegen metadata
stainless-bot Nov 21, 2024
df9279b
feat(api): api update (#464)
stainless-app[bot] Nov 21, 2024
cd093f7
release: 0.24.0
stainless-app[bot] Nov 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/publish-jsr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This workflow is triggered when a GitHub release is created.
# It can also be run manually to re-publish to JSR in case it failed for some reason.
# You can run this workflow by navigating to https://www.github.com/val-town/sdk/actions/workflows/publish-jsr.yml
name: Publish JSR
on:
workflow_dispatch:

release:
types: [published]

jobs:
publish:
name: publish
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write

steps:
- uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Install dependencies
run: |
yarn install

- name: Publish to JSR
run: |
bash ./bin/publish-jsr
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ yarn-error.log
codegen.log
Brewfile.lock.json
dist
/deno
dist-deno
/*.tgz
.idea/

2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.23.0"
".": "0.24.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 26
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/val-town%2Fval-town-e71c730055783b96c5f9858d3c80eb88a8355c1d1fb770e9f2745fe63a16a4be.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/val-town%2Fval-town-56a412f0f88fc96d4ccb7d3ae75cb619581c413531caae445a85fa2279fba829.yml
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,38 @@
# Changelog

## 0.24.0 (2024-11-21)

Full Changelog: [v0.23.0...v0.24.0](https://github.com/val-town/sdk/compare/v0.23.0...v0.24.0)

### Features

* **api:** api update ([#446](https://github.com/val-town/sdk/issues/446)) ([1625820](https://github.com/val-town/sdk/commit/1625820a3596a65f673c42a99883885bbc34f594))
* **api:** api update ([#447](https://github.com/val-town/sdk/issues/447)) ([2514141](https://github.com/val-town/sdk/commit/251414115ece2b975d147084159cf7e275723bb9))
* **api:** api update ([#448](https://github.com/val-town/sdk/issues/448)) ([e7b26f4](https://github.com/val-town/sdk/commit/e7b26f4f55dc0c1e1e202a6accfd4e790f6edb76))
* **api:** api update ([#449](https://github.com/val-town/sdk/issues/449)) ([ed0ef16](https://github.com/val-town/sdk/commit/ed0ef16921548c741b83cb19f78cfe7e74e1c796))
* **api:** api update ([#450](https://github.com/val-town/sdk/issues/450)) ([ecbef3b](https://github.com/val-town/sdk/commit/ecbef3ba1d9895440f3c0ba42ce098c7d33ee8be))
* **api:** api update ([#451](https://github.com/val-town/sdk/issues/451)) ([f65b028](https://github.com/val-town/sdk/commit/f65b028499cfec450ae7aa285bfae30639a5d1be))
* **api:** api update ([#453](https://github.com/val-town/sdk/issues/453)) ([225c943](https://github.com/val-town/sdk/commit/225c94397f49dfbc95bc8d75f66e11336e1ae4d0))
* **api:** api update ([#454](https://github.com/val-town/sdk/issues/454)) ([7a16e67](https://github.com/val-town/sdk/commit/7a16e6703a99bc956bfd68d1814c4b355b0f52b8))
* **api:** api update ([#458](https://github.com/val-town/sdk/issues/458)) ([ebd88f3](https://github.com/val-town/sdk/commit/ebd88f3e15903f5cf24ea176560a3869138bfbda))
* **api:** api update ([#459](https://github.com/val-town/sdk/issues/459)) ([e5172d3](https://github.com/val-town/sdk/commit/e5172d3681593fbbd28bca0a3edd99c14c487870))
* **api:** api update ([#464](https://github.com/val-town/sdk/issues/464)) ([df9279b](https://github.com/val-town/sdk/commit/df9279be5cd98f3e76ae71766c5ad28a310be614))


### Chores

* rebuild project due to codegen change ([#452](https://github.com/val-town/sdk/issues/452)) ([a1f8f0b](https://github.com/val-town/sdk/commit/a1f8f0bfdb31b447b6a90c4a2f66346c75b98b53))
* rebuild project due to codegen change ([#455](https://github.com/val-town/sdk/issues/455)) ([c02656e](https://github.com/val-town/sdk/commit/c02656e98f53654905a00f3383b4b432d96fd294))
* rebuild project due to codegen change ([#456](https://github.com/val-town/sdk/issues/456)) ([a743193](https://github.com/val-town/sdk/commit/a743193a021aaf7020ac3bdfc680ba8ee3898d80))
* rebuild project due to codegen change ([#457](https://github.com/val-town/sdk/issues/457)) ([636d468](https://github.com/val-town/sdk/commit/636d4680bfeec90fb7d1a788e97bbff39344f42b))
* rebuild project due to codegen change ([#461](https://github.com/val-town/sdk/issues/461)) ([67a58bb](https://github.com/val-town/sdk/commit/67a58bbb9c2ea54deec2bdb1fdbe32331cbbe013))
* remove redundant word in comment ([#463](https://github.com/val-town/sdk/issues/463)) ([cc848fb](https://github.com/val-town/sdk/commit/cc848fbe88c9fe3d5bc43d613842d82f05a8fcbb))


### Documentation

* remove suggestion to use `npm` call out ([#462](https://github.com/val-town/sdk/issues/462)) ([2cb0b87](https://github.com/val-town/sdk/commit/2cb0b87486ffa6c53c629da75e6e5546758e034a))

## 0.23.0 (2024-09-16)

Full Changelog: [v0.22.0...v0.23.0](https://github.com/val-town/sdk/compare/v0.22.0...v0.23.0)
Expand Down
46 changes: 23 additions & 23 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ Other package managers may work but are not officially supported for development

To set up the repository, run:

```bash
yarn
yarn build
```sh
$ yarn
$ yarn build
```

This will install all the required dependencies and build output files to `dist/`.
Expand All @@ -22,7 +22,7 @@ modify the contents of the `src/lib/` and `examples/` directories.

All files in the `examples/` directory are not modified by the generator and can be freely edited or added to.

```bash
```ts
// add an example to examples/<your-example>.ts

#!/usr/bin/env -S npm run tsn -T
Expand All @@ -41,38 +41,38 @@ If you’d like to use the repository from source, you can either install from g

To install via git:

```bash
npm install git+ssh://git@github.com:val-town/sdk.git
```sh
$ npm install git+ssh://git@github.com:val-town/sdk.git
```

Alternatively, to link a local copy of the repo:

```bash
```sh
# Clone
git clone https://www.github.com/val-town/sdk
cd sdk
$ git clone https://www.github.com/val-town/sdk
$ cd sdk

# With yarn
yarn link
cd ../my-package
yarn link @valtown/sdk
$ yarn link
$ cd ../my-package
$ yarn link @valtown/sdk

# With pnpm
pnpm link --global
cd ../my-package
pnpm link -—global @valtown/sdk
$ pnpm link --global
$ cd ../my-package
$ pnpm link -—global @valtown/sdk
```

## Running tests

Most tests require you to [set up a mock server](https://github.com/stoplightio/prism) against the OpenAPI spec to run the tests.

```bash
npx prism mock path/to/your/openapi.yml
```sh
$ npx prism mock path/to/your/openapi.yml
```

```bash
yarn run test
```sh
$ yarn run test
```

## Linting and formatting
Expand All @@ -82,14 +82,14 @@ This repository uses [prettier](https://www.npmjs.com/package/prettier) and

To lint:

```bash
yarn lint
```sh
$ yarn lint
```

To format and fix all lint issues automatically:

```bash
yarn fix
```sh
$ yarn fix
```

## Publishing and releases
Expand Down
30 changes: 29 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Val Town Node API Library

[![NPM version](https://img.shields.io/npm/v/@valtown/sdk.svg)](https://npmjs.org/package/@valtown/sdk) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/@valtown/sdk)
[![NPM version](https://img.shields.io/npm/v/@valtown/sdk.svg)](https://npmjs.org/package/@valtown/sdk) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/@valtown/sdk) [![JSR Version](https://jsr.io/badges/@valtown/sdk)](https://jsr.io/@valtown/sdk)

This library provides convenient access to the Val Town REST API from server-side TypeScript or JavaScript.

Expand All @@ -14,6 +14,21 @@ It is generated with [Stainless](https://www.stainlessapi.com/).
npm install @valtown/sdk
```

### Installation from JSR

```sh
deno add jsr:@valtown/sdk
npx jsr add @valtown/sdk
```

These commands will make the module importable from the `@valtown/sdk` scope:

You can also [import directly from JSR](https://jsr.io/docs/using-packages#importing-with-jsr-specifiers) without an install step if you're using the Deno JavaScript runtime:

```ts
import ValTown from 'jsr:@valtown/sdk';
```

## Usage

The full API of this library can be found in [api.md](api.md).
Expand Down Expand Up @@ -275,6 +290,19 @@ TypeScript >= 4.5 is supported.

The following runtimes are supported:

- Web browsers (Up-to-date Chrome, Firefox, Safari, Edge, and more)
- Node.js 18 LTS or later ([non-EOL](https://endoflife.date/nodejs)) versions.
- Deno v1.28.0 or higher.
- Bun 1.0 or later.
- Cloudflare Workers.
- Vercel Edge Runtime.
- Jest 28 or greater with the `"node"` environment (`"jsdom"` is not supported at this time).
- Nitro v2.6 or greater.

Note that React Native is not supported at this time.

If you are interested in other runtime environments, please open or upvote an issue on GitHub.

## Contributing

See [the contributing documentation](./CONTRIBUTING.md).
11 changes: 11 additions & 0 deletions bin/publish-jsr
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

set -eux

# Build the project
yarn build

# Navigate to the dist directory
cd dist-deno

npx jsr publish ${JSR_TOKEN:+"--token=$JSR_TOKEN"}
10 changes: 10 additions & 0 deletions jsr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "@valtown/sdk",
"version": "0.24.0",
"exports": "./index.ts",
"publish": {
"exclude": [
"!."
]
}
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@valtown/sdk",
"version": "0.23.0",
"version": "0.24.0",
"description": "The official TypeScript library for the Val Town API",
"author": "Val Town <support@val.town>",
"types": "dist/index.d.ts",
Expand All @@ -10,7 +10,7 @@
"license": "MIT",
"packageManager": "yarn@1.22.22",
"files": [
"*"
"**/*"
],
"private": false,
"scripts": {
Expand Down Expand Up @@ -41,10 +41,10 @@
"eslint": "^8.49.0",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-unused-imports": "^3.0.0",
"iconv-lite": "^0.6.3",
"jest": "^29.4.0",
"prettier": "^3.0.0",
"ts-jest": "^29.1.0",
"ts-morph": "^19.0.0",
"ts-node": "^10.5.0",
"tsc-multi": "^1.1.0",
"tsconfig-paths": "^4.0.0",
Expand Down
7 changes: 6 additions & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@
"release-type": "node",
"extra-files": [
"src/version.ts",
"README.md"
"README.md",
{
"type": "json",
"path": "jsr.json",
"jsonpath": "$.version"
}
]
}
4 changes: 2 additions & 2 deletions scripts/build
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ npm exec tsc-multi
# copy over handwritten .js/.mjs/.d.ts files
cp src/_shims/*.{d.ts,js,mjs,md} dist/_shims
cp src/_shims/auto/*.{d.ts,js,mjs} dist/_shims/auto
# we need to add exports = module.exports = Val Town Node to index.js;
# we need to add exports = module.exports = ValTown to index.js;
# No way to get that from index.ts because it would cause compile errors
# when building .mjs
node scripts/utils/fix-index-exports.cjs
Expand All @@ -50,7 +50,7 @@ node scripts/utils/postprocess-files.cjs
(cd dist && node -e 'require("@valtown/sdk")')
(cd dist && node -e 'import("@valtown/sdk")' --input-type=module)

if command -v deno &> /dev/null && [ -e ./scripts/build-deno ]
if [ -e ./scripts/build-deno ]
then
./scripts/build-deno
fi
19 changes: 19 additions & 0 deletions scripts/build-deno
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash

set -exuo pipefail

cd "$(dirname "$0")/.."

rm -rf dist-deno; mkdir dist-deno
cp -rp src/* jsr.json dist-deno

rm dist-deno/_shims/auto/*-node.ts
for dir in dist-deno/_shims dist-deno/_shims/auto; do
rm "${dir}"/*.{d.ts,js,mjs}
for file in "${dir}"/*-deno.ts; do
mv -- "$file" "${file%-deno.ts}.ts"
done
done
for file in README.md LICENSE CHANGELOG.md; do
if [ -e "${file}" ]; then cp "${file}" dist-deno; fi
done
2 changes: 1 addition & 1 deletion src/_shims/node-types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import * as fd from 'formdata-node';
export { type Agent } from 'node:http';
export { type Readable } from 'node:stream';
export { type ReadStream as FsReadStream } from 'node:fs';
export { ReadableStream } from 'web-streams-polyfill';
export { ReadableStream } from 'node:stream/web';

export const fetch: typeof nf.default;

Expand Down
Loading