Releases: orval-labs/orval
Releases · orval-labs/orval
Release 7.13.0
7.13.0 (2025-09-28)
- Create release.yaml (57d4d6a)
- Update release.yaml (546673c)
- Update release.yaml (2fd19a4)
- chore: .npmignore not used when files field (package.json) is set (#2398) (7190ccd), closes #2398
- chore: set published packages to access=public (#2399) (ec35d06), closes #2399
- chore: update samples (#2400) (eedc1dd), closes #2400
- chore(deps): bump actions/checkout from 4 to 5 (#2405) (d5e7eff), closes #2405
- fix: enabled unsafe url resolving when validating and resolving specs (#2404) (b76ec5b), closes #2404
- feat: Add useOperationIdAsQueryKey option for query key generation (#2314) (bfd426b), closes #2314 #2096
v7.12.2
What's Changed
- feat: remove tslint by @snebjorn in #2270
- docs: needs globally installed prettier by @snebjorn in #2269
- feat(angular): support paramsSerializer by @snebjorn in #2275
- fix(core): clean remove empty directories by @melloware in #2276
- fix(core): export DeepNonNullable for use in clients, fixes #2279 by @snebjorn in #2280
- feat(core): Look for config files with the .cjs extension by @jamesburns-rts in #2285
- docs: improved accessibility and semantic HMTL in docs by @chcederquist in #2296
- feat(msw): exposed RequestHandlerOptions on mock handlers by @Georgegriff in #2300
- feat: support uint64 type in
output.override.useBigInt
by @ptlthg in #2301 - docs: working mutationOptions example by @Akuukis in #2305
- feat: support colon in path for msw route registration by @bweston92 in #2307
- chore(deps): bump actions/checkout from 4 to 5 by @dependabot[bot] in #2313
- Missing consts and some export includes
,
; by @harish1094 in #2308 - feat: indexMockFiles now only exports mock handlers by @snebjorn in #2274
- fix: case-senstive for generated imports by @ung0v in #2317
- feat(fetch): added support for urlEncodeParameters by @chcederquist in #2292
- fix: generation of nested arrays in faker when can be null by @Georgegriff in #2328
- docs: improving documentation language, Title Case and clarity by @chcederquist in #2311
- chore: configured eol=LF by @snebjorn in #2319
- chore: updated yarn to 4.9.3 by @snebjorn in #2320
- chore: updated and migrated turbo to 2.5.6 by @snebjorn in #2321
- chore: simplify and reuse tsup config by @snebjorn in #2323
- chore(ci): enable caching of node_modules by @snebjorn in #2324
- chore: update and configure vitest by @snebjorn in #2331
- fix(core): fixed broken void to null unification (revert #2229) by @soartec-lab in #2333
- fix(zod): zod use dates generation by @D-Kuzin in #2338
- chore(deps): bump typedoc-plugin-markdown from 4.8.0 to 4.8.1 by @dependabot[bot] in #2346
- chore(deps-dev): bump @typescript-eslint/eslint-plugin from 8.38.0 to 8.41.0 by @dependabot[bot] in #2345
- chore(deps-dev): bump dotenv-cli from 7.4.2 to 10.0.0 by @dependabot[bot] in #2347
- chore(deps): bump @ibm-cloud/openapi-ruleset from 1.31.1 to 1.32.1 by @dependabot[bot] in #2344
- Update orval to Swagger Parser v12.0.0 by @LiteracyFanatic in #2350
- fix(axios): provide type parameter when inferring mutator
options
type by @hahanein in #2352 - fix(mock): prevent multipleOf undefined in MSW mock generation for integer types by @suzukisan22 in #2354
- Upgrade faker to v10 by @Julien-Molina in #2358
- chore(ci): update to setup-node@5 by @snebjorn in #2360
- Adds missing packages and @types packages by @snebjorn in #2336
- Enables goto source/reference/implementation by @snebjorn in #2334
- chore: adds clean and nuke scripts to remove generated files by @snebjorn in #2364
- fix(mock): add Faker v9 multipleOf support for number type by @suzukisan22 in #2365
- chore: setup eslint by @snebjorn in #2367
- chore: updated samples by @snebjorn in #2370
- chore: applied eslint auto-fixers by @snebjorn in #2371
- chore(ci): now checks for out of date samples by @snebjorn in #2369
- chore: use devEngines to indicate that node24 is required to build by @snebjorn in #2372
- chore: one workspace to rule them all by @snebjorn in #2373
- chore: change to tsdown as tsup is unmaintained by @snebjorn in #2378
- fix(orval): corrected path to d.ts types by @snebjorn in #2379
- chore: only throw Error and only use exit() in shebang files by @snebjorn in #2380
- fix(release): adjusted config to work with yarn and updated release-it by @snebjorn in #2384
- fix(cli): orval cli options now correctly list their input values by @snebjorn in #2385
- fix(release): removes dotenv-cli as it was cauing issues with publishing to npm by @snebjorn in #2386
- fix(release): release-it should now be able release to npm by @snebjorn in #2387
- chore: disable turbo deamon to fix file locks in node_modules by @snebjorn in #2388
- chore: remove lint and test from husky hook by @snebjorn in #2389
- chore: use yarn to run clean/nuke scripts by @snebjorn in #2390
- chore: simplified the PR template by @snebjorn in #2391
- chore: removes yarn restriction as release-it uses npm by @snebjorn in #2392
- chore: fixes release-it error about not bumping the version by @snebjorn in #2393
- feat(fetch): add ability to throw on error by @AllieJonsson in #2168
- chore: disable postinstall scripts to prevent supply chain attacks by @snebjorn in #2394
New Contributors
- @jamesburns-rts made their first contribution in #2285
- @ptlthg made their first contribution in #2301
- @Akuukis made their first contribution in #2305
- @harish1094 made their first contribution in #2308
- @ung0v made their first contribution in #2317
- @D-Kuzin made their first contribution in #2338
- @LiteracyFanatic made their first contribution in #2350
- @hahanein made their first contribution in #2352
- @suzukisan22 made their first contribution in #2354
- @Julien-Molina made their first contribution in #2358
Full Changelog: v7.11.2...v7.12.0
Release 7.11.2
7.11.2 (2025-08-02)
- feat(fetch): changed default value of
override.fetch.explode
fromfalse
totrue
to clarify its (ab195d2), closes #2272 - fix(angular): incorrect return type, closes #2264 (#2265) (7cdc2aa), closes #2264 #2265
- fix(fetch):
explode
params only targetArray
schema (#2271) (6d69973), closes #2271 - chore: cleaning up your development environment (#2267) (014aa9b), closes #2267
- chore(deps): bump debug from 4.4.0 to 4.4.1 (#2259) (39ae9c0), closes #2259
- chore(deps): bump esbuild from 0.25.1 to 0.25.8 (#2258) (c5a9db1), closes #2258
Release 7.11.1
Release 7.11.0
7.11.0 (2025-07-31)
- feat: add useSWRMutationForGet option for SWR custom hook generation (#2233) (22e6dc0), closes #2233
- feat: added jsonReviver param to fetch config (#2207) (2d15a71), closes #2207
- feat: added output.overrides.namingConvention param to orval config, … (#2125) (6e55fba), closes #2125
- feat: generate
zod.literal
when schema hasconst
value (#2199) (981fdf6), closes #2199 - feat: params of format date-time are now stringified using toISOString when useDates === true (#2213 (70eac77), closes #2213
- feat: use null over void for responses with no type, fixes #2226 (#2229) (b015a1e), closes #2226 #2229
- feat(angular): added missing HttpClient options, closes #2235 (#2241) (9d97a61), closes #2235 #2241
- feat(angular): use inject function over constructor injection, closes #2224 (#2240) (372dd32), closes #2224 #2240
- feat(zod): add output.orverride.zod.TimeOptions option (#2225) (4732e8e), closes #2225
- fix: Angular client props nullability (#2244) (edd89ba), closes #2244
- fix: assert query version takes overriden as priority (#2179) (60e9db6), closes #2179
- fix: generate no value zod schema on zod v4. #2249 (#2250) (2c21477), closes #2249 #2250 #2249
- fix: oneOf required fields (#2202) (f8a6257), closes #2202
- fix: prevent unwanted response merging on same schema value (#2178) (ee96e2b), closes #2178
- fix: remove transparency from search results and recents on hover (#2220) (41fd103), closes #2220
- fix: replace instanceof Array with Array.isArray() for type safety #2187 (#2189) (94a5515), closes #2187 #2189
- fix: use zod.union for oneOf and anyOf (#2219) (1c4bf19), closes #2219
- fix(angular): fixes blob and text responses being treated as json, fixes #2235 (#2242) (cc400e9), closes #2235 #2242
- fix(core): import aliases for crossfiles refs with same names (#2198) (068f84a), closes #2198
- fix(docs): correct broken Algolia search links (#1523) (#2214) (65f84a6), closes #1523 #2214 #1523
- fix(docs): update Next.js to v15 with compatibility for CommonJS (#2232) (68cc51f), closes #2232
- fix(fetch): respect OpenAPI 3.0 explode default value for query params (#2143) (1626b34), closes #2143
- fix(ndjson): fix issues with streaming ndjson (#2167) (f3b9204), closes #2167
- fix(query): make queryKey function parameters optional (#2173) (3c96774), closes #2173
- fix(query): support generating queries for POST when operation options are set (#2188) (829abb0), closes #2188
- chore: fixes build error in @orval/mcp, closes #2237 (#2238) (8c33c04), closes #2237 #2238
- chore: updated angular sample to angular v20 (from v12), closes #2234 (#2239) (8092b88), closes #2234 #2239
- chore(angular): setup msw and vitest (#2248) (d0b6cec), closes #2248
- chore(deps): bump typedoc from 0.28.0 to 0.28.7 (#2191) (960d784), closes #2191
- 2227-improvement-syntax (#2231) (09be2b3), closes #2231
- Fix for #2227 - correctly using the operations override (#2230) (0e981ba), closes #2227 #2230
- fix oneOf faker generation (#2184) (#2211) (1b15e9b), closes #2184 #2211
- Fix/search transparency clean (#2221) (dc55a48), closes #2221
- docs(samples): update (3ae2111)
Release 7.10.0
7.10.0 (2025-06-12)
- feat: allow defining min and max ranges for mocked numbers and strings (#2150) (d919f9f), closes #2150
- feat: use multipleOf only if faker v9 is installed (#2142) (f64f202), closes #2142
- feat: implemented string format compatible with zod v3 and v4 (#2061) (f36a7b8), closes #2061
- feat(core): override JSDoc config to customize default documentation (#2084) (5b58b5e), closes #2084
- feat(zod): revert #1907 to not use discriminatedUnion (#2118) (d068f68), closes #2118 #1907
- feat(zod): add support for string format
time
(#2063) (c5d45fc), closes #2063 - feat(zod):
date
anddatetime
conpatible with v4 (#2062) (0c6fd5a), closes #2062 - feat(zod): in v4, use
strictObject()
instead ofobject().strict()
(#2068) (027ded8), closes #2068 - fix: use arrayMin and arrayMax as default values when minItems and maxItems are not defined (#2149) (72c21ca), closes #2149
- fix: use faker.number.float when mocking numbers and int when mocking integers (#2141) (98e0add), closes #2141
- fix: avoid to include read only properties to request with multipart/form-data (#2089) (#2144) (8ec7db2), closes #2089 #2144
- fix: use multipleOf when mocking numbers (#2134) (ace4695), closes #2134
- fix: use minItems and maxItems when mocking arrays (#2131) (55e36b6), closes #2131
- fix: use minLength and maxLength when mocking strings if defined (#2130) (48738ee), closes #2130
- fix: use override for text/plain response types (#2123) (44c8cf4), closes #2123
- fix: falsy examples were ignored (#2110) (6914ccc), closes #2110
- fix(core): an object member cannot be declared optional (#2111) (cecfb47), closes #2111
- fix(core): Updated queryParamsProp with allParamsOptional check (#2094) (9650171), closes #2094
- fix(core): add x-enum-descriptions support (#2072) (304cceb), closes #2072
- fix(core): fix pnpm catalog detection (#2067) (c290493), closes #2067
- fix(query): resolve UseInfiniteQueryOptions type error with TanStack Query v5.80.0+ (#2151) (725e6a6), closes #2151
- fix(query): allow useInfinite without useQuery in operation overrides (#2097) (d2baa51), closes #2097
- fix(query): override operation mutation and query conflict (#2079) (b1338c1), closes #2079
- fix(docs): update GeneratorVerbOptions link in output configuration documentation (#2100) (23cb52e), closes #2100
- fix(docs): update swagger-parser link in input configuration documentation (#2101) (e94e69b), closes #2101
- fix(docs): update swagger-parser link in input configuration documentation (#2095) (7aca565), closes #2095
- chore(release-it): upgrade (43cb955)
- chore(test): for no content responses with a default response (#2104) (ba1db79), closes #2104
- chore(deps-dev): bump @eslint/js from 9.25.1 to 9.28.0 (#2138) (7d160f7), closes #2138
- chore(deps-dev): bump @commitlint/cli from 19.7.1 to 19.8.1 (#2136) (05a3a60), closes #2136
- chore(deps-dev): bump eslint from 9.17.0 to 9.25.1 (#2077) (273a98a), closes #2077
- chore(deps-dev): bump tsup from 8.2.4 to 8.4.0 (#2076) (2630b1a), closes #2076
- chore(deps-dev): bump @eslint/js from 9.21.0 to 9.25.1 (#2074) (d8fcf82), closes #2074
- chore(deps): bump fs-extra from 11.2.0 to 11.3.0 (#2075) (0966a55), closes #2075
- chore(deps): Update docs to Orval 7.9.0 (#2064) (1918391), closes #2064
- add pnpm instructions (#2105) (ab50b23), closes #2105
- docs(samples): update (608f4f2)
Release 7.9.0
7.9.0 (2025-04-27)
- feat: support new client
mcp
server (#2015) (4319274), closes #2015 - feat(core): add better support for form-data arrays (#2026) (58ce907), closes #2026
- feat(core): add support for pnpm catalogs (#1989) (d44039b), closes #1989
- feat(core): add union enum generation (#2018) (f0c4cb3), closes #2018
- feat(query): support prefetch for suspenseQuery and suspenseInfiniteQuery (#2052) (464c5d6), closes #2052
- chore: add a test for
mcp
(#2023) (a445a7e), closes #2023 - chore(deps-dev): bump @release-it/conventional-changelog (#2002) (7ad3a5c), closes #2002
- chore(deps-dev): bump globals from 15.14.0 to 16.0.0 (#2004) (179cc64), closes #2004
- chore(deps): add resolution for jsonpath-plus to avoid CVE (#2007) (631a7d3), closes #2007
- chore(docs): update readme (#2054) (ac2e6cd), closes #2054
- chore(mcp): add
mcp
sample app (#2046) (cbd70af), closes #2046 - fix: allow to define custom mock generator (#2033) (dba9634), closes #2033
- fix: fix to import only the necessary schema (#2022) (4a27aff), closes #2022
- fix: include
baseUrl
andservers
settings in the route path (#2045) (59ccc97), closes #2045 - fix: prevent default axios client from being exported when shouldExportHttpClient is false (#2019) (eade5fa), closes #2019
- fix(core): no not sanitize operationName when overridden (#2040) (1aaf476), closes #2040
- fix(mock): correct generation of all-of objects (#2035) (db15ab6), closes #2035
- fix(query): correct query parameter syntax in generateQueryImplementation (#2049) (fe372d3), closes #2049
- fix(query): make sure to not generate query and mutation (#2038) (7fc20e1), closes #2038
- fix(query): prioritize query over mutation for non-GET operations in generateQueryHook (#2027) (b0833b7), closes #2027
- fix(query): vue-query generates undefined function "useCallback" (#1872) (#1902) (a154264), closes #1872 #1902
- docs: fix branch name in CONTRIBUTING.md (#2008) (56710f5), closes #2008
- docs: fix incorrect path example from './/' to './' (#2016) (bf5bbe9), closes #2016
- docs(hono): remove old costraints in
hono
guide (f12f330) - docs(mcp): add guide for
mcp
(d495bb9) - docs(mcp): fix misstaked client name (060f441)
- docs(mcp): update
README
in mcp-petsotre` sample app (6899221) - docs(mcp): update sitemap (c554713)
- docs(samples): update (a31c02c)
- Fix enum generation (#2009) (0cb1ac2), closes #2009
- Fix next js example for tag revalidation (#2012) (03a12be), closes #2012
Release 7.8.0
7.8.0 (2025-04-03)
Bug Fixes
- core: correctly import custom error and body types (#1977) (82675a4)
- fetch: add default response if none provided (#1982) (d566fe4)
- msw: nested ref fixes (#1983) (4be4caa)
- reintroduce fix for native enums (#1957) (3221aae)
- upgrade axios to ^1.8.2 and fix tsx errors (#1976) (33a37b3), closes #1971
- zod: always prioritize
required
definitions to determineoptional()
(#1985) (752a540) - zod: correct tuple function mapping (#2006) (9185b97)
- zod: enum schema generation for various types (#1996) (8cfb83e)
- zod: handle $ref property names in schemas correctly (#1999) (1881dfa)
Features
Release 7.7.0
Release 7.6.0
7.6.0 (2025-02-27)
Bug Fixes
- adjustments to native enums (#1882) (fcd942b)
- core: don't union required with already required props (#1878) (3d122c3)
- core: Fixed workspace setting does not append a newline to the end of a line in an existing index file #1875 (#1876) (727cbb5)
- core: make sure to only handle first tag when grouping (#1942) (c46f6c9)
- core: model starting with underscore properly handle (#1946) (ff65124)
- core: remove any from type definition (#1937) (cf98554)
- core: shallow-copy while creating override (global/tag/identifier) (#1901) (1fee4e5)
- docs: dropdown overlap (#1932) (611cae9)
- fetch: param stringification for Safari < 17.0 (#1918) (2df8c2d)
- hono:
zValidate
path when usingtags
mode usesoutput.target
based path (#1929) (f8a0ab2) - hono: avoid syntax error in composite routes (#1894) (2674c88)
- hono: preserve parameter name as defined in the OAS (#1921) (7741f07)
- hono: remove duplicate type imports in the
index.context.ts
(#1944) (b6a6fc5) - hono: remove unnecessary
zod
file and import (#1896) (53b6e8c) - implement discriminations correctly in zod (#1907) (1018f0c)
- improve playground editor UX (#1890) (40cdba2)
- msw: adjust combine to handle nested allof (#1936) (87d5e5e)
- query: check for v5 flag (#1933) (c980cc8)
- remove warning log (#1889) (97141ba)
- typedoc samples and plugin support (#1927) (9001fad)
- zod: add preprocess properly everywhere (#1940) (25d2c41)
- zod: strict true when using a discriminator (#1923) (3830a38)
Features
- add default zod support (#1924) (d5cd20a)
- core: ✏️ add naming convention option to output (#1884) (a012305)
- core: ability to provide custom validation ruleset (#1919) (3592782), closes #1887
- fetch: split responses in separate types based on status (#1885) (cba57d1)
- generate const object for const schema definition (#1850) (4260b73)
- zod: generate min max values of array items when using allOf (#1938) (a809011)
- zod: support multipart/form-data (#1920) (e77b7fd)