Skip to content

Releases: orval-labs/orval

Release 6.9.1

21 Jul 17:47
Compare
Choose a tag to compare

6.9.1 (2022-07-21)

Bug Fixes

  • generators: discriminator resolvers & cleanup promise (4718234)
  • generators: fully handling react query v4 (f7e5cf5)

Release 6.9.0

17 Jul 14:07
Compare
Choose a tag to compare

6.9.0 (2022-07-17)

Bug Fixes

  • clients: handling typescript option exactOptionalPropertyTypes (460d3bb)
  • dependabot (#401) (d5f62ae)
  • form-data: correctly handling array (9af1876)
  • generator: angular transform return types to map (9b0ef8f)
  • generators: clear return types on each generation (a663a17)
  • getters: route handling wildcard param (64d7a79)
  • imports: always split type and value (bd97425)
  • mock: no properties found replace {} by empty string (f55dafb)
  • mocks: combine with properties (899a8cb)
  • msw: improve route url generation (365b7ff)
  • query-params: add the possibility of required query params (d6f39f9)

Features

  • add delay parameter to override.mock (#431) (8f5e3a2)
  • config: add hooks (#459) (c594bac)
  • config: allow types to be used instead of interfaces (#400) (3abf56c)
  • core: add possibility to generate headers (6dbaa3f)
  • generator: add type discriminator to subtypes (#426) (048f594)
  • generators: add possibility to include and exclude content types (fde21ef)
  • openapi: support 3.1 (cd1c714)
  • query: add options to remove signal (a8023bc)
  • query: handle new react query feature notifyOnChangeProps (74c6350)
  • swr: add options in the orval config (734139d)
  • validation: upgrade dependencies (478270b)

Release 6.8.1

18 May 15:41
Compare
Choose a tag to compare

6.8.1 (2022-05-18)

Bug Fixes

  • client: remove export awaited type and only add it when needed (9491ee1)

Release 6.8.0

16 May 17:26
Compare
Choose a tag to compare

6.8.0 (2022-05-16)

Bug Fixes

  • generator: fix missing comma in axios generator when mutator has 2nd arg (#383) (0edef1f)
  • mock: combine only one element different then object type (52a7da2)
  • mocks: fix array enum mock generation when enum is NOT a $ref (#375) (336612f)
  • resolvers: fix generating schema for alias object (#382) (37a993b)

Features

  • clients: add query cancellation (#357) (48eda4b)
  • clients: align awaited type everywhere (4cc91cf)
  • enums: generate with new format (2014dc2)
  • expose api necessary to create generators' overrides (#369) (8332ae7)

Release 6.7.1

07 Apr 15:09
Compare
Choose a tag to compare

6.7.1 (2022-04-07)

Bug Fixes

  • axios-client: better result type without mutators (ee09ac8)
  • generator: add prefix to es5keyword parameters (#356) (940c729), closes #284
  • options: add header content type (7cc54eb)
  • query: fix the mutation body using BodyType wrongly replaced (#354) (ad21fe7)
  • writers: correctly pass customTitleFunc (fc1973b)

Release 6.7.0

02 Apr 11:25
Compare
Choose a tag to compare

6.7.0 (2022-04-02)

Bug Fixes

  • deps: update dependencies that are not major versions (#341) (736e21d)
  • footer: warn about params change if footer function call fail (e9f073a)
  • getters: combine handling when only one element (8e99ff9)
  • getters: path to operationId accept dash (48c39af)
  • mocks: array enums handled correctly (0656ae5)
  • query: correctly set body definition (d5f36c1)
  • query: export QueryError type for muation query (ba57eb1)
  • query: prefer MutationData and MutationError suffix for mutations (6ebad15)
  • query: prefer Result over Data for result data type suffix (4cffd77)
  • query: use NonNullable for QueryData type generation (25341f1)

Features

  • angular: add return type for angular client (c234e7a)
  • axios: add return type for swr client (42c40c9)
  • axios: correctly handle return tyep for axios (d27df09)
  • query: allow body type customisation through mutator for mutations (#319) (9856d94)
  • query: generate query return type along each client endpoints (#318) (d7cb2d4)
  • query: generate query return type for along with hooks (e4c1dd9)
  • swr: add return type for swr client (40345ed)
  • writers: header handling directly return string or eslint-disable (df688ea)

Release 6.6.4

21 Feb 16:58
Compare
Choose a tag to compare

6.6.4 (2022-02-21)

Bug Fixes

  • cli: correctly pass all global options (de2e0e6)
  • writers: mutators multi arguments correctly generate parameters type (6ce1916)
  • params: allow [_-] in url params (#322) (7cb7112)

Release 6.6.3

20 Feb 09:43
Compare
Choose a tag to compare

6.6.3 (2022-02-20)

Bug Fixes

  • deps: ibm validator fixes issue #326 (#327) (cfde8e2)
  • generator: scalar object allof enum nullable (#330) (392c366)
  • generator: schema anyof correctly checked (#331) (63848b7)
  • options: handling url only when needed (7174cd0)
  • scalar: better handling object properties with additionalProperties (44b6c4e)

Release 6.6.2

17 Feb 18:38
Compare
Choose a tag to compare

6.6.2 (2022-02-17)

Bug Fixes

  • scalar: more flexible object default type (539ba10)

Release 6.6.1

16 Feb 18:52
Compare
Choose a tag to compare

6.6.1 (2022-02-16)

Bug Fixes

  • badges: add badges to readme (#316) (0f62905)
  • config: fix operationName bug not changing models naming (#313) (e86d0ef)
  • deps: updated dependencies (#324) (57f82bb)
  • enum: better nullable enum generation (#312) (2cbb132)
  • getters: allow object additional properties along with properties (#317) (d09a1c8)
  • loader: correctly handling * paths in tsconfig (5af4669)
  • mutator-parsing: stop loading the mutator and instead parse the code with acorn (#325) (60d0934)
  • options: correctly check the config mode (cb5cb35)
  • schema: generate 'any' instead of '{}' (#321) (46c7454)
  • server: fix operation names using ES5 keywords (#314) (2ea8b8b)
  • writers: only add useful imports (9903620)
  • writers: synchronous write to not override previous projet generated (930bf1d)
  • writers: tags-split only use operations link to the tag (a555f05)