Skip to content

Commit 8ec5d0b

Browse files
authored
feat: tanstack client + a bunch of fixes + bump deps (#64)
* fix: Schemas.null reference * chore: add a bit more tests / refactor using LibSchemaObject to get type-safety on nullable: true * feat: tanstack client & better fix for Schemas.null * feat: Better output when using `schema.additionalProperties`, especially when specifying `additionalProperties.type` * chore: exclude tests from typecheck * chore: update deps * chore: yaml engineer * ci * ci * chore: fix/update tests
1 parent 55bb52f commit 8ec5d0b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+4796
-3605
lines changed

.changeset/fresh-humans-travel.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"typed-openapi": minor
3+
---
4+
5+
Add @tanstack/react-query generated client

.changeset/little-trams-pull.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"typed-openapi": major
3+
---
4+
5+
bump all deps

.changeset/popular-spies-taste.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"typed-openapi": minor
3+
---
4+
5+
Fix `Schemas.null` references in TS output

.changeset/twelve-planes-end.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"typed-openapi": minor
3+
---
4+
5+
Better output when using `schema.additionalProperties`, especially when specifying `additionalProperties.type`

.github/publish.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ jobs:
1515
- name: Checkout Repo
1616
uses: actions/checkout@v3
1717

18-
- name: Setup Node.js 20.x
19-
uses: actions/setup-node@v3
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v4
2020
with:
21-
node-version: 20
21+
node-version-file: ".nvmrc"
22+
cache: pnpm
2223

23-
- name: Install pnpm
24-
uses: pnpm/action-setup@v2
25-
with: 9
24+
- name: Setup pnpm
25+
uses: pnpm/action-setup@v4
2626

2727
- name: Install dependencies
2828
run: pnpm install --frozen-lockfile

.github/workflows/publish.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,14 @@ jobs:
1515
- name: Checkout Repo
1616
uses: actions/checkout@v3
1717

18-
- name: Setup Node.js 20
19-
uses: actions/setup-node@v3
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v4
2020
with:
21-
node-version: 20
21+
node-version-file: ".nvmrc"
22+
cache: pnpm
2223

23-
- name: Install pnpm
24-
uses: pnpm/action-setup@v2
25-
with:
26-
version: 9
24+
- name: Setup pnpm
25+
uses: pnpm/action-setup@v4
2726

2827
- name: Install dependencies
2928
run: pnpm install --frozen-lockfile

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ pnpm-debug.log*
2424
styled-system
2525
styled-system-static
2626
.vercel
27+
*.tsbuildinfo

.npmrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
save-exact=true
2+
prefer-offline=true
3+
strict-peer-dependencies=true
4+
resolve-peers-from-workspace-root=true
5+
enable-pre-post-scripts=true
6+
auto-install-peers=true

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v22.11.0

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"test": "cd packages/typed-openapi && pnpm run test"
1515
},
1616
"devDependencies": {
17-
"@changesets/cli": "^2.26.2"
17+
"@changesets/cli": "^2.29.4"
1818
},
1919
"packageManager": "[email protected]+sha256.dae0f7e822c56b20979bb5965e3b73b8bdabb6b8b8ef121da6d857508599ca35"
2020
}

0 commit comments

Comments
 (0)