github orval-labs/orval v8.0.0
Release v8.0.0

9 hours ago

What's Changed

Important

Version 8.0.0+ comes with a lot of improvements and changes please see the Migration Guide

  • ci: re-enabled outdated sample check by @snebjorn in #2497
  • chore: upgrade lib from es2023 to esnext, allows for modern js api usage by @snebjorn in #2496
  • chore: replaces lodash with remeda by @snebjorn in #2499
  • fix(zod): handle falsy default values in schema generation by @sentik in #2501
  • Features/2182 zod exclusive by @sentik in #2500
  • Fix TypeScript type error for arrays with enum and default values (#2427) by @sentik in #2498
  • fix(zod): handle allOf schemas with additional properties by @sentik in #2492
  • Features/2196 enum property names by @sentik in #2503
  • fix(docs): playground move generate api to next 15 by @melloware in #2506
  • fix(docs): revert playground move generate api to next 15 (#2506) by @melloware in #2507
  • feat: allow mts config file extension by @Tucker-Eric in #2509
  • chore(revert): revert drop Tanstack Query v3 compatibility by @melloware in #2513
  • Support ES Module import in config file by @Noyabronok in #2510
  • Release v8.0.0-rc.1 by @github-actions[bot] in #2516
  • chore: make changes to satisfy eslint rules by @snebjorn in #2517
  • chore(deps): bump @modelcontextprotocol/sdk from 1.20.1 to 1.20.2 by @dependabot[bot] in #2524
  • chore(deps-dev): bump jsdom from 27.0.1 to 27.1.0 by @dependabot[bot] in #2523
  • chore(deps-dev): bump lint-staged from 16.2.5 to 16.2.6 by @dependabot[bot] in #2521
  • chore(deps): bump @angular/router from 20.3.0 to 20.3.9 by @dependabot[bot] in #2522
  • chore(deps): bump axios from 1.12.2 to 1.13.1 by @dependabot[bot] in #2526
  • chore(deps): bump @angular/platform-browser from 20.3.0 to 20.3.9 by @dependabot[bot] in #2527
  • Revert "chore(deps): bump @angular/platform-browser from 20.3.0 to 20.3.9" by @melloware in #2533
  • chore(deps-dev): bump vitest from 4.0.3 to 4.0.6 by @dependabot[bot] in #2528
  • chore(deps): bump @tanstack/vue-query from 5.90.5 to 5.90.6 by @dependabot[bot] in #2534
  • chore(deps-dev): bump turbo from 2.5.8 to 2.6.0 by @dependabot[bot] in #2532
  • chore(deps-dev): bump svelte from 5.39.7 to 5.43.2 by @dependabot[bot] in #2530
  • chore(deps-dev): bump @vitejs/plugin-react from 5.0.4 to 5.1.0 by @dependabot[bot] in #2531
  • Bugs/2520 zod strict with all of by @sentik in #2536
  • Bugs/2511 duplicate nullable schema names by @sentik in #2537
  • fix(cli): --watch accepts multiple paths again by @snebjorn in #2542
  • chore: updated yarn and switched some packages to catalogs by @snebjorn in #2545
  • fix(fetch): fixed issue where override.requestOptions and headers wer… by @chcederquist in #2548
  • chore: update non-breaking dependencies by @snebjorn in #2549
  • chore: update tsdown to 0.16.4 by @snebjorn in #2547
  • Release v8.0.0-rc.2 by @github-actions[bot] in #2551
  • chore: minor type improvements by @snebjorn in #2557
  • chore(deps): bump js-yaml from 4.1.0 to 4.1.1 by @dependabot[bot] in #2560
  • docs: fix configuration key reference from mode to client in guides by @diogosilva95 in #2563
  • docs: improve guide for migration to v8 by @soartec-lab in #2564
  • chore(deps-dev): bump wrangler from 3.114.14 to 4.47.0 by @dependabot[bot] in #2565
  • chore(deps-dev): bump vue-tsc from 3.1.1 to 3.1.4 by @dependabot[bot] in #2566
  • chore(deps): bump globby from 15.0.0 to 16.0.0 by @dependabot[bot] in #2567
  • chore(deps-dev): bump @tsconfig/svelte from 5.0.5 to 5.0.6 by @dependabot[bot] in #2573
  • chore(deps-dev): bump svelte from 5.43.2 to 5.43.8 by @dependabot[bot] in #2571
  • chore(deps-dev): bump vite from 7.1.12 to 7.2.2 by @dependabot[bot] in #2568
  • chore(deps-dev): bump @cloudflare/workers-types from 4.20250913.0 to 4.20251117.0 by @dependabot[bot] in #2570
  • fix(core/zod): nullable ignored when combined with $ref in schema property by @soartec-lab in #2575
  • fix: msw lazy delay by @Noyabronok in #2576
  • chore: fix dereference methods naming by @giuliobracci in #2578
  • docs: modernize Axios examples to remove deprecated CancelToken by @takahiro-1227 in #2579
  • Fix useSWRInfinite pagination and header support (v8/master) by @tk1024 in #2587
  • chore(deps): bump actions/checkout from 5 to 6 by @dependabot[bot] in #2585
  • fix(query): duplicate invalidate function name (#2592) by @seung-juv in #2593
  • fix(msw): nullable ignored when combined with $ref in msw property by @soartec-lab in #2597
  • feat(fetch): support variable expansion in override.requestOptions.headers of fetch client by @soartec-lab in #2605
  • chore(deps-dev): bump @vue/compiler-sfc from 3.5.22 to 3.5.25 by @dependabot[bot] in #2600
  • chore(deps-dev): bump @typescript-eslint/eslint-plugin from 8.46.4 to 8.48.0 by @dependabot[bot] in #2602
  • fix(query): include path params info query key when useOperationIdAsQueryKey enabled by @Armanio in #2595
  • zod: string escape and enum by @Totorro35 in #2607
  • fix(core): topologically sort schema declarations by dependencies by @webjunkie in #2608
  • chore(deps): bump node-forge from 1.3.1 to 1.3.2 by @dependabot[bot] in #2609
  • chore(deps): bump js-yaml from 3.14.1 to 4.1.1 by @dependabot[bot] in #2611
  • chore(deps): bump glob from 10.4.5 to 10.5.0 in /docs by @dependabot[bot] in #2610
  • chore(deps): bump express from 4.21.2 to 4.22.0 by @dependabot[bot] in #2612
  • chore(deps): bump @angular/common from 20.3.0 to 20.3.15 by @dependabot[bot] in #2613
  • chore(deps): bump @angular/compiler from 20.3.0 to 20.3.15 by @dependabot[bot] in #2619
  • chore(deps): bump validator from 13.15.15 to 13.15.23 in /docs by @dependabot[bot] in #2620
  • chore(deps): bump validator from 13.15.15 to 13.15.23 by @dependabot[bot] in #2621
  • chore(deps): bump mdast-util-to-hast from 13.2.0 to 13.2.1 in /docs by @dependabot[bot] in #2622
  • chore(deps): bump @modelcontextprotocol/sdk from 1.20.2 to 1.24.0 by @dependabot[bot] in #2623
  • #2616 fix(fetch): Fix client generation when params contain dates but exploded params do not. by @jlillywhite in #2617
  • Upgrade openapi to 3.1 by @snebjorn in #2614
  • Release v8.0.0-rc.3 by @github-actions[bot] in #2625
  • chore(deps): bump next from 16.0.0 to 16.0.7 in /docs by @dependabot[bot] in #2626
  • chore(deps): bump next from 15.5.3 to 15.5.7 by @dependabot[bot] in #2627
  • feat(parserOptions): add support for domain-specific headers in OpenA… by @slauzinho in #2632
  • docs: add hono and mcp to valid client values by @sakurai-ryo in #2638
  • expand upon js api by @Logan-Dang in #2641
  • docs: change sponsor to open collective by @soartec-lab in #2628
  • fix(query): incorrect signal query option when httpClient fetch by @seung-juv in #2640
  • feat(core): output.schemas now allows you to select zod as the schema type by @soartec-lab in #2644
  • chore: upgrade docs deps for fix CVE-2025-55182 by @soartec-lab in #2645
  • feat: add OAS 3.1 contentMediaType and encoding.contentType support by @superxiao in #2643
  • Release v8.0.0-rc.4 by @github-actions[bot] in #2646
  • feat(fetch): zod schema type Inference for fetch client by @soartec-lab in #2649
  • chore(deps): bump actions/cache from 4 to 5 by @dependabot[bot] in #2648
  • chore(deps): bump peter-evans/create-pull-request from 7 to 8 by @dependabot[bot] in #2647
  • feat(fetch): add runtime validation support with zod schemas by @soartec-lab in #2651
  • Add support for wildcard response status codes by @Turbo87 in #2652
  • inline combined types by default, add useCombinedTypeAliases opt-out by @superxiao in #2654
  • fix(2629): Fix Zod conversion when the default value contains a line … by @sbaechler in #2653
  • add aliasCombinedTypes documentation and rename option by @superxiao in #2657
  • fix(swr): handle various response types in useSWRInfinite pagination termination (#2584) by @tk1024 in #2659
  • fix(core): replace camel with conventionName in writers to follow consistent naming conventions by @Azuky in #2658
  • test(core): add wildcard content type tests and response coverage by @superxiao in #2662
  • feat: generate zod schema even with params type by @soartec-lab in #2660
  • feat(fetch,zod,hono,mcp): changed naming convention of zod schema name to pascal-case by @soartec-lab in #2661
  • Release v8.0.0-rc.4 by @github-actions[bot] in #2666
  • feat(fetch): make output.schemas.type exclusive and remove override.fetch.useSchemaResponse by @soartec-lab in #2667
  • Update dependencies by @snebjorn in #2670
  • chore: lint fixes by @snebjorn in #2671
  • fix(zod): fixed missing oneOf and common property combinations for zod by @soartec-lab in #2672
  • Feat(Query) Angular tanstack-query generator by @ScriptType in #2288
  • fix(zod): fixed an issue where oneOf was missing additional properties by @soartec-lab in #2675
  • fix(core): add main and types fields for moduleResolution node compat… by @ScriptType in #2673
  • fix(angular-query): add missing InvalidateOptions import for Angular Query by @ScriptType in #2678
  • feat: enabled zod for schemas.type on all clients by @soartec-lab in #2668
  • fix(mock,angular): Different response types causes issues by @ScriptType in #2674
  • Release v8.0.0-rc.5 by @github-actions[bot] in #2680
  • fix(docs): GeneratorVerbOptions type permalink by @hyungjikim in #2683
  • fix(core): Add esbuild external option for getMutatorInfo by @mdoi2 in #2684
  • fix: undefined when reading 'schema' by @snebjorn in #2686
  • React Query: Introduce react-compiler support by @theisgroenbech in #2687
  • Fix(zod) Schema Generation by @ScriptType in #2689
  • docs: improve SEO titles and descriptions by @jvitorcsm in #2690
  • chore(core) Maximum call stack size exceeded for circular references by @ScriptType in #2692
  • refactor(query): split index.ts into multiple Files by @ScriptType in #2691
  • chore(deps-dev): bump @vue/compiler-sfc from 3.5.25 to 3.5.26 by @dependabot[bot] in #2693
  • chore(deps): bump msw from 2.12.4 to 2.12.7 by @dependabot[bot] in #2694
  • chore(deps): bump hono from 4.10.2 to 4.11.3 by @dependabot[bot] in #2695
  • fix(svelte): svelte5 reactivity by @AllieJonsson in #2700
  • chore(deps): bump @modelcontextprotocol/sdk from 1.24.0 to 1.25.2 by @dependabot[bot] in #2704
  • chore(deps): bump qs from 6.14.0 to 6.14.1 by @dependabot[bot] in #2705
  • fix(core): mark const enums as value imports by @froggy1014 in #2703
  • chore(deps): bump next from 14.2.32 to 14.2.35 by @dependabot[bot] in #2706
  • chore(docs): Update Swagger Petstore API URL by @melloware in #2707
  • Fix "Error: require() of ES Module" when running yarn dev inside docs by @piradata in #2709
  • Add Solid Query and SolidStart by @davedbase in #2711
  • fix(core): merge case-insensitive schema outputs and canonicalize imports by @froggy1014 in #2713
  • chore: remove eslint comment for enum generation by @froggy1014 in #2714
  • fix(mcp): Sanitize strings before passing to MCP tool by @melloware in #2712
  • Feat: config based invalidation by @ScriptType in #2679
  • docs: add v8 upgrade documentation page by @soartec-lab in #2717
  • fix(core): add @orval/solid-start to orval deps by @soartec-lab in #2720
  • chore(deps): bump @angular/compiler from 20.3.15 to 20.3.16 by @dependabot[bot] in #2723
  • chore(deps): bump @angular/core from 20.3.0 to 20.3.16 by @dependabot[bot] in #2724
  • feat(swr): Add useSuspense option for type-safe Suspense hooks by @soartec-lab in #2719
  • chore: angular-catalog-sync by @froggy1014 in #2726
  • fix(mcp): avoid fake Body imports for inline request bodie by @froggy1014 in #2725
  • chore(deps): bump typedoc from 0.28.14 to 0.28.15 by @dependabot[bot] in #2727
  • chore(deps-dev): bump turbo from 2.7.1 to 2.7.3 by @dependabot[bot] in #2728
  • chore(deps-dev): bump @typescript-eslint/eslint-plugin from 8.50.1 to 8.52.0 by @dependabot[bot] in #2729
  • chore(deps): bump @tanstack/vue-query from 5.90.6 to 5.92.5 by @dependabot[bot] in #2730
  • chore(deps): bump @faker-js/faker from 10.1.0 to 10.2.0 by @dependabot[bot] in #2731
  • docs: add husky prepare note in CONTRIBUTING.md by @froggy1014 in #2732
  • feat(swr): Add generateErrorTypes option to control error type generation by @soartec-lab in #2721
  • [docs] Improve Algolia DocSearch by @IZUMIRU in #2733
  • [doc] Restore URL normalization for Algolia search results by @IZUMIRU in #2734
  • [docs]: Typo and wording in Overview by @Sturlen in #2737
  • Release v8.0.0-rc.6 by @github-actions[bot] in #2738
  • fix(svelte): prefetch correctly by @AllieJonsson in #2740
  • docs: fix typo - React Query → Svelte Query by @TsingShui in #2742
  • feat(core): add external option to mutator config by @webjunkie in #2735
  • chore(deps): bump hono from 4.11.3 to 4.11.4 by @dependabot[bot] in #2743
  • fix(query): remove extra comma in angular-query for no-param endpoints by @ScriptType in #2744
  • Release v8.0.0 by @github-actions[bot] in #2745

New Contributors

Full Changelog: v8.0.0-rc.0...v8.0.0

Don't miss a new orval release

NewReleases is sending notifications on new releases.