Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
8117 commits
Select commit Hold shift + click to select a range
2eb77fb
chore: update example and test snapshots
SukkaW Apr 22, 2026
d0f71cf
chore: make typescript happy
SukkaW Apr 22, 2026
932f905
fix: missing fetch/angular clients' types update
SukkaW Apr 22, 2026
e72ab28
fix: properly execute error interceptors
SukkaW Apr 22, 2026
e074588
fix: make angular client error response type optional
pullfrog[bot] Apr 22, 2026
1e71bef
chore: update example to latest
SukkaW Apr 22, 2026
895ba87
fix: avoid client-ky double error interceptors
SukkaW Apr 22, 2026
a21dac1
chore: make typescript happy
SukkaW Apr 22, 2026
67510bc
chore: update example to latest
SukkaW Apr 22, 2026
e728843
chore: update test snapshot
SukkaW Apr 22, 2026
e44e334
chore(docs): update contributors list
github-actions[bot] Apr 23, 2026
084de63
Create popular-years-tickle.md
mrlubos Apr 23, 2026
d8991cc
Merge pull request #3812 from hey-api/copilot/fix-biome-lint-apply-flag
mrlubos Apr 23, 2026
c852bba
docs: update sponsors copy
mrlubos Apr 23, 2026
8b02fcb
Merge pull request #3815 from hey-api/docs/sponsors-copy
mrlubos Apr 23, 2026
7dc011a
chore(deps): update pnpm/action-setup action to v6
renovate[bot] Apr 24, 2026
4a598f7
perf(shared): replace home-baked deepEqual w/ `dequal`
SukkaW Apr 25, 2026
b192604
perf(codegen-core): fast path for name check
SukkaW Apr 25, 2026
de0cdfd
perf(codegen-core): walk topology & symbol registry improvements
SukkaW Apr 25, 2026
5796094
chore: add cloudflare spec
mrlubos Apr 25, 2026
deefadc
perf(codegen-core): faster set intersection
SukkaW Apr 25, 2026
81a0271
Merge pull request #3821 from hey-api/chore/spec-cloudflare
mrlubos Apr 25, 2026
a8d3d58
chore: add clerk spec
mrlubos Apr 25, 2026
d689a60
perf(shared): build graph in dfs order
SukkaW Apr 25, 2026
530b3fa
Merge pull request #3822 from hey-api/chore/spec-clerk
mrlubos Apr 25, 2026
54ad166
perf(shared): minor optimization
SukkaW Apr 25, 2026
692df58
perf(shared): reduce `walkTopological` loop
SukkaW Apr 25, 2026
00d2de8
perf(shared): optimize deepEqual
SukkaW Apr 25, 2026
1148167
chore: remove dead methods
SukkaW Apr 25, 2026
1970267
Update packages/shared/src/graph/walk.ts
SukkaW Apr 25, 2026
c640790
Update packages/codegen-core/src/symbols/registry.ts
SukkaW Apr 25, 2026
af4f397
fix: proper cache eviction and avoid repeat computation
SukkaW Apr 25, 2026
5f24430
chore: drop un-used `dequal`
SukkaW Apr 25, 2026
ee4f856
Update packages/shared/src/openApi/shared/utils/deepEqual.ts
SukkaW Apr 25, 2026
d066aee
feat(@tanstack/query): generate type-safe setQueryData helpers
inas-sirhan Apr 25, 2026
5ce09dd
address pullfrog review: expand changeset, drop redundant enabled guards
inas-sirhan Apr 25, 2026
62dd36e
perf: drop now unused `reverseNodeDependencies`
SukkaW Apr 25, 2026
286ba68
test: remove outdated tests
SukkaW Apr 25, 2026
4344e2f
Merge branch 'main' into improve-speed
mrlubos Apr 25, 2026
06728f5
chore: add clerk and cloudflare to inputs
mrlubos Apr 25, 2026
5eb5f5d
chore: format
mrlubos Apr 25, 2026
b05bfd7
docs: add changesets
mrlubos Apr 25, 2026
93d9698
Merge pull request #3823 from SukkaW/improve-speed
mrlubos Apr 25, 2026
77f9d6e
Merge branch 'main' into feat/tanstack-set-query-data
mrlubos Apr 25, 2026
1ef4af0
docs: add changesets
mrlubos Apr 25, 2026
7bac213
chore: clean up
mrlubos Apr 25, 2026
b88e8b5
docs: add changesets
mrlubos Apr 26, 2026
7b53593
Merge pull request #3813 from hey-api/copilot/fix-typescript-errors-z…
mrlubos Apr 26, 2026
3f24ea1
Merge branch 'main' into fix/runtime-config-path
mrlubos Apr 26, 2026
2f8f1dd
test: remove snapshots
mrlubos Apr 26, 2026
8c4e726
chore: handle all relative paths the same way
mrlubos Apr 26, 2026
98559ea
fix: make options optional in setQueryData/useSetQueryData when opera…
pullfrog[bot] Apr 26, 2026
0ebb851
fix: make options param optional in setQueryData/useSetQueryData when…
pullfrog[bot] Apr 26, 2026
c80f833
docs: add changesets
mrlubos Apr 26, 2026
1217ba8
fix: reorder setQueryData params to allow optional options at end
pullfrog[bot] Apr 26, 2026
2227686
ci: fix checks
mrlubos Apr 26, 2026
73cc1f2
Merge pull request #3770 from inas-sirhan/fix/runtime-config-path
mrlubos Apr 26, 2026
b0602a5
Merge branch 'main' of https://github.com/hey-api/openapi-ts into fea…
mrlubos Apr 26, 2026
07988db
test: update snapshots
mrlubos Apr 26, 2026
18a0f99
test: update snapshots
mrlubos Apr 26, 2026
eaa3076
refactor: make options first param, always required, accepts undefine…
pullfrog[bot] Apr 26, 2026
f3b6ff3
Merge pull request #3824 from inas-sirhan/feat/tanstack-set-query-data
mrlubos Apr 26, 2026
9c47fe3
perf(shared): walk declaration in one pass
SukkaW Apr 26, 2026
253a0dd
chore(deps): update dependency @types/bun to v1.3.13
renovate[bot] Apr 27, 2026
c7a136f
test: move tanstack query tests to a separate folder
mrlubos Apr 26, 2026
1934aae
perf(codegen-core): reduce cache key overhead in symbol registry
SukkaW Apr 26, 2026
fb73f18
perf(json-schema-ref): replace `yaml` w/ `js-yaml`
SukkaW Apr 26, 2026
2687491
perf(graph): avoid repeat loop over groups
SukkaW Apr 26, 2026
a19bb41
perf(registry): avoid repeat loops over indexKeySpace
SukkaW Apr 26, 2026
537d3b2
feat(openapi-ts): log write output file count and time
SukkaW Apr 26, 2026
3612127
perf(openapi-ts): write output in parallel
SukkaW Apr 26, 2026
6cdd106
feat(openapi-ts): log codegen time
SukkaW Apr 26, 2026
a867ee9
feat(openapi-python): log codegen and write time
SukkaW Apr 26, 2026
1968330
feat: log only print total time per job
SukkaW Apr 26, 2026
8d89cae
fix: use fileURLToPath for Windows-compatible chdir in vitest setup
pullfrog[bot] Apr 27, 2026
2eec0e7
perf(graph): avoid repeatedly looping graphs node
SukkaW Apr 27, 2026
b1f1ca5
chore(deps): update dependency @typescript/native-preview to v7.0.0-d…
renovate[bot] Apr 27, 2026
460e71c
Merge pull request #3825 from hey-api/refactor/test-tanstack-query
mrlubos Apr 27, 2026
042ec36
Merge branch 'main' into improve-speed-2
mrlubos Apr 27, 2026
6e5249f
docs: add changesets
mrlubos Apr 28, 2026
3c85ffb
Merge pull request #3828 from SukkaW/improve-speed-2
mrlubos Apr 28, 2026
50c5be9
Merge branch 'main' of https://github.com/hey-api/openapi-ts into fix…
mrlubos Apr 28, 2026
47bfc3e
chore: clean up types
mrlubos Apr 28, 2026
90da3f9
chore: add suggested fix
mrlubos Apr 28, 2026
0d388de
docs: add changesets
mrlubos Apr 28, 2026
9c39919
Merge pull request #3814 from SukkaW/fix-3150
mrlubos Apr 28, 2026
17a586c
docs: add spotlight
mrlubos Apr 28, 2026
6bb7660
Merge pull request #3833 from hey-api/docs/spotlight
mrlubos Apr 28, 2026
507fbd2
ci: release
github-actions[bot] Apr 28, 2026
8982b4f
Merge pull request #3807 from hey-api/changeset-release/main
mrlubos Apr 28, 2026
22b967e
chore: sync changelog [skip ci]
mrlubos Apr 28, 2026
8ac5c9f
docs: fix spotlight
mrlubos Apr 28, 2026
6874ac3
Merge pull request #3834 from hey-api/docs/spotlight-fix
mrlubos Apr 28, 2026
8bb8797
Merge pull request #3830 from hey-api/renovate/typescript-native-prev…
mrlubos Apr 28, 2026
e3063e7
Merge pull request #3829 from hey-api/renovate/bun-1.x
mrlubos Apr 28, 2026
8abb656
Merge branch 'main' into renovate/pnpm-action-setup-6.x
mrlubos Apr 29, 2026
982e431
Merge pull request #3774 from hey-api/renovate/pnpm-action-setup-6.x
mrlubos Apr 29, 2026
216ba90
chore(docs): update contributors list
github-actions[bot] Apr 30, 2026
39bf645
fix(transformers): use symbols for additionalProperties key variables
pullfrog[bot] Apr 30, 2026
574d4d3
fix(ts-dsl): scope for-loop variable to loop block
pullfrog[bot] Apr 30, 2026
e744e29
fix(transformers): use symbol for additionalProperties key variable
pullfrog[bot] Apr 30, 2026
d880caa
Create purple-jars-design.md
mrlubos Apr 30, 2026
b3c2755
Merge pull request #3841 from hey-api/pullfrog/3838-fix-duplicate-key…
mrlubos Apr 30, 2026
c1b6ac1
chore: add changeset for @hey-api/json-schema-ref-parser
pullfrog[bot] Apr 30, 2026
32a298b
Update bump-json-schema-ref-parser.md
mrlubos Apr 30, 2026
290ef7c
Merge pull request #3843 from hey-api/pullfrog/3836-bump-json-schema-…
mrlubos Apr 30, 2026
9e12ff3
ci: release
github-actions[bot] Apr 30, 2026
f31d3d6
feat(zod): implement response transformer
SukkaW May 3, 2026
665fb3b
feat(sdk): add `zod` to new transformer type
SukkaW May 3, 2026
03db4a4
feat(sdk): adapt response transformer to new format
SukkaW May 3, 2026
b2a3b8f
test(zod): add test cases for zod transformer support
SukkaW May 3, 2026
5a4d8db
docs(zod): document that zod as transformer is a thing now
SukkaW May 3, 2026
ad5ff61
Merge pull request #3842 from hey-api/changeset-release/main
mrlubos May 4, 2026
c375c58
chore(deps): update dependency @typescript/native-preview to v7.0.0-d…
renovate[bot] May 4, 2026
1721aa6
Merge pull request #3849 from hey-api/renovate/typescript-native-prev…
mrlubos May 4, 2026
d1dacb5
Initial plan
Copilot May 6, 2026
ecce682
fix: query apiKey auth lost when request has no query parameters
Copilot May 6, 2026
a6e6681
fix(ts-dsl): cache LazyTsDsl result to preserve planner import alias …
awdr74100 May 7, 2026
dd718e7
fix(py-dsl): cache LazyPyDsl result to preserve planner import alias …
awdr74100 May 7, 2026
914a5ab
test(ts-dsl): add regression coverage for LazyTsDsl result caching
awdr74100 May 7, 2026
1285e02
feat(@tanstack/query): generate mutation keys for mutation options
slmnsh May 9, 2026
76e63c9
fix(@tanstack/query): mutation key types
slmnsh May 9, 2026
c77dab2
fix(@tanstack/query): fixed types for mutation key
slmnsh May 9, 2026
dbe0a73
chore(@tanstack/query): updated examples
slmnsh May 9, 2026
c8fa27d
fix(@tanstack/query): added body in mutationKey
slmnsh May 9, 2026
708410a
docs(@tanstack/query): added mutation key section
slmnsh May 9, 2026
2fabada
chore(deps): update dependency @typescript/native-preview to v7.0.0-d…
renovate[bot] May 11, 2026
ce462e2
chore(deps): update dependency @vitejs/plugin-vue to v6.0.6
renovate[bot] May 11, 2026
87c4960
Merge pull request #3863 from hey-api/renovate/typescript-native-prev…
mrlubos May 11, 2026
6fb9f64
Merge pull request #3864 from hey-api/renovate/vitejs-plugin-vue-6.x
mrlubos May 11, 2026
c61ac77
chore(deps): update dependency @vue/test-utils to v2.4.10
renovate[bot] May 11, 2026
f70cabe
Merge pull request #3866 from hey-api/renovate/vue-test-utils-2.x
mrlubos May 11, 2026
2506e60
chore(deps): update dependency @nuxt/test-utils to v4.0.3
renovate[bot] May 11, 2026
39c24ec
Merge pull request #3848 from hey-api/renovate/nuxt-test-utils-4.x
mrlubos May 11, 2026
3a4b8d0
chore(deps): update dependency @vitejs/plugin-vue-jsx to v5.1.5
renovate[bot] May 11, 2026
66720d9
Merge pull request #3865 from hey-api/renovate/vitejs-plugin-vue-jsx-5.x
mrlubos May 11, 2026
f5fb019
feat: new docs
mrlubos Apr 18, 2026
32fb079
Merge branch 'main' of https://github.com/hey-api/openapi-ts into doc…
mrlubos May 13, 2026
26a6525
chore: update lock file
mrlubos May 13, 2026
109f8d9
chore: remove favicon
mrlubos May 13, 2026
2322860
Merge pull request #3872 from hey-api/docs/astro
mrlubos May 13, 2026
9fa6e07
chore(docs): update contributors list
github-actions[bot] May 14, 2026
3e25e73
chore: remove VitePress
mrlubos May 14, 2026
109ed12
Merge pull request #3873 from hey-api/docs/remove-vitepress
mrlubos May 14, 2026
7d01714
docs: a bag of improvements
mrlubos May 14, 2026
4211a11
Merge pull request #3874 from hey-api/docs/pass-2
mrlubos May 14, 2026
5e833c6
docs: move blockquote
mrlubos May 14, 2026
fcb1c4a
docs: bag of improvements
mrlubos May 14, 2026
071d094
Merge pull request #3875 from hey-api/docs/pass-3
mrlubos May 14, 2026
5de07fd
docs: move assets to public
mrlubos May 14, 2026
36ed12b
Merge pull request #3876 from hey-api/docs/pass-4
mrlubos May 14, 2026
87d78c6
docs: do not gitignore assets
mrlubos May 14, 2026
e5388e8
Merge pull request #3877 from hey-api/docs/pass-5
mrlubos May 14, 2026
4757b29
chore: gitignore assets
mrlubos May 14, 2026
6353658
Merge pull request #3878 from hey-api/docs/pass-6
mrlubos May 14, 2026
b3469bb
Merge remote-tracking branch 'upstream/main'
slmnsh May 14, 2026
3b06425
docs(@tanstack/query): updated code example format
slmnsh May 14, 2026
d86680a
chore: polish the feature
mrlubos May 14, 2026
5ccc2bc
test: update snapshots
mrlubos May 14, 2026
0d63bb1
Merge pull request #3858 from slmnsh/main
mrlubos May 14, 2026
c0bdba9
docs: add border to download stats
mrlubos May 14, 2026
7701ed1
Merge pull request #3882 from hey-api/docs/pass-7
mrlubos May 14, 2026
d4bf720
docs: more polish
mrlubos May 14, 2026
9e52e26
Merge pull request #3885 from hey-api/docs/pass-8
mrlubos May 14, 2026
abc8ceb
fix: validators enum type
mrlubos May 14, 2026
72f15a1
Merge pull request #3884 from hey-api/fix/validators-enum-type
mrlubos May 14, 2026
ea8ac07
chore: update contributors list
github-actions[bot] May 15, 2026
f981e38
Merge branch 'main' of https://github.com/hey-api/openapi-ts into fix…
mrlubos May 15, 2026
7dee3c2
test: add Python DSL node test
mrlubos May 15, 2026
1602916
Merge pull request #3855 from awdr74100/fix/lazy-tsdsl-result-cache
mrlubos May 15, 2026
4a28f84
docs: add Photon to sponsors
mrlubos May 15, 2026
dee264d
Merge pull request #3887 from hey-api/docs/sponsors-add-photon
mrlubos May 15, 2026
fd95d27
docs: do not round up stats
mrlubos May 15, 2026
8520f3b
Merge pull request #3890 from hey-api/docs/fix-stats-format
mrlubos May 15, 2026
455bef2
Merge branch 'main' into copilot/fix-apikey-auth-issue
mrlubos May 15, 2026
d666cf8
chore: add return type to setAuthParams function
mrlubos May 15, 2026
a6ee7eb
chore: add changesets
mrlubos May 15, 2026
02280f8
Merge pull request #3853 from hey-api/copilot/fix-apikey-auth-issue
mrlubos May 15, 2026
a6304b4
Merge branch 'main' of https://github.com/hey-api/openapi-ts into zod…
mrlubos May 15, 2026
d9b646f
test: update snapshots
mrlubos May 15, 2026
4277623
chore: update sdk types
mrlubos May 15, 2026
186ed9e
test: update snapshots
mrlubos May 15, 2026
2fab005
chore: simplify transformer config
mrlubos May 15, 2026
5af6914
chore: discriminate on function nodes
mrlubos May 15, 2026
ef72e89
chore: update contributors list
github-actions[bot] May 16, 2026
2c00b32
chore: support valibot as transformer
mrlubos May 16, 2026
6770f78
test: update snapshots
mrlubos May 16, 2026
31c7532
docs: add transformers section
mrlubos May 16, 2026
63eb76c
docs: rename options heading to plugins
mrlubos May 16, 2026
c791f91
Merge pull request #3847 from SukkaW/zod-as-response-transformer
mrlubos May 16, 2026
4b2f954
docs: reorder landing page blocks
mrlubos May 16, 2026
dd22a94
docs: update founder statement
mrlubos May 16, 2026
e46d0a0
Merge pull request #3891 from hey-api/docs/pass-9
mrlubos May 16, 2026
d1ec395
docs: fix sitemap link
mrlubos May 16, 2026
6018b8b
Merge pull request #3892 from hey-api/docs/pass-10
mrlubos May 16, 2026
fdf07b4
docs: fix spacing in title
mrlubos May 16, 2026
8b3f993
Merge pull request #3893 from hey-api/docs/pass-11
mrlubos May 16, 2026
169ed0b
docs: fix spacing in title
mrlubos May 16, 2026
0b88b37
Merge pull request #3894 from hey-api/docs/pass-12
mrlubos May 16, 2026
ca57aff
chore: update @hey-api/starlight-llms-txt
mrlubos May 17, 2026
a1c42ef
Merge pull request #3895 from hey-api/docs/pass-13
mrlubos May 17, 2026
675a1b1
chore(deps): update dependency oxfmt to v0.49.0
renovate[bot] May 17, 2026
e64a4df
chore(deps): update pnpm to v11
renovate[bot] May 17, 2026
7af0487
Merge pull request #3896 from hey-api/renovate/oxfmt-0.x
mrlubos May 17, 2026
edf3411
docs: update contributing links
mrlubos May 17, 2026
47a4a28
docs: add page rank meta tag
mrlubos May 17, 2026
6e79ff6
Merge pull request #3898 from hey-api/docs/pass-14
mrlubos May 17, 2026
402bce1
ci: approve build scripts for pnpm 11
pullfrog[bot] May 17, 2026
c9424d2
chore: disallow dependency build scripts
pullfrog[bot] May 17, 2026
665ff27
ci: pin actions
mrlubos May 17, 2026
26e94e7
Merge pull request #3897 from hey-api/renovate/pnpm-11.x
mrlubos May 17, 2026
3abcd7d
Merge pull request #3900 from hey-api/ci/actions-pin
mrlubos May 17, 2026
5d68078
chore: bump turbo
mrlubos May 17, 2026
c52c1a8
Merge pull request #3901 from hey-api/chore/turbo-bump
mrlubos May 17, 2026
427b2b4
ci: release
github-actions[bot] May 17, 2026
4951d45
Merge pull request #3881 from hey-api/changeset-release/main
mrlubos May 18, 2026
0509e18
ci: fix release workflow
mrlubos May 18, 2026
d461db9
Merge pull request #3904 from hey-api/ci/fix-workflow
mrlubos May 18, 2026
9927627
chore: update pydantic syntax
mrlubos May 17, 2026
75ed76b
chore: fix typecheck
mrlubos May 18, 2026
16676bd
test: update snapshots
mrlubos May 18, 2026
0c69e38
Merge pull request #3905 from hey-api/chore/pydantic
mrlubos May 18, 2026
cfd6b67
refactor: typescript plugin
mrlubos May 18, 2026
9634280
Merge pull request #3906 from hey-api/refactor/typescript-plugin
mrlubos May 18, 2026
a61761a
fix(params): guard __proto__, constructor, and prototype sub-keys
programsurf May 18, 2026
3aabff2
refactor: resolver node type
mrlubos May 18, 2026
216ed84
Merge pull request #3907 from hey-api/refactor/types-resolver-nodes
mrlubos May 18, 2026
b53197e
docs: add tanstack start plugin
mrlubos May 18, 2026
46cb6ef
Merge pull request #3910 from hey-api/docs/tanstack-start-plugin
mrlubos May 18, 2026
0b3e0a6
fix(params): use Object.create(null) for slot objects to prevent prot…
programsurf May 19, 2026
22498f9
chore: update snapshots and examples to use Object.create(null)
programsurf May 19, 2026
e79a80a
Merge commit from fork
mrlubos May 19, 2026
7c330bc
refactor: plugin hooks order
mrlubos May 19, 2026
0c865e1
Merge pull request #3913 from hey-api/refactor/plugin-hooks-order
mrlubos May 19, 2026
778b787
chore: update contributors list
github-actions[bot] May 20, 2026
58962a0
fix(client): SSE iterator's TReturn was the endpoint's HTTP error union
kitlangton May 20, 2026
b4dcf59
refactor: pydantic dsl
mrlubos May 19, 2026
e0bd036
Merge pull request #3920 from hey-api/refactor/pydantic-plugin-dsl
mrlubos May 21, 2026
3410d78
refactor: rename expression to chain
mrlubos May 21, 2026
cde815a
Merge pull request #3921 from hey-api/refactor/zod-expression-chain
mrlubos May 21, 2026
53a471a
refactor: valibot plugin
mrlubos May 21, 2026
96b4e92
Merge pull request #3922 from hey-api/refactor/valibot-plugin
mrlubos May 22, 2026
ea02ad2
Merge branch 'main' into fix/sse-iterator-treturn-miswiring
mrlubos May 22, 2026
a19b3a4
docs: update changesets
mrlubos May 22, 2026
2702ce2
Merge pull request #3919 from kitlangton/fix/sse-iterator-treturn-mis…
mrlubos May 22, 2026
0d15cc8
chore: update contributors list
github-actions[bot] May 23, 2026
3327f29
feat(sdk): implement sdk metadata attachments
SukkaW May 23, 2026
b554982
fix(sdk): properly emit OpenAPI `tags`
SukkaW May 23, 2026
312f3e7
feat(sdk): partial metadata support
SukkaW May 23, 2026
28dcb6e
fix(sdk): drop request schema from metadata object for now
SukkaW May 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
5 changes: 5 additions & 0 deletions .changeset/better-cameras-sip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hey-api/openapi-ts": patch
---

