Skip to content

Commit 6b17c2d

Browse files
committed
Merge branch 'main' of https://github.com/hey-api/openapi-ts into 1-25-orpc
2 parents 5f20a24 + 8a0bdaa commit 6b17c2d

5,524 files changed

Lines changed: 232755 additions & 174261 deletions

File tree

Some content is hidden

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

.changeset/changelog.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
import { getInfo, getInfoFromPullRequest } from '@changesets/get-github-info';
2-
import { config } from 'dotenv';
3-
4-
config();
52

63
/**
74
* @returns {string}
@@ -86,10 +83,7 @@ export default {
8683

8784
const users = usersFromSummary.length
8885
? usersFromSummary
89-
.map(
90-
(userFromSummary) =>
91-
`[@${userFromSummary}](https://github.com/${userFromSummary})`,
92-
)
86+
.map((userFromSummary) => `[@${userFromSummary}](https://github.com/${userFromSummary})`)
9387
.join(', ')
9488
: links.user;
9589

.changeset/dark-areas-give.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@hey-api/openapi-ts": patch
3+
"@hey-api/shared": patch
4+
---
5+
6+
**output**: pass context as second argument in `module.resolve()` function

.changeset/five-cats-begin.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@hey-api/openapi-ts": patch
3+
---
4+
5+
**plugin(@hey-api/client-nuxt)**: preserve AbortSignal, FormData, and ReadableStream in unwrapRefs

.changeset/proud-cougars-report.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@hey-api/openapi-ts": patch
3+
"@hey-api/shared": patch
4+
---
5+
6+
**parser**: fix: self-referencing discriminator

.changeset/stale-spiders-sleep.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@hey-api/codegen-core": patch
3+
---
4+
5+
**planner**: language-aware declaration sharing check

.changeset/tangy-cities-carry.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@hey-api/openapi-ts": patch
3+
"@hey-api/shared": patch
4+
---
5+
6+
**output**: add `module` option

.changeset/two-cameras-check.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@hey-api/openapi-ts": patch
3+
---
4+
5+
**plugin(@hey-api/transformers)**: expose `plugin` and `$` in transformer function context

.github/workflows/ci.yml

Lines changed: 48 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,58 +8,89 @@ on:
88
workflow_dispatch:
99

1010
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
1112
cancel-in-progress: true
12-
group: ${{ github.workflow }}=${{ github.head_ref }}
1313

1414
jobs:
15+
setup:
16+
name: Setup
17+
runs-on: ubuntu-latest
18+
outputs:
19+
node-version: ${{ steps.nvmrc.outputs.node-version }}
20+
steps:
21+
- uses: actions/checkout@v6.0.2
22+
23+
- id: nvmrc
24+
run: echo "node-version=$(cat .nvmrc)" >> $GITHUB_OUTPUT
25+
1526
ci:
1627
name: Build, Lint, Test
28+
needs: setup
1729
runs-on: ${{ matrix.os }}
30+
env:
31+
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
32+
TURBO_TELEMETRY_DISABLED: 1
33+
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
1834
strategy:
1935
matrix:
20-
os: [macos-latest, ubuntu-latest, windows-latest]
21-
node-version: ['20.19.0', '22.12.0', '24.10.0']
36+
include:
37+
# All Node versions on Ubuntu (fast, catches Node issues)
38+
- os: ubuntu-latest
39+
node-version: '20.19.0'
40+
- os: ubuntu-latest
41+
node-version: '22.12.0'
42+
- os: ubuntu-latest
43+
node-version: ${{ needs.setup.outputs.node-version }}
44+
is-primary: true # Primary runner for examples/previews
45+
# Latest Node on other OSes (catches platform issues)
46+
- os: macos-latest
47+
node-version: ${{ needs.setup.outputs.node-version }}
48+
- os: windows-latest
49+
node-version: ${{ needs.setup.outputs.node-version }}
2250
steps:
2351
- uses: actions/checkout@v6.0.2
2452
with:
2553
fetch-depth: 0
2654

27-
- uses: pnpm/action-setup@v4.2.0
55+
- uses: pnpm/action-setup@v5.0.0
2856

2957
- uses: actions/setup-node@v6
3058
with:
3159
node-version: ${{ matrix.node-version }}
3260
cache: pnpm
3361

62+
- uses: astral-sh/setup-uv@v7
63+
with:
64+
enable-cache: true
65+
3466
- name: Install dependencies
35-
run: pnpm install
67+
run: pnpm install --frozen-lockfile
3668

3769
- name: Build packages
38-
run: pnpm build --filter="@hey-api/**"
70+
run: pnpm tb "@hey-api/**"
3971

4072
- name: Check examples generated code
41-
if: matrix.node-version == '24.10.0' && matrix.os == 'ubuntu-latest'
73+
if: matrix.is-primary
4274
run: pnpm examples:check
4375

4476
- name: Build examples
45-
if: matrix.node-version == '24.10.0' && matrix.os == 'ubuntu-latest'
46-
run: pnpm build --filter="@example/**"
77+
if: matrix.is-primary
78+
run: pnpm tb "@example/**"
4779

4880
- name: Run linter
49-
run: pnpm lint
81+
run: pnpm turbo run lint
5082

5183
- name: Run type check
52-
run: pnpm typecheck
84+
run: pnpm ty "!@test/openapi-ts"
5385

54-
- name: Test packages
55-
run: pnpm test --filter="@hey-api/**" --filter="@test/**"
86+
- name: Run type check (heavy tests)
87+
run: pnpm ty "@test/openapi-ts"
5688

57-
- name: Test examples
58-
if: matrix.node-version == '24.10.0' && matrix.os == 'ubuntu-latest'
59-
run: pnpm test --filter="@example/**"
89+
- name: Run tests
90+
run: pnpm test
6091

6192
- name: Publish preview packages
62-
if: github.event_name == 'pull_request' && matrix.node-version == '24.10.0' && matrix.os == 'ubuntu-latest'
93+
if: matrix.is-primary && github.event_name == 'pull_request'
6394
run: ./scripts/publish-preview-packages.sh
6495
env:
6596
TURBO_SCM_BASE: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || github.event.before }}

.github/workflows/contributors.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@ on:
77

88
jobs:
99
update:
10-
runs-on: ${{ matrix.os }}
11-
strategy:
12-
matrix:
13-
os: [ubuntu-latest]
10+
runs-on: ubuntu-latest
1411
steps:
1512
- uses: actions/checkout@v6.0.2
1613

.github/workflows/coverage.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,32 +11,29 @@ on:
1111
- docs/**
1212

1313
concurrency:
14-
group: ${{ github.workflow }}=${{ github.head_ref }}
14+
group: ${{ github.workflow }}-${{ github.ref }}
1515
cancel-in-progress: true
1616

1717
jobs:
1818
upload:
1919
name: Upload
20-
runs-on: ${{ matrix.os }}
21-
strategy:
22-
matrix:
23-
os: [ubuntu-latest]
24-
node-version: ['24.10.0']
20+
runs-on: ubuntu-latest
21+
env:
22+
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
23+
TURBO_TELEMETRY_DISABLED: 1
24+
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
2525
steps:
2626
- uses: actions/checkout@v6.0.2
2727

28-
- uses: pnpm/action-setup@v4.2.0
28+
- uses: pnpm/action-setup@v5.0.0
2929

3030
- uses: actions/setup-node@v6
3131
with:
32-
node-version: ${{ matrix.node-version }}
32+
node-version-file: '.nvmrc'
3333
cache: pnpm
3434

3535
- name: Install dependencies
36-
run: pnpm install
37-
38-
- name: Build packages
39-
run: pnpm build --filter="@hey-api/**"
36+
run: pnpm install --frozen-lockfile
4037

4138
- name: Run test coverage
4239
run: pnpm test:coverage
@@ -45,6 +42,6 @@ jobs:
4542
uses: codecov/codecov-action@v5
4643
with:
4744
token: ${{ secrets.CODECOV_TOKEN }}
48-
directory: ./packages/openapi-ts/coverage
45+
directory: ./coverage
4946
flags: unittests
5047
fail_ci_if_error: true

0 commit comments

Comments
 (0)