Releases: orval-labs/orval
Releases · orval-labs/orval
Release 6.25.0
6.25.0 (2024-02-17)
Bug Fixes
- afterAllFilesWritten (#1194) (84a9ac7)
- angular: avoid
Angular
type error whennullable
(#1200) (cd0a56e) - core: implement
{}
insterd ofunknown
for blank schema interface (#1219) (97552e4) - msw: changed naming convention for response mock functions to avoid function name conflicts (#1217) (e528e11)
- msw: fixed imports of
split-tags
,tags
, andsplit
mode (#1205) (9f16e37) - msw: refactor to include duplication of mock imports in mocks in
split
andsplit-tags
modes (#1214) (1c39aab) - useMutation still appears even if false (#1209) (288f488)
- useQuery improve override logic (#1212) (1aff031)
Features
Release 6.24.0
6.24.0 (2024-01-31)
Bug Fixes
- add option for adding missing props to union types, fix duplicate props (340012c)
- adjust SecondParameter utility type (#1125) (848bbe3)
- auto-formatting regression (#1117) (5ab74a3)
- avoid duplicate variable name in genrated function for query clients (#1131) (dbfb2e5)
- core: add missing properties in subschemas to fix TS error (#1115) (b889c88)
- core: Fixed condition for using
barrel
import insplit-tags
mode (#1122) (0a747c7) - define default value for
msw
mock orverride (#1184) (992085b) - handle nordic characters when converting to pascal-case (#1157) (7e563eb)
- mock:
null
is excluded instead of being converted to an empty string''
(#1166) (c41635b) - openapi 3.1 schemas with multiple types (#1170) (35e5074)
- reproducible typescript output (#1159) (#1179) (a11e821)
- strictly check dependencies import judgment using regular expressions (#1146) (c42fcda)
Features
- don't inject generated files into hook command (#1181) (2a77a04)
- implement function generation using
useSWRMutation
(#1148) (632a666) - msw: define the return value type in the
msw
mock function. (#1171) (99cc5a6) - msw: possible to overwrite value when creating an
object
withmsw
mock (#1165) (c7ccb65) - msw: possible to value of the mock handler function overridable (#1186) (0d05129)
- msw: separated mock handler and made it reusable (#1182) (02161de)
- only generate the formData mutator if the operation body includes formData information (#1178) (48a1b6e)
- possible to generate a function using
useSWRInfinite
on theswr
client. (#1138) (67bf84f) - query: add shouldExportMutatorHooks option (#1105) (e602232)
- show error stack traces (#1163) (461e813)
- support for const types (#1180) (ee5334f)
- support for prefixItems (#1175) (2231f78)
Reverts
Release 6.23.0
Release 6.22.1
Release 6.22.0
6.22.0 (2023-12-06)
Bug Fixes
- add tests for types (da00f2b)
- do not use TVariables (#1085) (9ea4df5)
- enum string escape can be nullable (#1081) (ceb18bf)
- freeze problem when $ref is deeply nested (#1083) (e7f2e5d)
- generators: formdata handling oneof and allof (#1091) (bb240ef)
- path parameters are not encoded #679 (df2d4ba)(b361cb9)
- query: enabled reactivity fix (new) (#1080) (e1eff52)
- query: suspense query generation (#1100) (36d622b), closes #1098
- add urlEncodeParameters options (ff2b7d3)
- add allParamsOptional options
- uppercase verbs (2077ded)
Features
Release 6.21.0
6.21.0 (2023-11-28)
Bug Fixes
- accounted for properties with the same name (#1042) (1c7d4d9)
- axios: ignore commented out lines (#1031) (4430193)
- core: getters body sanitize implementation (#1048) (b712ffe)
- enable multiple properties of array consts (#1051) (3ee382b)
- improve isurl regex (#1032) (30ba2a2)
- mock: amended http response types for typescript plain text compatibility (06fd568)
- mock: infinite loop due to circular ref into arrays or allOf (2dfea42)
- msw: faker object keys no longer in quotes (#1034) (27104e0)
- query: better body definition regex (#1047) (1000e2d)
- query: fix pageParam for useInfiniteQuery (#947) (685edcd)
- return yarn.lock back for the docs (6f431ec)
- revert back to manual type specification for passing type checks (2bd83fb)
- schemas: detect duplicate schema names and throw (#876) (6627402)
- uppercase method verbs (#1044) (fa12e9c)
- use require_tld instead of regex (#920) (15835b7)
- zod: array min max issues (#1052) (5b29452)
- zod: proper date handling (#1050) (67856c2)
Features
Release 6.20.0
6.20.0 (2023-11-09)
Bug Fixes
- core: added undefined check for pascal util (#1025) (e7dc399)
- core: inconsistent kebab casing comparison (#937) (88dd4ff)
- core: remove unnecessary empty item in case of null-only enum or empty enum (#1022) (#1023) (f6f2d42)
- strict mode nullable enum typing (#1010) (13d3249)
- yarn warnings (#1012) (610901a)
Features
- changed cuids in MSW to dynamic faker strings to prevent file c… (#980) (c1949f4)
- disable minification (#1004) (f2ea420)
- faker: update deprecated faker methods (#978) (e74377e)
- faker: update deprecated methods (#1000) (c357c13)
- initial CONTRIBUTING.md draft (#958) (0c07089)
- msw: support using OpenAPI example/examples fields as MSW values (#963) (c19e35c)
- query: add prefetch functions (#956) (313c8b0)
- security: upgrade dependencies for security CVE's (#1003) (8b508a3)
- support params serializer (#999) (219d97b)
- upgraded msw to 2.0 (#1007) (cc3e72a)
Release 6.19.1
Release 6.19.0
6.19.0 (2023-10-19)
Bug Fixes
- core: fix ref import file (#955) (69280a3)
- make order of imports and object properties deterministic (#965) (a4cca88)
- useNamedParameters: use operationName instead of operationId (#953) (8a458ca)
Features
- msw: allow regex for entire paths instead of only property names (#957) (9a4ce8f)
- orval: allow custom baseUrl for each OpenAPI specification (#968) (8a12c3d)
- react-query: add option to generate suspense query (83e567b)