**plugin(@hey-api/client-axios)**: fix: correct return type in SSE
107 changes: 107 additions & 0 deletions .changeset/changelog.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
import { getInfo, getInfoFromPullRequest } from '@changesets/get-github-info';

/**
* @returns {string}
*/
function getRepo() {
return 'hey-api/openapi-ts';
}

/** @type {import("@changesets/types").ChangelogFunctions} */
export default {
getDependencyReleaseLine: async (_, dependenciesUpdated) => {
if (!dependenciesUpdated.length) {
return '';
}

const list = dependenciesUpdated.map(
(dependency) => ` - ${dependency.name}@${dependency.newVersion}`,
);

return ['### Updated Dependencies:', ...list].join('\n');
},
getReleaseLine: async (changeset) => {
const repo = getRepo();

/** @type number | undefined */
let prFromSummary;
/** @type string | undefined */
let commitFromSummary;
/** @type string[] */
const usersFromSummary = [];

// Remove PR, commit, author/user lines from summary
const replacedChangelog = changeset.summary
.replace(/^\s*(?:pr|pull|pull\s+request):\s*#?(\d+)/im, (_, pr) => {
const num = Number(pr);
if (!Number.isNaN(num)) {
prFromSummary = num;
}
return '';
})
.replace(/^\s*commit:\s*([^\s]+)/im, (_, commit) => {
commitFromSummary = commit;
return '';
})
.replace(/^\s*(?:author|user):\s*@?([^\s]+)/gim, (_, user) => {
usersFromSummary.push(user);
return '';
})
.trim();

const links = await (async () => {
if (prFromSummary !== undefined) {
let { links } = await getInfoFromPullRequest({
pull: prFromSummary,
repo,
});
if (commitFromSummary) {
const shortCommitId = commitFromSummary.slice(0, 7);
links = {
...links,
commit: `[\`${shortCommitId}\`](https://github.com/${repo}/commit/${commitFromSummary})`,
};
}
return links;
}
const commitToFetchFrom = commitFromSummary || changeset.commit;
if (commitToFetchFrom) {
let { links } = await getInfo({ commit: commitToFetchFrom, repo });
const shortCommitId = commitToFetchFrom.slice(0, 7);
links = {
...links,
commit: `[\`${shortCommitId}\`](https://github.com/${repo}/commit/${commitToFetchFrom})`,
};
return links;
}
return {
commit: null,
pull: null,
user: null,
};
})();

const users = usersFromSummary.length
? usersFromSummary
.map((userFromSummary) => `[@${userFromSummary}](https://github.com/${userFromSummary})`)
.join(', ')
: links.user;

const metadata = [
links.pull === null ? '' : ` (${links.pull})`,
links.commit === null ? '' : ` (${links.commit})`,
users === null ? '' : ` by ${users}`,
].join('');

// Split summary into first line and the rest
const [firstLine, ...rest] = replacedChangelog.split('\n');
const restSummary = rest.join('\n').trim();

// No code block conversion: preserve original triple backtick code blocks and indentation
let releaseLine = `\n- ${firstLine}${metadata}`;
if (restSummary) {
releaseLine += '\n\n' + restSummary;
}
return releaseLine;
},
};
14 changes: 14 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
"access": "public",
"baseBranch": "main",
"changelog": "./changelog.js",
"commit": false,
"fixed": [],
"ignore": [],
"linked": [],
"updateInternalDependencies": "minor",
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
"onlyUpdatePeerDependentsWhenOutOfRange": true
}
}
5 changes: 5 additions & 0 deletions .changeset/cool-suns-travel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hey-api/openapi-ts": patch
---

