Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@commitlint/cli": "^20.1.0",
"@commitlint/config-conventional": "^20.0.0",
"@eslint/js": "^9.38.0",
"@types/node": "^22.18.11",
"@types/node": "^22.18.12",
"esbuild-plugin-alias": "^0.2.1",
"eslint": "^9.38.0",
"eslint-config-prettier": "^10.1.8",
Expand All @@ -51,13 +51,12 @@
"eslint-plugin-unicorn": "^61.0.2",
"globals": "^16.4.0",
"husky": "^9.1.7",
"lint-staged": "^16.2.4",
"npm-run-all": "^4.1.5",
"lint-staged": "^16.2.5",
"prettier": "3.6.2",
"rimraf": "^6.0.1",
"turbo": "^2.5.8",
"typescript": "^5.9.3",
"typescript-eslint": "^8.46.1",
"typescript-eslint": "^8.46.2",
"vitest": "^3.2.4"
}
}
11 changes: 6 additions & 5 deletions packages/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
"name": "@orval/angular",
"version": "7.15.0",
"license": "MIT",
"type": "module",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
"import": "./dist/index.js"
}
},
"files": [
Expand All @@ -23,9 +24,9 @@
"@orval/core": "workspace:*"
},
"devDependencies": {
"eslint": "^9.35.0",
"eslint": "^9.38.0",
"rimraf": "^6.0.1",
"tsdown": "^0.15.2",
"typescript": "^5.9.2"
"tsdown": "^0.15.9",
"typescript": "^5.9.3"
}
}
18 changes: 9 additions & 9 deletions packages/angular/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import {
ClientBuilder,
ClientDependenciesBuilder,
ClientFooterBuilder,
ClientGeneratorsBuilder,
ClientHeaderBuilder,
ClientTitleBuilder,
type ClientBuilder,
type ClientDependenciesBuilder,
type ClientFooterBuilder,
type ClientGeneratorsBuilder,
type ClientHeaderBuilder,
type ClientTitleBuilder,
generateFormDataAndUrlEncodedFunction,
generateMutatorConfig,
generateMutatorRequestOptions,
generateOptions,
generateVerbImports,
GeneratorDependency,
GeneratorOptions,
GeneratorVerbOptions,
type GeneratorDependency,
type GeneratorOptions,
type GeneratorVerbOptions,
isBoolean,
pascal,
sanitize,
Expand Down
1 change: 1 addition & 0 deletions packages/angular/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"extends": "./tsconfig.json",
"exclude": ["__tests__", "**/*.test.ts", "**/*.spec.ts"],
"include": ["src/**/*.ts"],
"compilerOptions": {
"outDir": "dist"
Expand Down
7 changes: 4 additions & 3 deletions packages/axios/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
"name": "@orval/axios",
"version": "7.15.0",
"license": "MIT",
"type": "module",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
"import": "./dist/index.js"
}
},
"files": [
Expand All @@ -25,7 +26,7 @@
"devDependencies": {
"eslint": "^9.38.0",
"rimraf": "^6.0.1",
"tsdown": "^0.15.8",
"tsdown": "^0.15.9",
"typescript": "^5.9.3"
}
}
18 changes: 9 additions & 9 deletions packages/axios/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import {
ClientBuilder,
ClientDependenciesBuilder,
ClientFooterBuilder,
ClientGeneratorsBuilder,
ClientHeaderBuilder,
ClientTitleBuilder,
type ClientBuilder,
type ClientDependenciesBuilder,
type ClientFooterBuilder,
type ClientGeneratorsBuilder,
type ClientHeaderBuilder,
type ClientTitleBuilder,
generateFormDataAndUrlEncodedFunction,
generateMutatorConfig,
generateMutatorRequestOptions,
generateOptions,
generateVerbImports,
GeneratorDependency,
GeneratorOptions,
GeneratorVerbOptions,
type GeneratorDependency,
type GeneratorOptions,
type GeneratorVerbOptions,
isSyntheticDefaultImportsAllow,
pascal,
sanitize,
Expand Down
1 change: 1 addition & 0 deletions packages/axios/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"extends": "./tsconfig.json",
"exclude": ["__tests__", "**/*.test.ts", "**/*.spec.ts"],
"include": ["src/**/*.ts"],
"compilerOptions": {
"outDir": "dist"
Expand Down
15 changes: 7 additions & 8 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@orval/core",
"version": "7.15.0",
"license": "MIT",
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
Expand All @@ -21,40 +22,38 @@
"nuke": "rimraf .turbo dist node_modules"
},
"devDependencies": {
"@faker-js/faker": "^9.9.0",
"@faker-js/faker": "^10.1.0",
"@types/debug": "^4.1.12",
"@types/esutils": "^2.0.2",
"@types/fs-extra": "^11.0.4",
"@types/lodash.isempty": "^4.4.9",
"@types/lodash.uniq": "^4.5.9",
"@types/lodash.uniqby": "^4.7.9",
"@types/lodash.uniqwith": "^4.5.9",
"@types/micromatch": "^4.0.9",
"@types/swagger2openapi": "^7.0.4",
"eslint": "^9.38.0",
"openapi-types": "^12.1.3",
"rimraf": "^6.0.1",
"tsdown": "^0.15.8",
"typescript": "^5.9.2",
"tsdown": "^0.15.9",
"typescript": "^5.9.3",
"vitest": "^3.2.4"
},
"dependencies": {
"@apidevtools/swagger-parser": "^12.1.0",
"@ibm-cloud/openapi-ruleset": "^1.33.1",
"@stoplight/spectral-core": "^1.20.0",
"acorn": "^8.15.0",
"chalk": "^4.1.2",
"chalk": "^5.6.2",
"compare-versions": "^6.1.1",
"debug": "^4.4.3",
"esbuild": "^0.25.11",
"esutils": "2.0.3",
"fs-extra": "^11.3.1",
"globby": "11.1.0",
"fs-extra": "^11.3.2",
"globby": "15.0.0",
"lodash.isempty": "^4.4.0",
"lodash.uniq": "^4.5.0",
"lodash.uniqby": "^4.7.0",
"lodash.uniqwith": "^4.5.0",
"micromatch": "^4.0.8",
"openapi3-ts": "4.5.0",
"swagger2openapi": "^7.0.8",
"typedoc": "^0.28.14"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/* eslint-disable unicorn/no-anonymous-default-export, @typescript-eslint/no-empty-function */
export default function () {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/* eslint-disable unicorn/no-anonymous-default-export, @typescript-eslint/no-empty-function, @typescript-eslint/no-unused-vars */
export default function (param1?: number) {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/* eslint-disable unicorn/no-anonymous-default-export, @typescript-eslint/no-empty-function, @typescript-eslint/no-unused-vars */
export default function (param1?: number, param2?: number) {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/* eslint-disable unicorn/no-anonymous-default-export, @typescript-eslint/no-empty-function, @typescript-eslint/no-unused-vars */
export default function (param1?: number, param2?: number, param3?: number) {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/* eslint-disable unicorn/no-anonymous-default-export, @typescript-eslint/no-empty-function */
export default () => {};
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/* eslint-disable unicorn/no-anonymous-default-export, @typescript-eslint/no-empty-function, @typescript-eslint/no-unused-vars */
export default (param1?: number) => {};
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/* eslint-disable unicorn/no-anonymous-default-export, @typescript-eslint/no-empty-function, @typescript-eslint/no-unused-vars */
export default (param1?: number, param2?: number) => {};
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/* eslint-disable unicorn/no-anonymous-default-export, @typescript-eslint/no-empty-function, @typescript-eslint/no-unused-vars */
export default (param1?: number, param2?: number, param3?: number) => {};
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/* eslint-disable unicorn/consistent-function-scoping, unicorn/no-anonymous-default-export, @typescript-eslint/no-empty-function */
export default () => () => {};
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/* eslint-disable unicorn/consistent-function-scoping, unicorn/no-anonymous-default-export, @typescript-eslint/no-empty-function, @typescript-eslint/no-unused-vars */
export default () => (param1?: number) => {};
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/* eslint-disable unicorn/consistent-function-scoping, unicorn/no-anonymous-default-export, @typescript-eslint/no-empty-function, @typescript-eslint/no-unused-vars */
export default () => (param1?: number, param2?: number) => {};
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/* eslint-disable unicorn/consistent-function-scoping, unicorn/no-anonymous-default-export, @typescript-eslint/no-empty-function, @typescript-eslint/no-unused-vars */
export default () => (param1?: number, param2?: number, param3?: number) => {};
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/* eslint-disable unicorn/consistent-function-scoping, @typescript-eslint/no-empty-function, @typescript-eslint/no-unused-vars */

export function fn0Param() {}
export function fn1Param(param1?: number) {}
export function fn2Param(param1?: number, param2?: number) {}
export function fn3Param(param1?: number, param2?: number, param3?: number) {}

export const lambda0Param = () => {};
export const lambda1Param = (param1?: number) => {};
export const lambda2Param = (param1?: number, param2?: number) => {};
export const lambda3Param = (
param1?: number,
param2?: number,
param3?: number,
) => {};

export const nestedLambda0Param = () => () => {};
export const nestedLambda1Param = () => (param1?: number) => {};
export const nestedLambda2Param =
() => (param1?: number, param2?: number) => {};
export const nestedLambda3Param =
() => (param1?: number, param2?: number, param3?: number) => {};

export function fnCallback(
useCallback: (param1?: number) => 0,
param1?: number,
) {
return useCallback(param1);
}

export function fnNestedLambda2Param() {
return (param1?: number, param2?: number) => {};
}
Loading