**plugin(@hey-api/client-ofetch)**: fix: correct return type in SSE
5 changes: 5 additions & 0 deletions .changeset/cuddly-papayas-laugh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hey-api/shared": patch
---

**types**: export `ResolverNodes` type on `Plugin`
5 changes: 5 additions & 0 deletions .changeset/grumpy-papayas-film.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hey-api/openapi-ts": patch
---

**plugin(@hey-api/client-fetch)**: fix: correct return type in SSE
5 changes: 5 additions & 0 deletions .changeset/late-shirts-repeat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hey-api/shared": patch
---

**plugin**: expose getHooks method
5 changes: 5 additions & 0 deletions .changeset/polite-feet-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hey-api/openapi-ts": patch
---

**plugin(@hey-api/client-ky)**: fix: correct return type in SSE
5 changes: 5 additions & 0 deletions .changeset/red-weeks-jump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hey-api/openapi-ts": patch
---

**plugin(@hey-api/client-next)**: fix: correct return type in SSE
5 changes: 5 additions & 0 deletions .changeset/sse-iterator-return-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hey-api/openapi-ts": patch
---

**plugin(@hey-api/client-angular)**: fix: correct return type in SSE
8 changes: 4 additions & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
root = true

[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = lf
indent_size = 2
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
21 changes: 0 additions & 21 deletions .eslintrc.json

This file was deleted.

5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
* text=auto eol=lf
bun.lockb linguist-generated=true
package-lock.json linguist-generated=true
pnpm-lock.yaml linguist-generated=true
yarn.lock linguist-generated=true
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github:
- hey-api
42 changes: 42 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Bug report
description: Report an issue with the project.

labels:
- bug 🔥

body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report! Please do your best to fill out as much information as possible.

- type: textarea
id: description
attributes:
label: Description
description: Please check if there is an existing bug report before creating a new issue. If you intend to submit a pull request to fix this issue, let us know in the description.
placeholder: Bug description
validations:
required: true

- type: textarea
id: config
attributes:
label: Reproducible example or configuration
description: Please provide a reproducible StackBlitz example, your configuration file, or CLI command used to recreate the issue.
placeholder: https://stackblitz.com/edit/hey-api-client-fetch-example
value: https://stackblitz.com/edit/hey-api-client-fetch-example

- type: textarea
id: openapi-spec
attributes:
label: OpenAPI specification (optional)
description: Minimal OpenAPI specification needed to recreate the issue.
placeholder: OpenAPI Specification

- type: textarea
id: system-info
attributes:
label: System information (optional)
description: Any additional relevant system information. This may include OS, browser, NPM version, Node.js version, etc.
placeholder: System information
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Feature Request

description: Suggest a new feature for the project.

labels:
- feature 🚀

body:
- type: markdown
attributes:
value: |
Thanks for taking the time to request a new feature! Please ensure your feature request has enough information so maintainers can decide if it will be worked on.

- type: textarea
id: description
attributes:
label: Description
description: Please provide a clear and concise description of the proposed feature. The more information you can provide, the better.
placeholder: Feature description
validations:
required: true
Loading
Loading