From da29a5f0f74ec1571886b01cf54c6305d6565a96 Mon Sep 17 00:00:00 2001 From: Fabien Bernard Date: Thu, 29 Oct 2026 10:35:14 +0100 Subject: [PATCH 1/9] Migrate to vite-plus - prettier is replaced with oxfmt - vitest is replaced with vite-plus/test - husky & pretty-quick are replaced by vite-hooks - All configs are consolidates in vite.config.ts --- .husky/pre-commit | 4 - .prettierrc.json | 3 - .vite-hooks/pre-commit | 1 + .zed/settings.json | 115 ++ README.md | 4 +- cli/package.json | 2 +- cli/src/commands/GenerateCommand.ts | 10 +- cli/src/commands/InitCommand.ts | 13 +- cli/src/core/generateConfigProperty.test.ts | 2 +- .../core/getOpenAPISourceFile.file.test.ts | 2 +- cli/src/core/getOpenAPISourceFile.url.test.ts | 2 +- cli/src/core/updateConfig.test.ts | 2 +- cli/src/types/index.ts | 4 +- examples/frontend/package.json | 9 +- .../frontend/src/github/githubComponents.ts | 1097 +++++++++---- examples/frontend/src/github/githubFetcher.ts | 3 +- .../frontend/src/github/githubParameters.ts | 11 +- examples/frontend/src/github/githubSchemas.ts | 479 +++++- examples/frontend/tsconfig.node.json | 4 +- examples/frontend/vite.config.mts | 4 +- package.json | 33 +- plugins/typescript/README.md | 8 +- plugins/typescript/package.json | 3 +- .../src/core/analyzeImportUsage.test.ts | 2 +- .../src/core/createNamedImport.test.ts | 2 +- .../src/core/findCompatibleMediaType.test.ts | 2 +- .../src/core/getDataResponseType.test.ts | 2 +- .../src/core/getErrorResponseType.test.ts | 2 +- .../src/core/getOperationTypes.test.ts | 2 +- .../typescript/src/core/getReference.test.ts | 2 +- .../src/core/getUsedImports.test.ts | 2 +- .../src/core/getVariablesType.test.ts | 2 +- .../src/core/isRequestBodyOptional.test.ts | 2 +- plugins/typescript/src/core/isVerb.test.ts | 2 +- .../src/core/paramsToSchema.test.ts | 2 +- .../src/core/schemaToEnumDeclaration.test.ts | 2 +- .../core/schemaToTypeAliasDeclaration.test.ts | 2 +- .../src/core/schemaToTypeAliasDeclaration.ts | 8 +- .../src/generators/generateFetchers.test.ts | 2 +- .../generateReactQueryComponents.test.ts | 497 ++---- .../generators/generateSchemaTypes.test.ts | 2 +- .../typescript/src/templates/context.test.ts | 2 +- .../typescript/src/templates/utils.test.ts | 2 +- plugins/typescript/src/testUtils.ts | 12 +- plugins/typescript/src/typescript.ts | 4 - .../typescript/src/utils/addPathParam.test.ts | 2 +- .../utils/forceReactQueryComponent.test.ts | 2 +- .../src/utils/getEnumProperties.test.ts | 2 +- .../src/utils/renameComponent.test.ts | 2 +- pnpm-lock.yaml | 1442 ++++++++++++----- pnpm-workspace.yaml | 10 + vite.config.ts | 160 ++ 52 files changed, 2785 insertions(+), 1207 deletions(-) delete mode 100644 .husky/pre-commit delete mode 100644 .prettierrc.json create mode 100755 .vite-hooks/pre-commit create mode 100644 .zed/settings.json delete mode 100644 plugins/typescript/src/typescript.ts create mode 100644 vite.config.ts diff --git a/.husky/pre-commit b/.husky/pre-commit deleted file mode 100644 index f91359dc..00000000 --- a/.husky/pre-commit +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - -npx --no-install pretty-quick --staged diff --git a/.prettierrc.json b/.prettierrc.json deleted file mode 100644 index 757fd64c..00000000 --- a/.prettierrc.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "trailingComma": "es5" -} diff --git a/.vite-hooks/pre-commit b/.vite-hooks/pre-commit new file mode 100755 index 00000000..85fb65b4 --- /dev/null +++ b/.vite-hooks/pre-commit @@ -0,0 +1 @@ +vp staged diff --git a/.zed/settings.json b/.zed/settings.json new file mode 100644 index 00000000..a7eaf86f --- /dev/null +++ b/.zed/settings.json @@ -0,0 +1,115 @@ +{ + "lsp": { + "oxlint": { + "initialization_options": { + "settings": { + "run": "onType", + "fixKind": "safe_fix", + "typeAware": true, + "unusedDisableDirectives": "deny" + } + } + }, + "oxfmt": { + "initialization_options": { + "settings": { + "fmt.configPath": "./vite.config.ts", + "run": "onSave" + } + } + } + }, + "languages": { + "CSS": { + "format_on_save": "on", + "prettier": { + "allowed": false + }, + "formatter": [ + { + "language_server": { + "name": "oxfmt" + } + } + ] + }, + "HTML": { + "format_on_save": "on", + "prettier": { + "allowed": false + }, + "formatter": [ + { + "language_server": { + "name": "oxfmt" + } + } + ] + }, + "JSON": { + "format_on_save": "on", + "prettier": { + "allowed": false + }, + "formatter": [ + { + "language_server": { + "name": "oxfmt" + } + } + ] + }, + "Markdown": { + "format_on_save": "on", + "prettier": { + "allowed": false + }, + "formatter": [ + { + "language_server": { + "name": "oxfmt" + } + } + ] + }, + "TypeScript": { + "format_on_save": "on", + "prettier": { + "allowed": false + }, + "formatter": [ + { + "language_server": { + "name": "oxfmt" + } + } + ] + }, + "TSX": { + "format_on_save": "on", + "prettier": { + "allowed": false + }, + "formatter": [ + { + "language_server": { + "name": "oxfmt" + } + } + ] + }, + "YAML": { + "format_on_save": "on", + "prettier": { + "allowed": false + }, + "formatter": [ + { + "language_server": { + "name": "oxfmt" + } + } + ] + } + } +} diff --git a/README.md b/README.md index cef00b92..c2fdae78 100644 --- a/README.md +++ b/README.md @@ -205,7 +205,9 @@ the `@openapi-codegen/cli` supports these generator plugins: generate all schema types for your specification: ```ts -const { schemasFiles } = await generateSchemaTypes(context, {/* config */}); +const { schemasFiles } = await generateSchemaTypes(context, { + /* config */ +}); ``` output: `{namespace}Schemas.ts` diff --git a/cli/package.json b/cli/package.json index 0e03cd6a..22664b90 100644 --- a/cli/package.json +++ b/cli/package.json @@ -44,7 +44,7 @@ "got": "^16.0.0", "js-yaml": "^5.4.3", "openapi3-ts": "^4.6.1", - "prettier": "^3.9.9", + "oxfmt": "^0.75.0", "slash": "^5.1.0", "swagger2openapi": "^7.0.8", "tslib": "^2.8.1", diff --git a/cli/src/commands/GenerateCommand.ts b/cli/src/commands/GenerateCommand.ts index 7fb0c7b0..40ed8afb 100644 --- a/cli/src/commands/GenerateCommand.ts +++ b/cli/src/commands/GenerateCommand.ts @@ -4,7 +4,6 @@ import * as t from "typanion"; import fsExtra from "fs-extra"; import { posix as path } from "path"; import * as swc from "@swc/core"; -import prettier from "prettier"; import { fileURLToPath } from "url"; import slash from "slash"; @@ -234,17 +233,14 @@ export class GenerateCommand extends Command { const sourceFile = await getOpenAPISourceFile(options); const openAPIDocument = await parseOpenAPISourceFile(sourceFile); - const prettierConfig = await prettier.resolveConfig(process.cwd()); + const oxfmt = await import("oxfmt"); const writeFile = async (file: string, data: string) => { - const updatedConfig = await prettier.format(data, { - parser: "babel-ts", - ...prettierConfig, - }); + const updatedConfig = await oxfmt.format(file, data); await fsExtra.outputFile( path.join(process.cwd(), config.outputDir, file), - updatedConfig + updatedConfig.code ); }; diff --git a/cli/src/commands/InitCommand.ts b/cli/src/commands/InitCommand.ts index 1d4e4e6a..ea6241a4 100644 --- a/cli/src/commands/InitCommand.ts +++ b/cli/src/commands/InitCommand.ts @@ -4,7 +4,6 @@ import { posix as path } from "path"; import fsExtra from "fs-extra"; import ts from "typescript"; import { highlight } from "cli-highlight"; -import prettier from "prettier"; import format from "case"; import type { FileOptions, FromOptions, UrlOptions, Plugin } from "../types"; @@ -222,16 +221,16 @@ export class InitCommand extends Command { removeComments: false, }); - const prettierConfig = await prettier.resolveConfig(process.cwd()); + const oxfmt = await import("oxfmt"); - const updatedConfig = await prettier.format( - printer.printFile(updatedConfigSourceFile), - { parser: "babel-ts", ...prettierConfig } + const updatedConfig = await oxfmt.format( + "openapi-codegen.config.ts", + printer.printFile(updatedConfigSourceFile) ); if (this.dryRun) { this.context.stdout.write( - highlight(updatedConfig, { + highlight(updatedConfig.code, { language: "typescript", }) ); @@ -261,7 +260,7 @@ export class InitCommand extends Command { } nextSteps.push(`npx openapi-codegen gen ${namespace}`); - await fsExtra.writeFile(userConfigPath, updatedConfig); + await fsExtra.writeFile(userConfigPath, updatedConfig.code); if (config.isExistingConfig) { this.context.stdout.write( `The config "${namespace}" has been added to your current config successfully 🥳\n` diff --git a/cli/src/core/generateConfigProperty.test.ts b/cli/src/core/generateConfigProperty.test.ts index 3524122c..324cd23b 100644 --- a/cli/src/core/generateConfigProperty.test.ts +++ b/cli/src/core/generateConfigProperty.test.ts @@ -1,4 +1,4 @@ -import { describe, expect, it } from "vitest"; +import { describe, expect, it } from "vite-plus/test"; import ts from "typescript"; import { generateConfigProperty } from "./generateConfigProperty"; diff --git a/cli/src/core/getOpenAPISourceFile.file.test.ts b/cli/src/core/getOpenAPISourceFile.file.test.ts index 7f2b92b0..c7c07cdd 100644 --- a/cli/src/core/getOpenAPISourceFile.file.test.ts +++ b/cli/src/core/getOpenAPISourceFile.file.test.ts @@ -1,4 +1,4 @@ -import { assert, describe, expect, it } from "vitest"; +import { assert, describe, expect, it } from "vite-plus/test"; import { getOpenAPISourceFile } from "./getOpenAPISourceFile"; describe("getOpenAPISourceFile (source = file)", () => { diff --git a/cli/src/core/getOpenAPISourceFile.url.test.ts b/cli/src/core/getOpenAPISourceFile.url.test.ts index ca5c2d7c..a1cf25cc 100644 --- a/cli/src/core/getOpenAPISourceFile.url.test.ts +++ b/cli/src/core/getOpenAPISourceFile.url.test.ts @@ -1,4 +1,4 @@ -import { describe, expect, it } from "vitest"; +import { describe, expect, it } from "vite-plus/test"; import { getOpenAPISourceFile } from "./getOpenAPISourceFile"; import nock from "nock"; diff --git a/cli/src/core/updateConfig.test.ts b/cli/src/core/updateConfig.test.ts index b91a0f79..c7158e82 100644 --- a/cli/src/core/updateConfig.test.ts +++ b/cli/src/core/updateConfig.test.ts @@ -1,4 +1,4 @@ -import { describe, expect, it } from "vitest"; +import { describe, expect, it } from "vite-plus/test"; import ts from "typescript"; import { updateConfig } from "./updateConfig"; diff --git a/cli/src/types/index.ts b/cli/src/types/index.ts index 7504747b..2e6c5728 100644 --- a/cli/src/types/index.ts +++ b/cli/src/types/index.ts @@ -98,4 +98,6 @@ export type Import = { }; export type Plugin = - "typescript/types-only" | "typescript/react-query" | "typescript/fetch"; + | "typescript/types-only" + | "typescript/react-query" + | "typescript/fetch"; diff --git a/examples/frontend/package.json b/examples/frontend/package.json index 30f0e5b8..0f4bfc21 100644 --- a/examples/frontend/package.json +++ b/examples/frontend/package.json @@ -3,9 +3,9 @@ "private": true, "version": "0.0.0", "scripts": { - "dev": "vite", - "build": "tsc && vite build", - "preview": "vite preview", + "dev": "vp dev", + "build": "tsc && vp build", + "preview": "vp preview", "gen:github": "openapi-codegen gen github" }, "dependencies": { @@ -20,6 +20,7 @@ "@types/react-dom": "19.3.0", "@vitejs/plugin-react": "6.1.2", "typescript": "~6.0.2", - "vite": "8.3.3" + "vite": "catalog:", + "vite-plus": "catalog:" } } diff --git a/examples/frontend/src/github/githubComponents.ts b/examples/frontend/src/github/githubComponents.ts index 511abeca..d3e8543b 100644 --- a/examples/frontend/src/github/githubComponents.ts +++ b/examples/frontend/src/github/githubComponents.ts @@ -46,7 +46,8 @@ export function metaRootQuery( ): { queryKey: reactQuery.QueryKey; queryFn: - ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; + | ((options: QueryFnOptions) => Promise) + | reactQuery.SkipToken; }; export function metaRootQuery( @@ -2709,7 +2710,8 @@ export function secretScanningListAlertsForEnterpriseQuery( export function secretScanningListAlertsForEnterpriseQuery( variables: - SecretScanningListAlertsForEnterpriseVariables | reactQuery.SkipToken + | SecretScanningListAlertsForEnterpriseVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -2721,7 +2723,8 @@ export function secretScanningListAlertsForEnterpriseQuery( export function secretScanningListAlertsForEnterpriseQuery( variables: - SecretScanningListAlertsForEnterpriseVariables | reactQuery.SkipToken + | SecretScanningListAlertsForEnterpriseVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -2776,7 +2779,8 @@ export const useSecretScanningListAlertsForEnterprise = < TData = SecretScanningListAlertsForEnterpriseResponse, >( variables: - SecretScanningListAlertsForEnterpriseVariables | reactQuery.SkipToken, + | SecretScanningListAlertsForEnterpriseVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< SecretScanningListAlertsForEnterpriseResponse, @@ -3003,7 +3007,8 @@ export function activityGetFeedsQuery( ): { queryKey: reactQuery.QueryKey; queryFn: - ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; + | ((options: QueryFnOptions) => Promise) + | reactQuery.SkipToken; }; export function activityGetFeedsQuery( @@ -4931,7 +4936,8 @@ export function gistsCheckIsStarredQuery( ): { queryKey: reactQuery.QueryKey; queryFn: - ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; + | ((options: QueryFnOptions) => Promise) + | reactQuery.SkipToken; }; export function gistsCheckIsStarredQuery( @@ -5501,7 +5507,8 @@ export function appsListReposAccessibleToInstallationQuery( export function appsListReposAccessibleToInstallationQuery( variables: - AppsListReposAccessibleToInstallationVariables | reactQuery.SkipToken + | AppsListReposAccessibleToInstallationVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -5513,7 +5520,8 @@ export function appsListReposAccessibleToInstallationQuery( export function appsListReposAccessibleToInstallationQuery( variables: - AppsListReposAccessibleToInstallationVariables | reactQuery.SkipToken + | AppsListReposAccessibleToInstallationVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -5570,7 +5578,8 @@ export const useAppsListReposAccessibleToInstallation = < TData = AppsListReposAccessibleToInstallationResponse, >( variables: - AppsListReposAccessibleToInstallationVariables | reactQuery.SkipToken, + | AppsListReposAccessibleToInstallationVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< AppsListReposAccessibleToInstallationResponse, @@ -5660,7 +5669,12 @@ export type IssuesListQueryParams = { * @default assigned */ filter?: - "assigned" | "created" | "mentioned" | "subscribed" | "repos" | "all"; + | "assigned" + | "created" + | "mentioned" + | "subscribed" + | "repos" + | "all"; /** * Indicates the state of the issues to return. * @@ -6715,7 +6729,8 @@ export function appsGetSubscriptionPlanForAccountStubbedQuery( export function appsGetSubscriptionPlanForAccountStubbedQuery( variables: - AppsGetSubscriptionPlanForAccountStubbedVariables | reactQuery.SkipToken + | AppsGetSubscriptionPlanForAccountStubbedVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -6725,7 +6740,8 @@ export function appsGetSubscriptionPlanForAccountStubbedQuery( export function appsGetSubscriptionPlanForAccountStubbedQuery( variables: - AppsGetSubscriptionPlanForAccountStubbedVariables | reactQuery.SkipToken + | AppsGetSubscriptionPlanForAccountStubbedVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -6782,7 +6798,8 @@ export const useAppsGetSubscriptionPlanForAccountStubbed = < TData = Schemas.MarketplacePurchase, >( variables: - AppsGetSubscriptionPlanForAccountStubbedVariables | reactQuery.SkipToken, + | AppsGetSubscriptionPlanForAccountStubbedVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< Schemas.MarketplacePurchase, @@ -7324,7 +7341,8 @@ export function activityListPublicEventsForRepoNetworkQuery( export function activityListPublicEventsForRepoNetworkQuery( variables: - ActivityListPublicEventsForRepoNetworkVariables | reactQuery.SkipToken + | ActivityListPublicEventsForRepoNetworkVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -7336,7 +7354,8 @@ export function activityListPublicEventsForRepoNetworkQuery( export function activityListPublicEventsForRepoNetworkQuery( variables: - ActivityListPublicEventsForRepoNetworkVariables | reactQuery.SkipToken + | ActivityListPublicEventsForRepoNetworkVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -7383,7 +7402,8 @@ export const useActivityListPublicEventsForRepoNetwork = < TData = ActivityListPublicEventsForRepoNetworkResponse, >( variables: - ActivityListPublicEventsForRepoNetworkVariables | reactQuery.SkipToken, + | ActivityListPublicEventsForRepoNetworkVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< ActivityListPublicEventsForRepoNetworkResponse, @@ -8243,7 +8263,8 @@ export function metaGetOctocatQuery( ): { queryKey: reactQuery.QueryKey; queryFn: - ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; + | ((options: QueryFnOptions) => Promise) + | reactQuery.SkipToken; }; export function metaGetOctocatQuery( @@ -8986,7 +9007,8 @@ export function actionsGetActionsCacheUsageByRepoForOrgQuery( export function actionsGetActionsCacheUsageByRepoForOrgQuery( variables: - ActionsGetActionsCacheUsageByRepoForOrgVariables | reactQuery.SkipToken + | ActionsGetActionsCacheUsageByRepoForOrgVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -8998,7 +9020,8 @@ export function actionsGetActionsCacheUsageByRepoForOrgQuery( export function actionsGetActionsCacheUsageByRepoForOrgQuery( variables: - ActionsGetActionsCacheUsageByRepoForOrgVariables | reactQuery.SkipToken + | ActionsGetActionsCacheUsageByRepoForOrgVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -9055,7 +9078,8 @@ export const useActionsGetActionsCacheUsageByRepoForOrg = < TData = ActionsGetActionsCacheUsageByRepoForOrgResponse, >( variables: - ActionsGetActionsCacheUsageByRepoForOrgVariables | reactQuery.SkipToken, + | ActionsGetActionsCacheUsageByRepoForOrgVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< ActionsGetActionsCacheUsageByRepoForOrgResponse, @@ -9990,7 +10014,8 @@ export function actionsGetAllowedActionsOrganizationQuery( export function actionsGetAllowedActionsOrganizationQuery( variables: - ActionsGetAllowedActionsOrganizationVariables | reactQuery.SkipToken + | ActionsGetAllowedActionsOrganizationVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -10000,7 +10025,8 @@ export function actionsGetAllowedActionsOrganizationQuery( export function actionsGetAllowedActionsOrganizationQuery( variables: - ActionsGetAllowedActionsOrganizationVariables | reactQuery.SkipToken + | ActionsGetAllowedActionsOrganizationVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -10057,7 +10083,8 @@ export const useActionsGetAllowedActionsOrganization = < TData = Schemas.SelectedActions, >( variables: - ActionsGetAllowedActionsOrganizationVariables | reactQuery.SkipToken, + | ActionsGetAllowedActionsOrganizationVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< Schemas.SelectedActions, @@ -11674,7 +11701,8 @@ export const useActionsListRunnerApplicationsForOrg = < TData = ActionsListRunnerApplicationsForOrgResponse, >( variables: - ActionsListRunnerApplicationsForOrgVariables | reactQuery.SkipToken, + | ActionsListRunnerApplicationsForOrgVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< ActionsListRunnerApplicationsForOrgResponse, @@ -12212,7 +12240,8 @@ export function actionsListLabelsForSelfHostedRunnerForOrgQuery( export function actionsListLabelsForSelfHostedRunnerForOrgQuery( variables: - ActionsListLabelsForSelfHostedRunnerForOrgVariables | reactQuery.SkipToken + | ActionsListLabelsForSelfHostedRunnerForOrgVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -12222,7 +12251,8 @@ export function actionsListLabelsForSelfHostedRunnerForOrgQuery( export function actionsListLabelsForSelfHostedRunnerForOrgQuery( variables: - ActionsListLabelsForSelfHostedRunnerForOrgVariables | reactQuery.SkipToken + | ActionsListLabelsForSelfHostedRunnerForOrgVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -12279,7 +12309,8 @@ export const useActionsListLabelsForSelfHostedRunnerForOrg = < TData = Responses.ActionsRunnerLabels, >( variables: - ActionsListLabelsForSelfHostedRunnerForOrgVariables | reactQuery.SkipToken, + | ActionsListLabelsForSelfHostedRunnerForOrgVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< Responses.ActionsRunnerLabels, @@ -13370,7 +13401,8 @@ export function actionsListSelectedReposForOrgSecretQuery( export function actionsListSelectedReposForOrgSecretQuery( variables: - ActionsListSelectedReposForOrgSecretVariables | reactQuery.SkipToken + | ActionsListSelectedReposForOrgSecretVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -13382,7 +13414,8 @@ export function actionsListSelectedReposForOrgSecretQuery( export function actionsListSelectedReposForOrgSecretQuery( variables: - ActionsListSelectedReposForOrgSecretVariables | reactQuery.SkipToken + | ActionsListSelectedReposForOrgSecretVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -13435,7 +13468,8 @@ export const useActionsListSelectedReposForOrgSecret = < TData = ActionsListSelectedReposForOrgSecretResponse, >( variables: - ActionsListSelectedReposForOrgSecretVariables | reactQuery.SkipToken, + | ActionsListSelectedReposForOrgSecretVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< ActionsListSelectedReposForOrgSecretResponse, @@ -14271,7 +14305,8 @@ export function actionsListSelectedReposForOrgVariableQuery( export function actionsListSelectedReposForOrgVariableQuery( variables: - ActionsListSelectedReposForOrgVariableVariables | reactQuery.SkipToken + | ActionsListSelectedReposForOrgVariableVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -14283,7 +14318,8 @@ export function actionsListSelectedReposForOrgVariableQuery( export function actionsListSelectedReposForOrgVariableQuery( variables: - ActionsListSelectedReposForOrgVariableVariables | reactQuery.SkipToken + | ActionsListSelectedReposForOrgVariableVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -14336,7 +14372,8 @@ export const useActionsListSelectedReposForOrgVariable = < TData = ActionsListSelectedReposForOrgVariableResponse, >( variables: - ActionsListSelectedReposForOrgVariableVariables | reactQuery.SkipToken, + | ActionsListSelectedReposForOrgVariableVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< ActionsListSelectedReposForOrgVariableResponse, @@ -14820,7 +14857,8 @@ export function orgsCheckBlockedUserQuery( ): { queryKey: reactQuery.QueryKey; queryFn: - ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; + | ((options: QueryFnOptions) => Promise) + | reactQuery.SkipToken; }; export function orgsCheckBlockedUserQuery( @@ -16425,7 +16463,8 @@ export function codespacesListSelectedReposForOrgSecretQuery( export function codespacesListSelectedReposForOrgSecretQuery( variables: - CodespacesListSelectedReposForOrgSecretVariables | reactQuery.SkipToken + | CodespacesListSelectedReposForOrgSecretVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -16437,7 +16476,8 @@ export function codespacesListSelectedReposForOrgSecretQuery( export function codespacesListSelectedReposForOrgSecretQuery( variables: - CodespacesListSelectedReposForOrgSecretVariables | reactQuery.SkipToken + | CodespacesListSelectedReposForOrgSecretVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -16490,7 +16530,8 @@ export const useCodespacesListSelectedReposForOrgSecret = < TData = CodespacesListSelectedReposForOrgSecretResponse, >( variables: - CodespacesListSelectedReposForOrgSecretVariables | reactQuery.SkipToken, + | CodespacesListSelectedReposForOrgSecretVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< CodespacesListSelectedReposForOrgSecretResponse, @@ -17798,7 +17839,8 @@ export function dependabotListSelectedReposForOrgSecretQuery( export function dependabotListSelectedReposForOrgSecretQuery( variables: - DependabotListSelectedReposForOrgSecretVariables | reactQuery.SkipToken + | DependabotListSelectedReposForOrgSecretVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -17810,7 +17852,8 @@ export function dependabotListSelectedReposForOrgSecretQuery( export function dependabotListSelectedReposForOrgSecretQuery( variables: - DependabotListSelectedReposForOrgSecretVariables | reactQuery.SkipToken + | DependabotListSelectedReposForOrgSecretVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -17863,7 +17906,8 @@ export const useDependabotListSelectedReposForOrgSecret = < TData = DependabotListSelectedReposForOrgSecretResponse, >( variables: - DependabotListSelectedReposForOrgSecretVariables | reactQuery.SkipToken, + | DependabotListSelectedReposForOrgSecretVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< DependabotListSelectedReposForOrgSecretResponse, @@ -20115,7 +20159,11 @@ export type OrgsListPendingInvitationsQueryParams = { * @default all */ role?: - "all" | "admin" | "direct_member" | "billing_manager" | "hiring_manager"; + | "all" + | "admin" + | "direct_member" + | "billing_manager" + | "hiring_manager"; /** * Filter invitations by their invitation source. * @@ -20590,7 +20638,12 @@ export type IssuesListForOrgQueryParams = { * @default assigned */ filter?: - "assigned" | "created" | "mentioned" | "subscribed" | "repos" | "all"; + | "assigned" + | "created" + | "mentioned" + | "subscribed" + | "repos" + | "all"; /** * Indicates the state of the issues to return. * @@ -21042,7 +21095,8 @@ export function orgsCheckMembershipForUserQuery( ): { queryKey: reactQuery.QueryKey; queryFn: - ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; + | ((options: QueryFnOptions) => Promise) + | reactQuery.SkipToken; }; export function orgsCheckMembershipForUserQuery( @@ -21281,7 +21335,8 @@ export const useCodespacesGetCodespacesForUserInOrg = < TData = CodespacesGetCodespacesForUserInOrgResponse, >( variables: - CodespacesGetCodespacesForUserInOrgVariables | reactQuery.SkipToken, + | CodespacesGetCodespacesForUserInOrgVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< CodespacesGetCodespacesForUserInOrgResponse, @@ -22376,7 +22431,8 @@ export function migrationsDownloadArchiveForOrgQuery( ): { queryKey: reactQuery.QueryKey; queryFn: - ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; + | ((options: QueryFnOptions) => Promise) + | reactQuery.SkipToken; }; export function migrationsDownloadArchiveForOrgQuery( @@ -23138,7 +23194,8 @@ export const usePackagesListPackagesForOrganization = < TData = PackagesListPackagesForOrganizationResponse, >( variables: - PackagesListPackagesForOrganizationVariables | reactQuery.SkipToken, + | PackagesListPackagesForOrganizationVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< PackagesListPackagesForOrganizationResponse, @@ -23860,7 +23917,8 @@ export function packagesGetPackageVersionForOrganizationQuery( export function packagesGetPackageVersionForOrganizationQuery( variables: - PackagesGetPackageVersionForOrganizationVariables | reactQuery.SkipToken + | PackagesGetPackageVersionForOrganizationVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -23870,7 +23928,8 @@ export function packagesGetPackageVersionForOrganizationQuery( export function packagesGetPackageVersionForOrganizationQuery( variables: - PackagesGetPackageVersionForOrganizationVariables | reactQuery.SkipToken + | PackagesGetPackageVersionForOrganizationVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -23927,7 +23986,8 @@ export const usePackagesGetPackageVersionForOrganization = < TData = Schemas.PackageVersion, >( variables: - PackagesGetPackageVersionForOrganizationVariables | reactQuery.SkipToken, + | PackagesGetPackageVersionForOrganizationVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< Schemas.PackageVersion, @@ -24543,7 +24603,8 @@ export function orgsCheckPublicMembershipForUserQuery( ): { queryKey: reactQuery.QueryKey; queryFn: - ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; + | ((options: QueryFnOptions) => Promise) + | reactQuery.SkipToken; }; export function orgsCheckPublicMembershipForUserQuery( @@ -27728,7 +27789,14 @@ export type ReactionsListForTeamDiscussionCommentInOrgQueryParams = { * Returns a single [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to a team discussion comment. */ content?: - "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; /** * The number of results per page (max 100). * @@ -27793,7 +27861,8 @@ export function reactionsListForTeamDiscussionCommentInOrgQuery( export function reactionsListForTeamDiscussionCommentInOrgQuery( variables: - ReactionsListForTeamDiscussionCommentInOrgVariables | reactQuery.SkipToken + | ReactionsListForTeamDiscussionCommentInOrgVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -27805,7 +27874,8 @@ export function reactionsListForTeamDiscussionCommentInOrgQuery( export function reactionsListForTeamDiscussionCommentInOrgQuery( variables: - ReactionsListForTeamDiscussionCommentInOrgVariables | reactQuery.SkipToken + | ReactionsListForTeamDiscussionCommentInOrgVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -27862,7 +27932,8 @@ export const useReactionsListForTeamDiscussionCommentInOrg = < TData = ReactionsListForTeamDiscussionCommentInOrgResponse, >( variables: - ReactionsListForTeamDiscussionCommentInOrgVariables | reactQuery.SkipToken, + | ReactionsListForTeamDiscussionCommentInOrgVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< ReactionsListForTeamDiscussionCommentInOrgResponse, @@ -27915,7 +27986,14 @@ export type ReactionsCreateForTeamDiscussionCommentInOrgRequestBody = { * The [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types) to add to the team discussion comment. */ content: - "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; }; export type ReactionsCreateForTeamDiscussionCommentInOrgVariables = { @@ -28079,7 +28157,14 @@ export type ReactionsListForTeamDiscussionInOrgQueryParams = { * Returns a single [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to a team discussion. */ content?: - "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; /** * The number of results per page (max 100). * @@ -28210,7 +28295,8 @@ export const useReactionsListForTeamDiscussionInOrg = < TData = ReactionsListForTeamDiscussionInOrgResponse, >( variables: - ReactionsListForTeamDiscussionInOrgVariables | reactQuery.SkipToken, + | ReactionsListForTeamDiscussionInOrgVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< ReactionsListForTeamDiscussionInOrgResponse, @@ -28259,7 +28345,14 @@ export type ReactionsCreateForTeamDiscussionInOrgRequestBody = { * The [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types) to add to the team discussion. */ content: - "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; }; export type ReactionsCreateForTeamDiscussionInOrgVariables = { @@ -29378,7 +29471,8 @@ export function teamsCheckPermissionsForProjectInOrgQuery( export function teamsCheckPermissionsForProjectInOrgQuery( variables: - TeamsCheckPermissionsForProjectInOrgVariables | reactQuery.SkipToken + | TeamsCheckPermissionsForProjectInOrgVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -29388,7 +29482,8 @@ export function teamsCheckPermissionsForProjectInOrgQuery( export function teamsCheckPermissionsForProjectInOrgQuery( variables: - TeamsCheckPermissionsForProjectInOrgVariables | reactQuery.SkipToken + | TeamsCheckPermissionsForProjectInOrgVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -29445,7 +29540,8 @@ export const useTeamsCheckPermissionsForProjectInOrg = < TData = Schemas.TeamProject, >( variables: - TeamsCheckPermissionsForProjectInOrgVariables | reactQuery.SkipToken, + | TeamsCheckPermissionsForProjectInOrgVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< Schemas.TeamProject, @@ -32951,7 +33047,8 @@ export const useActionsGetRepoRequiredWorkflowUsage = < TData = Schemas.WorkflowUsage, >( variables: - ActionsGetRepoRequiredWorkflowUsageVariables | reactQuery.SkipToken, + | ActionsGetRepoRequiredWorkflowUsageVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< Schemas.WorkflowUsage, @@ -33875,7 +33972,8 @@ export function actionsDownloadArtifactQuery( ): { queryKey: reactQuery.QueryKey; queryFn: - ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; + | ((options: QueryFnOptions) => Promise) + | reactQuery.SkipToken; }; export function actionsDownloadArtifactQuery( @@ -34484,7 +34582,8 @@ export function actionsGetJobForWorkflowRunQuery( ): { queryKey: reactQuery.QueryKey; queryFn: - ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; + | ((options: QueryFnOptions) => Promise) + | reactQuery.SkipToken; }; export function actionsGetJobForWorkflowRunQuery( @@ -34621,16 +34720,19 @@ export function actionsDownloadJobLogsForWorkflowRunQuery( export function actionsDownloadJobLogsForWorkflowRunQuery( variables: - ActionsDownloadJobLogsForWorkflowRunVariables | reactQuery.SkipToken + | ActionsDownloadJobLogsForWorkflowRunVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: - ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; + | ((options: QueryFnOptions) => Promise) + | reactQuery.SkipToken; }; export function actionsDownloadJobLogsForWorkflowRunQuery( variables: - ActionsDownloadJobLogsForWorkflowRunVariables | reactQuery.SkipToken + | ActionsDownloadJobLogsForWorkflowRunVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -34687,7 +34789,8 @@ export const useSuspenseActionsDownloadJobLogsForWorkflowRun = < */ export const useActionsDownloadJobLogsForWorkflowRun = ( variables: - ActionsDownloadJobLogsForWorkflowRunVariables | reactQuery.SkipToken, + | ActionsDownloadJobLogsForWorkflowRunVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< undefined, @@ -34926,7 +35029,8 @@ export const useActionsGetCustomOidcSubClaimForRepo = < TData = Schemas.OidcCustomSubRepo, >( variables: - ActionsGetCustomOidcSubClaimForRepoVariables | reactQuery.SkipToken, + | ActionsGetCustomOidcSubClaimForRepoVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< Schemas.OidcCustomSubRepo, @@ -35103,7 +35207,8 @@ export function actionsGetGithubActionsPermissionsRepositoryQuery( export function actionsGetGithubActionsPermissionsRepositoryQuery( variables: - ActionsGetGithubActionsPermissionsRepositoryVariables | reactQuery.SkipToken + | ActionsGetGithubActionsPermissionsRepositoryVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -35115,7 +35220,8 @@ export function actionsGetGithubActionsPermissionsRepositoryQuery( export function actionsGetGithubActionsPermissionsRepositoryQuery( variables: - ActionsGetGithubActionsPermissionsRepositoryVariables | reactQuery.SkipToken + | ActionsGetGithubActionsPermissionsRepositoryVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -35343,7 +35449,8 @@ export function actionsGetWorkflowAccessToRepositoryQuery( export function actionsGetWorkflowAccessToRepositoryQuery( variables: - ActionsGetWorkflowAccessToRepositoryVariables | reactQuery.SkipToken + | ActionsGetWorkflowAccessToRepositoryVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -35355,7 +35462,8 @@ export function actionsGetWorkflowAccessToRepositoryQuery( export function actionsGetWorkflowAccessToRepositoryQuery( variables: - ActionsGetWorkflowAccessToRepositoryVariables | reactQuery.SkipToken + | ActionsGetWorkflowAccessToRepositoryVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -35418,7 +35526,8 @@ export const useActionsGetWorkflowAccessToRepository = < TData = Schemas.ActionsWorkflowAccessToRepository, >( variables: - ActionsGetWorkflowAccessToRepositoryVariables | reactQuery.SkipToken, + | ActionsGetWorkflowAccessToRepositoryVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< Schemas.ActionsWorkflowAccessToRepository, @@ -36347,7 +36456,8 @@ export const useActionsListSelfHostedRunnersForRepo = < TData = ActionsListSelfHostedRunnersForRepoResponse, >( variables: - ActionsListSelfHostedRunnersForRepoVariables | reactQuery.SkipToken, + | ActionsListSelfHostedRunnersForRepoVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< ActionsListSelfHostedRunnersForRepoResponse, @@ -36433,7 +36543,8 @@ export function actionsListRunnerApplicationsForRepoQuery( export function actionsListRunnerApplicationsForRepoQuery( variables: - ActionsListRunnerApplicationsForRepoVariables | reactQuery.SkipToken + | ActionsListRunnerApplicationsForRepoVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -36445,7 +36556,8 @@ export function actionsListRunnerApplicationsForRepoQuery( export function actionsListRunnerApplicationsForRepoQuery( variables: - ActionsListRunnerApplicationsForRepoVariables | reactQuery.SkipToken + | ActionsListRunnerApplicationsForRepoVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -36502,7 +36614,8 @@ export const useActionsListRunnerApplicationsForRepo = < TData = ActionsListRunnerApplicationsForRepoResponse, >( variables: - ActionsListRunnerApplicationsForRepoVariables | reactQuery.SkipToken, + | ActionsListRunnerApplicationsForRepoVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< ActionsListRunnerApplicationsForRepoResponse, @@ -37071,7 +37184,8 @@ export function actionsListLabelsForSelfHostedRunnerForRepoQuery( export function actionsListLabelsForSelfHostedRunnerForRepoQuery( variables: - ActionsListLabelsForSelfHostedRunnerForRepoVariables | reactQuery.SkipToken + | ActionsListLabelsForSelfHostedRunnerForRepoVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -37081,7 +37195,8 @@ export function actionsListLabelsForSelfHostedRunnerForRepoQuery( export function actionsListLabelsForSelfHostedRunnerForRepoQuery( variables: - ActionsListLabelsForSelfHostedRunnerForRepoVariables | reactQuery.SkipToken + | ActionsListLabelsForSelfHostedRunnerForRepoVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -37140,7 +37255,8 @@ export const useActionsListLabelsForSelfHostedRunnerForRepo = < TData = Responses.ActionsRunnerLabels, >( variables: - ActionsListLabelsForSelfHostedRunnerForRepoVariables | reactQuery.SkipToken, + | ActionsListLabelsForSelfHostedRunnerForRepoVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< Responses.ActionsRunnerLabels, @@ -38532,7 +38648,8 @@ export function actionsListJobsForWorkflowRunAttemptQuery( export function actionsListJobsForWorkflowRunAttemptQuery( variables: - ActionsListJobsForWorkflowRunAttemptVariables | reactQuery.SkipToken + | ActionsListJobsForWorkflowRunAttemptVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -38544,7 +38661,8 @@ export function actionsListJobsForWorkflowRunAttemptQuery( export function actionsListJobsForWorkflowRunAttemptQuery( variables: - ActionsListJobsForWorkflowRunAttemptVariables | reactQuery.SkipToken + | ActionsListJobsForWorkflowRunAttemptVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -38597,7 +38715,8 @@ export const useActionsListJobsForWorkflowRunAttempt = < TData = ActionsListJobsForWorkflowRunAttemptResponse, >( variables: - ActionsListJobsForWorkflowRunAttemptVariables | reactQuery.SkipToken, + | ActionsListJobsForWorkflowRunAttemptVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< ActionsListJobsForWorkflowRunAttemptResponse, @@ -38688,16 +38807,19 @@ export function actionsDownloadWorkflowRunAttemptLogsQuery( export function actionsDownloadWorkflowRunAttemptLogsQuery( variables: - ActionsDownloadWorkflowRunAttemptLogsVariables | reactQuery.SkipToken + | ActionsDownloadWorkflowRunAttemptLogsVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: - ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; + | ((options: QueryFnOptions) => Promise) + | reactQuery.SkipToken; }; export function actionsDownloadWorkflowRunAttemptLogsQuery( variables: - ActionsDownloadWorkflowRunAttemptLogsVariables | reactQuery.SkipToken + | ActionsDownloadWorkflowRunAttemptLogsVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -38754,7 +38876,8 @@ export const useSuspenseActionsDownloadWorkflowRunAttemptLogs = < */ export const useActionsDownloadWorkflowRunAttemptLogs = ( variables: - ActionsDownloadWorkflowRunAttemptLogsVariables | reactQuery.SkipToken, + | ActionsDownloadWorkflowRunAttemptLogsVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< undefined, @@ -39160,7 +39283,8 @@ export function actionsDownloadWorkflowRunLogsQuery( ): { queryKey: reactQuery.QueryKey; queryFn: - ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; + | ((options: QueryFnOptions) => Promise) + | reactQuery.SkipToken; }; export function actionsDownloadWorkflowRunLogsQuery( @@ -42159,7 +42283,8 @@ export function issuesCheckUserCanBeAssignedQuery( ): { queryKey: reactQuery.QueryKey; queryFn: - ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; + | ((options: QueryFnOptions) => Promise) + | reactQuery.SkipToken; }; export function issuesCheckUserCanBeAssignedQuery( @@ -44012,7 +44137,8 @@ export const useReposGetPullRequestReviewProtection = < TData = Schemas.ProtectedBranchPullRequestReview, >( variables: - ReposGetPullRequestReviewProtectionVariables | reactQuery.SkipToken, + | ReposGetPullRequestReviewProtectionVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< Schemas.ProtectedBranchPullRequestReview, @@ -45630,7 +45756,8 @@ export function reposGetAppsWithAccessToProtectedBranchQuery( export function reposGetAppsWithAccessToProtectedBranchQuery( variables: - ReposGetAppsWithAccessToProtectedBranchVariables | reactQuery.SkipToken + | ReposGetAppsWithAccessToProtectedBranchVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -45642,7 +45769,8 @@ export function reposGetAppsWithAccessToProtectedBranchQuery( export function reposGetAppsWithAccessToProtectedBranchQuery( variables: - ReposGetAppsWithAccessToProtectedBranchVariables | reactQuery.SkipToken + | ReposGetAppsWithAccessToProtectedBranchVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -45699,7 +45827,8 @@ export const useReposGetAppsWithAccessToProtectedBranch = < TData = ReposGetAppsWithAccessToProtectedBranchResponse, >( variables: - ReposGetAppsWithAccessToProtectedBranchVariables | reactQuery.SkipToken, + | ReposGetAppsWithAccessToProtectedBranchVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< ReposGetAppsWithAccessToProtectedBranchResponse, @@ -46063,7 +46192,8 @@ export function reposGetTeamsWithAccessToProtectedBranchQuery( export function reposGetTeamsWithAccessToProtectedBranchQuery( variables: - ReposGetTeamsWithAccessToProtectedBranchVariables | reactQuery.SkipToken + | ReposGetTeamsWithAccessToProtectedBranchVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -46075,7 +46205,8 @@ export function reposGetTeamsWithAccessToProtectedBranchQuery( export function reposGetTeamsWithAccessToProtectedBranchQuery( variables: - ReposGetTeamsWithAccessToProtectedBranchVariables | reactQuery.SkipToken + | ReposGetTeamsWithAccessToProtectedBranchVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -46132,7 +46263,8 @@ export const useReposGetTeamsWithAccessToProtectedBranch = < TData = ReposGetTeamsWithAccessToProtectedBranchResponse, >( variables: - ReposGetTeamsWithAccessToProtectedBranchVariables | reactQuery.SkipToken, + | ReposGetTeamsWithAccessToProtectedBranchVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< ReposGetTeamsWithAccessToProtectedBranchResponse, @@ -46505,7 +46637,8 @@ export function reposGetUsersWithAccessToProtectedBranchQuery( export function reposGetUsersWithAccessToProtectedBranchQuery( variables: - ReposGetUsersWithAccessToProtectedBranchVariables | reactQuery.SkipToken + | ReposGetUsersWithAccessToProtectedBranchVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -46517,7 +46650,8 @@ export function reposGetUsersWithAccessToProtectedBranchQuery( export function reposGetUsersWithAccessToProtectedBranchQuery( variables: - ReposGetUsersWithAccessToProtectedBranchVariables | reactQuery.SkipToken + | ReposGetUsersWithAccessToProtectedBranchVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -46574,7 +46708,8 @@ export const useReposGetUsersWithAccessToProtectedBranch = < TData = ReposGetUsersWithAccessToProtectedBranchResponse, >( variables: - ReposGetUsersWithAccessToProtectedBranchVariables | reactQuery.SkipToken, + | ReposGetUsersWithAccessToProtectedBranchVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< ReposGetUsersWithAccessToProtectedBranchResponse, @@ -50914,7 +51049,8 @@ export function codespacesRepoMachinesForAuthenticatedUserQuery( export function codespacesRepoMachinesForAuthenticatedUserQuery( variables: - CodespacesRepoMachinesForAuthenticatedUserVariables | reactQuery.SkipToken + | CodespacesRepoMachinesForAuthenticatedUserVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -50926,7 +51062,8 @@ export function codespacesRepoMachinesForAuthenticatedUserQuery( export function codespacesRepoMachinesForAuthenticatedUserQuery( variables: - CodespacesRepoMachinesForAuthenticatedUserVariables | reactQuery.SkipToken + | CodespacesRepoMachinesForAuthenticatedUserVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -50987,7 +51124,8 @@ export const useCodespacesRepoMachinesForAuthenticatedUser = < TData = CodespacesRepoMachinesForAuthenticatedUserResponse, >( variables: - CodespacesRepoMachinesForAuthenticatedUserVariables | reactQuery.SkipToken, + | CodespacesRepoMachinesForAuthenticatedUserVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< CodespacesRepoMachinesForAuthenticatedUserResponse, @@ -52269,7 +52407,8 @@ export function reposCheckCollaboratorQuery( ): { queryKey: reactQuery.QueryKey; queryFn: - ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; + | ((options: QueryFnOptions) => Promise) + | reactQuery.SkipToken; }; export function reposCheckCollaboratorQuery( @@ -52593,7 +52732,8 @@ export const useReposGetCollaboratorPermissionLevel = < TData = Schemas.RepositoryCollaboratorPermission, >( variables: - ReposGetCollaboratorPermissionLevelVariables | reactQuery.SkipToken, + | ReposGetCollaboratorPermissionLevelVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< Schemas.RepositoryCollaboratorPermission, @@ -53067,7 +53207,14 @@ export type ReactionsListForCommitCommentQueryParams = { * Returns a single [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to a commit comment. */ content?: - "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; /** * The number of results per page (max 100). * @@ -53240,7 +53387,14 @@ export type ReactionsCreateForCommitCommentRequestBody = { * The [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types) to add to the commit comment. */ content: - "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; }; export type ReactionsCreateForCommitCommentVariables = { @@ -54160,7 +54314,8 @@ export function reposListPullRequestsAssociatedWithCommitQuery( export function reposListPullRequestsAssociatedWithCommitQuery( variables: - ReposListPullRequestsAssociatedWithCommitVariables | reactQuery.SkipToken + | ReposListPullRequestsAssociatedWithCommitVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -54172,7 +54327,8 @@ export function reposListPullRequestsAssociatedWithCommitQuery( export function reposListPullRequestsAssociatedWithCommitQuery( variables: - ReposListPullRequestsAssociatedWithCommitVariables | reactQuery.SkipToken + | ReposListPullRequestsAssociatedWithCommitVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -54225,7 +54381,8 @@ export const useReposListPullRequestsAssociatedWithCommit = < TData = ReposListPullRequestsAssociatedWithCommitResponse, >( variables: - ReposListPullRequestsAssociatedWithCommitVariables | reactQuery.SkipToken, + | ReposListPullRequestsAssociatedWithCommitVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< ReposListPullRequestsAssociatedWithCommitResponse, @@ -60819,7 +60976,8 @@ export function gitGetBlobQuery( ): { queryKey: reactQuery.QueryKey; queryFn: - ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; + | ((options: QueryFnOptions) => Promise) + | reactQuery.SkipToken; }; export function gitGetBlobQuery( @@ -62895,7 +63053,8 @@ export function reposGetWebhookQuery( ): { queryKey: reactQuery.QueryKey; queryFn: - ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; + | ((options: QueryFnOptions) => Promise) + | reactQuery.SkipToken; }; export function reposGetWebhookQuery( @@ -66364,7 +66523,14 @@ export type ReactionsListForIssueCommentQueryParams = { * Returns a single [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to an issue comment. */ content?: - "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; /** * The number of results per page (max 100). * @@ -66537,7 +66703,14 @@ export type ReactionsCreateForIssueCommentRequestBody = { * The [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types) to add to the issue comment. */ content: - "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; }; export type ReactionsCreateForIssueCommentVariables = { @@ -67456,7 +67629,8 @@ export function issuesCheckUserCanBeAssignedToIssueQuery( ): { queryKey: reactQuery.QueryKey; queryFn: - ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; + | ((options: QueryFnOptions) => Promise) + | reactQuery.SkipToken; }; export function issuesCheckUserCanBeAssignedToIssueQuery( @@ -67519,7 +67693,8 @@ export const useSuspenseIssuesCheckUserCanBeAssignedToIssue = < */ export const useIssuesCheckUserCanBeAssignedToIssue = ( variables: - IssuesCheckUserCanBeAssignedToIssueVariables | reactQuery.SkipToken, + | IssuesCheckUserCanBeAssignedToIssueVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< undefined, @@ -68716,7 +68891,14 @@ export type ReactionsListForIssueQueryParams = { * Returns a single [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to an issue. */ content?: - "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; /** * The number of results per page (max 100). * @@ -68889,7 +69071,14 @@ export type ReactionsCreateForIssueRequestBody = { * The [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types) to add to the issue. */ content: - "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; }; export type ReactionsCreateForIssueVariables = { @@ -71652,7 +71841,8 @@ export function reposGetPagesQuery( ): { queryKey: reactQuery.QueryKey; queryFn: - ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; + | ((options: QueryFnOptions) => Promise) + | reactQuery.SkipToken; }; export function reposGetPagesQuery( @@ -73945,7 +74135,14 @@ export type ReactionsListForPullRequestReviewCommentQueryParams = { * Returns a single [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to a pull request review comment. */ content?: - "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; /** * The number of results per page (max 100). * @@ -74009,7 +74206,8 @@ export function reactionsListForPullRequestReviewCommentQuery( export function reactionsListForPullRequestReviewCommentQuery( variables: - ReactionsListForPullRequestReviewCommentVariables | reactQuery.SkipToken + | ReactionsListForPullRequestReviewCommentVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -74021,7 +74219,8 @@ export function reactionsListForPullRequestReviewCommentQuery( export function reactionsListForPullRequestReviewCommentQuery( variables: - ReactionsListForPullRequestReviewCommentVariables | reactQuery.SkipToken + | ReactionsListForPullRequestReviewCommentVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -74074,7 +74273,8 @@ export const useReactionsListForPullRequestReviewComment = < TData = ReactionsListForPullRequestReviewCommentResponse, >( variables: - ReactionsListForPullRequestReviewCommentVariables | reactQuery.SkipToken, + | ReactionsListForPullRequestReviewCommentVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< ReactionsListForPullRequestReviewCommentResponse, @@ -74126,7 +74326,14 @@ export type ReactionsCreateForPullRequestReviewCommentRequestBody = { * The [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types) to add to the pull request review comment. */ content: - "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; }; export type ReactionsCreateForPullRequestReviewCommentVariables = { @@ -75487,7 +75694,8 @@ export function pullsCheckIfMergedQuery( ): { queryKey: reactQuery.QueryKey; queryFn: - ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; + | ((options: QueryFnOptions) => Promise) + | reactQuery.SkipToken; }; export function pullsCheckIfMergedQuery( @@ -79727,7 +79935,8 @@ export const useSecretScanningListLocationsForAlert = < TData = SecretScanningListLocationsForAlertResponse, >( variables: - SecretScanningListLocationsForAlertVariables | reactQuery.SkipToken, + | SecretScanningListLocationsForAlertVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< SecretScanningListLocationsForAlertResponse, @@ -80005,7 +80214,9 @@ export function reposGetCodeFrequencyStatsQuery( */ export const useSuspenseReposGetCodeFrequencyStats = < TData = - Schemas.CodeFrequencyStat[] | Responses.Accepted | Responses.NoContent, + | Schemas.CodeFrequencyStat[] + | Responses.Accepted + | Responses.NoContent, >( variables: ReposGetCodeFrequencyStatsVariables, options?: Omit< @@ -80034,7 +80245,9 @@ export const useSuspenseReposGetCodeFrequencyStats = < */ export const useReposGetCodeFrequencyStats = < TData = - Schemas.CodeFrequencyStat[] | Responses.Accepted | Responses.NoContent, + | Schemas.CodeFrequencyStat[] + | Responses.Accepted + | Responses.NoContent, >( variables: ReposGetCodeFrequencyStatsVariables | reactQuery.SkipToken, options?: Omit< @@ -80306,7 +80519,9 @@ export function reposGetContributorsStatsQuery( */ export const useSuspenseReposGetContributorsStats = < TData = - Schemas.ContributorActivity[] | Responses.Accepted | Responses.NoContent, + | Schemas.ContributorActivity[] + | Responses.Accepted + | Responses.NoContent, >( variables: ReposGetContributorsStatsVariables, options?: Omit< @@ -80340,7 +80555,9 @@ export const useSuspenseReposGetContributorsStats = < */ export const useReposGetContributorsStats = < TData = - Schemas.ContributorActivity[] | Responses.Accepted | Responses.NoContent, + | Schemas.ContributorActivity[] + | Responses.Accepted + | Responses.NoContent, >( variables: ReposGetContributorsStatsVariables | reactQuery.SkipToken, options?: Omit< @@ -81684,7 +81901,8 @@ export function reposDownloadTarballArchiveQuery( ): { queryKey: reactQuery.QueryKey; queryFn: - ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; + | ((options: QueryFnOptions) => Promise) + | reactQuery.SkipToken; }; export function reposDownloadTarballArchiveQuery( @@ -82835,7 +83053,8 @@ export function reposCheckVulnerabilityAlertsQuery( ): { queryKey: reactQuery.QueryKey; queryFn: - ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; + | ((options: QueryFnOptions) => Promise) + | reactQuery.SkipToken; }; export function reposCheckVulnerabilityAlertsQuery( @@ -83037,7 +83256,8 @@ export function reposDownloadZipballArchiveQuery( ): { queryKey: reactQuery.QueryKey; queryFn: - ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; + | ((options: QueryFnOptions) => Promise) + | reactQuery.SkipToken; }; export function reposDownloadZipballArchiveQuery( @@ -87372,7 +87592,14 @@ export type ReactionsListForTeamDiscussionCommentLegacyQueryParams = { * Returns a single [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to a team discussion comment. */ content?: - "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; /** * The number of results per page (max 100). * @@ -87437,7 +87664,8 @@ export function reactionsListForTeamDiscussionCommentLegacyQuery( export function reactionsListForTeamDiscussionCommentLegacyQuery( variables: - ReactionsListForTeamDiscussionCommentLegacyVariables | reactQuery.SkipToken + | ReactionsListForTeamDiscussionCommentLegacyVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -87449,7 +87677,8 @@ export function reactionsListForTeamDiscussionCommentLegacyQuery( export function reactionsListForTeamDiscussionCommentLegacyQuery( variables: - ReactionsListForTeamDiscussionCommentLegacyVariables | reactQuery.SkipToken + | ReactionsListForTeamDiscussionCommentLegacyVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -87506,7 +87735,8 @@ export const useReactionsListForTeamDiscussionCommentLegacy = < TData = ReactionsListForTeamDiscussionCommentLegacyResponse, >( variables: - ReactionsListForTeamDiscussionCommentLegacyVariables | reactQuery.SkipToken, + | ReactionsListForTeamDiscussionCommentLegacyVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< ReactionsListForTeamDiscussionCommentLegacyResponse, @@ -87555,7 +87785,14 @@ export type ReactionsCreateForTeamDiscussionCommentLegacyRequestBody = { * The [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types) to add to the team discussion comment. */ content: - "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; }; export type ReactionsCreateForTeamDiscussionCommentLegacyVariables = { @@ -87633,7 +87870,14 @@ export type ReactionsListForTeamDiscussionLegacyQueryParams = { * Returns a single [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to a team discussion. */ content?: - "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; /** * The number of results per page (max 100). * @@ -87697,7 +87941,8 @@ export function reactionsListForTeamDiscussionLegacyQuery( export function reactionsListForTeamDiscussionLegacyQuery( variables: - ReactionsListForTeamDiscussionLegacyVariables | reactQuery.SkipToken + | ReactionsListForTeamDiscussionLegacyVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -87709,7 +87954,8 @@ export function reactionsListForTeamDiscussionLegacyQuery( export function reactionsListForTeamDiscussionLegacyQuery( variables: - ReactionsListForTeamDiscussionLegacyVariables | reactQuery.SkipToken + | ReactionsListForTeamDiscussionLegacyVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -87766,7 +88012,8 @@ export const useReactionsListForTeamDiscussionLegacy = < TData = ReactionsListForTeamDiscussionLegacyResponse, >( variables: - ReactionsListForTeamDiscussionLegacyVariables | reactQuery.SkipToken, + | ReactionsListForTeamDiscussionLegacyVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< ReactionsListForTeamDiscussionLegacyResponse, @@ -87811,7 +88058,14 @@ export type ReactionsCreateForTeamDiscussionLegacyRequestBody = { * The [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types) to add to the team discussion. */ content: - "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; }; export type ReactionsCreateForTeamDiscussionLegacyVariables = { @@ -88335,7 +88589,8 @@ export function teamsGetMemberLegacyQuery( ): { queryKey: reactQuery.QueryKey; queryFn: - ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; + | ((options: QueryFnOptions) => Promise) + | reactQuery.SkipToken; }; export function teamsGetMemberLegacyQuery( @@ -89132,7 +89387,8 @@ export function teamsCheckPermissionsForProjectLegacyQuery( export function teamsCheckPermissionsForProjectLegacyQuery( variables: - TeamsCheckPermissionsForProjectLegacyVariables | reactQuery.SkipToken + | TeamsCheckPermissionsForProjectLegacyVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -89142,7 +89398,8 @@ export function teamsCheckPermissionsForProjectLegacyQuery( export function teamsCheckPermissionsForProjectLegacyQuery( variables: - TeamsCheckPermissionsForProjectLegacyVariables | reactQuery.SkipToken + | TeamsCheckPermissionsForProjectLegacyVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -89199,7 +89456,8 @@ export const useTeamsCheckPermissionsForProjectLegacy = < TData = Schemas.TeamProject, >( variables: - TeamsCheckPermissionsForProjectLegacyVariables | reactQuery.SkipToken, + | TeamsCheckPermissionsForProjectLegacyVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< Schemas.TeamProject, @@ -90330,7 +90588,8 @@ export const useUsersListBlockedByAuthenticatedUser = < TData = UsersListBlockedByAuthenticatedUserResponse, >( variables: - UsersListBlockedByAuthenticatedUserVariables | reactQuery.SkipToken, + | UsersListBlockedByAuthenticatedUserVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< UsersListBlockedByAuthenticatedUserResponse, @@ -90474,7 +90733,8 @@ export function usersCheckBlockedQuery( ): { queryKey: reactQuery.QueryKey; queryFn: - ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; + | ((options: QueryFnOptions) => Promise) + | reactQuery.SkipToken; }; export function usersCheckBlockedQuery( @@ -91088,7 +91348,8 @@ export function codespacesListSecretsForAuthenticatedUserQuery( export function codespacesListSecretsForAuthenticatedUserQuery( variables: - CodespacesListSecretsForAuthenticatedUserVariables | reactQuery.SkipToken + | CodespacesListSecretsForAuthenticatedUserVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -91100,7 +91361,8 @@ export function codespacesListSecretsForAuthenticatedUserQuery( export function codespacesListSecretsForAuthenticatedUserQuery( variables: - CodespacesListSecretsForAuthenticatedUserVariables | reactQuery.SkipToken + | CodespacesListSecretsForAuthenticatedUserVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -91163,7 +91425,8 @@ export const useCodespacesListSecretsForAuthenticatedUser = < TData = CodespacesListSecretsForAuthenticatedUserResponse, >( variables: - CodespacesListSecretsForAuthenticatedUserVariables | reactQuery.SkipToken, + | CodespacesListSecretsForAuthenticatedUserVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< CodespacesListSecretsForAuthenticatedUserResponse, @@ -91238,7 +91501,8 @@ export function codespacesGetPublicKeyForAuthenticatedUserQuery( export function codespacesGetPublicKeyForAuthenticatedUserQuery( variables: - CodespacesGetPublicKeyForAuthenticatedUserVariables | reactQuery.SkipToken + | CodespacesGetPublicKeyForAuthenticatedUserVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -91248,7 +91512,8 @@ export function codespacesGetPublicKeyForAuthenticatedUserQuery( export function codespacesGetPublicKeyForAuthenticatedUserQuery( variables: - CodespacesGetPublicKeyForAuthenticatedUserVariables | reactQuery.SkipToken + | CodespacesGetPublicKeyForAuthenticatedUserVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -91309,7 +91574,8 @@ export const useCodespacesGetPublicKeyForAuthenticatedUser = < TData = Schemas.CodespacesUserPublicKey, >( variables: - CodespacesGetPublicKeyForAuthenticatedUserVariables | reactQuery.SkipToken, + | CodespacesGetPublicKeyForAuthenticatedUserVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< Schemas.CodespacesUserPublicKey, @@ -91462,7 +91728,8 @@ export function codespacesGetSecretForAuthenticatedUserQuery( export function codespacesGetSecretForAuthenticatedUserQuery( variables: - CodespacesGetSecretForAuthenticatedUserVariables | reactQuery.SkipToken + | CodespacesGetSecretForAuthenticatedUserVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -91472,7 +91739,8 @@ export function codespacesGetSecretForAuthenticatedUserQuery( export function codespacesGetSecretForAuthenticatedUserQuery( variables: - CodespacesGetSecretForAuthenticatedUserVariables | reactQuery.SkipToken + | CodespacesGetSecretForAuthenticatedUserVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -91533,7 +91801,8 @@ export const useCodespacesGetSecretForAuthenticatedUser = < TData = Schemas.CodespacesSecret, >( variables: - CodespacesGetSecretForAuthenticatedUserVariables | reactQuery.SkipToken, + | CodespacesGetSecretForAuthenticatedUserVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< Schemas.CodespacesSecret, @@ -93662,7 +93931,8 @@ export const useUsersListEmailsForAuthenticatedUser = < TData = UsersListEmailsForAuthenticatedUserResponse, >( variables: - UsersListEmailsForAuthenticatedUserVariables | reactQuery.SkipToken, + | UsersListEmailsForAuthenticatedUserVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< UsersListEmailsForAuthenticatedUserResponse, @@ -93842,7 +94112,8 @@ export function usersListFollowersForAuthenticatedUserQuery( export function usersListFollowersForAuthenticatedUserQuery( variables: - UsersListFollowersForAuthenticatedUserVariables | reactQuery.SkipToken + | UsersListFollowersForAuthenticatedUserVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -93854,7 +94125,8 @@ export function usersListFollowersForAuthenticatedUserQuery( export function usersListFollowersForAuthenticatedUserQuery( variables: - UsersListFollowersForAuthenticatedUserVariables | reactQuery.SkipToken + | UsersListFollowersForAuthenticatedUserVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -93907,7 +94179,8 @@ export const useUsersListFollowersForAuthenticatedUser = < TData = UsersListFollowersForAuthenticatedUserResponse, >( variables: - UsersListFollowersForAuthenticatedUserVariables | reactQuery.SkipToken, + | UsersListFollowersForAuthenticatedUserVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< UsersListFollowersForAuthenticatedUserResponse, @@ -93999,7 +94272,8 @@ export function usersListFollowedByAuthenticatedUserQuery( export function usersListFollowedByAuthenticatedUserQuery( variables: - UsersListFollowedByAuthenticatedUserVariables | reactQuery.SkipToken + | UsersListFollowedByAuthenticatedUserVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -94011,7 +94285,8 @@ export function usersListFollowedByAuthenticatedUserQuery( export function usersListFollowedByAuthenticatedUserQuery( variables: - UsersListFollowedByAuthenticatedUserVariables | reactQuery.SkipToken + | UsersListFollowedByAuthenticatedUserVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -94064,7 +94339,8 @@ export const useUsersListFollowedByAuthenticatedUser = < TData = UsersListFollowedByAuthenticatedUserResponse, >( variables: - UsersListFollowedByAuthenticatedUserVariables | reactQuery.SkipToken, + | UsersListFollowedByAuthenticatedUserVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< UsersListFollowedByAuthenticatedUserResponse, @@ -94219,16 +94495,19 @@ export function usersCheckPersonIsFollowedByAuthenticatedQuery( export function usersCheckPersonIsFollowedByAuthenticatedQuery( variables: - UsersCheckPersonIsFollowedByAuthenticatedVariables | reactQuery.SkipToken + | UsersCheckPersonIsFollowedByAuthenticatedVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: - ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; + | ((options: QueryFnOptions) => Promise) + | reactQuery.SkipToken; }; export function usersCheckPersonIsFollowedByAuthenticatedQuery( variables: - UsersCheckPersonIsFollowedByAuthenticatedVariables | reactQuery.SkipToken + | UsersCheckPersonIsFollowedByAuthenticatedVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -94273,7 +94552,8 @@ export const useSuspenseUsersCheckPersonIsFollowedByAuthenticated = < export const useUsersCheckPersonIsFollowedByAuthenticated = ( variables: - UsersCheckPersonIsFollowedByAuthenticatedVariables | reactQuery.SkipToken, + | UsersCheckPersonIsFollowedByAuthenticatedVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< undefined, @@ -94444,7 +94724,8 @@ export function usersListGpgKeysForAuthenticatedUserQuery( export function usersListGpgKeysForAuthenticatedUserQuery( variables: - UsersListGpgKeysForAuthenticatedUserVariables | reactQuery.SkipToken + | UsersListGpgKeysForAuthenticatedUserVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -94456,7 +94737,8 @@ export function usersListGpgKeysForAuthenticatedUserQuery( export function usersListGpgKeysForAuthenticatedUserQuery( variables: - UsersListGpgKeysForAuthenticatedUserVariables | reactQuery.SkipToken + | UsersListGpgKeysForAuthenticatedUserVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -94509,7 +94791,8 @@ export const useUsersListGpgKeysForAuthenticatedUser = < TData = UsersListGpgKeysForAuthenticatedUserResponse, >( variables: - UsersListGpgKeysForAuthenticatedUserVariables | reactQuery.SkipToken, + | UsersListGpgKeysForAuthenticatedUserVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< UsersListGpgKeysForAuthenticatedUserResponse, @@ -94922,7 +95205,8 @@ export function appsListInstallationsForAuthenticatedUserQuery( export function appsListInstallationsForAuthenticatedUserQuery( variables: - AppsListInstallationsForAuthenticatedUserVariables | reactQuery.SkipToken + | AppsListInstallationsForAuthenticatedUserVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -94934,7 +95218,8 @@ export function appsListInstallationsForAuthenticatedUserQuery( export function appsListInstallationsForAuthenticatedUserQuery( variables: - AppsListInstallationsForAuthenticatedUserVariables | reactQuery.SkipToken + | AppsListInstallationsForAuthenticatedUserVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -94999,7 +95284,8 @@ export const useAppsListInstallationsForAuthenticatedUser = < TData = AppsListInstallationsForAuthenticatedUserResponse, >( variables: - AppsListInstallationsForAuthenticatedUserVariables | reactQuery.SkipToken, + | AppsListInstallationsForAuthenticatedUserVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< AppsListInstallationsForAuthenticatedUserResponse, @@ -95651,7 +95937,12 @@ export type IssuesListForAuthenticatedUserQueryParams = { * @default assigned */ filter?: - "assigned" | "created" | "mentioned" | "subscribed" | "repos" | "all"; + | "assigned" + | "created" + | "mentioned" + | "subscribed" + | "repos" + | "all"; /** * Indicates the state of the issues to return. * @@ -95920,7 +96211,8 @@ export function usersListPublicSshKeysForAuthenticatedUserQuery( export function usersListPublicSshKeysForAuthenticatedUserQuery( variables: - UsersListPublicSshKeysForAuthenticatedUserVariables | reactQuery.SkipToken + | UsersListPublicSshKeysForAuthenticatedUserVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -95932,7 +96224,8 @@ export function usersListPublicSshKeysForAuthenticatedUserQuery( export function usersListPublicSshKeysForAuthenticatedUserQuery( variables: - UsersListPublicSshKeysForAuthenticatedUserVariables | reactQuery.SkipToken + | UsersListPublicSshKeysForAuthenticatedUserVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -95985,7 +96278,8 @@ export const useUsersListPublicSshKeysForAuthenticatedUser = < TData = UsersListPublicSshKeysForAuthenticatedUserResponse, >( variables: - UsersListPublicSshKeysForAuthenticatedUserVariables | reactQuery.SkipToken, + | UsersListPublicSshKeysForAuthenticatedUserVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< UsersListPublicSshKeysForAuthenticatedUserResponse, @@ -96234,16 +96528,19 @@ export function usersGetPublicSshKeyForAuthenticatedUserQuery( export function usersGetPublicSshKeyForAuthenticatedUserQuery( variables: - UsersGetPublicSshKeyForAuthenticatedUserVariables | reactQuery.SkipToken + | UsersGetPublicSshKeyForAuthenticatedUserVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: - ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; + | ((options: QueryFnOptions) => Promise) + | reactQuery.SkipToken; }; export function usersGetPublicSshKeyForAuthenticatedUserQuery( variables: - UsersGetPublicSshKeyForAuthenticatedUserVariables | reactQuery.SkipToken + | UsersGetPublicSshKeyForAuthenticatedUserVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -96296,7 +96593,8 @@ export const useUsersGetPublicSshKeyForAuthenticatedUser = < TData = Schemas.Key, >( variables: - UsersGetPublicSshKeyForAuthenticatedUserVariables | reactQuery.SkipToken, + | UsersGetPublicSshKeyForAuthenticatedUserVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< Schemas.Key, @@ -96395,7 +96693,8 @@ export function appsListSubscriptionsForAuthenticatedUserQuery( export function appsListSubscriptionsForAuthenticatedUserQuery( variables: - AppsListSubscriptionsForAuthenticatedUserVariables | reactQuery.SkipToken + | AppsListSubscriptionsForAuthenticatedUserVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -96407,7 +96706,8 @@ export function appsListSubscriptionsForAuthenticatedUserQuery( export function appsListSubscriptionsForAuthenticatedUserQuery( variables: - AppsListSubscriptionsForAuthenticatedUserVariables | reactQuery.SkipToken + | AppsListSubscriptionsForAuthenticatedUserVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -96460,7 +96760,8 @@ export const useAppsListSubscriptionsForAuthenticatedUser = < TData = AppsListSubscriptionsForAuthenticatedUserResponse, >( variables: - AppsListSubscriptionsForAuthenticatedUserVariables | reactQuery.SkipToken, + | AppsListSubscriptionsForAuthenticatedUserVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< AppsListSubscriptionsForAuthenticatedUserResponse, @@ -96721,7 +97022,8 @@ export function orgsListMembershipsForAuthenticatedUserQuery( export function orgsListMembershipsForAuthenticatedUserQuery( variables: - OrgsListMembershipsForAuthenticatedUserVariables | reactQuery.SkipToken + | OrgsListMembershipsForAuthenticatedUserVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -96733,7 +97035,8 @@ export function orgsListMembershipsForAuthenticatedUserQuery( export function orgsListMembershipsForAuthenticatedUserQuery( variables: - OrgsListMembershipsForAuthenticatedUserVariables | reactQuery.SkipToken + | OrgsListMembershipsForAuthenticatedUserVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -96780,7 +97083,8 @@ export const useOrgsListMembershipsForAuthenticatedUser = < TData = OrgsListMembershipsForAuthenticatedUserResponse, >( variables: - OrgsListMembershipsForAuthenticatedUserVariables | reactQuery.SkipToken, + | OrgsListMembershipsForAuthenticatedUserVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< OrgsListMembershipsForAuthenticatedUserResponse, @@ -96855,7 +97159,8 @@ export function orgsGetMembershipForAuthenticatedUserQuery( export function orgsGetMembershipForAuthenticatedUserQuery( variables: - OrgsGetMembershipForAuthenticatedUserVariables | reactQuery.SkipToken + | OrgsGetMembershipForAuthenticatedUserVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -96865,7 +97170,8 @@ export function orgsGetMembershipForAuthenticatedUserQuery( export function orgsGetMembershipForAuthenticatedUserQuery( variables: - OrgsGetMembershipForAuthenticatedUserVariables | reactQuery.SkipToken + | OrgsGetMembershipForAuthenticatedUserVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -96912,7 +97218,8 @@ export const useOrgsGetMembershipForAuthenticatedUser = < TData = Schemas.OrgMembership, >( variables: - OrgsGetMembershipForAuthenticatedUserVariables | reactQuery.SkipToken, + | OrgsGetMembershipForAuthenticatedUserVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< Schemas.OrgMembership, @@ -97372,7 +97679,8 @@ export function migrationsGetStatusForAuthenticatedUserQuery( export function migrationsGetStatusForAuthenticatedUserQuery( variables: - MigrationsGetStatusForAuthenticatedUserVariables | reactQuery.SkipToken + | MigrationsGetStatusForAuthenticatedUserVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -97382,7 +97690,8 @@ export function migrationsGetStatusForAuthenticatedUserQuery( export function migrationsGetStatusForAuthenticatedUserQuery( variables: - MigrationsGetStatusForAuthenticatedUserVariables | reactQuery.SkipToken + | MigrationsGetStatusForAuthenticatedUserVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -97449,7 +97758,8 @@ export const useMigrationsGetStatusForAuthenticatedUser = < TData = Schemas.Migration, >( variables: - MigrationsGetStatusForAuthenticatedUserVariables | reactQuery.SkipToken, + | MigrationsGetStatusForAuthenticatedUserVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< Schemas.Migration, @@ -97656,16 +97966,19 @@ export function migrationsGetArchiveForAuthenticatedUserQuery( export function migrationsGetArchiveForAuthenticatedUserQuery( variables: - MigrationsGetArchiveForAuthenticatedUserVariables | reactQuery.SkipToken + | MigrationsGetArchiveForAuthenticatedUserVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: - ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; + | ((options: QueryFnOptions) => Promise) + | reactQuery.SkipToken; }; export function migrationsGetArchiveForAuthenticatedUserQuery( variables: - MigrationsGetArchiveForAuthenticatedUserVariables | reactQuery.SkipToken + | MigrationsGetArchiveForAuthenticatedUserVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -97756,7 +98069,8 @@ export const useSuspenseMigrationsGetArchiveForAuthenticatedUser = < */ export const useMigrationsGetArchiveForAuthenticatedUser = ( variables: - MigrationsGetArchiveForAuthenticatedUserVariables | reactQuery.SkipToken, + | MigrationsGetArchiveForAuthenticatedUserVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< undefined, @@ -97938,7 +98252,8 @@ export function migrationsListReposForAuthenticatedUserQuery( export function migrationsListReposForAuthenticatedUserQuery( variables: - MigrationsListReposForAuthenticatedUserVariables | reactQuery.SkipToken + | MigrationsListReposForAuthenticatedUserVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -97950,7 +98265,8 @@ export function migrationsListReposForAuthenticatedUserQuery( export function migrationsListReposForAuthenticatedUserQuery( variables: - MigrationsListReposForAuthenticatedUserVariables | reactQuery.SkipToken + | MigrationsListReposForAuthenticatedUserVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -98003,7 +98319,8 @@ export const useMigrationsListReposForAuthenticatedUser = < TData = MigrationsListReposForAuthenticatedUserResponse, >( variables: - MigrationsListReposForAuthenticatedUserVariables | reactQuery.SkipToken, + | MigrationsListReposForAuthenticatedUserVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< MigrationsListReposForAuthenticatedUserResponse, @@ -98255,7 +98572,8 @@ export function packagesListPackagesForAuthenticatedUserQuery( export function packagesListPackagesForAuthenticatedUserQuery( variables: - PackagesListPackagesForAuthenticatedUserVariables | reactQuery.SkipToken + | PackagesListPackagesForAuthenticatedUserVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -98267,7 +98585,8 @@ export function packagesListPackagesForAuthenticatedUserQuery( export function packagesListPackagesForAuthenticatedUserQuery( variables: - PackagesListPackagesForAuthenticatedUserVariables | reactQuery.SkipToken + | PackagesListPackagesForAuthenticatedUserVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -98324,7 +98643,8 @@ export const usePackagesListPackagesForAuthenticatedUser = < TData = PackagesListPackagesForAuthenticatedUserResponse, >( variables: - PackagesListPackagesForAuthenticatedUserVariables | reactQuery.SkipToken, + | PackagesListPackagesForAuthenticatedUserVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< PackagesListPackagesForAuthenticatedUserResponse, @@ -98492,7 +98812,8 @@ export function packagesGetPackageForAuthenticatedUserQuery( export function packagesGetPackageForAuthenticatedUserQuery( variables: - PackagesGetPackageForAuthenticatedUserVariables | reactQuery.SkipToken + | PackagesGetPackageForAuthenticatedUserVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -98502,7 +98823,8 @@ export function packagesGetPackageForAuthenticatedUserQuery( export function packagesGetPackageForAuthenticatedUserQuery( variables: - PackagesGetPackageForAuthenticatedUserVariables | reactQuery.SkipToken + | PackagesGetPackageForAuthenticatedUserVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -98559,7 +98881,8 @@ export const usePackagesGetPackageForAuthenticatedUser = < TData = Schemas.Package, >( variables: - PackagesGetPackageForAuthenticatedUserVariables | reactQuery.SkipToken, + | PackagesGetPackageForAuthenticatedUserVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< Schemas.Package, @@ -98692,7 +99015,12 @@ export type PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserPathP * The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. */ packageType: - "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"; + | "npm" + | "maven" + | "rubygems" + | "docker" + | "nuget" + | "container"; /** * The name of the package. */ @@ -99390,7 +99718,8 @@ export function usersListPublicEmailsForAuthenticatedUserQuery( export function usersListPublicEmailsForAuthenticatedUserQuery( variables: - UsersListPublicEmailsForAuthenticatedUserVariables | reactQuery.SkipToken + | UsersListPublicEmailsForAuthenticatedUserVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -99402,7 +99731,8 @@ export function usersListPublicEmailsForAuthenticatedUserQuery( export function usersListPublicEmailsForAuthenticatedUserQuery( variables: - UsersListPublicEmailsForAuthenticatedUserVariables | reactQuery.SkipToken + | UsersListPublicEmailsForAuthenticatedUserVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -99455,7 +99785,8 @@ export const useUsersListPublicEmailsForAuthenticatedUser = < TData = UsersListPublicEmailsForAuthenticatedUserResponse, >( variables: - UsersListPublicEmailsForAuthenticatedUserVariables | reactQuery.SkipToken, + | UsersListPublicEmailsForAuthenticatedUserVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< UsersListPublicEmailsForAuthenticatedUserResponse, @@ -100005,7 +100336,8 @@ export function reposListInvitationsForAuthenticatedUserQuery( export function reposListInvitationsForAuthenticatedUserQuery( variables: - ReposListInvitationsForAuthenticatedUserVariables | reactQuery.SkipToken + | ReposListInvitationsForAuthenticatedUserVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -100017,7 +100349,8 @@ export function reposListInvitationsForAuthenticatedUserQuery( export function reposListInvitationsForAuthenticatedUserQuery( variables: - ReposListInvitationsForAuthenticatedUserVariables | reactQuery.SkipToken + | ReposListInvitationsForAuthenticatedUserVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -100070,7 +100403,8 @@ export const useReposListInvitationsForAuthenticatedUser = < TData = ReposListInvitationsForAuthenticatedUserResponse, >( variables: - ReposListInvitationsForAuthenticatedUserVariables | reactQuery.SkipToken, + | ReposListInvitationsForAuthenticatedUserVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< ReposListInvitationsForAuthenticatedUserResponse, @@ -100318,7 +100652,8 @@ export function usersListSshSigningKeysForAuthenticatedUserQuery( export function usersListSshSigningKeysForAuthenticatedUserQuery( variables: - UsersListSshSigningKeysForAuthenticatedUserVariables | reactQuery.SkipToken + | UsersListSshSigningKeysForAuthenticatedUserVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -100330,7 +100665,8 @@ export function usersListSshSigningKeysForAuthenticatedUserQuery( export function usersListSshSigningKeysForAuthenticatedUserQuery( variables: - UsersListSshSigningKeysForAuthenticatedUserVariables | reactQuery.SkipToken + | UsersListSshSigningKeysForAuthenticatedUserVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -100383,7 +100719,8 @@ export const useUsersListSshSigningKeysForAuthenticatedUser = < TData = UsersListSshSigningKeysForAuthenticatedUserResponse, >( variables: - UsersListSshSigningKeysForAuthenticatedUserVariables | reactQuery.SkipToken, + | UsersListSshSigningKeysForAuthenticatedUserVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< UsersListSshSigningKeysForAuthenticatedUserResponse, @@ -100642,7 +100979,8 @@ export function usersGetSshSigningKeyForAuthenticatedUserQuery( export function usersGetSshSigningKeyForAuthenticatedUserQuery( variables: - UsersGetSshSigningKeyForAuthenticatedUserVariables | reactQuery.SkipToken + | UsersGetSshSigningKeyForAuthenticatedUserVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -100652,7 +100990,8 @@ export function usersGetSshSigningKeyForAuthenticatedUserQuery( export function usersGetSshSigningKeyForAuthenticatedUserQuery( variables: - UsersGetSshSigningKeyForAuthenticatedUserVariables | reactQuery.SkipToken + | UsersGetSshSigningKeyForAuthenticatedUserVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -100705,7 +101044,8 @@ export const useUsersGetSshSigningKeyForAuthenticatedUser = < TData = Schemas.SshSigningKey, >( variables: - UsersGetSshSigningKeyForAuthenticatedUserVariables | reactQuery.SkipToken, + | UsersGetSshSigningKeyForAuthenticatedUserVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< Schemas.SshSigningKey, @@ -100815,7 +101155,8 @@ export function activityListReposStarredByAuthenticatedUserQuery( export function activityListReposStarredByAuthenticatedUserQuery( variables: - ActivityListReposStarredByAuthenticatedUserVariables | reactQuery.SkipToken + | ActivityListReposStarredByAuthenticatedUserVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -100827,7 +101168,8 @@ export function activityListReposStarredByAuthenticatedUserQuery( export function activityListReposStarredByAuthenticatedUserQuery( variables: - ActivityListReposStarredByAuthenticatedUserVariables | reactQuery.SkipToken + | ActivityListReposStarredByAuthenticatedUserVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -100884,7 +101226,8 @@ export const useActivityListReposStarredByAuthenticatedUser = < TData = ActivityListReposStarredByAuthenticatedUserResponse, >( variables: - ActivityListReposStarredByAuthenticatedUserVariables | reactQuery.SkipToken, + | ActivityListReposStarredByAuthenticatedUserVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< ActivityListReposStarredByAuthenticatedUserResponse, @@ -101053,7 +101396,8 @@ export function activityCheckRepoIsStarredByAuthenticatedUserQuery( ): { queryKey: reactQuery.QueryKey; queryFn: - ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; + | ((options: QueryFnOptions) => Promise) + | reactQuery.SkipToken; }; export function activityCheckRepoIsStarredByAuthenticatedUserQuery( @@ -101286,7 +101630,8 @@ export function activityListWatchedReposForAuthenticatedUserQuery( export function activityListWatchedReposForAuthenticatedUserQuery( variables: - ActivityListWatchedReposForAuthenticatedUserVariables | reactQuery.SkipToken + | ActivityListWatchedReposForAuthenticatedUserVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -101298,7 +101643,8 @@ export function activityListWatchedReposForAuthenticatedUserQuery( export function activityListWatchedReposForAuthenticatedUserQuery( variables: - ActivityListWatchedReposForAuthenticatedUserVariables | reactQuery.SkipToken + | ActivityListWatchedReposForAuthenticatedUserVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -101872,7 +102218,8 @@ export function activityListEventsForAuthenticatedUserQuery( export function activityListEventsForAuthenticatedUserQuery( variables: - ActivityListEventsForAuthenticatedUserVariables | reactQuery.SkipToken + | ActivityListEventsForAuthenticatedUserVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -101884,7 +102231,8 @@ export function activityListEventsForAuthenticatedUserQuery( export function activityListEventsForAuthenticatedUserQuery( variables: - ActivityListEventsForAuthenticatedUserVariables | reactQuery.SkipToken + | ActivityListEventsForAuthenticatedUserVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -101937,7 +102285,8 @@ export const useActivityListEventsForAuthenticatedUser = < TData = ActivityListEventsForAuthenticatedUserResponse, >( variables: - ActivityListEventsForAuthenticatedUserVariables | reactQuery.SkipToken, + | ActivityListEventsForAuthenticatedUserVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< ActivityListEventsForAuthenticatedUserResponse, @@ -102034,7 +102383,8 @@ export function activityListOrgEventsForAuthenticatedUserQuery( export function activityListOrgEventsForAuthenticatedUserQuery( variables: - ActivityListOrgEventsForAuthenticatedUserVariables | reactQuery.SkipToken + | ActivityListOrgEventsForAuthenticatedUserVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -102046,7 +102396,8 @@ export function activityListOrgEventsForAuthenticatedUserQuery( export function activityListOrgEventsForAuthenticatedUserQuery( variables: - ActivityListOrgEventsForAuthenticatedUserVariables | reactQuery.SkipToken + | ActivityListOrgEventsForAuthenticatedUserVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -102099,7 +102450,8 @@ export const useActivityListOrgEventsForAuthenticatedUser = < TData = ActivityListOrgEventsForAuthenticatedUserResponse, >( variables: - ActivityListOrgEventsForAuthenticatedUserVariables | reactQuery.SkipToken, + | ActivityListOrgEventsForAuthenticatedUserVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< ActivityListOrgEventsForAuthenticatedUserResponse, @@ -102612,7 +102964,8 @@ export function usersCheckFollowingForUserQuery( ): { queryKey: reactQuery.QueryKey; queryFn: - ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; + | ((options: QueryFnOptions) => Promise) + | reactQuery.SkipToken; }; export function usersCheckFollowingForUserQuery( @@ -104950,7 +105303,8 @@ export function activityListReceivedPublicEventsForUserQuery( export function activityListReceivedPublicEventsForUserQuery( variables: - ActivityListReceivedPublicEventsForUserVariables | reactQuery.SkipToken + | ActivityListReceivedPublicEventsForUserVariables + | reactQuery.SkipToken ): { queryKey: reactQuery.QueryKey; queryFn: @@ -104962,7 +105316,8 @@ export function activityListReceivedPublicEventsForUserQuery( export function activityListReceivedPublicEventsForUserQuery( variables: - ActivityListReceivedPublicEventsForUserVariables | reactQuery.SkipToken + | ActivityListReceivedPublicEventsForUserVariables + | reactQuery.SkipToken ) { return { queryKey: queryKeyFn({ @@ -105009,7 +105364,8 @@ export const useActivityListReceivedPublicEventsForUser = < TData = ActivityListReceivedPublicEventsForUserResponse, >( variables: - ActivityListReceivedPublicEventsForUserVariables | reactQuery.SkipToken, + | ActivityListReceivedPublicEventsForUserVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< ActivityListReceivedPublicEventsForUserResponse, @@ -105461,7 +105817,8 @@ export const useBillingGetGithubPackagesBillingUser = < TData = Schemas.PackagesBillingUsage, >( variables: - BillingGetGithubPackagesBillingUserVariables | reactQuery.SkipToken, + | BillingGetGithubPackagesBillingUserVariables + | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions< Schemas.PackagesBillingUsage, @@ -106265,7 +106622,8 @@ export function metaGetZenQuery( ): { queryKey: reactQuery.QueryKey; queryFn: - ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; + | ((options: QueryFnOptions) => Promise) + | reactQuery.SkipToken; }; export function metaGetZenQuery( @@ -106369,7 +106727,8 @@ export type QueryOperation = path: "/codes_of_conduct"; operationId: "codesOfConductGetAllCodesOfConduct"; variables: - CodesOfConductGetAllCodesOfConductVariables | reactQuery.SkipToken; + | CodesOfConductGetAllCodesOfConductVariables + | reactQuery.SkipToken; } | { path: "/codes_of_conduct/{key}"; @@ -106385,13 +106744,15 @@ export type QueryOperation = path: "/enterprises/{enterprise}/dependabot/alerts"; operationId: "dependabotListAlertsForEnterprise"; variables: - DependabotListAlertsForEnterpriseVariables | reactQuery.SkipToken; + | DependabotListAlertsForEnterpriseVariables + | reactQuery.SkipToken; } | { path: "/enterprises/{enterprise}/secret-scanning/alerts"; operationId: "secretScanningListAlertsForEnterprise"; variables: - SecretScanningListAlertsForEnterpriseVariables | reactQuery.SkipToken; + | SecretScanningListAlertsForEnterpriseVariables + | reactQuery.SkipToken; } | { path: "/events"; @@ -106467,7 +106828,8 @@ export type QueryOperation = path: "/installation/repositories"; operationId: "appsListReposAccessibleToInstallation"; variables: - AppsListReposAccessibleToInstallationVariables | reactQuery.SkipToken; + | AppsListReposAccessibleToInstallationVariables + | reactQuery.SkipToken; } | { path: "/issues"; @@ -106488,7 +106850,8 @@ export type QueryOperation = path: "/marketplace_listing/accounts/{accountId}"; operationId: "appsGetSubscriptionPlanForAccount"; variables: - AppsGetSubscriptionPlanForAccountVariables | reactQuery.SkipToken; + | AppsGetSubscriptionPlanForAccountVariables + | reactQuery.SkipToken; } | { path: "/marketplace_listing/plans"; @@ -106526,7 +106889,8 @@ export type QueryOperation = path: "/networks/{owner}/{repo}/events"; operationId: "activityListPublicEventsForRepoNetwork"; variables: - ActivityListPublicEventsForRepoNetworkVariables | reactQuery.SkipToken; + | ActivityListPublicEventsForRepoNetworkVariables + | reactQuery.SkipToken; } | { path: "/notifications"; @@ -106566,19 +106930,22 @@ export type QueryOperation = path: "/orgs/{org}/actions/cache/usage"; operationId: "actionsGetActionsCacheUsageForOrg"; variables: - ActionsGetActionsCacheUsageForOrgVariables | reactQuery.SkipToken; + | ActionsGetActionsCacheUsageForOrgVariables + | reactQuery.SkipToken; } | { path: "/orgs/{org}/actions/cache/usage-by-repository"; operationId: "actionsGetActionsCacheUsageByRepoForOrg"; variables: - ActionsGetActionsCacheUsageByRepoForOrgVariables | reactQuery.SkipToken; + | ActionsGetActionsCacheUsageByRepoForOrgVariables + | reactQuery.SkipToken; } | { path: "/orgs/{org}/actions/oidc/customization/sub"; operationId: "oidcGetOidcCustomSubTemplateForOrg"; variables: - OidcGetOidcCustomSubTemplateForOrgVariables | reactQuery.SkipToken; + | OidcGetOidcCustomSubTemplateForOrgVariables + | reactQuery.SkipToken; } | { path: "/orgs/{org}/actions/permissions"; @@ -106598,7 +106965,8 @@ export type QueryOperation = path: "/orgs/{org}/actions/permissions/selected-actions"; operationId: "actionsGetAllowedActionsOrganization"; variables: - ActionsGetAllowedActionsOrganizationVariables | reactQuery.SkipToken; + | ActionsGetAllowedActionsOrganizationVariables + | reactQuery.SkipToken; } | { path: "/orgs/{org}/actions/permissions/workflow"; @@ -106628,19 +106996,22 @@ export type QueryOperation = path: "/orgs/{org}/actions/runners"; operationId: "actionsListSelfHostedRunnersForOrg"; variables: - ActionsListSelfHostedRunnersForOrgVariables | reactQuery.SkipToken; + | ActionsListSelfHostedRunnersForOrgVariables + | reactQuery.SkipToken; } | { path: "/orgs/{org}/actions/runners/downloads"; operationId: "actionsListRunnerApplicationsForOrg"; variables: - ActionsListRunnerApplicationsForOrgVariables | reactQuery.SkipToken; + | ActionsListRunnerApplicationsForOrgVariables + | reactQuery.SkipToken; } | { path: "/orgs/{org}/actions/runners/{runnerId}"; operationId: "actionsGetSelfHostedRunnerForOrg"; variables: - ActionsGetSelfHostedRunnerForOrgVariables | reactQuery.SkipToken; + | ActionsGetSelfHostedRunnerForOrgVariables + | reactQuery.SkipToken; } | { path: "/orgs/{org}/actions/runners/{runnerId}/labels"; @@ -106668,7 +107039,8 @@ export type QueryOperation = path: "/orgs/{org}/actions/secrets/{secretName}/repositories"; operationId: "actionsListSelectedReposForOrgSecret"; variables: - ActionsListSelectedReposForOrgSecretVariables | reactQuery.SkipToken; + | ActionsListSelectedReposForOrgSecretVariables + | reactQuery.SkipToken; } | { path: "/orgs/{org}/actions/variables"; @@ -106684,7 +107056,8 @@ export type QueryOperation = path: "/orgs/{org}/actions/variables/{name}/repositories"; operationId: "actionsListSelectedReposForOrgVariable"; variables: - ActionsListSelectedReposForOrgVariableVariables | reactQuery.SkipToken; + | ActionsListSelectedReposForOrgVariableVariables + | reactQuery.SkipToken; } | { path: "/orgs/{org}/blocks"; @@ -106725,7 +107098,8 @@ export type QueryOperation = path: "/orgs/{org}/codespaces/secrets/{secretName}/repositories"; operationId: "codespacesListSelectedReposForOrgSecret"; variables: - CodespacesListSelectedReposForOrgSecretVariables | reactQuery.SkipToken; + | CodespacesListSelectedReposForOrgSecretVariables + | reactQuery.SkipToken; } | { path: "/orgs/{org}/dependabot/alerts"; @@ -106751,7 +107125,8 @@ export type QueryOperation = path: "/orgs/{org}/dependabot/secrets/{secretName}/repositories"; operationId: "dependabotListSelectedReposForOrgSecret"; variables: - DependabotListSelectedReposForOrgSecretVariables | reactQuery.SkipToken; + | DependabotListSelectedReposForOrgSecretVariables + | reactQuery.SkipToken; } | { path: "/orgs/{org}/events"; @@ -106802,7 +107177,8 @@ export type QueryOperation = path: "/orgs/{org}/interaction-limits"; operationId: "interactionsGetRestrictionsForOrg"; variables: - InteractionsGetRestrictionsForOrgVariables | reactQuery.SkipToken; + | InteractionsGetRestrictionsForOrgVariables + | reactQuery.SkipToken; } | { path: "/orgs/{org}/invitations"; @@ -106833,7 +107209,8 @@ export type QueryOperation = path: "/orgs/{org}/members/{username}/codespaces"; operationId: "codespacesGetCodespacesForUserInOrg"; variables: - CodespacesGetCodespacesForUserInOrgVariables | reactQuery.SkipToken; + | CodespacesGetCodespacesForUserInOrgVariables + | reactQuery.SkipToken; } | { path: "/orgs/{org}/memberships/{username}"; @@ -106854,7 +107231,8 @@ export type QueryOperation = path: "/orgs/{org}/migrations/{migrationId}/archive"; operationId: "migrationsDownloadArchiveForOrg"; variables: - MigrationsDownloadArchiveForOrgVariables | reactQuery.SkipToken; + | MigrationsDownloadArchiveForOrgVariables + | reactQuery.SkipToken; } | { path: "/orgs/{org}/migrations/{migrationId}/repositories"; @@ -106870,13 +107248,15 @@ export type QueryOperation = path: "/orgs/{org}/packages"; operationId: "packagesListPackagesForOrganization"; variables: - PackagesListPackagesForOrganizationVariables | reactQuery.SkipToken; + | PackagesListPackagesForOrganizationVariables + | reactQuery.SkipToken; } | { path: "/orgs/{org}/packages/{packageType}/{packageName}"; operationId: "packagesGetPackageForOrganization"; variables: - PackagesGetPackageForOrganizationVariables | reactQuery.SkipToken; + | PackagesGetPackageForOrganizationVariables + | reactQuery.SkipToken; } | { path: "/orgs/{org}/packages/{packageType}/{packageName}/versions"; @@ -106906,7 +107286,8 @@ export type QueryOperation = path: "/orgs/{org}/public_members/{username}"; operationId: "orgsCheckPublicMembershipForUser"; variables: - OrgsCheckPublicMembershipForUserVariables | reactQuery.SkipToken; + | OrgsCheckPublicMembershipForUserVariables + | reactQuery.SkipToken; } | { path: "/orgs/{org}/repos"; @@ -106927,19 +107308,22 @@ export type QueryOperation = path: "/orgs/{org}/settings/billing/actions"; operationId: "billingGetGithubActionsBillingOrg"; variables: - BillingGetGithubActionsBillingOrgVariables | reactQuery.SkipToken; + | BillingGetGithubActionsBillingOrgVariables + | reactQuery.SkipToken; } | { path: "/orgs/{org}/settings/billing/packages"; operationId: "billingGetGithubPackagesBillingOrg"; variables: - BillingGetGithubPackagesBillingOrgVariables | reactQuery.SkipToken; + | BillingGetGithubPackagesBillingOrgVariables + | reactQuery.SkipToken; } | { path: "/orgs/{org}/settings/billing/shared-storage"; operationId: "billingGetSharedStorageBillingOrg"; variables: - BillingGetSharedStorageBillingOrgVariables | reactQuery.SkipToken; + | BillingGetSharedStorageBillingOrgVariables + | reactQuery.SkipToken; } | { path: "/orgs/{org}/teams"; @@ -106965,7 +107349,8 @@ export type QueryOperation = path: "/orgs/{org}/teams/{teamSlug}/discussions/{discussionNumber}/comments"; operationId: "teamsListDiscussionCommentsInOrg"; variables: - TeamsListDiscussionCommentsInOrgVariables | reactQuery.SkipToken; + | TeamsListDiscussionCommentsInOrgVariables + | reactQuery.SkipToken; } | { path: "/orgs/{org}/teams/{teamSlug}/discussions/{discussionNumber}/comments/{commentNumber}"; @@ -106983,13 +107368,15 @@ export type QueryOperation = path: "/orgs/{org}/teams/{teamSlug}/discussions/{discussionNumber}/reactions"; operationId: "reactionsListForTeamDiscussionInOrg"; variables: - ReactionsListForTeamDiscussionInOrgVariables | reactQuery.SkipToken; + | ReactionsListForTeamDiscussionInOrgVariables + | reactQuery.SkipToken; } | { path: "/orgs/{org}/teams/{teamSlug}/invitations"; operationId: "teamsListPendingInvitationsInOrg"; variables: - TeamsListPendingInvitationsInOrgVariables | reactQuery.SkipToken; + | TeamsListPendingInvitationsInOrgVariables + | reactQuery.SkipToken; } | { path: "/orgs/{org}/teams/{teamSlug}/members"; @@ -107010,7 +107397,8 @@ export type QueryOperation = path: "/orgs/{org}/teams/{teamSlug}/projects/{projectId}"; operationId: "teamsCheckPermissionsForProjectInOrg"; variables: - TeamsCheckPermissionsForProjectInOrgVariables | reactQuery.SkipToken; + | TeamsCheckPermissionsForProjectInOrgVariables + | reactQuery.SkipToken; } | { path: "/orgs/{org}/teams/{teamSlug}/repos"; @@ -107021,7 +107409,8 @@ export type QueryOperation = path: "/orgs/{org}/teams/{teamSlug}/repos/{owner}/{repo}"; operationId: "teamsCheckPermissionsForRepoInOrg"; variables: - TeamsCheckPermissionsForRepoInOrgVariables | reactQuery.SkipToken; + | TeamsCheckPermissionsForRepoInOrgVariables + | reactQuery.SkipToken; } | { path: "/orgs/{org}/teams/{teamSlug}/teams"; @@ -107072,7 +107461,8 @@ export type QueryOperation = path: "/repos/{org}/{repo}/actions/required_workflows"; operationId: "actionsListRepoRequiredWorkflows"; variables: - ActionsListRepoRequiredWorkflowsVariables | reactQuery.SkipToken; + | ActionsListRepoRequiredWorkflowsVariables + | reactQuery.SkipToken; } | { path: "/repos/{org}/{repo}/actions/required_workflows/{requiredWorkflowIdForRepo}"; @@ -107083,7 +107473,8 @@ export type QueryOperation = path: "/repos/{org}/{repo}/actions/required_workflows/{requiredWorkflowIdForRepo}/timing"; operationId: "actionsGetRepoRequiredWorkflowUsage"; variables: - ActionsGetRepoRequiredWorkflowUsageVariables | reactQuery.SkipToken; + | ActionsGetRepoRequiredWorkflowUsageVariables + | reactQuery.SkipToken; } | { path: "/repos/{owner}/{repo}"; @@ -107124,13 +107515,15 @@ export type QueryOperation = path: "/repos/{owner}/{repo}/actions/jobs/{jobId}/logs"; operationId: "actionsDownloadJobLogsForWorkflowRun"; variables: - ActionsDownloadJobLogsForWorkflowRunVariables | reactQuery.SkipToken; + | ActionsDownloadJobLogsForWorkflowRunVariables + | reactQuery.SkipToken; } | { path: "/repos/{owner}/{repo}/actions/oidc/customization/sub"; operationId: "actionsGetCustomOidcSubClaimForRepo"; variables: - ActionsGetCustomOidcSubClaimForRepoVariables | reactQuery.SkipToken; + | ActionsGetCustomOidcSubClaimForRepoVariables + | reactQuery.SkipToken; } | { path: "/repos/{owner}/{repo}/actions/permissions"; @@ -107143,13 +107536,15 @@ export type QueryOperation = path: "/repos/{owner}/{repo}/actions/permissions/access"; operationId: "actionsGetWorkflowAccessToRepository"; variables: - ActionsGetWorkflowAccessToRepositoryVariables | reactQuery.SkipToken; + | ActionsGetWorkflowAccessToRepositoryVariables + | reactQuery.SkipToken; } | { path: "/repos/{owner}/{repo}/actions/permissions/selected-actions"; operationId: "actionsGetAllowedActionsRepository"; variables: - ActionsGetAllowedActionsRepositoryVariables | reactQuery.SkipToken; + | ActionsGetAllowedActionsRepositoryVariables + | reactQuery.SkipToken; } | { path: "/repos/{owner}/{repo}/actions/permissions/workflow"; @@ -107162,25 +107557,29 @@ export type QueryOperation = path: "/repos/{owner}/{repo}/actions/required_workflows/{requiredWorkflowIdForRepo}/runs"; operationId: "actionsListRequiredWorkflowRuns"; variables: - ActionsListRequiredWorkflowRunsVariables | reactQuery.SkipToken; + | ActionsListRequiredWorkflowRunsVariables + | reactQuery.SkipToken; } | { path: "/repos/{owner}/{repo}/actions/runners"; operationId: "actionsListSelfHostedRunnersForRepo"; variables: - ActionsListSelfHostedRunnersForRepoVariables | reactQuery.SkipToken; + | ActionsListSelfHostedRunnersForRepoVariables + | reactQuery.SkipToken; } | { path: "/repos/{owner}/{repo}/actions/runners/downloads"; operationId: "actionsListRunnerApplicationsForRepo"; variables: - ActionsListRunnerApplicationsForRepoVariables | reactQuery.SkipToken; + | ActionsListRunnerApplicationsForRepoVariables + | reactQuery.SkipToken; } | { path: "/repos/{owner}/{repo}/actions/runners/{runnerId}"; operationId: "actionsGetSelfHostedRunnerForRepo"; variables: - ActionsGetSelfHostedRunnerForRepoVariables | reactQuery.SkipToken; + | ActionsGetSelfHostedRunnerForRepoVariables + | reactQuery.SkipToken; } | { path: "/repos/{owner}/{repo}/actions/runners/{runnerId}/labels"; @@ -107208,7 +107607,8 @@ export type QueryOperation = path: "/repos/{owner}/{repo}/actions/runs/{runId}/artifacts"; operationId: "actionsListWorkflowRunArtifacts"; variables: - ActionsListWorkflowRunArtifactsVariables | reactQuery.SkipToken; + | ActionsListWorkflowRunArtifactsVariables + | reactQuery.SkipToken; } | { path: "/repos/{owner}/{repo}/actions/runs/{runId}/attempts/{attemptNumber}"; @@ -107219,13 +107619,15 @@ export type QueryOperation = path: "/repos/{owner}/{repo}/actions/runs/{runId}/attempts/{attemptNumber}/jobs"; operationId: "actionsListJobsForWorkflowRunAttempt"; variables: - ActionsListJobsForWorkflowRunAttemptVariables | reactQuery.SkipToken; + | ActionsListJobsForWorkflowRunAttemptVariables + | reactQuery.SkipToken; } | { path: "/repos/{owner}/{repo}/actions/runs/{runId}/attempts/{attemptNumber}/logs"; operationId: "actionsDownloadWorkflowRunAttemptLogs"; variables: - ActionsDownloadWorkflowRunAttemptLogsVariables | reactQuery.SkipToken; + | ActionsDownloadWorkflowRunAttemptLogsVariables + | reactQuery.SkipToken; } | { path: "/repos/{owner}/{repo}/actions/runs/{runId}/jobs"; @@ -107241,7 +107643,8 @@ export type QueryOperation = path: "/repos/{owner}/{repo}/actions/runs/{runId}/pending_deployments"; operationId: "actionsGetPendingDeploymentsForRun"; variables: - ActionsGetPendingDeploymentsForRunVariables | reactQuery.SkipToken; + | ActionsGetPendingDeploymentsForRunVariables + | reactQuery.SkipToken; } | { path: "/repos/{owner}/{repo}/actions/runs/{runId}/timing"; @@ -107337,13 +107740,15 @@ export type QueryOperation = path: "/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"; operationId: "reposGetPullRequestReviewProtection"; variables: - ReposGetPullRequestReviewProtectionVariables | reactQuery.SkipToken; + | ReposGetPullRequestReviewProtectionVariables + | reactQuery.SkipToken; } | { path: "/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"; operationId: "reposGetCommitSignatureProtection"; variables: - ReposGetCommitSignatureProtectionVariables | reactQuery.SkipToken; + | ReposGetCommitSignatureProtectionVariables + | reactQuery.SkipToken; } | { path: "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"; @@ -107364,7 +107769,8 @@ export type QueryOperation = path: "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"; operationId: "reposGetAppsWithAccessToProtectedBranch"; variables: - ReposGetAppsWithAccessToProtectedBranchVariables | reactQuery.SkipToken; + | ReposGetAppsWithAccessToProtectedBranchVariables + | reactQuery.SkipToken; } | { path: "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"; @@ -107429,7 +107835,8 @@ export type QueryOperation = path: "/repos/{owner}/{repo}/code-scanning/codeql/databases"; operationId: "codeScanningListCodeqlDatabases"; variables: - CodeScanningListCodeqlDatabasesVariables | reactQuery.SkipToken; + | CodeScanningListCodeqlDatabasesVariables + | reactQuery.SkipToken; } | { path: "/repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"; @@ -107503,7 +107910,8 @@ export type QueryOperation = path: "/repos/{owner}/{repo}/collaborators/{username}/permission"; operationId: "reposGetCollaboratorPermissionLevel"; variables: - ReposGetCollaboratorPermissionLevelVariables | reactQuery.SkipToken; + | ReposGetCollaboratorPermissionLevelVariables + | reactQuery.SkipToken; } | { path: "/repos/{owner}/{repo}/comments"; @@ -107571,7 +107979,8 @@ export type QueryOperation = path: "/repos/{owner}/{repo}/community/profile"; operationId: "reposGetCommunityProfileMetrics"; variables: - ReposGetCommunityProfileMetricsVariables | reactQuery.SkipToken; + | ReposGetCommunityProfileMetricsVariables + | reactQuery.SkipToken; } | { path: "/repos/{owner}/{repo}/compare/{basehead}"; @@ -107652,7 +108061,8 @@ export type QueryOperation = path: "/repos/{owner}/{repo}/environments/{environmentName}/deployment-branch-policies"; operationId: "reposListDeploymentBranchPolicies"; variables: - ReposListDeploymentBranchPoliciesVariables | reactQuery.SkipToken; + | ReposListDeploymentBranchPoliciesVariables + | reactQuery.SkipToken; } | { path: "/repos/{owner}/{repo}/environments/{environmentName}/deployment-branch-policies/{branchPolicyId}"; @@ -107748,7 +108158,8 @@ export type QueryOperation = path: "/repos/{owner}/{repo}/interaction-limits"; operationId: "interactionsGetRestrictionsForRepo"; variables: - InteractionsGetRestrictionsForRepoVariables | reactQuery.SkipToken; + | InteractionsGetRestrictionsForRepoVariables + | reactQuery.SkipToken; } | { path: "/repos/{owner}/{repo}/invitations"; @@ -107794,7 +108205,8 @@ export type QueryOperation = path: "/repos/{owner}/{repo}/issues/{issueNumber}/assignees/{assignee}"; operationId: "issuesCheckUserCanBeAssignedToIssue"; variables: - IssuesCheckUserCanBeAssignedToIssueVariables | reactQuery.SkipToken; + | IssuesCheckUserCanBeAssignedToIssueVariables + | reactQuery.SkipToken; } | { path: "/repos/{owner}/{repo}/issues/{issueNumber}/comments"; @@ -108019,7 +108431,8 @@ export type QueryOperation = path: "/repos/{owner}/{repo}/secret-scanning/alerts"; operationId: "secretScanningListAlertsForRepo"; variables: - SecretScanningListAlertsForRepoVariables | reactQuery.SkipToken; + | SecretScanningListAlertsForRepoVariables + | reactQuery.SkipToken; } | { path: "/repos/{owner}/{repo}/secret-scanning/alerts/{alertNumber}"; @@ -108030,7 +108443,8 @@ export type QueryOperation = path: "/repos/{owner}/{repo}/secret-scanning/alerts/{alertNumber}/locations"; operationId: "secretScanningListLocationsForAlert"; variables: - SecretScanningListLocationsForAlertVariables | reactQuery.SkipToken; + | SecretScanningListLocationsForAlertVariables + | reactQuery.SkipToken; } | { path: "/repos/{owner}/{repo}/stargazers"; @@ -108151,7 +108565,8 @@ export type QueryOperation = path: "/repositories/{repositoryId}/environments/{environmentName}/variables"; operationId: "actionsListEnvironmentVariables"; variables: - ActionsListEnvironmentVariablesVariables | reactQuery.SkipToken; + | ActionsListEnvironmentVariablesVariables + | reactQuery.SkipToken; } | { path: "/repositories/{repositoryId}/environments/{environmentName}/variables/{name}"; @@ -108212,13 +108627,15 @@ export type QueryOperation = path: "/teams/{teamId}/discussions/{discussionNumber}/comments"; operationId: "teamsListDiscussionCommentsLegacy"; variables: - TeamsListDiscussionCommentsLegacyVariables | reactQuery.SkipToken; + | TeamsListDiscussionCommentsLegacyVariables + | reactQuery.SkipToken; } | { path: "/teams/{teamId}/discussions/{discussionNumber}/comments/{commentNumber}"; operationId: "teamsGetDiscussionCommentLegacy"; variables: - TeamsGetDiscussionCommentLegacyVariables | reactQuery.SkipToken; + | TeamsGetDiscussionCommentLegacyVariables + | reactQuery.SkipToken; } | { path: "/teams/{teamId}/discussions/{discussionNumber}/comments/{commentNumber}/reactions"; @@ -108231,13 +108648,15 @@ export type QueryOperation = path: "/teams/{teamId}/discussions/{discussionNumber}/reactions"; operationId: "reactionsListForTeamDiscussionLegacy"; variables: - ReactionsListForTeamDiscussionLegacyVariables | reactQuery.SkipToken; + | ReactionsListForTeamDiscussionLegacyVariables + | reactQuery.SkipToken; } | { path: "/teams/{teamId}/invitations"; operationId: "teamsListPendingInvitationsLegacy"; variables: - TeamsListPendingInvitationsLegacyVariables | reactQuery.SkipToken; + | TeamsListPendingInvitationsLegacyVariables + | reactQuery.SkipToken; } | { path: "/teams/{teamId}/members"; @@ -108253,7 +108672,8 @@ export type QueryOperation = path: "/teams/{teamId}/memberships/{username}"; operationId: "teamsGetMembershipForUserLegacy"; variables: - TeamsGetMembershipForUserLegacyVariables | reactQuery.SkipToken; + | TeamsGetMembershipForUserLegacyVariables + | reactQuery.SkipToken; } | { path: "/teams/{teamId}/projects"; @@ -108264,7 +108684,8 @@ export type QueryOperation = path: "/teams/{teamId}/projects/{projectId}"; operationId: "teamsCheckPermissionsForProjectLegacy"; variables: - TeamsCheckPermissionsForProjectLegacyVariables | reactQuery.SkipToken; + | TeamsCheckPermissionsForProjectLegacyVariables + | reactQuery.SkipToken; } | { path: "/teams/{teamId}/repos"; @@ -108275,7 +108696,8 @@ export type QueryOperation = path: "/teams/{teamId}/repos/{owner}/{repo}"; operationId: "teamsCheckPermissionsForRepoLegacy"; variables: - TeamsCheckPermissionsForRepoLegacyVariables | reactQuery.SkipToken; + | TeamsCheckPermissionsForRepoLegacyVariables + | reactQuery.SkipToken; } | { path: "/teams/{teamId}/teams"; @@ -108291,7 +108713,8 @@ export type QueryOperation = path: "/user/blocks"; operationId: "usersListBlockedByAuthenticatedUser"; variables: - UsersListBlockedByAuthenticatedUserVariables | reactQuery.SkipToken; + | UsersListBlockedByAuthenticatedUserVariables + | reactQuery.SkipToken; } | { path: "/user/blocks/{username}"; @@ -108302,7 +108725,8 @@ export type QueryOperation = path: "/user/codespaces"; operationId: "codespacesListForAuthenticatedUser"; variables: - CodespacesListForAuthenticatedUserVariables | reactQuery.SkipToken; + | CodespacesListForAuthenticatedUserVariables + | reactQuery.SkipToken; } | { path: "/user/codespaces/secrets"; @@ -108322,7 +108746,8 @@ export type QueryOperation = path: "/user/codespaces/secrets/{secretName}"; operationId: "codespacesGetSecretForAuthenticatedUser"; variables: - CodespacesGetSecretForAuthenticatedUserVariables | reactQuery.SkipToken; + | CodespacesGetSecretForAuthenticatedUserVariables + | reactQuery.SkipToken; } | { path: "/user/codespaces/secrets/{secretName}/repositories"; @@ -108335,7 +108760,8 @@ export type QueryOperation = path: "/user/codespaces/{codespaceName}"; operationId: "codespacesGetForAuthenticatedUser"; variables: - CodespacesGetForAuthenticatedUserVariables | reactQuery.SkipToken; + | CodespacesGetForAuthenticatedUserVariables + | reactQuery.SkipToken; } | { path: "/user/codespaces/{codespaceName}/exports/{exportId}"; @@ -108355,19 +108781,22 @@ export type QueryOperation = path: "/user/emails"; operationId: "usersListEmailsForAuthenticatedUser"; variables: - UsersListEmailsForAuthenticatedUserVariables | reactQuery.SkipToken; + | UsersListEmailsForAuthenticatedUserVariables + | reactQuery.SkipToken; } | { path: "/user/followers"; operationId: "usersListFollowersForAuthenticatedUser"; variables: - UsersListFollowersForAuthenticatedUserVariables | reactQuery.SkipToken; + | UsersListFollowersForAuthenticatedUserVariables + | reactQuery.SkipToken; } | { path: "/user/following"; operationId: "usersListFollowedByAuthenticatedUser"; variables: - UsersListFollowedByAuthenticatedUserVariables | reactQuery.SkipToken; + | UsersListFollowedByAuthenticatedUserVariables + | reactQuery.SkipToken; } | { path: "/user/following/{username}"; @@ -108380,13 +108809,15 @@ export type QueryOperation = path: "/user/gpg_keys"; operationId: "usersListGpgKeysForAuthenticatedUser"; variables: - UsersListGpgKeysForAuthenticatedUserVariables | reactQuery.SkipToken; + | UsersListGpgKeysForAuthenticatedUserVariables + | reactQuery.SkipToken; } | { path: "/user/gpg_keys/{gpgKeyId}"; operationId: "usersGetGpgKeyForAuthenticatedUser"; variables: - UsersGetGpgKeyForAuthenticatedUserVariables | reactQuery.SkipToken; + | UsersGetGpgKeyForAuthenticatedUserVariables + | reactQuery.SkipToken; } | { path: "/user/installations"; @@ -108446,25 +108877,29 @@ export type QueryOperation = path: "/user/memberships/orgs"; operationId: "orgsListMembershipsForAuthenticatedUser"; variables: - OrgsListMembershipsForAuthenticatedUserVariables | reactQuery.SkipToken; + | OrgsListMembershipsForAuthenticatedUserVariables + | reactQuery.SkipToken; } | { path: "/user/memberships/orgs/{org}"; operationId: "orgsGetMembershipForAuthenticatedUser"; variables: - OrgsGetMembershipForAuthenticatedUserVariables | reactQuery.SkipToken; + | OrgsGetMembershipForAuthenticatedUserVariables + | reactQuery.SkipToken; } | { path: "/user/migrations"; operationId: "migrationsListForAuthenticatedUser"; variables: - MigrationsListForAuthenticatedUserVariables | reactQuery.SkipToken; + | MigrationsListForAuthenticatedUserVariables + | reactQuery.SkipToken; } | { path: "/user/migrations/{migrationId}"; operationId: "migrationsGetStatusForAuthenticatedUser"; variables: - MigrationsGetStatusForAuthenticatedUserVariables | reactQuery.SkipToken; + | MigrationsGetStatusForAuthenticatedUserVariables + | reactQuery.SkipToken; } | { path: "/user/migrations/{migrationId}/archive"; @@ -108477,7 +108912,8 @@ export type QueryOperation = path: "/user/migrations/{migrationId}/repositories"; operationId: "migrationsListReposForAuthenticatedUser"; variables: - MigrationsListReposForAuthenticatedUserVariables | reactQuery.SkipToken; + | MigrationsListReposForAuthenticatedUserVariables + | reactQuery.SkipToken; } | { path: "/user/orgs"; @@ -108495,7 +108931,8 @@ export type QueryOperation = path: "/user/packages/{packageType}/{packageName}"; operationId: "packagesGetPackageForAuthenticatedUser"; variables: - PackagesGetPackageForAuthenticatedUserVariables | reactQuery.SkipToken; + | PackagesGetPackageForAuthenticatedUserVariables + | reactQuery.SkipToken; } | { path: "/user/packages/{packageType}/{packageName}/versions"; @@ -108584,7 +109021,8 @@ export type QueryOperation = path: "/users/{username}/events"; operationId: "activityListEventsForAuthenticatedUser"; variables: - ActivityListEventsForAuthenticatedUserVariables | reactQuery.SkipToken; + | ActivityListEventsForAuthenticatedUserVariables + | reactQuery.SkipToken; } | { path: "/users/{username}/events/orgs/{org}"; @@ -108597,7 +109035,8 @@ export type QueryOperation = path: "/users/{username}/events/public"; operationId: "activityListPublicEventsForUser"; variables: - ActivityListPublicEventsForUserVariables | reactQuery.SkipToken; + | ActivityListPublicEventsForUserVariables + | reactQuery.SkipToken; } | { path: "/users/{username}/followers"; @@ -108665,7 +109104,8 @@ export type QueryOperation = path: "/users/{username}/packages/{packageType}/{packageName}/versions/{packageVersionId}"; operationId: "packagesGetPackageVersionForUser"; variables: - PackagesGetPackageVersionForUserVariables | reactQuery.SkipToken; + | PackagesGetPackageVersionForUserVariables + | reactQuery.SkipToken; } | { path: "/users/{username}/projects"; @@ -108676,13 +109116,15 @@ export type QueryOperation = path: "/users/{username}/received_events"; operationId: "activityListReceivedEventsForUser"; variables: - ActivityListReceivedEventsForUserVariables | reactQuery.SkipToken; + | ActivityListReceivedEventsForUserVariables + | reactQuery.SkipToken; } | { path: "/users/{username}/received_events/public"; operationId: "activityListReceivedPublicEventsForUser"; variables: - ActivityListReceivedPublicEventsForUserVariables | reactQuery.SkipToken; + | ActivityListReceivedPublicEventsForUserVariables + | reactQuery.SkipToken; } | { path: "/users/{username}/repos"; @@ -108693,19 +109135,22 @@ export type QueryOperation = path: "/users/{username}/settings/billing/actions"; operationId: "billingGetGithubActionsBillingUser"; variables: - BillingGetGithubActionsBillingUserVariables | reactQuery.SkipToken; + | BillingGetGithubActionsBillingUserVariables + | reactQuery.SkipToken; } | { path: "/users/{username}/settings/billing/packages"; operationId: "billingGetGithubPackagesBillingUser"; variables: - BillingGetGithubPackagesBillingUserVariables | reactQuery.SkipToken; + | BillingGetGithubPackagesBillingUserVariables + | reactQuery.SkipToken; } | { path: "/users/{username}/settings/billing/shared-storage"; operationId: "billingGetSharedStorageBillingUser"; variables: - BillingGetSharedStorageBillingUserVariables | reactQuery.SkipToken; + | BillingGetSharedStorageBillingUserVariables + | reactQuery.SkipToken; } | { path: "/users/{username}/ssh_signing_keys"; diff --git a/examples/frontend/src/github/githubFetcher.ts b/examples/frontend/src/github/githubFetcher.ts index 553c5216..7dc065a9 100644 --- a/examples/frontend/src/github/githubFetcher.ts +++ b/examples/frontend/src/github/githubFetcher.ts @@ -3,7 +3,8 @@ import { GithubContext } from "./githubContext"; const baseUrl = "https://api.github.com"; export type ErrorWrapper = - TError | { status: "unknown"; payload: string }; + | TError + | { status: "unknown"; payload: string }; export type GithubFetcherOptions = { url: string; diff --git a/examples/frontend/src/github/githubParameters.ts b/examples/frontend/src/github/githubParameters.ts index 2695b113..3ec02ba3 100644 --- a/examples/frontend/src/github/githubParameters.ts +++ b/examples/frontend/src/github/githubParameters.ts @@ -15,7 +15,9 @@ export type ActionsCacheKeyRequired = string; * @default last_accessed_at */ export type ActionsCacheListSort = - "created_at" | "last_accessed_at" | "size_in_bytes"; + | "created_at" + | "last_accessed_at" + | "size_in_bytes"; export type Actor = string; @@ -157,7 +159,12 @@ export type Owner = string; export type PackageName = string; export type PackageType = - "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"; + | "npm" + | "maven" + | "rubygems" + | "docker" + | "nuget" + | "container"; export type PackageVersionId = number; diff --git a/examples/frontend/src/github/githubSchemas.ts b/examples/frontend/src/github/githubSchemas.ts index 649ab6e2..025f30f5 100644 --- a/examples/frontend/src/github/githubSchemas.ts +++ b/examples/frontend/src/github/githubSchemas.ts @@ -1605,7 +1605,11 @@ export type CodeScanningAlert = { * A classification of the file. For example to identify it as generated. */ export type CodeScanningAlertClassification = - "source" | "generated" | "test" | "library" | null; + | "source" + | "generated" + | "test" + | "library" + | null; /** * The dismissal comment associated with the dismissal of the alert. @@ -1618,7 +1622,11 @@ export type CodeScanningAlertDismissedComment = string | null; * **Required when the state is dismissed.** The reason for dismissing or closing the alert. */ export type CodeScanningAlertDismissedReason = - any | "false positive" | "won't fix" | "used in tests" | null; + | any + | "false positive" + | "won't fix" + | "used in tests" + | null; /** * Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed. @@ -1744,7 +1752,13 @@ export type CodeScanningAlertSetState = "open" | "dismissed"; * Severity of a code scanning alert. */ export type CodeScanningAlertSeverity = - "critical" | "high" | "medium" | "low" | "warning" | "note" | "error"; + | "critical" + | "high" + | "medium" + | "low" + | "warning" + | "note" + | "error"; /** * State of a code scanning alert. @@ -6347,7 +6361,11 @@ export type Integration = { * @example one_month */ export type InteractionExpiry = - "one_day" | "three_days" | "one_week" | "one_month" | "six_months"; + | "one_day" + | "three_days" + | "one_week" + | "one_month" + | "six_months"; /** * The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect. @@ -6355,7 +6373,9 @@ export type InteractionExpiry = * @example collaborators_only */ export type InteractionGroup = - "existing_users" | "contributors_only" | "collaborators_only"; + | "existing_users" + | "contributors_only" + | "collaborators_only"; /** * Limit interactions to a specific type of user for a specified duration @@ -10225,7 +10245,12 @@ export type PackageVersion = { * @example docker */ package_type: - "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"; + | "npm" + | "maven" + | "rubygems" + | "docker" + | "nuget" + | "container"; }; /** * The name of the package version. @@ -12511,7 +12536,14 @@ export type Reaction = { * @example heart */ content: - "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; /** * @example "2016-05-20T20:09:31.000Z" * @format date-time @@ -14162,7 +14194,12 @@ export type SecretScanningAlert = { * **Required when the `state` is `resolved`.** The reason for resolving the alert. */ export type SecretScanningAlertResolution = - any | "false_positive" | "wont_fix" | "revoked" | "used_in_tests" | null; + | any + | "false_positive" + | "wont_fix" + | "revoked" + | "used_in_tests" + | null; /** * An optional comment when closing an alert. Cannot be updated or deleted. Must be `null` when changing `state` to `open`. @@ -16747,7 +16784,9 @@ export type WebhookBranchProtectionRuleCreated = { id: number; ignore_approvals_from_contributors: boolean; linear_history_requirement_enforcement_level: - "off" | "non_admins" | "everyone"; + | "off" + | "non_admins" + | "everyone"; merge_queue_enforcement_level: "off" | "non_admins" | "everyone"; name: string; pull_request_reviews_enforcement_level: "off" | "non_admins" | "everyone"; @@ -16793,7 +16832,9 @@ export type WebhookBranchProtectionRuleDeleted = { id: number; ignore_approvals_from_contributors: boolean; linear_history_requirement_enforcement_level: - "off" | "non_admins" | "everyone"; + | "off" + | "non_admins" + | "everyone"; merge_queue_enforcement_level: "off" | "non_admins" | "everyone"; name: string; pull_request_reviews_enforcement_level: "off" | "non_admins" | "everyone"; @@ -16865,7 +16906,9 @@ export type WebhookBranchProtectionRuleEdited = { id: number; ignore_approvals_from_contributors: boolean; linear_history_requirement_enforcement_level: - "off" | "non_admins" | "everyone"; + | "off" + | "non_admins" + | "everyone"; merge_queue_enforcement_level: "off" | "non_admins" | "everyone"; name: string; pull_request_reviews_enforcement_level: "off" | "non_admins" | "everyone"; @@ -18063,7 +18106,11 @@ export type WebhookCodeScanningAlertAppearedInBranch = { * The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`. */ dismissed_reason: - "false positive" | "won't fix" | "used in tests" | any | null; + | "false positive" + | "won't fix" + | "used in tests" + | any + | null; /** * The GitHub URL of the alert resource. * @@ -18233,7 +18280,11 @@ export type WebhookCodeScanningAlertClosedByUser = { * The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`. */ dismissed_reason: - "false positive" | "won't fix" | "used in tests" | any | null; + | "false positive" + | "won't fix" + | "used in tests" + | any + | null; /** * The GitHub URL of the alert resource. * @@ -18534,7 +18585,11 @@ export type WebhookCodeScanningAlertFixed = { * The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`. */ dismissed_reason: - "false positive" | "won't fix" | "used in tests" | any | null; + | "false positive" + | "won't fix" + | "used in tests" + | any + | null; /** * The GitHub URL of the alert resource. * @@ -23557,7 +23612,12 @@ export type WebhookIssueCommentCreated = { */ issue: { active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; assignee: { /** * @format uri @@ -24298,7 +24358,12 @@ export type WebhookIssueCommentDeleted = { */ issue: { active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; assignee: { /** * @format uri @@ -25048,7 +25113,12 @@ export type WebhookIssueCommentEdited = { */ issue: { active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; assignee: { /** * @format uri @@ -25728,7 +25798,12 @@ export type WebhookIssuesAssigned = { */ issue: { active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; assignee?: { /** * @format uri @@ -26349,7 +26424,12 @@ export type WebhookIssuesClosed = { */ issue: { active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; assignee?: { /** * @format uri @@ -26968,7 +27048,12 @@ export type WebhookIssuesDeleted = { */ issue: { active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; assignee?: { /** * @format uri @@ -27585,7 +27670,12 @@ export type WebhookIssuesDemilestoned = { */ issue: { active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; assignee?: { /** * @format uri @@ -28327,7 +28417,12 @@ export type WebhookIssuesEdited = { */ issue: { active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; assignee?: { /** * @format uri @@ -28966,7 +29061,12 @@ export type WebhookIssuesLabeled = { */ issue: { active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; assignee?: { /** * @format uri @@ -29604,7 +29704,12 @@ export type WebhookIssuesLocked = { */ issue: { active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; assignee?: { /** * @format uri @@ -30222,7 +30327,12 @@ export type WebhookIssuesMilestoned = { */ issue: { active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; assignee?: { /** * @format uri @@ -30947,7 +31057,12 @@ export type WebhookIssuesOpened = { */ old_issue: { active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; assignee?: { /** * @format uri @@ -31921,7 +32036,12 @@ export type WebhookIssuesOpened = { */ issue: { active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; assignee?: { /** * @format uri @@ -32540,7 +32660,12 @@ export type WebhookIssuesPinned = { */ issue: { active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; assignee?: { /** * @format uri @@ -33156,7 +33281,12 @@ export type WebhookIssuesReopened = { */ issue: { active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; assignee?: { /** * @format uri @@ -33773,7 +33903,12 @@ export type WebhookIssuesTransferred = { */ new_issue: { active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; assignee?: { /** * @format uri @@ -34757,7 +34892,12 @@ export type WebhookIssuesTransferred = { */ issue: { active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; assignee?: { /** * @format uri @@ -35435,7 +35575,12 @@ export type WebhookIssuesUnassigned = { */ issue: { active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; assignee?: { /** * @format uri @@ -36053,7 +36198,12 @@ export type WebhookIssuesUnlabeled = { */ issue: { active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; assignee?: { /** * @format uri @@ -36691,7 +36841,12 @@ export type WebhookIssuesUnlocked = { */ issue: { active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; assignee?: { /** * @format uri @@ -37307,7 +37462,12 @@ export type WebhookIssuesUnpinned = { */ issue: { active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; assignee?: { /** * @format uri @@ -42711,7 +42871,12 @@ export type WebhookPullRequestAssigned = { }; }; active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; additions?: number; assignee: { /** @@ -44486,7 +44651,12 @@ export type WebhookPullRequestAutoMergeDisabled = { }; }; active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; additions?: number; assignee: { /** @@ -46262,7 +46432,12 @@ export type WebhookPullRequestAutoMergeEnabled = { }; }; active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; additions?: number; assignee: { /** @@ -48041,7 +48216,12 @@ export type WebhookPullRequestClosed = { }; }; active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; additions?: number; assignee: { /** @@ -49794,7 +49974,12 @@ export type WebhookPullRequestConvertedToDraft = { }; }; active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; additions?: number; assignee: { /** @@ -51561,7 +51746,12 @@ export type WebhookPullRequestDemilestoned = { }; }; active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; additions?: number; assignee: { /** @@ -53336,7 +53526,12 @@ export type WebhookPullRequestDequeued = { }; }; active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; additions?: number; assignee: { /** @@ -55140,7 +55335,12 @@ export type WebhookPullRequestEdited = { }; }; active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; additions?: number; assignee: { /** @@ -56915,7 +57115,12 @@ export type WebhookPullRequestEnqueued = { }; }; active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; additions?: number; assignee: { /** @@ -58713,7 +58918,12 @@ export type WebhookPullRequestLabeled = { }; }; active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; additions?: number; assignee: { /** @@ -60491,7 +60701,12 @@ export type WebhookPullRequestLocked = { }; }; active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; additions?: number; assignee: { /** @@ -62269,7 +62484,12 @@ export type WebhookPullRequestMilestoned = { }; }; active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; additions?: number; assignee: { /** @@ -64047,7 +64267,12 @@ export type WebhookPullRequestOpened = { }; }; active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; additions?: number; assignee: { /** @@ -65807,7 +66032,12 @@ export type WebhookPullRequestReadyForReview = { }; }; active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; additions?: number; assignee: { /** @@ -67574,7 +67804,12 @@ export type WebhookPullRequestReopened = { }; }; active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; additions?: number; assignee: { /** @@ -69537,7 +69772,12 @@ export type WebhookPullRequestReviewCommentCreated = { }; }; active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; assignee: { /** * @format uri @@ -71421,7 +71661,12 @@ export type WebhookPullRequestReviewCommentDeleted = { }; }; active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; assignee: { /** * @format uri @@ -73316,7 +73561,12 @@ export type WebhookPullRequestReviewCommentEdited = { }; }; active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; assignee: { /** * @format uri @@ -74993,7 +75243,12 @@ export type WebhookPullRequestReviewDismissed = { }; }; active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; assignee: { /** * @format uri @@ -76794,7 +77049,12 @@ export type WebhookPullRequestReviewEdited = { }; }; active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; assignee: { /** * @format uri @@ -78500,7 +78760,12 @@ export type WebhookPullRequestReviewRequestRemoved = }; }; active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; additions?: number; assignee: { /** @@ -79052,7 +79317,9 @@ export type WebhookPullRequestReviewRequestRemoved = * The default value for a squash merge commit message. */ squash_merge_commit_message?: - "PR_BODY" | "COMMIT_MESSAGES" | "BLANK"; + | "PR_BODY" + | "COMMIT_MESSAGES" + | "BLANK"; /** * The default value for a squash merge commit title. */ @@ -79553,7 +79820,9 @@ export type WebhookPullRequestReviewRequestRemoved = * - `BLANK` - default to a blank commit message. */ squash_merge_commit_message?: - "PR_BODY" | "COMMIT_MESSAGES" | "BLANK"; + | "PR_BODY" + | "COMMIT_MESSAGES" + | "BLANK"; /** * The default value for a squash merge commit title: * @@ -80331,7 +80600,12 @@ export type WebhookPullRequestReviewRequestRemoved = }; }; active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; additions?: number; assignee: { /** @@ -80887,7 +81161,9 @@ export type WebhookPullRequestReviewRequestRemoved = * - `BLANK` - default to a blank commit message. */ squash_merge_commit_message?: - "PR_BODY" | "COMMIT_MESSAGES" | "BLANK"; + | "PR_BODY" + | "COMMIT_MESSAGES" + | "BLANK"; /** * The default value for a squash merge commit title: * @@ -81391,7 +81667,9 @@ export type WebhookPullRequestReviewRequestRemoved = * - `BLANK` - default to a blank commit message. */ squash_merge_commit_message?: - "PR_BODY" | "COMMIT_MESSAGES" | "BLANK"; + | "PR_BODY" + | "COMMIT_MESSAGES" + | "BLANK"; /** * The default value for a squash merge commit title: * @@ -82194,7 +82472,12 @@ export type WebhookPullRequestReviewRequested = }; }; active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; additions?: number; assignee: { /** @@ -82750,7 +83033,9 @@ export type WebhookPullRequestReviewRequested = * - `BLANK` - default to a blank commit message. */ squash_merge_commit_message?: - "PR_BODY" | "COMMIT_MESSAGES" | "BLANK"; + | "PR_BODY" + | "COMMIT_MESSAGES" + | "BLANK"; /** * The default value for a squash merge commit title: * @@ -83254,7 +83539,9 @@ export type WebhookPullRequestReviewRequested = * - `BLANK` - default to a blank commit message. */ squash_merge_commit_message?: - "PR_BODY" | "COMMIT_MESSAGES" | "BLANK"; + | "PR_BODY" + | "COMMIT_MESSAGES" + | "BLANK"; /** * The default value for a squash merge commit title: * @@ -84032,7 +84319,12 @@ export type WebhookPullRequestReviewRequested = }; }; active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; additions?: number; assignee: { /** @@ -84588,7 +84880,9 @@ export type WebhookPullRequestReviewRequested = * - `BLANK` - default to a blank commit message. */ squash_merge_commit_message?: - "PR_BODY" | "COMMIT_MESSAGES" | "BLANK"; + | "PR_BODY" + | "COMMIT_MESSAGES" + | "BLANK"; /** * The default value for a squash merge commit title: * @@ -85092,7 +85386,9 @@ export type WebhookPullRequestReviewRequested = * - `BLANK` - default to a blank commit message. */ squash_merge_commit_message?: - "PR_BODY" | "COMMIT_MESSAGES" | "BLANK"; + | "PR_BODY" + | "COMMIT_MESSAGES" + | "BLANK"; /** * The default value for a squash merge commit title: * @@ -85890,7 +86186,12 @@ export type WebhookPullRequestReviewSubmitted = { }; }; active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; assignee: { /** * @format uri @@ -87683,7 +87984,12 @@ export type WebhookPullRequestReviewThreadResolved = { }; }; active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; assignee: { /** * @format uri @@ -89495,7 +89801,12 @@ export type WebhookPullRequestReviewThreadUnresolved = { }; }; active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; assignee: { /** * @format uri @@ -91313,7 +91624,12 @@ export type WebhookPullRequestSynchronize = { }; }; active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; additions?: number; assignee: { /** @@ -93143,7 +93459,12 @@ export type WebhookPullRequestUnassigned = { }; }; active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; additions?: number; assignee: { /** @@ -94941,7 +95262,12 @@ export type WebhookPullRequestUnlabeled = { }; }; active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; additions?: number; assignee: { /** @@ -96712,7 +97038,12 @@ export type WebhookPullRequestUnlocked = { }; }; active_lock_reason: - "resolved" | "off-topic" | "too heated" | "spam" | any | null; + | "resolved" + | "off-topic" + | "too heated" + | "spam" + | any + | null; additions?: number; assignee: { /** diff --git a/examples/frontend/tsconfig.node.json b/examples/frontend/tsconfig.node.json index 227c4532..a338e04d 100644 --- a/examples/frontend/tsconfig.node.json +++ b/examples/frontend/tsconfig.node.json @@ -1,8 +1,8 @@ { "compilerOptions": { "composite": true, - "module": "esnext", - "moduleResolution": "node" + "module": "NodeNext", + "moduleResolution": "NodeNext" }, "include": ["vite.config.mts"] } diff --git a/examples/frontend/vite.config.mts b/examples/frontend/vite.config.mts index 9cc50ead..d9701cb0 100644 --- a/examples/frontend/vite.config.mts +++ b/examples/frontend/vite.config.mts @@ -1,7 +1,7 @@ -import { defineConfig } from "vite"; +import { defineConfig, lazyPlugins } from "vite-plus"; import react from "@vitejs/plugin-react"; // https://vitejs.dev/config/ export default defineConfig({ - plugins: [react()], + plugins: lazyPlugins(() => [react()]), }); diff --git a/package.json b/package.json index 703f607d..b6e58ee2 100644 --- a/package.json +++ b/package.json @@ -1,38 +1,37 @@ { "name": "openapi-codegen", "version": "0.0.1", + "private": true, "description": "OpenAPI code generator framework", - "repository": "https://github.com/fabien0102/openapi-codegen", - "author": "Fabien Bernard", "license": "MIT", - "private": true, - "engines": { - "node": ">=20" - }, + "author": "Fabien Bernard", + "repository": "https://github.com/fabien0102/openapi-codegen", "scripts": { - "test": "vitest", + "test": "vp test", "check": "pnpm /^check:.*/", "check:types": "tsc --noEmit", - "check:lint": "oxlint .", - "check:prettier": "prettier --check .", + "check:lint": "vp lint .", + "check:prettier": "vp fmt --check .", "fix": "pnpm /^fix:.*/", - "fix:lint": "oxlint --fix .", - "fix:prettier": "prettier --write .", + "fix:lint": "vp lint --fix .", + "fix:prettier": "vp fmt .", "build": "pnpm /^build:.*/", "build:plugin:ts": "pnpm --filter=@openapi-codegen/typescript build", "build:cli": "pnpm --filter=@openapi-codegen/cli build", - "all-contrib": "all-contributors" + "all-contrib": "all-contributors", + "prepare": "vp config" }, "devDependencies": { "@types/node": "^26.6.5", "all-contributors-cli": "^6.26.1", - "got": "^16.1.0", - "husky": "^9.1.7", - "oxlint": "^1.89.0", - "prettier": "^3.9.10", + "got": "^16.0.0", "pretty-quick": "^4.2.2", "typescript": "~6.0.2", - "vitest": "^5.0.5" + "vite": "catalog:", + "vite-plus": "catalog:" + }, + "engines": { + "node": ">=22" }, "packageManager": "pnpm@12.15.0" } diff --git a/plugins/typescript/README.md b/plugins/typescript/README.md index d0d78112..14051300 100644 --- a/plugins/typescript/README.md +++ b/plugins/typescript/README.md @@ -27,7 +27,9 @@ import { export default defineConfig({ petstore: { - from: {/* file, url or github */}, + from: { + /* file, url or github */ + }, outputDir: "./petStore", to: async (context) => { const filenamePrefix = "petStore"; @@ -179,7 +181,9 @@ import { export default defineConfig({ myAPI: { - from: {/* file, url or github */}, + from: { + /* file, url or github */ + }, outputDir: "./myAPI", to: async (context) => { // Rename `Foo` to `Bar` diff --git a/plugins/typescript/package.json b/plugins/typescript/package.json index 3296ca31..d388f7aa 100644 --- a/plugins/typescript/package.json +++ b/plugins/typescript/package.json @@ -39,6 +39,7 @@ "devDependencies": { "@types/lodash": "^4.17.25", "@types/pluralize": "^0.0.33", - "@types/qs": "^6.15.1" + "@types/qs": "^6.15.1", + "oxfmt": "^0.75.0" } } diff --git a/plugins/typescript/src/core/analyzeImportUsage.test.ts b/plugins/typescript/src/core/analyzeImportUsage.test.ts index 5c99d655..03b82093 100644 --- a/plugins/typescript/src/core/analyzeImportUsage.test.ts +++ b/plugins/typescript/src/core/analyzeImportUsage.test.ts @@ -1,4 +1,4 @@ -import { describe, it, expect } from "vitest"; +import { describe, it, expect } from "vite-plus/test"; import ts, { factory as f } from "typescript"; import { analyzeImportUsage } from "./analyzeImportUsage"; diff --git a/plugins/typescript/src/core/createNamedImport.test.ts b/plugins/typescript/src/core/createNamedImport.test.ts index d954b306..974a8580 100644 --- a/plugins/typescript/src/core/createNamedImport.test.ts +++ b/plugins/typescript/src/core/createNamedImport.test.ts @@ -1,4 +1,4 @@ -import { describe, it, expect } from "vitest"; +import { describe, it, expect } from "vite-plus/test"; import { createNamedImport, shouldUseTypeImport } from "./createNamedImport"; import { analyzeImportUsage } from "./analyzeImportUsage"; import { factory as f } from "typescript"; diff --git a/plugins/typescript/src/core/findCompatibleMediaType.test.ts b/plugins/typescript/src/core/findCompatibleMediaType.test.ts index be76c85a..aa36d94d 100644 --- a/plugins/typescript/src/core/findCompatibleMediaType.test.ts +++ b/plugins/typescript/src/core/findCompatibleMediaType.test.ts @@ -1,5 +1,5 @@ import type { MediaTypeObject } from "openapi3-ts/oas30"; -import { describe, expect, it } from "vitest"; +import { describe, expect, it } from "vite-plus/test"; import { findCompatibleMediaType } from "./findCompatibleMediaType"; describe("findCompatibleMediaType", () => { diff --git a/plugins/typescript/src/core/getDataResponseType.test.ts b/plugins/typescript/src/core/getDataResponseType.test.ts index be2587e0..e90c0204 100644 --- a/plugins/typescript/src/core/getDataResponseType.test.ts +++ b/plugins/typescript/src/core/getDataResponseType.test.ts @@ -1,4 +1,4 @@ -import { describe, expect, it } from "vitest"; +import { describe, expect, it } from "vite-plus/test"; import { ResponsesObject } from "openapi3-ts/oas30"; import { print } from "../testUtils"; import { getDataResponseType } from "./getDataResponseType"; diff --git a/plugins/typescript/src/core/getErrorResponseType.test.ts b/plugins/typescript/src/core/getErrorResponseType.test.ts index ad79f8ce..3dc2638a 100644 --- a/plugins/typescript/src/core/getErrorResponseType.test.ts +++ b/plugins/typescript/src/core/getErrorResponseType.test.ts @@ -1,4 +1,4 @@ -import { describe, expect, it } from "vitest"; +import { describe, expect, it } from "vite-plus/test"; import { ResponseObject } from "openapi3-ts/oas30"; import { print } from "../testUtils"; import { getErrorResponseType } from "./getErrorResponseType"; diff --git a/plugins/typescript/src/core/getOperationTypes.test.ts b/plugins/typescript/src/core/getOperationTypes.test.ts index 10ff97ed..f67ccba9 100644 --- a/plugins/typescript/src/core/getOperationTypes.test.ts +++ b/plugins/typescript/src/core/getOperationTypes.test.ts @@ -1,4 +1,4 @@ -import { it, describe, expect } from "vitest"; +import { it, describe, expect } from "vite-plus/test"; import { omit } from "lodash"; import ts, { factory } from "typescript"; import { OperationObject } from "openapi3-ts/oas30"; diff --git a/plugins/typescript/src/core/getReference.test.ts b/plugins/typescript/src/core/getReference.test.ts index 2573b515..2cdf7373 100644 --- a/plugins/typescript/src/core/getReference.test.ts +++ b/plugins/typescript/src/core/getReference.test.ts @@ -1,5 +1,5 @@ import { ComponentsObject } from "openapi3-ts/oas30"; -import { describe, expect, it } from "vitest"; +import { describe, expect, it } from "vite-plus/test"; import { getReferenceSchema } from "./getReference"; describe("getReferenceSchema", () => { diff --git a/plugins/typescript/src/core/getUsedImports.test.ts b/plugins/typescript/src/core/getUsedImports.test.ts index 847668a2..78651842 100644 --- a/plugins/typescript/src/core/getUsedImports.test.ts +++ b/plugins/typescript/src/core/getUsedImports.test.ts @@ -1,4 +1,4 @@ -import { describe, expect, it } from "vitest"; +import { describe, expect, it } from "vite-plus/test"; import ts, { factory as f } from "typescript"; import { print } from "../testUtils"; import { getUsedImports } from "./getUsedImports"; diff --git a/plugins/typescript/src/core/getVariablesType.test.ts b/plugins/typescript/src/core/getVariablesType.test.ts index 5ee9f429..95b196dd 100644 --- a/plugins/typescript/src/core/getVariablesType.test.ts +++ b/plugins/typescript/src/core/getVariablesType.test.ts @@ -1,4 +1,4 @@ -import { describe, expect, it } from "vitest"; +import { describe, expect, it } from "vite-plus/test"; import { print } from "../testUtils"; import ts, { factory as f } from "typescript"; import { getVariablesType } from "./getVariablesType"; diff --git a/plugins/typescript/src/core/isRequestBodyOptional.test.ts b/plugins/typescript/src/core/isRequestBodyOptional.test.ts index 4bd4cfe1..48171493 100644 --- a/plugins/typescript/src/core/isRequestBodyOptional.test.ts +++ b/plugins/typescript/src/core/isRequestBodyOptional.test.ts @@ -1,4 +1,4 @@ -import { describe, expect, it } from "vitest"; +import { describe, expect, it } from "vite-plus/test"; import { isRequestBodyOptional } from "./isRequestBodyOptional"; describe("isRequestBodyOptional", () => { diff --git a/plugins/typescript/src/core/isVerb.test.ts b/plugins/typescript/src/core/isVerb.test.ts index 27469103..c70bcafc 100644 --- a/plugins/typescript/src/core/isVerb.test.ts +++ b/plugins/typescript/src/core/isVerb.test.ts @@ -1,4 +1,4 @@ -import { describe, expect, it } from "vitest"; +import { describe, expect, it } from "vite-plus/test"; import { isVerb } from "./isVerb"; describe("isVerb", () => { diff --git a/plugins/typescript/src/core/paramsToSchema.test.ts b/plugins/typescript/src/core/paramsToSchema.test.ts index 95a67617..686054a5 100644 --- a/plugins/typescript/src/core/paramsToSchema.test.ts +++ b/plugins/typescript/src/core/paramsToSchema.test.ts @@ -1,4 +1,4 @@ -import { describe, expect, it } from "vitest"; +import { describe, expect, it } from "vite-plus/test"; import { ParameterObject } from "openapi3-ts/oas30"; import { paramsToSchema } from "./paramsToSchema"; diff --git a/plugins/typescript/src/core/schemaToEnumDeclaration.test.ts b/plugins/typescript/src/core/schemaToEnumDeclaration.test.ts index 7f79c107..7108409d 100644 --- a/plugins/typescript/src/core/schemaToEnumDeclaration.test.ts +++ b/plugins/typescript/src/core/schemaToEnumDeclaration.test.ts @@ -1,4 +1,4 @@ -import { describe, expect, it } from "vitest"; +import { describe, expect, it } from "vite-plus/test"; import { OpenAPIObject, SchemaObject } from "openapi3-ts/oas30"; import ts from "typescript"; import { schemaToEnumDeclaration } from "./schemaToEnumDeclaration"; diff --git a/plugins/typescript/src/core/schemaToTypeAliasDeclaration.test.ts b/plugins/typescript/src/core/schemaToTypeAliasDeclaration.test.ts index 83da449d..0ae7d96f 100644 --- a/plugins/typescript/src/core/schemaToTypeAliasDeclaration.test.ts +++ b/plugins/typescript/src/core/schemaToTypeAliasDeclaration.test.ts @@ -1,4 +1,4 @@ -import { describe, expect, it } from "vitest"; +import { describe, expect, it } from "vite-plus/test"; import { OpenAPIObject, ReferenceObject, diff --git a/plugins/typescript/src/core/schemaToTypeAliasDeclaration.ts b/plugins/typescript/src/core/schemaToTypeAliasDeclaration.ts index b6aa2e9b..908b4489 100644 --- a/plugins/typescript/src/core/schemaToTypeAliasDeclaration.ts +++ b/plugins/typescript/src/core/schemaToTypeAliasDeclaration.ts @@ -20,9 +20,11 @@ import { convertNumberToWord } from "../utils/getEnumProperties"; import { getReferenceSchema } from "./getReference"; type RemoveIndex = { - [ - P in keyof T as string extends P ? never : number extends P ? never : P - ]: T[P]; + [P in keyof T as string extends P + ? never + : number extends P + ? never + : P]: T[P]; }; export type OpenAPIComponentType = Extract< diff --git a/plugins/typescript/src/generators/generateFetchers.test.ts b/plugins/typescript/src/generators/generateFetchers.test.ts index d36a5a60..89636b5c 100644 --- a/plugins/typescript/src/generators/generateFetchers.test.ts +++ b/plugins/typescript/src/generators/generateFetchers.test.ts @@ -1,4 +1,4 @@ -import { describe, expect, it } from "vitest"; +import { describe, expect, it } from "vite-plus/test"; import { set } from "lodash"; import { OpenAPIObject } from "openapi3-ts/oas30"; import { Config, generateFetchers } from "./generateFetchers"; diff --git a/plugins/typescript/src/generators/generateReactQueryComponents.test.ts b/plugins/typescript/src/generators/generateReactQueryComponents.test.ts index 4244dbc9..c7dab80f 100644 --- a/plugins/typescript/src/generators/generateReactQueryComponents.test.ts +++ b/plugins/typescript/src/generators/generateReactQueryComponents.test.ts @@ -1,4 +1,4 @@ -import { describe, expect, it } from "vitest"; +import { describe, expect, it } from "vite-plus/test"; import { OpenAPIObject } from "openapi3-ts/oas30"; import { Config, @@ -37,8 +37,9 @@ describe("generateReactQueryComponents", () => { }, config ); - - expect(writeFile.mock.calls[0][0]).toBe("petstoreFetcher.ts"); + expect(writeFile.mock.calls.map((i) => i[0])).toContain( + "petstoreFetcher.ts" + ); }); it("should generate a useQuery wrapper (no parameters)", async () => { @@ -92,11 +93,7 @@ describe("generateReactQueryComponents", () => { * @version 1.0.0 */ import * as reactQuery from "@tanstack/react-query"; - import { - type PetstoreContext, - usePetstoreContext, - queryKeyFn, - } from "./petstoreContext"; + import { type PetstoreContext, usePetstoreContext, queryKeyFn } from "./petstoreContext"; import { deepMerge } from "./petstoreUtils"; import type * as Fetcher from "./petstoreFetcher"; import { petstoreFetch } from "./petstoreFetcher"; @@ -115,10 +112,7 @@ describe("generateReactQueryComponents", () => { /** * Get all the pets */ - export const fetchListPets = ( - variables: ListPetsVariables, - signal?: AbortSignal, - ) => + export const fetchListPets = (variables: ListPetsVariables, signal?: AbortSignal) => petstoreFetch({ url: "/pets", method: "get", @@ -134,18 +128,12 @@ describe("generateReactQueryComponents", () => { queryFn: (options: QueryFnOptions) => Promise; }; - export function listPetsQuery( - variables: ListPetsVariables | reactQuery.SkipToken, - ): { + export function listPetsQuery(variables: ListPetsVariables | reactQuery.SkipToken): { queryKey: reactQuery.QueryKey; - queryFn: - | ((options: QueryFnOptions) => Promise) - | reactQuery.SkipToken; + queryFn: ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; }; - export function listPetsQuery( - variables: ListPetsVariables | reactQuery.SkipToken, - ) { + export function listPetsQuery(variables: ListPetsVariables | reactQuery.SkipToken) { return { queryKey: queryKeyFn({ path: "/pets", @@ -162,12 +150,12 @@ describe("generateReactQueryComponents", () => { /** * Get all the pets */ - export const useSuspenseListPets = ( + export const useSuspenseListPets = ( variables: ListPetsVariables, options?: Omit< reactQuery.UseQueryOptions, "queryKey" | "queryFn" | "initialData" - >, + > ) => { const { queryOptions, fetcherOptions } = usePetstoreContext(options); return reactQuery.useSuspenseQuery({ @@ -180,19 +168,17 @@ describe("generateReactQueryComponents", () => { /** * Get all the pets */ - export const useListPets = ( + export const useListPets = ( variables: ListPetsVariables | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions, "queryKey" | "queryFn" | "initialData" - >, + > ) => { const { queryOptions, fetcherOptions } = usePetstoreContext(options); return reactQuery.useQuery({ ...listPetsQuery( - variables === reactQuery.skipToken - ? variables - : deepMerge(fetcherOptions, variables), + variables === reactQuery.skipToken ? variables : deepMerge(fetcherOptions, variables) ), ...options, ...queryOptions, @@ -258,11 +244,7 @@ describe("generateReactQueryComponents", () => { * @version 1.0.0 */ import * as reactQuery from "@tanstack/react-query"; - import { - type PetstoreContext, - usePetstoreContext, - queryKeyFn, - } from "./petstoreContext"; + import { type PetstoreContext, usePetstoreContext, queryKeyFn } from "./petstoreContext"; import { deepMerge } from "./petstoreUtils"; import type * as Fetcher from "./petstoreFetcher"; import { petstoreFetch } from "./petstoreFetcher"; @@ -281,10 +263,7 @@ describe("generateReactQueryComponents", () => { /** * Get all the pets */ - export const fetchListPets = ( - variables: ListPetsVariables, - signal?: AbortSignal, - ) => + export const fetchListPets = (variables: ListPetsVariables, signal?: AbortSignal) => petstoreFetch({ url: "/pets", method: "get", @@ -300,18 +279,12 @@ describe("generateReactQueryComponents", () => { queryFn: (options: QueryFnOptions) => Promise; }; - export function listPetsQuery( - variables: ListPetsVariables | reactQuery.SkipToken, - ): { + export function listPetsQuery(variables: ListPetsVariables | reactQuery.SkipToken): { queryKey: reactQuery.QueryKey; - queryFn: - | ((options: QueryFnOptions) => Promise) - | reactQuery.SkipToken; + queryFn: ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; }; - export function listPetsQuery( - variables: ListPetsVariables | reactQuery.SkipToken, - ) { + export function listPetsQuery(variables: ListPetsVariables | reactQuery.SkipToken) { return { queryKey: queryKeyFn({ path: "/pets", @@ -328,12 +301,12 @@ describe("generateReactQueryComponents", () => { /** * Get all the pets */ - export const useSuspenseListPets = ( + export const useSuspenseListPets = ( variables: ListPetsVariables, options?: Omit< reactQuery.UseQueryOptions, "queryKey" | "queryFn" | "initialData" - >, + > ) => { const { queryOptions, fetcherOptions } = usePetstoreContext(options); return reactQuery.useSuspenseQuery({ @@ -346,19 +319,17 @@ describe("generateReactQueryComponents", () => { /** * Get all the pets */ - export const useListPets = ( + export const useListPets = ( variables: ListPetsVariables | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions, "queryKey" | "queryFn" | "initialData" - >, + > ) => { const { queryOptions, fetcherOptions } = usePetstoreContext(options); return reactQuery.useQuery({ ...listPetsQuery( - variables === reactQuery.skipToken - ? variables - : deepMerge(fetcherOptions, variables), + variables === reactQuery.skipToken ? variables : deepMerge(fetcherOptions, variables) ), ...options, ...queryOptions, @@ -449,11 +420,7 @@ describe("generateReactQueryComponents", () => { * @version 1.0.0 */ import * as reactQuery from "@tanstack/react-query"; - import { - type PetstoreContext, - usePetstoreContext, - queryKeyFn, - } from "./petstoreContext"; + import { type PetstoreContext, usePetstoreContext, queryKeyFn } from "./petstoreContext"; import { deepMerge } from "./petstoreUtils"; import type * as Fetcher from "./petstoreFetcher"; import { petstoreFetch } from "./petstoreFetcher"; @@ -485,18 +452,13 @@ describe("generateReactQueryComponents", () => { /** * Get all the pets */ - export const fetchListPets = ( - variables: ListPetsVariables, - signal?: AbortSignal, - ) => - petstoreFetch< - ListPetsResponse, - ListPetsError, - undefined, - {}, - ListPetsQueryParams, - {} - >({ url: "/pets", method: "get", ...variables, signal }); + export const fetchListPets = (variables: ListPetsVariables, signal?: AbortSignal) => + petstoreFetch({ + url: "/pets", + method: "get", + ...variables, + signal, + }); /** * Get all the pets @@ -506,18 +468,12 @@ describe("generateReactQueryComponents", () => { queryFn: (options: QueryFnOptions) => Promise; }; - export function listPetsQuery( - variables: ListPetsVariables | reactQuery.SkipToken, - ): { + export function listPetsQuery(variables: ListPetsVariables | reactQuery.SkipToken): { queryKey: reactQuery.QueryKey; - queryFn: - | ((options: QueryFnOptions) => Promise) - | reactQuery.SkipToken; + queryFn: ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; }; - export function listPetsQuery( - variables: ListPetsVariables | reactQuery.SkipToken, - ) { + export function listPetsQuery(variables: ListPetsVariables | reactQuery.SkipToken) { return { queryKey: queryKeyFn({ path: "/pets", @@ -534,12 +490,12 @@ describe("generateReactQueryComponents", () => { /** * Get all the pets */ - export const useSuspenseListPets = ( + export const useSuspenseListPets = ( variables: ListPetsVariables, options?: Omit< reactQuery.UseQueryOptions, "queryKey" | "queryFn" | "initialData" - >, + > ) => { const { queryOptions, fetcherOptions } = usePetstoreContext(options); return reactQuery.useSuspenseQuery({ @@ -552,19 +508,17 @@ describe("generateReactQueryComponents", () => { /** * Get all the pets */ - export const useListPets = ( + export const useListPets = ( variables: ListPetsVariables | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions, "queryKey" | "queryFn" | "initialData" - >, + > ) => { const { queryOptions, fetcherOptions } = usePetstoreContext(options); return reactQuery.useQuery({ ...listPetsQuery( - variables === reactQuery.skipToken - ? variables - : deepMerge(fetcherOptions, variables), + variables === reactQuery.skipToken ? variables : deepMerge(fetcherOptions, variables) ), ...options, ...queryOptions, @@ -655,11 +609,7 @@ describe("generateReactQueryComponents", () => { * @version 1.0.0 */ import * as reactQuery from "@tanstack/react-query"; - import { - type PetstoreContext, - usePetstoreContext, - queryKeyFn, - } from "./petstoreContext"; + import { type PetstoreContext, usePetstoreContext, queryKeyFn } from "./petstoreContext"; import { deepMerge } from "./petstoreUtils"; import type * as Fetcher from "./petstoreFetcher"; import { petstoreFetch } from "./petstoreFetcher"; @@ -691,18 +641,13 @@ describe("generateReactQueryComponents", () => { /** * Get all the pets */ - export const fetchListPets = ( - variables: ListPetsVariables, - signal?: AbortSignal, - ) => - petstoreFetch< - ListPetsResponse, - ListPetsError, - undefined, - {}, - ListPetsQueryParams, - {} - >({ url: "/pets", method: "get", ...variables, signal }); + export const fetchListPets = (variables: ListPetsVariables, signal?: AbortSignal) => + petstoreFetch({ + url: "/pets", + method: "get", + ...variables, + signal, + }); /** * Get all the pets @@ -712,18 +657,12 @@ describe("generateReactQueryComponents", () => { queryFn: (options: QueryFnOptions) => Promise; }; - export function listPetsQuery( - variables: ListPetsVariables | reactQuery.SkipToken, - ): { + export function listPetsQuery(variables: ListPetsVariables | reactQuery.SkipToken): { queryKey: reactQuery.QueryKey; - queryFn: - | ((options: QueryFnOptions) => Promise) - | reactQuery.SkipToken; + queryFn: ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; }; - export function listPetsQuery( - variables: ListPetsVariables | reactQuery.SkipToken, - ) { + export function listPetsQuery(variables: ListPetsVariables | reactQuery.SkipToken) { return { queryKey: queryKeyFn({ path: "/pets", @@ -740,12 +679,12 @@ describe("generateReactQueryComponents", () => { /** * Get all the pets */ - export const useSuspenseListPets = ( + export const useSuspenseListPets = ( variables: ListPetsVariables, options?: Omit< reactQuery.UseQueryOptions, "queryKey" | "queryFn" | "initialData" - >, + > ) => { const { queryOptions, fetcherOptions } = usePetstoreContext(options); return reactQuery.useSuspenseQuery({ @@ -758,19 +697,17 @@ describe("generateReactQueryComponents", () => { /** * Get all the pets */ - export const useListPets = ( + export const useListPets = ( variables: ListPetsVariables | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions, "queryKey" | "queryFn" | "initialData" - >, + > ) => { const { queryOptions, fetcherOptions } = usePetstoreContext(options); return reactQuery.useQuery({ ...listPetsQuery( - variables === reactQuery.skipToken - ? variables - : deepMerge(fetcherOptions, variables), + variables === reactQuery.skipToken ? variables : deepMerge(fetcherOptions, variables) ), ...options, ...queryOptions, @@ -847,11 +784,7 @@ describe("generateReactQueryComponents", () => { * @version 1.0.0 */ import * as reactQuery from "@tanstack/react-query"; - import { - type PetstoreContext, - usePetstoreContext, - queryKeyFn, - } from "./petstoreContext"; + import { type PetstoreContext, usePetstoreContext, queryKeyFn } from "./petstoreContext"; import { deepMerge } from "./petstoreUtils"; import type * as Fetcher from "./petstoreFetcher"; import { petstoreFetch } from "./petstoreFetcher"; @@ -879,18 +812,13 @@ describe("generateReactQueryComponents", () => { /** * Info for a specific pet */ - export const fetchShowPetById = ( - variables: ShowPetByIdVariables, - signal?: AbortSignal, - ) => - petstoreFetch< - ShowPetByIdResponse, - ShowPetByIdError, - undefined, - {}, - {}, - ShowPetByIdPathParams - >({ url: "/pets/{petId}", method: "get", ...variables, signal }); + export const fetchShowPetById = (variables: ShowPetByIdVariables, signal?: AbortSignal) => + petstoreFetch({ + url: "/pets/{petId}", + method: "get", + ...variables, + signal, + }); /** * Info for a specific pet @@ -900,18 +828,12 @@ describe("generateReactQueryComponents", () => { queryFn: (options: QueryFnOptions) => Promise; }; - export function showPetByIdQuery( - variables: ShowPetByIdVariables | reactQuery.SkipToken, - ): { + export function showPetByIdQuery(variables: ShowPetByIdVariables | reactQuery.SkipToken): { queryKey: reactQuery.QueryKey; - queryFn: - | ((options: QueryFnOptions) => Promise) - | reactQuery.SkipToken; + queryFn: ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; }; - export function showPetByIdQuery( - variables: ShowPetByIdVariables | reactQuery.SkipToken, - ) { + export function showPetByIdQuery(variables: ShowPetByIdVariables | reactQuery.SkipToken) { return { queryKey: queryKeyFn({ path: "/pets/{petId}", @@ -928,19 +850,15 @@ describe("generateReactQueryComponents", () => { /** * Info for a specific pet */ - export const useSuspenseShowPetById = ( + export const useSuspenseShowPetById = ( variables: ShowPetByIdVariables, options?: Omit< reactQuery.UseQueryOptions, "queryKey" | "queryFn" | "initialData" - >, + > ) => { const { queryOptions, fetcherOptions } = usePetstoreContext(options); - return reactQuery.useSuspenseQuery< - ShowPetByIdResponse, - ShowPetByIdError, - TData - >({ + return reactQuery.useSuspenseQuery({ ...showPetByIdQuery(deepMerge(fetcherOptions, variables)), ...options, ...queryOptions, @@ -950,19 +868,17 @@ describe("generateReactQueryComponents", () => { /** * Info for a specific pet */ - export const useShowPetById = ( + export const useShowPetById = ( variables: ShowPetByIdVariables | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions, "queryKey" | "queryFn" | "initialData" - >, + > ) => { const { queryOptions, fetcherOptions } = usePetstoreContext(options); return reactQuery.useQuery({ ...showPetByIdQuery( - variables === reactQuery.skipToken - ? variables - : deepMerge(fetcherOptions, variables), + variables === reactQuery.skipToken ? variables : deepMerge(fetcherOptions, variables) ), ...options, ...queryOptions, @@ -1040,11 +956,7 @@ describe("generateReactQueryComponents", () => { * @version 1.0.0 */ import * as reactQuery from "@tanstack/react-query"; - import { - type PetstoreContext, - usePetstoreContext, - queryKeyFn, - } from "./petstoreContext"; + import { type PetstoreContext, usePetstoreContext, queryKeyFn } from "./petstoreContext"; import { deepMerge } from "./petstoreUtils"; import type * as Fetcher from "./petstoreFetcher"; import { petstoreFetch } from "./petstoreFetcher"; @@ -1072,18 +984,13 @@ describe("generateReactQueryComponents", () => { /** * Info for a specific pet */ - export const fetchShowPetById = ( - variables: ShowPetByIdVariables, - signal?: AbortSignal, - ) => - petstoreFetch< - ShowPetByIdResponse, - ShowPetByIdError, - undefined, - {}, - {}, - ShowPetByIdPathParams - >({ url: "/pets/{petId}", method: "get", ...variables, signal }); + export const fetchShowPetById = (variables: ShowPetByIdVariables, signal?: AbortSignal) => + petstoreFetch({ + url: "/pets/{petId}", + method: "get", + ...variables, + signal, + }); /** * Info for a specific pet @@ -1093,18 +1000,12 @@ describe("generateReactQueryComponents", () => { queryFn: (options: QueryFnOptions) => Promise; }; - export function showPetByIdQuery( - variables: ShowPetByIdVariables | reactQuery.SkipToken, - ): { + export function showPetByIdQuery(variables: ShowPetByIdVariables | reactQuery.SkipToken): { queryKey: reactQuery.QueryKey; - queryFn: - | ((options: QueryFnOptions) => Promise) - | reactQuery.SkipToken; + queryFn: ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; }; - export function showPetByIdQuery( - variables: ShowPetByIdVariables | reactQuery.SkipToken, - ) { + export function showPetByIdQuery(variables: ShowPetByIdVariables | reactQuery.SkipToken) { return { queryKey: queryKeyFn({ path: "/pets/{petId}", @@ -1121,19 +1022,15 @@ describe("generateReactQueryComponents", () => { /** * Info for a specific pet */ - export const useSuspenseShowPetById = ( + export const useSuspenseShowPetById = ( variables: ShowPetByIdVariables, options?: Omit< reactQuery.UseQueryOptions, "queryKey" | "queryFn" | "initialData" - >, + > ) => { const { queryOptions, fetcherOptions } = usePetstoreContext(options); - return reactQuery.useSuspenseQuery< - ShowPetByIdResponse, - ShowPetByIdError, - TData - >({ + return reactQuery.useSuspenseQuery({ ...showPetByIdQuery(deepMerge(fetcherOptions, variables)), ...options, ...queryOptions, @@ -1143,19 +1040,17 @@ describe("generateReactQueryComponents", () => { /** * Info for a specific pet */ - export const useShowPetById = ( + export const useShowPetById = ( variables: ShowPetByIdVariables | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions, "queryKey" | "queryFn" | "initialData" - >, + > ) => { const { queryOptions, fetcherOptions } = usePetstoreContext(options); return reactQuery.useQuery({ ...showPetByIdQuery( - variables === reactQuery.skipToken - ? variables - : deepMerge(fetcherOptions, variables), + variables === reactQuery.skipToken ? variables : deepMerge(fetcherOptions, variables) ), ...options, ...queryOptions, @@ -1247,11 +1142,7 @@ describe("generateReactQueryComponents", () => { * @version 1.0.0 */ import * as reactQuery from "@tanstack/react-query"; - import { - type PetstoreContext, - usePetstoreContext, - queryKeyFn, - } from "./petstoreContext"; + import { type PetstoreContext, usePetstoreContext, queryKeyFn } from "./petstoreContext"; import { deepMerge } from "./petstoreUtils"; import type * as Fetcher from "./petstoreFetcher"; import { petstoreFetch } from "./petstoreFetcher"; @@ -1287,10 +1178,7 @@ describe("generateReactQueryComponents", () => { /** * Get all the pets */ - export const fetchListPets = ( - variables: ListPetsVariables, - signal?: AbortSignal, - ) => + export const fetchListPets = (variables: ListPetsVariables, signal?: AbortSignal) => petstoreFetch< ListPetsResponse, ListPetsError, @@ -1308,18 +1196,12 @@ describe("generateReactQueryComponents", () => { queryFn: (options: QueryFnOptions) => Promise; }; - export function listPetsQuery( - variables: ListPetsVariables | reactQuery.SkipToken, - ): { + export function listPetsQuery(variables: ListPetsVariables | reactQuery.SkipToken): { queryKey: reactQuery.QueryKey; - queryFn: - | ((options: QueryFnOptions) => Promise) - | reactQuery.SkipToken; + queryFn: ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; }; - export function listPetsQuery( - variables: ListPetsVariables | reactQuery.SkipToken, - ) { + export function listPetsQuery(variables: ListPetsVariables | reactQuery.SkipToken) { return { queryKey: queryKeyFn({ path: "/pets", @@ -1336,12 +1218,12 @@ describe("generateReactQueryComponents", () => { /** * Get all the pets */ - export const useSuspenseListPets = ( + export const useSuspenseListPets = ( variables: ListPetsVariables, options?: Omit< reactQuery.UseQueryOptions, "queryKey" | "queryFn" | "initialData" - >, + > ) => { const { queryOptions, fetcherOptions } = usePetstoreContext(options); return reactQuery.useSuspenseQuery({ @@ -1354,19 +1236,17 @@ describe("generateReactQueryComponents", () => { /** * Get all the pets */ - export const useListPets = ( + export const useListPets = ( variables: ListPetsVariables | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions, "queryKey" | "queryFn" | "initialData" - >, + > ) => { const { queryOptions, fetcherOptions } = usePetstoreContext(options); return reactQuery.useQuery({ ...listPetsQuery( - variables === reactQuery.skipToken - ? variables - : deepMerge(fetcherOptions, variables), + variables === reactQuery.skipToken ? variables : deepMerge(fetcherOptions, variables) ), ...options, ...queryOptions, @@ -1446,11 +1326,7 @@ describe("generateReactQueryComponents", () => { * @version 1.0.0 */ import * as reactQuery from "@tanstack/react-query"; - import { - type PetstoreContext, - usePetstoreContext, - queryKeyFn, - } from "./petstoreContext"; + import { type PetstoreContext, usePetstoreContext, queryKeyFn } from "./petstoreContext"; import { deepMerge } from "./petstoreUtils"; import type * as Fetcher from "./petstoreFetcher"; import { petstoreFetch } from "./petstoreFetcher"; @@ -1469,10 +1345,7 @@ describe("generateReactQueryComponents", () => { /** * Get all the pets */ - export const fetchListPets = ( - variables: ListPetsVariables, - signal?: AbortSignal, - ) => + export const fetchListPets = (variables: ListPetsVariables, signal?: AbortSignal) => petstoreFetch({ url: "/pets", method: "get", @@ -1488,18 +1361,12 @@ describe("generateReactQueryComponents", () => { queryFn: (options: QueryFnOptions) => Promise; }; - export function listPetsQuery( - variables: ListPetsVariables | reactQuery.SkipToken, - ): { + export function listPetsQuery(variables: ListPetsVariables | reactQuery.SkipToken): { queryKey: reactQuery.QueryKey; - queryFn: - | ((options: QueryFnOptions) => Promise) - | reactQuery.SkipToken; + queryFn: ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; }; - export function listPetsQuery( - variables: ListPetsVariables | reactQuery.SkipToken, - ) { + export function listPetsQuery(variables: ListPetsVariables | reactQuery.SkipToken) { return { queryKey: queryKeyFn({ path: "/pets", @@ -1516,12 +1383,12 @@ describe("generateReactQueryComponents", () => { /** * Get all the pets */ - export const useSuspenseListPets = ( + export const useSuspenseListPets = ( variables: ListPetsVariables, options?: Omit< reactQuery.UseQueryOptions, "queryKey" | "queryFn" | "initialData" - >, + > ) => { const { queryOptions, fetcherOptions } = usePetstoreContext(options); return reactQuery.useSuspenseQuery({ @@ -1534,19 +1401,17 @@ describe("generateReactQueryComponents", () => { /** * Get all the pets */ - export const useListPets = ( + export const useListPets = ( variables: ListPetsVariables | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions, "queryKey" | "queryFn" | "initialData" - >, + > ) => { const { queryOptions, fetcherOptions } = usePetstoreContext(options); return reactQuery.useQuery({ ...listPetsQuery( - variables === reactQuery.skipToken - ? variables - : deepMerge(fetcherOptions, variables), + variables === reactQuery.skipToken ? variables : deepMerge(fetcherOptions, variables) ), ...options, ...queryOptions, @@ -1653,11 +1518,7 @@ describe("generateReactQueryComponents", () => { * @version 1.0.0 */ import * as reactQuery from "@tanstack/react-query"; - import { - type PetstoreContext, - usePetstoreContext, - queryKeyFn, - } from "./petstoreContext"; + import { type PetstoreContext, usePetstoreContext, queryKeyFn } from "./petstoreContext"; import { deepMerge } from "./petstoreUtils"; import type * as Fetcher from "./petstoreFetcher"; import { petstoreFetch } from "./petstoreFetcher"; @@ -1694,15 +1555,11 @@ describe("generateReactQueryComponents", () => { }); export const useAddPet = ( - options?: Omit< - reactQuery.UseMutationOptions, - "mutationFn" - >, + options?: Omit, "mutationFn"> ) => { const { fetcherOptions } = usePetstoreContext(); return reactQuery.useMutation({ - mutationFn: (variables: AddPetVariables) => - fetchAddPet(deepMerge(fetcherOptions, variables)), + mutationFn: (variables: AddPetVariables) => fetchAddPet(deepMerge(fetcherOptions, variables)), ...options, }); }; @@ -1808,11 +1665,7 @@ describe("generateReactQueryComponents", () => { * @version 1.0.0 */ import * as reactQuery from "@tanstack/react-query"; - import { - type PetstoreContext, - usePetstoreContext, - queryKeyFn, - } from "./petstoreContext"; + import { type PetstoreContext, usePetstoreContext, queryKeyFn } from "./petstoreContext"; import { deepMerge } from "./petstoreUtils"; import type * as Fetcher from "./petstoreFetcher"; import { petstoreFetch } from "./petstoreFetcher"; @@ -1853,12 +1706,9 @@ describe("generateReactQueryComponents", () => { queryFn: (options: QueryFnOptions) => Promise; }; - export function getPetQuery( - variables: GetPetVariables | reactQuery.SkipToken, - ): { + export function getPetQuery(variables: GetPetVariables | reactQuery.SkipToken): { queryKey: reactQuery.QueryKey; - queryFn: - ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; + queryFn: ((options: QueryFnOptions) => Promise) | reactQuery.SkipToken; }; export function getPetQuery(variables: GetPetVariables | reactQuery.SkipToken) { @@ -1875,12 +1725,12 @@ describe("generateReactQueryComponents", () => { }; } - export const useSuspenseGetPet = ( + export const useSuspenseGetPet = ( variables: GetPetVariables, options?: Omit< reactQuery.UseQueryOptions, "queryKey" | "queryFn" | "initialData" - >, + > ) => { const { queryOptions, fetcherOptions } = usePetstoreContext(options); return reactQuery.useSuspenseQuery({ @@ -1890,19 +1740,17 @@ describe("generateReactQueryComponents", () => { }); }; - export const useGetPet = ( + export const useGetPet = ( variables: GetPetVariables | reactQuery.SkipToken, options?: Omit< reactQuery.UseQueryOptions, "queryKey" | "queryFn" | "initialData" - >, + > ) => { const { queryOptions, fetcherOptions } = usePetstoreContext(options); return reactQuery.useQuery({ ...getPetQuery( - variables === reactQuery.skipToken - ? variables - : deepMerge(fetcherOptions, variables), + variables === reactQuery.skipToken ? variables : deepMerge(fetcherOptions, variables) ), ...options, ...queryOptions, @@ -2010,11 +1858,7 @@ describe("generateReactQueryComponents", () => { * @version 1.0.0 */ import * as reactQuery from "@tanstack/react-query"; - import { - type PetstoreContext, - usePetstoreContext, - queryKeyFn, - } from "./petstoreContext"; + import { type PetstoreContext, usePetstoreContext, queryKeyFn } from "./petstoreContext"; import { deepMerge } from "./petstoreUtils"; import type * as Fetcher from "./petstoreFetcher"; import { petstoreFetch } from "./petstoreFetcher"; @@ -2051,15 +1895,11 @@ describe("generateReactQueryComponents", () => { }); export const useAddPet = ( - options?: Omit< - reactQuery.UseMutationOptions, - "mutationFn" - >, + options?: Omit, "mutationFn"> ) => { const { fetcherOptions } = usePetstoreContext(); return reactQuery.useMutation({ - mutationFn: (variables: AddPetVariables) => - fetchAddPet(deepMerge(fetcherOptions, variables)), + mutationFn: (variables: AddPetVariables) => fetchAddPet(deepMerge(fetcherOptions, variables)), ...options, }); }; @@ -2171,11 +2011,7 @@ describe("generateReactQueryComponents", () => { * @version 1.0.0 */ import * as reactQuery from "@tanstack/react-query"; - import { - type PetstoreContext, - usePetstoreContext, - queryKeyFn, - } from "./petstoreContext"; + import { type PetstoreContext, usePetstoreContext, queryKeyFn } from "./petstoreContext"; import { deepMerge } from "./petstoreUtils"; import type * as Fetcher from "./petstoreFetcher"; import { petstoreFetch } from "./petstoreFetcher"; @@ -2206,15 +2042,11 @@ describe("generateReactQueryComponents", () => { }); export const useAddPet = ( - options?: Omit< - reactQuery.UseMutationOptions, - "mutationFn" - >, + options?: Omit, "mutationFn"> ) => { const { fetcherOptions } = usePetstoreContext(); return reactQuery.useMutation({ - mutationFn: (variables: AddPetVariables) => - fetchAddPet(deepMerge(fetcherOptions, variables)), + mutationFn: (variables: AddPetVariables) => fetchAddPet(deepMerge(fetcherOptions, variables)), ...options, }); }; @@ -2305,11 +2137,7 @@ describe("generateReactQueryComponents", () => { * @version 1.0.0 */ import * as reactQuery from "@tanstack/react-query"; - import { - type PetstoreContext, - usePetstoreContext, - queryKeyFn, - } from "./petstoreContext"; + import { type PetstoreContext, usePetstoreContext, queryKeyFn } from "./petstoreContext"; import { deepMerge } from "./petstoreUtils"; import type * as Fetcher from "./petstoreFetcher"; import { petstoreFetch } from "./petstoreFetcher"; @@ -2330,10 +2158,7 @@ describe("generateReactQueryComponents", () => { pathParams: UpdatePetPathParams; } & PetstoreContext["fetcherOptions"]; - export const fetchUpdatePet = ( - variables: UpdatePetVariables, - signal?: AbortSignal, - ) => + export const fetchUpdatePet = (variables: UpdatePetVariables, signal?: AbortSignal) => petstoreFetch< string, UpdatePetError, @@ -2347,7 +2172,7 @@ describe("generateReactQueryComponents", () => { options?: Omit< reactQuery.UseMutationOptions, "mutationFn" - >, + > ) => { const { fetcherOptions } = usePetstoreContext(); return reactQuery.useMutation({ @@ -2443,11 +2268,7 @@ describe("generateReactQueryComponents", () => { * @version 1.0.0 */ import * as reactQuery from "@tanstack/react-query"; - import { - type PetstoreContext, - usePetstoreContext, - queryKeyFn, - } from "./petstoreContext"; + import { type PetstoreContext, usePetstoreContext, queryKeyFn } from "./petstoreContext"; import { deepMerge } from "./petstoreUtils"; import type * as Fetcher from "./petstoreFetcher"; import { petstoreFetch } from "./petstoreFetcher"; @@ -2468,10 +2289,7 @@ describe("generateReactQueryComponents", () => { pathParams: UpdatePetPathParams; } & PetstoreContext["fetcherOptions"]; - export const fetchUpdatePet = ( - variables: UpdatePetVariables, - signal?: AbortSignal, - ) => + export const fetchUpdatePet = (variables: UpdatePetVariables, signal?: AbortSignal) => petstoreFetch< string, UpdatePetError, @@ -2485,7 +2303,7 @@ describe("generateReactQueryComponents", () => { options?: Omit< reactQuery.UseMutationOptions, "mutationFn" - >, + > ) => { const { fetcherOptions } = usePetstoreContext(); return reactQuery.useMutation({ @@ -2581,11 +2399,7 @@ describe("generateReactQueryComponents", () => { * @version 1.0.0 */ import * as reactQuery from "@tanstack/react-query"; - import { - type PetstoreContext, - usePetstoreContext, - queryKeyFn, - } from "./petstoreContext"; + import { type PetstoreContext, usePetstoreContext, queryKeyFn } from "./petstoreContext"; import { deepMerge } from "./petstoreUtils"; import type * as Fetcher from "./petstoreFetcher"; import { petstoreFetch } from "./petstoreFetcher"; @@ -2606,10 +2420,7 @@ describe("generateReactQueryComponents", () => { pathParams: UpdatePetPathParams; } & PetstoreContext["fetcherOptions"]; - export const fetchUpdatePet = ( - variables: UpdatePetVariables, - signal?: AbortSignal, - ) => + export const fetchUpdatePet = (variables: UpdatePetVariables, signal?: AbortSignal) => petstoreFetch< string, UpdatePetError, @@ -2623,7 +2434,7 @@ describe("generateReactQueryComponents", () => { options?: Omit< reactQuery.UseMutationOptions, "mutationFn" - >, + > ) => { const { fetcherOptions } = usePetstoreContext(); return reactQuery.useMutation({ @@ -2740,24 +2551,19 @@ describe("generateReactQueryComponents", () => { pathParams: UpdatePetPathParams; } & Context["fetcherOptions"]; - export const fetchUpdatePet = ( - variables: UpdatePetVariables, - signal?: AbortSignal, - ) => - fetch< - string, - UpdatePetError, - RequestBodies.UpdatePetRequestBody, - {}, - {}, - UpdatePetPathParams - >({ url: "/pet/{petId}", method: "put", ...variables, signal }); + export const fetchUpdatePet = (variables: UpdatePetVariables, signal?: AbortSignal) => + fetch({ + url: "/pet/{petId}", + method: "put", + ...variables, + signal, + }); export const useUpdatePet = ( options?: Omit< reactQuery.UseMutationOptions, "mutationFn" - >, + > ) => { const { fetcherOptions } = useContext(); return reactQuery.useMutation({ @@ -2831,21 +2637,12 @@ describe("generateReactQueryComponents", () => { expect(writeFile.mock.calls[0][0]).toBe("petstoreUtils.ts"); expect(writeFile.mock.calls[0][1]).toMatchInlineSnapshot(` - "type ComputeRange< - N extends number, - Result extends Array = [], - > = Result["length"] extends N + "type ComputeRange = []> = Result["length"] extends N ? Result : ComputeRange; - export type ClientErrorStatus = Exclude< - ComputeRange<500>[number], - ComputeRange<400>[number] - >; - export type ServerErrorStatus = Exclude< - ComputeRange<600>[number], - ComputeRange<500>[number] - >; + export type ClientErrorStatus = Exclude[number], ComputeRange<400>[number]>; + export type ServerErrorStatus = Exclude[number], ComputeRange<500>[number]>; export function deepMerge(target: T, source: U): U { const returnType = (target || {}) as U; diff --git a/plugins/typescript/src/generators/generateSchemaTypes.test.ts b/plugins/typescript/src/generators/generateSchemaTypes.test.ts index 36d89c98..a2ae1487 100644 --- a/plugins/typescript/src/generators/generateSchemaTypes.test.ts +++ b/plugins/typescript/src/generators/generateSchemaTypes.test.ts @@ -1,4 +1,4 @@ -import { describe, expect, it, vi } from "vitest"; +import { describe, expect, it, vi } from "vite-plus/test"; import { OpenAPIObject } from "openapi3-ts/oas30"; import { petstore } from "../fixtures/petstore"; import { generateSchemaTypes } from "./generateSchemaTypes"; diff --git a/plugins/typescript/src/templates/context.test.ts b/plugins/typescript/src/templates/context.test.ts index ce60430d..3ee21ea2 100644 --- a/plugins/typescript/src/templates/context.test.ts +++ b/plugins/typescript/src/templates/context.test.ts @@ -1,4 +1,4 @@ -import { it, describe, expect } from "vitest"; +import { it, describe, expect } from "vite-plus/test"; // mock of @tanstack/react-query const skipToken = Symbol("skip token"); diff --git a/plugins/typescript/src/templates/utils.test.ts b/plugins/typescript/src/templates/utils.test.ts index 5ceffd49..481cd00e 100644 --- a/plugins/typescript/src/templates/utils.test.ts +++ b/plugins/typescript/src/templates/utils.test.ts @@ -1,4 +1,4 @@ -import { it, describe, expect } from "vitest"; +import { it, describe, expect } from "vite-plus/test"; describe("deepMerge", () => { /* Playground to craft `deepMerge` */ diff --git a/plugins/typescript/src/testUtils.ts b/plugins/typescript/src/testUtils.ts index 9a1b716a..5f357c24 100644 --- a/plugins/typescript/src/testUtils.ts +++ b/plugins/typescript/src/testUtils.ts @@ -1,5 +1,4 @@ import ts from "typescript"; -import prettier from "prettier"; const sourceFile = ts.createSourceFile("index.ts", "", ts.ScriptTarget.Latest); @@ -20,12 +19,11 @@ export const print = (node: ts.Node) => export const createWriteFileMock = () => { const calls: [string, string][] = []; async function fn(file: string, data: string) { - calls.push([ - file, - await prettier.format(data, { - parser: "babel-ts", - }), - ]); + const oxfmt = await import("oxfmt"); + const formattedFile = await oxfmt.format(file, data, { + trailingComma: "es5", + }); + calls.push([file, formattedFile.code]); } fn.mock = { calls }; diff --git a/plugins/typescript/src/typescript.ts b/plugins/typescript/src/typescript.ts deleted file mode 100644 index 712296c2..00000000 --- a/plugins/typescript/src/typescript.ts +++ /dev/null @@ -1,4 +0,0 @@ -import * as ts from "typescript"; - -export const factory = ts.factory; -export default ts; diff --git a/plugins/typescript/src/utils/addPathParam.test.ts b/plugins/typescript/src/utils/addPathParam.test.ts index a28636de..8808469e 100644 --- a/plugins/typescript/src/utils/addPathParam.test.ts +++ b/plugins/typescript/src/utils/addPathParam.test.ts @@ -1,4 +1,4 @@ -import { describe, expect, it } from "vitest"; +import { describe, expect, it } from "vite-plus/test"; import { OpenAPIObject } from "openapi3-ts/oas30"; import { addPathParam } from "./addPathParam"; diff --git a/plugins/typescript/src/utils/forceReactQueryComponent.test.ts b/plugins/typescript/src/utils/forceReactQueryComponent.test.ts index 7bc6a85c..b03c4f4f 100644 --- a/plugins/typescript/src/utils/forceReactQueryComponent.test.ts +++ b/plugins/typescript/src/utils/forceReactQueryComponent.test.ts @@ -1,4 +1,4 @@ -import { describe, expect, it } from "vitest"; +import { describe, expect, it } from "vite-plus/test"; import { petstore } from "../fixtures/petstore"; import { forceReactQueryComponent } from "./forceReactQueryComponent"; diff --git a/plugins/typescript/src/utils/getEnumProperties.test.ts b/plugins/typescript/src/utils/getEnumProperties.test.ts index fd42b066..452749e7 100644 --- a/plugins/typescript/src/utils/getEnumProperties.test.ts +++ b/plugins/typescript/src/utils/getEnumProperties.test.ts @@ -1,4 +1,4 @@ -import { describe, expect, it } from "vitest"; +import { describe, expect, it } from "vite-plus/test"; import { ReferenceObject, SchemaObject } from "openapi3-ts/oas30"; import { convertNumberToWord, getEnumProperties } from "./getEnumProperties"; diff --git a/plugins/typescript/src/utils/renameComponent.test.ts b/plugins/typescript/src/utils/renameComponent.test.ts index a283d24f..8e330b14 100644 --- a/plugins/typescript/src/utils/renameComponent.test.ts +++ b/plugins/typescript/src/utils/renameComponent.test.ts @@ -1,4 +1,4 @@ -import { describe, expect, it } from "vitest"; +import { describe, expect, it } from "vite-plus/test"; import { OpenAPIObject } from "openapi3-ts/oas30"; import { petstore } from "../fixtures/petstore"; import { renameComponent } from "./renameComponent"; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6494fa19..4431f7bd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -162,6 +162,15 @@ settings: autoInstallPeers: true excludeLinksFromLockfile: false +catalogs: + default: + vite-plus: + specifier: 0.2.4 + version: 0.2.4 + +overrides: + vite: npm:@voidzero-dev/vite-plus-core@0.2.4 + importers: .: @@ -173,26 +182,20 @@ importers: specifier: ^6.26.1 version: 6.26.1(encoding@0.1.13) got: - specifier: ^16.1.0 + specifier: ^16.0.0 version: 16.1.0 - husky: - specifier: ^9.1.7 - version: 9.1.7 - oxlint: - specifier: ^1.89.0 - version: 1.89.0 - prettier: - specifier: ^3.9.10 - version: 3.9.10 pretty-quick: specifier: ^4.2.2 version: 4.2.2(prettier@3.9.10) typescript: specifier: ~6.0.2 version: 6.0.3 - vitest: - specifier: ^5.0.5 - version: 5.0.5(@types/node@26.6.5)(vite@8.3.3(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(yaml@2.9.1)) + vite: + specifier: npm:@voidzero-dev/vite-plus-core@0.2.4 + version: '@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)' + vite-plus: + specifier: 'catalog:' + version: 0.2.4(@types/node@26.6.5)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1) cli: dependencies: @@ -219,16 +222,16 @@ importers: version: 11.4.1 got: specifier: ^16.0.0 - version: 16.0.0 + version: 16.1.0 js-yaml: specifier: ^5.4.3 version: 5.4.3 openapi3-ts: specifier: ^4.6.1 version: 4.6.1 - prettier: - specifier: ^3.9.9 - version: 3.9.9 + oxfmt: + specifier: ^0.75.0 + version: 0.75.0(vite-plus@0.2.4(@types/node@26.6.5)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)) slash: specifier: ^5.1.0 version: 5.1.0 @@ -290,13 +293,16 @@ importers: version: 19.3.0(@types/react@19.3.0) '@vitejs/plugin-react': specifier: 6.1.2 - version: 6.1.2(vite@8.3.3(@types/node@26.6.4)(esbuild@0.27.7)(jiti@2.4.2)(yaml@2.9.1)) + version: 6.1.2(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)) typescript: specifier: ~6.0.2 version: 6.0.3 vite: - specifier: 8.3.3 - version: 8.3.3(@types/node@26.6.4)(esbuild@0.27.7)(jiti@2.4.2)(yaml@2.9.1) + specifier: npm:@voidzero-dev/vite-plus-core@0.2.4 + version: '@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)' + vite-plus: + specifier: 'catalog:' + version: 0.2.4(@types/node@26.6.5)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1) plugins/typescript: dependencies: @@ -331,13 +337,27 @@ importers: '@types/qs': specifier: ^6.15.1 version: 6.15.1 + oxfmt: + specifier: ^0.75.0 + version: 0.75.0(vite-plus@0.2.4(@types/node@26.6.5)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)) packages: + '@babel/code-frame@7.29.7': + resolution: {integrity: sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==} + engines: {node: '>=6.9.0'} + + '@babel/helper-validator-identifier@7.29.7': + resolution: {integrity: sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==} + engines: {node: '>=6.9.0'} + '@babel/runtime@7.26.7': resolution: {integrity: sha512-AOPI3D+a8dXnja+iwsUqGRjr1BbZIe771sXdapOtYI531gSqpi92vXivKcq2asu/DFpdl1ceFAKZyRzK2PCVcQ==} engines: {node: '>=6.9.0'} + '@blazediff/core@1.9.1': + resolution: {integrity: sha512-ehg3jIkYKulZh+8om/O25vkvSsXXwC+skXmyA87FFx6A/45eqOkZsBltMw/TVteb0mloiGT8oGRTcjRAz66zaA==} + '@clack/core@1.5.1': resolution: {integrity: sha512-iHTrHA8MtVuLl2TfZySmcKv1qO2PoyC9Z7pfSDozEuV5vtY3/wcOPKJXlqJ5Oq2Cx5DDGQGAMVx6HZfRRoVEbQ==} engines: {node: '>= 20.12.0'} @@ -664,8 +684,12 @@ packages: '@open-draft/until@3.0.1': resolution: {integrity: sha512-s7/9ELP4aP9YZtW7RJaa0Xf3RISaRH9+EFN18FtykJYRHGNrl8f9ymvoNXzjhrjmftFvkQudtuDU9RYhk0xs3A==} - '@oxc-project/types@0.152.0': - resolution: {integrity: sha512-oM/5rLBm2tPkg0iBgkH/FOeR3PCDpY19GTgAZjMFM8h9WI9VW7cLgzp6nwtarYKmovavIQZ+Fe/RKX/8C8O/Rw==} + '@oxc-project/runtime@0.138.0': + resolution: {integrity: sha512-yHhoXsN8tYxgdJCdD91PbySNjEEaBX/tH2OQRDXJpsQv5b184oC4/qVbU7qlblvfil/JP15Lh2HW7+HN5DS90Q==} + engines: {node: ^20.19.0 || >=22.12.0} + + '@oxc-project/types@0.138.0': + resolution: {integrity: sha512-1a7ZKmrRTCoN1XMZ4L0PyyqrMnrNlLyPuOkdSX2MZg7IiIGRUyurNhAm73ptDOraoBcIordsIGKNPKUzy3ZmfA==} '@oxc-resolver/binding-android-arm-eabi@11.24.2': resolution: {integrity: sha512-y09e0L0SRI2OA2tUIrjBgoV3eH5hvUKXNkJqXmNo5V2WxIjyC7I7aJfRLMEVpA8yi95f90gFDvO0VMgrDw+vwA==} @@ -770,232 +794,417 @@ packages: cpu: [x64] os: [win32] - '@oxlint/binding-android-arm-eabi@1.89.0': - resolution: {integrity: sha512-Pflpba5F3gRAQ12sWglRxvWTHEdAusNDvmi4Y5N1T5SY1AGkM7AixOnET8qkrnLJ/F32qAlNokO6eCknT8tmnw==} + '@oxfmt/binding-android-arm-eabi@0.57.0': + resolution: {integrity: sha512-qVBsEO+KugOsCmUHcO8iqNnqc65p7PCKpCs8M66mPZ+Ri+CWbcpoQOEJBg2OTu03+0qu++NK1jj6IzvQVs0Sig==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [android] + + '@oxfmt/binding-android-arm-eabi@0.75.0': + resolution: {integrity: sha512-zHJ7LcTN46/5mtoLxsUu14pdF9ixFwDURtmxZ0CeNwqom5qB5NRVqU6o2GRZ7QPdNBW8G6j9UTJzQ+EDevMH0w==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [android] - '@oxlint/binding-android-arm64@1.89.0': - resolution: {integrity: sha512-dYmyD1x7LaPlb79vZWUcpTShk8dI9z1I+IubtqrBxWNJaDhQdPHwcsvg7q5StTU4xWyd9AwPfLaTYFZY8NZgtQ==} + '@oxfmt/binding-android-arm64@0.57.0': + resolution: {integrity: sha512-mp6PibWbao3aizijcheOeHQaYEhcUAt8pwLniYbtLfHxL/psFF0BykAwCj+s3c6qIpa8yN8keZICWrqtZ70w8g==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [android] - '@oxlint/binding-darwin-arm64@1.89.0': - resolution: {integrity: sha512-Z/oxOPiIqiS7fItRdxaaOEC+6GD3OpGi0IxoR0dMefzQHolsKLzScw2DNcu/5gUPok3tv+G9mslvYB5bo3i0qg==} + '@oxfmt/binding-android-arm64@0.75.0': + resolution: {integrity: sha512-IdxsKZJvHZUvI7q6kLmzXdEFpFiBEDQw/WJtSp1QlzNXBw1JlLN3tY50WwWd4doPnq86XW4P+7BsQwu6meCW+w==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [android] + + '@oxfmt/binding-darwin-arm64@0.57.0': + resolution: {integrity: sha512-T+0stuCBqmUVY+aMIvrgXhzGhHO3sD5tNiiEcYqgSdPsnukskQqn2u5qOVD0sv1l7RLdFS5Z/f5Wi9Ktyjr3Eg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [darwin] + + '@oxfmt/binding-darwin-arm64@0.75.0': + resolution: {integrity: sha512-vyiqZilO5jal/nXZ0143NyKcP6TkzjaQdVEWU/kwgyWqugAgIRgAbrnO3MOF+e6LkQu3CrtrkPoc3mrsZZY6cA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [darwin] - '@oxlint/binding-darwin-x64@1.89.0': - resolution: {integrity: sha512-eAjTkHSjAxrdCPJxO6y5sPQL5pYLKb2kvxZz9UU7tXnOZk9I/HLtkvx9S7GHY883k+AmL/eC7mqFt+w7WCwk0w==} + '@oxfmt/binding-darwin-x64@0.57.0': + resolution: {integrity: sha512-O+3JbqWs/mCI2oi4xfhRO2IVPFJNDDEBV8Odo+ZpmsUOeKJfjXoNH7nDmBEQcDgK7NfjDIyE7kRgYSZcTLDO0A==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [darwin] - '@oxlint/binding-freebsd-x64@1.89.0': - resolution: {integrity: sha512-0lNCA9Tl1n1FKpqy2/9ckp0kIuSrtJ/l9bMRgaEhOtM7TsOHshFuwOcvW8oA9teXLMOJT61LjEKWiaHDFGxF/w==} + '@oxfmt/binding-darwin-x64@0.75.0': + resolution: {integrity: sha512-oua7eVqVe769mDam6ORcavygxTzG3ovo5QRQ1kJCPaEbnWXPYhtAiYDj8pajVmFjO7j8Elf3gInnWpTX0LLYtg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [darwin] + + '@oxfmt/binding-freebsd-x64@0.57.0': + resolution: {integrity: sha512-pxwhxVC+JkLX9twOQ/8C/vbuOQcMZyKIDmiRDZfO7yITuVcIdZCiLRqqf4QOxb2+8FWrRXzQpm+1DBKcMpHSSQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [freebsd] + + '@oxfmt/binding-freebsd-x64@0.75.0': + resolution: {integrity: sha512-NWkbezhg7mx2Ep94g/TysR3c1bsISsU4lQ6t5xI4841PAk0Kqcn1+UEe+BoFH2/UK2YegPXq+OF+0bUcSvUalA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [freebsd] - '@oxlint/binding-linux-arm-gnueabihf@1.89.0': - resolution: {integrity: sha512-OTFEvi9W+JczaZD1Caj17SGCoW8H7TE+fvx0D7ATEWa1Lohn91UMxFQ6r145SiGy/yCxeIwptMys/RAM7gSVSQ==} + '@oxfmt/binding-linux-arm-gnueabihf@0.57.0': + resolution: {integrity: sha512-pxBU4zH2imB/MDBfth2rOMeVxXUMjRQLCazagwLARIFH3hVlxZJBlM4nSnHXaIHJK4/qezoFCIORN6AY8Mra4A==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@oxfmt/binding-linux-arm-gnueabihf@0.75.0': + resolution: {integrity: sha512-CAHX87kJplTq2E0OWP7opG8gEVlHc7CeLEi4nMJOyx3psuqBKf84HZ3UIkX2guWEJ5UljU2zJF0o46XylywVVA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@oxfmt/binding-linux-arm-musleabihf@0.57.0': + resolution: {integrity: sha512-JAprOzt8tycYou36ZgEw14DlRHTiN8qdtKANdV3VZIRIvTI/lh/cX13c9pJ/EnDk2GT3FASH7KvCgQ2AufAifQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [linux] - '@oxlint/binding-linux-arm-musleabihf@1.89.0': - resolution: {integrity: sha512-fRxgNHvBLswj6MrhW2uBq5UDhPRQlCbHeq/Nf8yuG9zOxhDsXqX/mi2PX1axgsQxMm88el7HLiJAzglAnflYxw==} + '@oxfmt/binding-linux-arm-musleabihf@0.75.0': + resolution: {integrity: sha512-jmxYOiQzx2fp+OwQb7717K1zI8AMKEykw04sfr95/mU8SIL/oKgQq8nXH42sEznEquBL2RU7nLY36eBnYFT+vg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [linux] - '@oxlint/binding-linux-arm64-gnu@1.89.0': - resolution: {integrity: sha512-v9ENzHvwrQoYSWTtviH1pOYc7R9UovDxVofnck50cNmPihRRTcrg5X0UlRbLOZ7IVtxPOlh2hb7kDO+FpE8SfQ==} + '@oxfmt/binding-linux-arm64-gnu@0.57.0': + resolution: {integrity: sha512-ajtjaxSaj9xl4BW7REt+Cef/ttzbAq00Bq4z7JUDZEfgFXdwSjH8K9bF+IcIJzZB9lKqMfQ4eHuSFOvvlvtqOg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@oxfmt/binding-linux-arm64-gnu@0.75.0': + resolution: {integrity: sha512-eimaiAhx08dbOg12Fj3PYhymXY8vRbaiJB505vDXMy6ohne3Y1qTS0e5KEwFMq3LmDjEO+16BX38c/oXFI/SAQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] libc: [glibc] - '@oxlint/binding-linux-arm64-musl@1.89.0': - resolution: {integrity: sha512-vfffe8mQ484AzVadlUOFpgL+JDwhvs9hrzxTgQP1FVfi4ZEUUYeffXlzC9dFV7Dgnu5s/KrNKvfmG6HxBd/ISQ==} + '@oxfmt/binding-linux-arm64-musl@0.57.0': + resolution: {integrity: sha512-p4Y/+RYk9Bk5WO+zHSUXAClRmZ2fbJCejMuCAsU2HhyME4jqf6Ftt/mJYEwIah1wGCBDYOB7wEGV1x5bCEZ6hA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@oxfmt/binding-linux-arm64-musl@0.75.0': + resolution: {integrity: sha512-bjSONIG1ba2xugr9oHQau0E6oPFYOMjPaa5hK/wpVC/Q1pcgf2BZMKwbuA8/cWzhWX5QV/UdPzD+rw1kQHpikQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] libc: [musl] - '@oxlint/binding-linux-ppc64-gnu@1.89.0': - resolution: {integrity: sha512-Buonlp4hVS7RGNP5M7bPpGNQrenyzA2C64JcO/oz9C1c6dGOXJ7VEAnaiAMY7voou0JYyCJdvDVlFQc5DZX3DQ==} + '@oxfmt/binding-linux-ppc64-gnu@0.57.0': + resolution: {integrity: sha512-By6tRALAZsno0F4zedmtG+wdMvJiJmJoXM4d3+A9zHE4HRXLqXITwRH8mgrlcXc5yJM2g2W3riRPwTYdgemZLQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [ppc64] os: [linux] libc: [glibc] - '@oxlint/binding-linux-riscv64-gnu@1.89.0': - resolution: {integrity: sha512-1eVwJJrJ3lYIPT+cm7BcBBZZXY6IQZP/oyonaruTor/MrVyWOpvnwt1oD5CLdsHg5aVBIxXodQSvt+1gK6ck5w==} + '@oxfmt/binding-linux-ppc64-gnu@0.75.0': + resolution: {integrity: sha512-wDksWQXC/KZucISyqlhBtvpW+pyHh8z0Cjm6Qxiv22XlllM2Bx5gJGDnPYjV+H0lL+o1iqLlEli8jmBuRCLcjw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@oxfmt/binding-linux-riscv64-gnu@0.57.0': + resolution: {integrity: sha512-skYeG+RgvyzspqVEBsEprL90OYYZfoVNqB3HcCNR6QDJyXKOzfDRT3zncnHmUaFluIlBHuY23mU1b5WGgR98hA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@oxfmt/binding-linux-riscv64-gnu@0.75.0': + resolution: {integrity: sha512-5JkNwViqaVuk4I+9+zgVrEYiHOAPXFxgDgP6iDnpdOBjm7XAHAOjSvolHZZAokWPx7CGOw8tKteXmn4WPIInaQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [riscv64] os: [linux] libc: [glibc] - '@oxlint/binding-linux-riscv64-musl@1.89.0': - resolution: {integrity: sha512-fRQQsKUGShdEL5Fl9o9uhj3grkZbeXKLv0icQ5tspUCNYSDy8wzzEcP1WC2bKdTQ0rSszbKlO3iiHORxV22DLg==} + '@oxfmt/binding-linux-riscv64-musl@0.57.0': + resolution: {integrity: sha512-FFgACrZOXAXUh5KQh2mt1CDOVOZmn+QzHP71wM9QobNwyQvoFfyAeefVUltW83g3sm7LTiH3yfFqLLVUpA5ZFQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [riscv64] os: [linux] libc: [musl] - '@oxlint/binding-linux-s390x-gnu@1.89.0': - resolution: {integrity: sha512-dEtYjIy6+fHcjKklsmtmMkZRhwHr2UbzjmpvuPtQYSeN9awQ2hx5JLms5Wvri+8P/NZtD8v5hfgHALUql+/Ycg==} + '@oxfmt/binding-linux-riscv64-musl@0.75.0': + resolution: {integrity: sha512-1EVqRIE0eZLB08j3ZCVN47Ors7LCXGmOI+3xJYgyoFUKUerD3Glxb+Q1Bp3lK8NeT5R3ZdS9uhX/wobNBYZ6jw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [riscv64] + os: [linux] + libc: [musl] + + '@oxfmt/binding-linux-s390x-gnu@0.57.0': + resolution: {integrity: sha512-Nm/BAOfQeFiiKd502mZn/GAVKJwtd0RdCg17G3Wz/WSOIQmDi3+7/SZH4BHn1Ye5KvTVH3ua8WvfwLLycNIuvA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@oxfmt/binding-linux-s390x-gnu@0.75.0': + resolution: {integrity: sha512-UJWRVNT6Yuw4ssLv2BwaBUWU1GWtByE+EnoHu8I+P1t8Kn+WozYU5WYOqb5aj8gbXJJ8gGZt+w40Hi/7L6iVLw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [s390x] os: [linux] libc: [glibc] - '@oxlint/binding-linux-x64-gnu@1.89.0': - resolution: {integrity: sha512-hqjwIj5KOYM8Wjef/p7IruNi1iByLhSzbMBk62y22P/E8q7Jj0Pp+DeUTKTRYyZYCDtU1wEGlnWOnttHbyNIww==} + '@oxfmt/binding-linux-x64-gnu@0.57.0': + resolution: {integrity: sha512-BiSy5Ku3mQqyxS6YIqAJgd403wEUWvI7kerfzPxc2l/txZVmZM0pSj7oDM+4bGBExowxOi7o73jEam1W0EDTZg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] libc: [glibc] - '@oxlint/binding-linux-x64-musl@1.89.0': - resolution: {integrity: sha512-iAQN3e6o9UgUCcdGwqRx/jYcKbG3HK7ur3rH6lTqVcQeNGZ85AeWIg6cgn/edwFQ0ofEZZItMwkzyCVTahnvEA==} + '@oxfmt/binding-linux-x64-gnu@0.75.0': + resolution: {integrity: sha512-FHdvHhyz8ChBctBUvVGti49kSEwANd1PZQwlXUEoF9Ed4plxXxk/wWc0mfZmrze2lRgmME7ytDmVIOixYauQhg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@oxfmt/binding-linux-x64-musl@0.57.0': + resolution: {integrity: sha512-BCRkJiotz5s9afLYD2LuMvzAoDYx9H17E/YbDyu4xK7l4zHDPeny9ErSXL//i/nJyaOwRk08x4b8cgJC00+JDg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [musl] + + '@oxfmt/binding-linux-x64-musl@0.75.0': + resolution: {integrity: sha512-6MjtsF96s9mSBV0GEwUe4pOFPP2Mz7ahcHPAit0DSKL5fM6oMM7RG1zvYxwB7+SBkIxsWBRhhxuqmy7pibNwsA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] libc: [musl] - '@oxlint/binding-openharmony-arm64@1.89.0': - resolution: {integrity: sha512-MNxjEByz3N/7Q4qFQuPWvc14TpN9LoD3pECEDsJTZbP/wyB7U+hduUXEl7QAbbgVezFwsb9sWtNUO6XVBndOhg==} + '@oxfmt/binding-openharmony-arm64@0.57.0': + resolution: {integrity: sha512-4Oaxe1qrGgXfpCJ1C/ERJ2iCtV2rN1R79ga9fsfyVHfSQRu/hVW780u2KDqZWFZ/iGTHODJji0JemxqFZ63eIQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [openharmony] - '@oxlint/binding-win32-arm64-msvc@1.89.0': - resolution: {integrity: sha512-xxe+i9wfuFso/VnoL4mfj0UlzE+cfCFiUB06vkXCMyQdgVVmItF5FfAF4tATAktSU6uHruWR+FjqvAT9cHZZzg==} + '@oxfmt/binding-openharmony-arm64@0.75.0': + resolution: {integrity: sha512-1D6T6aL1Pj+U5GLxqwV1fKjUJ5+FFm+bn7UrqNDMveZmWs0jo/3vc+dzzuV/jF/FdVo12gowODk3SnAO2YOwLg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [openharmony] + + '@oxfmt/binding-win32-arm64-msvc@0.57.0': + resolution: {integrity: sha512-MYLAsDnhdNsSGheLYhWgbk0vfIrlS84iQYun/y21fX6u0jj8iBtYtbpZMdiqYeuf8U12eVPUjVY2xE2NrCfJ0g==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [win32] - '@oxlint/binding-win32-ia32-msvc@1.89.0': - resolution: {integrity: sha512-saFy07cO94E664glwgLmKLI40HgTL1PY86y4T6+ud4niX4H0Kdqjcmqmjps7mQNdBytV5guGbXDdyQtRfeLbLA==} + '@oxfmt/binding-win32-arm64-msvc@0.75.0': + resolution: {integrity: sha512-RX2eUmy7J/nM8+tnM3nzR8t1eqkwj1q8Kgo7beA+4DVgKYYHHyrEa3qEmthxw7Z+HqpCCEOWuoqa+jelo9/w2Q==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [win32] + + '@oxfmt/binding-win32-ia32-msvc@0.57.0': + resolution: {integrity: sha512-PBwdzZALJY/jcCx2E6is0yu+cuVXeySTDmwuseD+9j0mHqlRNxwlKgsyRTBed/woPeqfVfuXfWjoq4Cx2Zt3Eg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [ia32] os: [win32] - '@oxlint/binding-win32-x64-msvc@1.89.0': - resolution: {integrity: sha512-hLFJ/o0f/dTJh/EW0vmcbREYSQO9tYgfiAAlsOkiLFiJuRRWvYtFELUXN5o2ijpSo/tlO1n+YlWN58tZwPG18A==} + '@oxfmt/binding-win32-ia32-msvc@0.75.0': + resolution: {integrity: sha512-UpKta0iSZmPLII0dYXYdbzdBTsGREUbSHLqgLdtKcqBvs40qjmUz+cgUcaU1smPx13DfbEG4XqnaSn5MoFN0og==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ia32] + os: [win32] + + '@oxfmt/binding-win32-x64-msvc@0.57.0': + resolution: {integrity: sha512-bQJdH9i4RRfw55jm7+8/xS7GzHLLTbHx4huhrrDxQJaJtbSDbsyOnODvP1ftT7EG0KFKAYO2S+q6AcioXODx8w==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [win32] - '@pkgjs/parseargs@0.11.0': - resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} - engines: {node: '>=14'} + '@oxfmt/binding-win32-x64-msvc@0.75.0': + resolution: {integrity: sha512-pjiLiCk0QMCWxs0n5XiNU85YLAKA+wJxPjxlDVygmr4bP4glcfTU2nOpso5nR4Rdi2Pxv5YwakD4UE+eh7M0BQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [win32] - '@pkgr/core@0.2.10': - resolution: {integrity: sha512-x6fFWCeak8aCGfqZfe6CXYt5xVjxe9Os1cIPmVRcToInKLjhJkRVXvJ/L3/1KxFkjDQdbZV/YsuLKqa8t/xKpA==} - engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} + '@oxlint-tsgolint/darwin-arm64@0.24.0': + resolution: {integrity: sha512-C2uMmwK5Bc4ri4ysZ6sA8Rcu+A5zBQTp6ml2u0CLLbRZp4kMFPV3yWk8B5DK9Aw7y9bbjogIm75tUwGLFzlsYQ==} + cpu: [arm64] + os: [darwin] + + '@oxlint-tsgolint/darwin-x64@0.24.0': + resolution: {integrity: sha512-Wgvt/1lRbDxmoNqWQKKcL+UIiqLmdJ+EWLpQa1qzoNVAfNB0PJpa82/8dH1twT/3rSs4zrP5TXPWl4juB71WuQ==} + cpu: [x64] + os: [darwin] + + '@oxlint-tsgolint/linux-arm64@0.24.0': + resolution: {integrity: sha512-PB1rxII7KV83+ASY4sSkXtqvpij6ME66+QCRL49uksi/ofs2Rf/UVboYr095n0Rkbl2wgvlsHGl6DHC361jQUQ==} + cpu: [arm64] + os: [linux] + + '@oxlint-tsgolint/linux-x64@0.24.0': + resolution: {integrity: sha512-xcz3CxKmjTQLREtE/UShh+ruWmm9nAb7UM9zKcD65BStiuYgOakAKkPHl4YS5DztpVcDrE0+HqbOolTlRKYWmw==} + cpu: [x64] + os: [linux] + + '@oxlint-tsgolint/win32-arm64@0.24.0': + resolution: {integrity: sha512-A2i6ZGBec3i20S7RaxkgHc6r3HYtD5Mn7j/mb22NkTz14u0JuudvTu6JggAnbGMcv8+dBKQI//EasxSPJLD8pw==} + cpu: [arm64] + os: [win32] + + '@oxlint-tsgolint/win32-x64@0.24.0': + resolution: {integrity: sha512-0ZbGd9qRB6zs82moekaKdEvncRANq49EAwfNX62JpTS46feXUhKAuoyVDvZMj6Rywejylrmmu79Wo6faYCo4Ew==} + cpu: [x64] + os: [win32] - '@rolldown/binding-android-arm-eabi@1.2.12': - resolution: {integrity: sha512-dB/a1214qKfHMXCpgqR4OZT+jS4kTyEXbQGJPqzobt5EwH5rX080pxE37alt3RzvR1bf1Yz/yGqRfrYAxuPw0A==} + '@oxlint/binding-android-arm-eabi@1.72.0': + resolution: {integrity: sha512-zhCmvn+1Mj3UchAc/90i99S0t7jJUsHmFVSPg4UWrjO8b8eaSGwscgO6QAUtvHBstkjQwBttQNswEnAF1mIQdA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [android] - '@rolldown/binding-android-arm64@1.2.12': - resolution: {integrity: sha512-7KHFgQ5VJxIHcLlrwrc3Xbds7oTNQT7Pgi9gQCJKrd2VGab/UksIOYp6VD8MzCstGxOKMgNamPwUCfxPdP1OHg==} + '@oxlint/binding-android-arm64@1.72.0': + resolution: {integrity: sha512-mtH+aY/ozv1eZoCUC2owjFAtyNBKHpJHygKeEu9zXXnQGW1Q2/qOpvx+I+Lf23+TvTz66F4iiXUbl2cGvoLPCQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [android] - '@rolldown/binding-darwin-arm64@1.2.12': - resolution: {integrity: sha512-3YIhqHD96nA5SaYNRBR16HnGv4oavZvXfD/ayHM+oYZ0WD/8lBAtf6zQua4kEyAvpqrluKXl0lnOBoiNby7x9w==} + '@oxlint/binding-darwin-arm64@1.72.0': + resolution: {integrity: sha512-EvnajNPDtfknB3ZieeOOyDTwJn9QXDiwfnF4ZDQqART6RG6hjY4WigQcZdGoK2dkB3e1vrmEzN9aYbQCUkh/gQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [darwin] - '@rolldown/binding-darwin-x64@1.2.12': - resolution: {integrity: sha512-UuuJ35MFw4gmFOrE9pEqIV+K3syIKveph+Qc1/ljHZVdoDW4pz/JHR/eMVom+TZGl/5OOvGJOWaOCVt3ZfqhxA==} + '@oxlint/binding-darwin-x64@1.72.0': + resolution: {integrity: sha512-ZkCdEa/G80A7vEHfeCDz/+L3m33DE73v32mDKhgOIgz8Uwf0DFcK7+uu6qC+7LEhmz5fpOe1osWKyjSNMydFIQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [darwin] - '@rolldown/binding-freebsd-x64@1.2.12': - resolution: {integrity: sha512-uMvssit0a4W+/7D8CbHUvG719mH3R2jwXAlh/XcPvuHTE0g++LymF88DCGNX0HM2rBOn0xrzgXktIB6fLSJBTQ==} + '@oxlint/binding-freebsd-x64@1.72.0': + resolution: {integrity: sha512-NroXv2vh+sxVY1uya/rM5pjhx1hm8BzlYpx9q67QP0Xhw5MH2bf5GJylpvLEC+781p1Xli/317EoV9AlGwViag==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [freebsd] - '@rolldown/binding-linux-arm-gnueabihf@1.2.12': - resolution: {integrity: sha512-XcFu0R0xWnwzSf4IQgFH1rJIckPN1pLy2R+4r9IDB7Yfu/ys9cVqfa4pBrMHj7a3gl8mIR4nRNPg0e5IvEVs6g==} + '@oxlint/binding-linux-arm-gnueabihf@1.72.0': + resolution: {integrity: sha512-0NDywYgfj279Ou/BcQuCYSj7NJwBfmWn5qc5uGO/Ny7fUWmXyIpvawqX/8acQlWG6IXelJsJhj+JAy6sjsKj0A==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [linux] - '@rolldown/binding-linux-arm64-gnu@1.2.12': - resolution: {integrity: sha512-260UrKgn8tz39ak+SMDOirKzr7V04M9dWPw5llW00SwBivCZoWcRBKV1d8cXnRkUmSZA3BdiUmBHWk7734Ulpw==} + '@oxlint/binding-linux-arm-musleabihf@1.72.0': + resolution: {integrity: sha512-4vpXB06h65Ezsy4hRyrGjGrfa1SkVPii09yaajiYhmVpgsFiLD+KNxIx/BNAY+XiO+i1yqp9HHdwqM8VTqa5XQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@oxlint/binding-linux-arm64-gnu@1.72.0': + resolution: {integrity: sha512-immaN4g2ZGFiOkKrvRX9LvzZdd2GkQM5wR+UyzYyUuyhUTXGQ4HKUJH18xp4G8OfhCVaVAJfKZxwE1r8+4hhaQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] libc: [glibc] - '@rolldown/binding-linux-arm64-musl@1.2.12': - resolution: {integrity: sha512-5YK1I9SqDkbPgc1IA8BgDl34suqUS2q0KWnBrirm0E51YjOs6eo6dV6jbQfNE/argHRSvd0QUGgtpIoYx+WWpw==} + '@oxlint/binding-linux-arm64-musl@1.72.0': + resolution: {integrity: sha512-JGHS9Mnr7iWyyLDxgCv1MhzVpAckgptg00F2gnxt/GD7lQ2SW1BRcxHqhSTaSdDpjWRrBkBxMMh4+Hn3aVtExg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] libc: [musl] - '@rolldown/binding-linux-ppc64-gnu@1.2.12': - resolution: {integrity: sha512-Rkcrmp7eFRg74yL5fXEU91JEWbdEPLevWwGtXpmhbjlD1StScbWTmO94Bhly+Mo+ketKYkdmM1vNUKeWSlx8cQ==} + '@oxlint/binding-linux-ppc64-gnu@1.72.0': + resolution: {integrity: sha512-AOYgBZqxNshrg83P9v0RYv+m8s10Cqkj4/PxXFDhcS3k7FqsIG5+CxErshZCIN7G8iy4Y+VGfAsuEdar8AcbBg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [ppc64] os: [linux] libc: [glibc] - '@rolldown/binding-linux-s390x-gnu@1.2.12': - resolution: {integrity: sha512-qvK4DuAsQc2BSjlx+Xr+IzOIvvxbGZqxFwdWfG6F518Erj0GGISyQbJ6pIappnOxlNPzNHvo/L0BwB30GZ+zVw==} + '@oxlint/binding-linux-riscv64-gnu@1.72.0': + resolution: {integrity: sha512-QMybPS5ij3/vrKG67mqzHwW++91sYxK/PPUVi6SBtNCEzW4niS52fVBdXbQ6nou0wWbUPEpx8Sl/ZjtgE3clXA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@oxlint/binding-linux-riscv64-musl@1.72.0': + resolution: {integrity: sha512-gOc3W7JV0PXRpIL7stUlLe3Wa9Gp0Kdlup87IT3gHDvPKck2xNgMIl/Gs2lldYY2lyXZDC4rWi3hmoLUobkgbQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [riscv64] + os: [linux] + libc: [musl] + + '@oxlint/binding-linux-s390x-gnu@1.72.0': + resolution: {integrity: sha512-rpGxph+FjjHcYI5q6uxB3Az+tnfmEnDbSA8+PK9ZE/VzyUAkvBOMeuY7ZQMhu5mpZH7YQDsTdW6Cx4kV/msc6w==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [s390x] os: [linux] libc: [glibc] - '@rolldown/binding-linux-x64-gnu@1.2.12': - resolution: {integrity: sha512-Q9uLBO53Xd4QIq1WOycVQyPP1O4HhraEV2qqb3uTrnVw6QZih9duY4vNXOivL1xoUS1/z+W8eF4NMfl2a8Sdjw==} + '@oxlint/binding-linux-x64-gnu@1.72.0': + resolution: {integrity: sha512-WND+uhf/Ko13SLqQMWQUgsZuLvYYEvL0ZKgg0tgGYfLqxG7l8Ju123fHDMJyYSDl5E3bUbpFUuii/OvMreFQzw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] libc: [glibc] - '@rolldown/binding-linux-x64-musl@1.2.12': - resolution: {integrity: sha512-3IBxWFMjbOZskDPKv8Lf9BCnahlKuHthWkYnyIxOH/QcJrFcS4EmcenthApkwr/5+nEqZlLzeYbxeMaX7A5u4g==} + '@oxlint/binding-linux-x64-musl@1.72.0': + resolution: {integrity: sha512-SrpbrUL70nG9vh6zP4/oKHWgLuHquwsr7MW9XOn0olBVgh10Uqr8qscKhQoBGEn6olK/IUpn5GSKcdQ5AjUhGA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] libc: [musl] - '@rolldown/binding-openharmony-arm64@1.2.12': - resolution: {integrity: sha512-xtX61xg4LKPkPWilZU1ynKClz5Gj4bf74LML4r3eVLWumKnGjoEr1OSHQhMdbBDoYTi+yjrujvpZe2pUnqCrrA==} + '@oxlint/binding-openharmony-arm64@1.72.0': + resolution: {integrity: sha512-qkrsEn6NmgFKr7U/QnezQMb+q/vzAy0Dd9Y95gQGQTyjzDLN+HRZMuM5u70iyH4nBLCfKBzhjMsYCehKay2jyg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [openharmony] - '@rolldown/binding-win32-arm64-msvc@1.2.12': - resolution: {integrity: sha512-At7fPB6PCaIjzgIhEZFxuT+BBFqiQibJDT4d3PhiR3f4E7bbMZF4aKblbFfEM3sETRDd1YiQx/+U/g/B/ou5Ew==} + '@oxlint/binding-win32-arm64-msvc@1.72.0': + resolution: {integrity: sha512-LWR6ZlFZph+KPjXv8opgZsXRDCdrdQe8VL8Cg9zxCoBS73h6znzZpydVgmdnwj8mB9AuSM5jxEgDJDpQkjboeg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [win32] - '@rolldown/binding-win32-x64-msvc@1.2.12': - resolution: {integrity: sha512-WIw2haVKwjuYdXkHaoC0mF8Le71TuCBxjrdKqLbJGctbBABj+ClfmNvtbOnzpq3RokNo5+V1qhtSzJyXorsklQ==} + '@oxlint/binding-win32-ia32-msvc@1.72.0': + resolution: {integrity: sha512-yt6HEh7IsHvtjRWtmeZRX134eaXKHq5Gnqlf1xBJdJl1JtdoRUEJw3nAxpZoUDS860cX/foKbztO441anVBtVQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ia32] + os: [win32] + + '@oxlint/binding-win32-x64-msvc@1.72.0': + resolution: {integrity: sha512-b2eKFD2hX7tIwmo/cyH6TDq8vzWRZ2qNHrzoGntUTmq0h3zQh/uX3eTSHCwI8OB/ADQfJCRelLItK8BsxuucDA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [win32] + '@oxlint/plugins@1.68.0': + resolution: {integrity: sha512-titLmukUt/h8ho7Svlf0xSBjoy2ccZKrXjpXpZCj+v6V4CJccC2KyP45BLSCMx8YIpifMyiDyUptM4+5sruKbQ==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + + '@pkgjs/parseargs@0.11.0': + resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} + engines: {node: '>=14'} + + '@pkgr/core@0.2.10': + resolution: {integrity: sha512-x6fFWCeak8aCGfqZfe6CXYt5xVjxe9Os1cIPmVRcToInKLjhJkRVXvJ/L3/1KxFkjDQdbZV/YsuLKqa8t/xKpA==} + engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} + + '@polka/url@1.0.0-next.29': + resolution: {integrity: sha512-wwQAWhWSuHaag8c4q/KN/vCoeOJYshAIvMQwD4GpSb3OiZklFfvAgmj0VCBBImRpuF/aFgIRzllXlVX93Jevww==} + '@rolldown/pluginutils@1.0.1': resolution: {integrity: sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==} @@ -1144,6 +1353,9 @@ packages: resolution: {integrity: sha512-2SX/1jW6CIMAiebvVv5ZInoCEuWQmMyBoJXXGC6Vjakjp/fpxP5eHs7/V6WKuPEIbuK06+VpjH+vjLQhr98rDQ==} engines: {node: '>=22'} + '@standard-schema/spec@1.1.0': + resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==} + '@swc-node/core@1.15.0': resolution: {integrity: sha512-WAerrrl087WgenB92XG4Th2t0NQFfMNLYSe0sW2cEMMqM/LQmP4rozsDJl0vuzTrbewjpKQryxFXI+aYig/dBg==} engines: {node: '>= 10'} @@ -1261,9 +1473,22 @@ packages: peerDependencies: react: ^18 || ^19 + '@testing-library/dom@10.4.2': + resolution: {integrity: sha512-yzr2S9HyAIdhz2/6qHgbs665Q7PKVcDF05vsOlHPxG1mo36gKVesdYVeDLnXgfjJ03CrKRk08knc6+E/9m8v2Q==} + engines: {node: '>=18'} + + '@testing-library/user-event@14.6.8': + resolution: {integrity: sha512-vgSSqnANMnkcYR/vUNDbwS7aM3OErRLNUG8vCVVlj4oc6cKffUrccX7UAS5AmJQQNZTSibi9z5GvvRZ0aYgUCQ==} + engines: {node: '>=12', npm: '>=6'} + peerDependencies: + '@testing-library/dom': '>=7.21.4' + '@tybys/wasm-util@0.10.4': resolution: {integrity: sha512-W3c4gRigFS0T/Ma4qIYF3GDAc5AQdHb1yL5znJT1Zv1YaD9Kitx656wBjvr19qbiosmZT8lWDM5BEMynUqX65A==} + '@types/aria-query@5.0.4': + resolution: {integrity: sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==} + '@types/chai@5.2.3': resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==} @@ -1294,9 +1519,6 @@ packages: '@types/ms@2.1.0': resolution: {integrity: sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==} - '@types/node@26.6.4': - resolution: {integrity: sha512-ldVPDCzj7fsaGZrLB0NuHuTvJcsNasysBAqMolr/cgxrLd1xbqxIr3XJiPnHHJUCxj5sNF1vnRj9aWnrVh5Jcg==} - '@types/node@26.6.5': resolution: {integrity: sha512-uMzsv9stDdofIZBx4UGh4Z9ZgXnGC9seRDscilBcTHAeOFk67MZg/k9bWVfO+bk4qZmG+l52hRnLwUiH2LnJTg==} @@ -1330,10 +1552,23 @@ packages: oxc-transform-react: optional: true - '@vitest/mocker@5.0.5': - resolution: {integrity: sha512-xLL3lkDegJZw+MGoGaCCsFayDZthGgpAtr3Vziyfc4p7xH89K7KRPcRBBh/kEYm0Aqkt5DtTmkYpBtRV/FrHZg==} + '@vitest/browser-preview@4.1.10': + resolution: {integrity: sha512-14MJrL59ZFkqXLjwfSk6RzTDy5Czf9UG4+8q8L6Gxjs2aPjEce/cVNYV14bXAc2BvMjUNu904+ZEZA1Xc1wtvQ==} + peerDependencies: + vitest: 4.1.10 + + '@vitest/browser@4.1.10': + resolution: {integrity: sha512-UDwuWGwXj646CBx/bQHOaJSX7np0I8JL/UKQYa1e4QrVHH8VdWtx8eaOuf8sy0ShwDgR6NjJAsp5eF6vjF6qng==} + peerDependencies: + vitest: 4.1.10 + + '@vitest/expect@4.1.10': + resolution: {integrity: sha512-YsCn+qAk1GWjQOWFEsEcL2gNQ0zmVmQu3T03qP6UyjhtmdtwtbuI+DASn/7iQB3HGTXkdBwGddzxPlmiql5vlA==} + + '@vitest/mocker@4.1.10': + resolution: {integrity: sha512-v0xaezt+DKEmKfaxg133ldzADrwLGd7Ze1MfQQTYfvs8OqZIwbxyxaYURivwV7sWy5fqn3rH5uOrSp07bp44Ow==} peerDependencies: - msw: ^2.4.9 || ^3.0.0 + msw: ^2.4.9 vite: ^6.0.0 || ^7.0.0 || ^8.0.0 peerDependenciesMeta: msw: @@ -1341,8 +1576,129 @@ packages: vite: optional: true - '@vitest/spy@5.0.5': - resolution: {integrity: sha512-lwJRExuH417257Q5wv9QYugN9IMJkoxcrKrYxGPQkBzl7wlNpTUxD/5yNX4ESKVUIShKPgkGchYPFMWOOk0wzw==} + '@vitest/pretty-format@4.1.10': + resolution: {integrity: sha512-W1HsjSH4MXQ9YfmmhLAoIYf1HRfekQCGngeIgcei6MP5QQGWUe0gkopdZQaVCFO+JDJMrAJGwa5pRpNpvy4P8Q==} + + '@vitest/runner@4.1.10': + resolution: {integrity: sha512-IKI6kpIH+LmpROplyLwBBaCfMgOZOMsygVa6BARD6ahA04VRuJSa6OaVG7kRvSEMD870Vd91rSSw0eegtWyLGg==} + + '@vitest/snapshot@4.1.10': + resolution: {integrity: sha512-xRkfOT1qpTAi/Ti4Y1LtfRc3kEuqxGw59eN2jN9pRWMtS/XDevekhcFSqvQqjUNGksfjMJu3Y+oJ+4Ypn2OaJw==} + + '@vitest/spy@4.1.10': + resolution: {integrity: sha512-PLf/Ugvoq5wO/b4rwYCR1h2PSIdXz7wnkQFMiUpLdtM7l6pqVFcQIBEHyT1+l+cj7mNwAfZHzqXqDyjvOuwbDw==} + + '@vitest/utils@4.1.10': + resolution: {integrity: sha512-fy9am/HWxbaGt/Sawrp90vt6Y6jQwf1RX77cz3uwoJwJVMli/e1IEwRPnMNJ7vKfPTwo0diXifkpPvwH9v7nGA==} + + '@voidzero-dev/vite-plus-core@0.2.4': + resolution: {integrity: sha512-AoAYGPwNO56o9TuCR+KaQGA5XpSnTpn2QYHK0DQ0f8j3wvaMmToeWOJF6STo+XMntMDfiaB7sOsSFNE+hPYyjg==} + engines: {node: ^20.19.0 || ^22.18.0 || >=24.11.0} + peerDependencies: + '@arethetypeswrong/core': ^0.18.1 + '@types/node': ^20.19.0 || >=22.12.0 + '@vitejs/devtools': ^0.3.0 + esbuild: ^0.27.0 || ^0.28.0 + jiti: '>=1.21.0' + less: ^4.0.0 + publint: ^0.3.8 + sass: ^1.70.0 + sass-embedded: ^1.70.0 + stylus: '>=0.54.8' + sugarss: ^5.0.0 + terser: ^5.16.0 + tsx: ^4.8.1 + typescript: ^5.0.0 || ^6.0.0 + unplugin-unused: ^0.5.0 + unrun: '*' + yaml: ^2.4.2 + peerDependenciesMeta: + '@arethetypeswrong/core': + optional: true + '@types/node': + optional: true + '@vitejs/devtools': + optional: true + esbuild: + optional: true + jiti: + optional: true + less: + optional: true + publint: + optional: true + sass: + optional: true + sass-embedded: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + tsx: + optional: true + typescript: + optional: true + unplugin-unused: + optional: true + unrun: + optional: true + yaml: + optional: true + + '@voidzero-dev/vite-plus-darwin-arm64@0.2.4': + resolution: {integrity: sha512-UQwoLpnBW3qLqj5H3airPQeMCX3kfffVDM2EYGe889Fn5dOS9VhikuWloJlcjwtKwqLbFqkrsGjfb6XRvuLozg==} + engines: {node: '>=20.0.0'} + cpu: [arm64] + os: [darwin] + + '@voidzero-dev/vite-plus-darwin-x64@0.2.4': + resolution: {integrity: sha512-f4XtiA4cBc/Z260QvvXIlBqTb/dZMAioohQDoR5jLG9o9vIOaWE2Ujm/zcWDyNpyZ88RLRrcO8ZwiMrEsdzbJw==} + engines: {node: '>=20.0.0'} + cpu: [x64] + os: [darwin] + + '@voidzero-dev/vite-plus-linux-arm64-gnu@0.2.4': + resolution: {integrity: sha512-TUamG9wEehZI4SFG7M6nUKb6z/7x3nNOBbnPdWIpv4C8uWKHwNtsnaaVLeygHIUIJEhbByR3oEFDylYLLr4KRw==} + engines: {node: '>=20.0.0'} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@voidzero-dev/vite-plus-linux-arm64-musl@0.2.4': + resolution: {integrity: sha512-CS9uQ22QFr+lZZp95Huccg3cip3QYVU9GWrhvATqMBXWXb8IRHOulzuXrFxzvhMBITyPaRS9m/eIHmnM4L4h4Q==} + engines: {node: '>=20.0.0'} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@voidzero-dev/vite-plus-linux-x64-gnu@0.2.4': + resolution: {integrity: sha512-X5XfvftFERjer78SG+QKaJCa9LgIKygx4w13sD1/RS/kYOtaf1+yifrJpOFel+t9TRe/YqGTZa5C8uFrDz3OHw==} + engines: {node: '>=20.0.0'} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@voidzero-dev/vite-plus-linux-x64-musl@0.2.4': + resolution: {integrity: sha512-2iIWW6JR0UOK4QIFKgUQHjaF/7hZxELePny8R1OIn2jzShRfQhS1cmxksSg8ce/5nhYrfQ9dkg5ZmdLbxhpS/A==} + engines: {node: '>=20.0.0'} + cpu: [x64] + os: [linux] + libc: [musl] + + '@voidzero-dev/vite-plus-win32-arm64-msvc@0.2.4': + resolution: {integrity: sha512-3yY4FnpvKBxjmHtEcao6Wcs/VBstzC0GhXAPWetbiFEl/sgL66V4Uhws02esfOSWw8abqLrXyPE9vK+newtsuw==} + engines: {node: '>=20.0.0'} + cpu: [arm64] + os: [win32] + + '@voidzero-dev/vite-plus-win32-x64-msvc@0.2.4': + resolution: {integrity: sha512-ERnFrh1O0XZhmGSqND04jtHM7tyKaGAOeT1w/HpVFmL/cQK2vuLl2GKjEwOqkBLd2csNGCcnk3e7C2qDmrNR/Q==} + engines: {node: '>=20.0.0'} + cpu: [x64] + os: [win32] acorn@8.19.0: resolution: {integrity: sha512-oJlA3XiRm7Cyk6qFD2Jn8ak9B7jSy0qy00ADO3+8dpT0LSjFihQYv4C02LFCSYJV3Q37xYwwRy5m+IpIiUzqWw==} @@ -1370,6 +1726,10 @@ packages: resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} engines: {node: '>=8'} + ansi-styles@5.2.0: + resolution: {integrity: sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==} + engines: {node: '>=10'} + ansi-styles@6.2.1: resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==} engines: {node: '>=12'} @@ -1380,6 +1740,9 @@ packages: argparse@2.0.1: resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} + aria-query@5.3.0: + resolution: {integrity: sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==} + assertion-error@2.0.1: resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} engines: {node: '>=12'} @@ -1497,6 +1860,9 @@ packages: resolution: {integrity: sha512-GW4qUsfFo59d0HbUibDlWv5wPz+vAAcaTWbKIuKCf0JkC7wWkSyf8f13IpXn5JkeMlB2P8iTSSIjwXljorg2vA==} engines: {node: '>=22'} + convert-source-map@2.0.0: + resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} + cross-spawn@7.0.6: resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} engines: {node: '>= 8'} @@ -1521,6 +1887,10 @@ packages: resolution: {integrity: sha512-oj7KWToJuuxlPr7VV0vabvxEIiqNMo+q0NueIiL3XhtwC6FVOX7Hr1c0C4eD0bmf7Zr+S/dSf2xvkH3Ad6sU3Q==} engines: {node: '>=20'} + dequal@2.0.3: + resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==} + engines: {node: '>=6'} + detect-libc@2.1.2: resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==} engines: {node: '>=8'} @@ -1528,6 +1898,9 @@ packages: didyoumean@1.2.2: resolution: {integrity: sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==} + dom-accessibility-api@0.5.16: + resolution: {integrity: sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==} + eastasianwidth@0.2.0: resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} @@ -1631,10 +2004,6 @@ packages: deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me hasBin: true - got@16.0.0: - resolution: {integrity: sha512-UtzSUebtRHHAUaNB/X37X1LQgHvdSrgXUIWGUBDhLu05CYtUr9svjeN6wmG333nzdJASFUjXMOuRBjZLf8oF1w==} - engines: {node: '>=22'} - got@16.1.0: resolution: {integrity: sha512-LOvohAoc/3O8+Gi3E5RRvamkyXmJq9ewj/cimmqQYn+Me5OKCVHKQI9ygF0O882l573lrpLbKZpsydYRttpDEg==} engines: {node: '>=22'} @@ -1655,11 +2024,6 @@ packages: http2-client@1.3.5: resolution: {integrity: sha512-EC2utToWl4RKfs5zd36Mxq7nzHHBuomZboI0yYL6Y0RmBgT7Sgkq4rQ0ezFTYoIsSs7Tm9SJe+o2FcAg6GBhGA==} - husky@9.1.7: - resolution: {integrity: sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==} - engines: {node: '>=18'} - hasBin: true - iconv-lite@0.4.24: resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==} engines: {node: '>=0.10.0'} @@ -1701,6 +2065,9 @@ packages: resolution: {integrity: sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==} engines: {node: '>=10'} + js-tokens@4.0.0: + resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} + js-yaml@5.4.3: resolution: {integrity: sha512-yzzNtgczwgoVHNigCyKTXcQJU4Y8t/ikU4UxXW0BvrLfHTGWZhsNcOT2s/a7vn81/4KqVnNmHjaUEPlvWnNwVw==} hasBin: true @@ -1807,9 +2174,6 @@ packages: resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==} engines: {node: '>=8'} - lodash@4.17.21: - resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} - lodash@4.18.1: resolution: {integrity: sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==} @@ -1824,12 +2188,13 @@ packages: lru-cache@10.4.3: resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==} + lz-string@1.5.0: + resolution: {integrity: sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==} + hasBin: true + magic-string@0.30.21: resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} - magic-string@1.4.3: - resolution: {integrity: sha512-z12OxmaPGE0F4xlpGdjuAUckipLpQlTAuAmyGhNoD7ODpYUzvDfvtxUbjM/jwznyP178oju/KDdyi220wNJ0RQ==} - mimic-fn@2.1.0: resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==} engines: {node: '>=6'} @@ -1853,6 +2218,10 @@ packages: resolution: {integrity: sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==} engines: {node: '>=4'} + mrmime@2.0.1: + resolution: {integrity: sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ==} + engines: {node: '>=10'} + ms@2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} @@ -1911,8 +2280,8 @@ packages: resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} engines: {node: '>=0.10.0'} - obug@3.0.0: - resolution: {integrity: sha512-5vvB5+W7ePv+p3uqxi+RcW1XAzLW0/hxt3/4X4Lc4qHudzOhmBiBwOY6DRob4WnanAEGvNcLjF+KNOufrUoEQw==} + obug@2.2.1: + resolution: {integrity: sha512-XrsrhT5sybtKI6wakr2SPOlGZWWYbUXZ7a0jT8/QOeAPau+1X/bSegNe5YR75oJmEZQbKningirmGOEJCIk61Q==} engines: {node: '>=12.20.0'} onetime@5.1.2: @@ -1932,12 +2301,45 @@ packages: oxc-resolver@11.24.2: resolution: {integrity: sha512-FY91FiDBj7ls5MsFS9jN3tjz2o0/zsdSsymlakySaBwVJZorHhkWyICLZMKxlu1R9vYo+sd3z1jwb4J8x7bNDw==} - oxlint@1.89.0: - resolution: {integrity: sha512-a25hkfo61okGPvJz432fRIPoxlKtNnOVy9w4rzrmGgNm4iVTPwpSQlmdqNWnp6p9QyyPVfAZRgnf5XvSBZFk/A==} + oxfmt@0.57.0: + resolution: {integrity: sha512-ZB7Bi+rGDSqmVIo9jwcLyFgjxXvQhDdU+jx+ZrVy6VRiVXK2+CHc4hO3J4dUQjHe7V0ymHB+MDuv5z+NhK07HA==} engines: {node: ^20.19.0 || >=22.12.0} hasBin: true peerDependencies: - oxlint-tsgolint: '>=7.0.2003' + svelte: ^5.0.0 + vite-plus: '*' + peerDependenciesMeta: + svelte: + optional: true + vite-plus: + optional: true + + oxfmt@0.75.0: + resolution: {integrity: sha512-/ZKvY5asfsVi9hdkOmRIumqOPu6kxlTgiJSZf54uq29kKew+Gu1FFAnEkGePyvLVW+MAYu41D6XggnzoElQzPw==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + peerDependencies: + '@astrojs/compiler-rs': ^0.5.0 + svelte: ^5.0.0 + vite-plus: '*' + peerDependenciesMeta: + '@astrojs/compiler-rs': + optional: true + svelte: + optional: true + vite-plus: + optional: true + + oxlint-tsgolint@0.24.0: + resolution: {integrity: sha512-giCk5sEvG02d5tzPmFMX3hem8ndzEEu1xvGYS5OwNfO2WGl6ZVxt5LjE0yiMDoz94INI7XkXwgFAQiydPvVHDw==} + hasBin: true + + oxlint@1.72.0: + resolution: {integrity: sha512-1rhdZIP/EvoI91ABIwNU5Q8+bWf8mjrS5UzIOZld4d4bXxJvtlUhlQvaoTogIGin/qdErMOrwaIJvCSIAKTLhA==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + peerDependencies: + oxlint-tsgolint: '>=0.22.1' vite-plus: '*' peerDependenciesMeta: oxlint-tsgolint: @@ -1992,10 +2394,6 @@ packages: picocolors@1.1.1: resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} - picomatch@4.0.2: - resolution: {integrity: sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==} - engines: {node: '>=12'} - picomatch@4.0.7: resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==} engines: {node: '>=12'} @@ -2004,10 +2402,6 @@ packages: resolution: {integrity: sha512-eW/gHNMlxdSP6dmG6uJip6FXN0EQBwm2clYYd8Wul42Cwu/DK8HEftzsapcNdYe2MfLiIwZqsDk2RDEsTE79hA==} engines: {node: '>=10'} - pirates@4.0.6: - resolution: {integrity: sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==} - engines: {node: '>= 6'} - pirates@4.0.7: resolution: {integrity: sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==} engines: {node: '>= 6'} @@ -2019,6 +2413,10 @@ packages: resolution: {integrity: sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==} engines: {node: '>=4'} + pngjs@7.0.0: + resolution: {integrity: sha512-LKWqWJRhstyYo9pGvgor/ivk2w94eSjE3RGVuzLGlr3NmD8bf7RcYGze1mNdEHRP6TRP6rMuDHk5t44hnTRyow==} + engines: {node: '>=14.19.0'} + postcss-load-config@6.0.1: resolution: {integrity: sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==} engines: {node: '>= 18'} @@ -2051,10 +2449,9 @@ packages: engines: {node: '>=14'} hasBin: true - prettier@3.9.9: - resolution: {integrity: sha512-Z/CJHIkdujO/OtN7nXUii0Rf3VT5SRuhjBA82Xvu2XhBUgX3nhP67T0LHceBdQLex7OOFGTox+Q5Yg8Jk2Qivg==} - engines: {node: '>=14'} - hasBin: true + pretty-format@27.5.1: + resolution: {integrity: sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} pretty-quick@4.2.2: resolution: {integrity: sha512-uAh96tBW1SsD34VhhDmWuEmqbpfYc/B3j++5MC/6b3Cb8Ow7NJsvKFhg0eoGu2xXX+o9RkahkTK6sUdd8E7g5w==} @@ -2068,6 +2465,9 @@ packages: peerDependencies: react: ^19.3.0 + react-is@17.0.2: + resolution: {integrity: sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==} + react@19.3.0: resolution: {integrity: sha512-E8LUcbtBWt20bbl2YoHfx4ZDBdxVTfOKtCZn9cDSJ4l6/nuoApcpIBcj47t2wZoVX8g2ZHuMHbiShgCR1T5Sog==} engines: {node: '>=0.10.0'} @@ -2104,11 +2504,6 @@ packages: rettime@0.11.12: resolution: {integrity: sha512-5ExtR1ppiDBQkVoPw5NAqdbfH4Iq2VOmQKHMtUoaFxA9bo2krzFYBtyq6K40xxbYp+2w/YOr6D+1ToF6tTN53A==} - rolldown@1.2.12: - resolution: {integrity: sha512-8wafseiaG80xmXSfqidUNqZcylTlhmPZZt+za2m+js2sFZ8dTNlhIOV2WcbIPx2hgwPBJpEUGFAMZ9bgBBLTSQ==} - engines: {node: ^20.19.0 || >=22.12.0} - hasBin: true - rollup@4.64.0: resolution: {integrity: sha512-gjA/kFeDfffII8COoPsvLPvE16hWDTEc1+0QKQNKUkuV8iJjqsC4xXs8/FzuL0v9EV39kuxTbAgcFoTRyy2TGQ==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} @@ -2157,6 +2552,9 @@ packages: should@13.2.3: resolution: {integrity: sha512-ggLesLtu2xp+ZxI+ysJTmNjh2U0TsC+rQ/pfED9bUZZ4DKefP27D+7YJVVTvKsmjLpIi9jAa7itwDGkDDmt1GQ==} + siginfo@2.0.0: + resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==} + signal-exit@3.0.7: resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==} @@ -2164,6 +2562,10 @@ packages: resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} engines: {node: '>=14'} + sirv@3.0.2: + resolution: {integrity: sha512-2wcC/oGxHis/BoHkkPwldgiPSYcpZK3JU28WoMVv55yHJgcZ8rlXvuG9iZggz+sU1d4bRgIGASwyWqjxu3FM0g==} + engines: {node: '>=18'} + sisteransi@1.0.5: resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==} @@ -2186,6 +2588,9 @@ packages: resolution: {integrity: sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ==} engines: {node: '>= 12'} + stackback@0.0.2: + resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} + std-env@4.3.0: resolution: {integrity: sha512-OtU/EgQ1kIm5KwqQpBC6ZEMXrZRui11w8zgfTWp8cdO9B8OaPsbA8bTHO2P+HNo1VlUTGMVBwPhydu6poeXiag==} @@ -2232,9 +2637,8 @@ packages: through@2.3.8: resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==} - tinybench@6.2.2: - resolution: {integrity: sha512-nIZ2N2dFpjBsg2hgitKu7mA+FvsIJuGJOwysRngmVRRmWgR/UyPjwJj8c/fT/dhm8EkHnF5EOogRf+0Z2qrimA==} - engines: {node: '>=20.0.0'} + tinybench@2.9.0: + resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} tinyexec@0.3.2: resolution: {integrity: sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==} @@ -2247,10 +2651,26 @@ packages: resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==} engines: {node: '>=12.0.0'} + tinypool@2.1.0: + resolution: {integrity: sha512-Pugqs6M0m7Lv1I7FtxN4aoyToKg1C4tu+/381vH35y8oENM/Ai7f7C4StcoK4/+BSw9ebcS8jRiVrORFKCALLw==} + engines: {node: ^20.0.0 || >=22.0.0} + + tinypool@2.2.0: + resolution: {integrity: sha512-jBrmx4lYmaC9k/mgPbylxs7kBUxHtD8256up+HjLaDFfXScKJQyil+SWXSvhAtT7XHo+yTVlpB81PGmHP8oLSQ==} + engines: {node: ^20.0.0 || >=22.0.0} + + tinyrainbow@3.2.0: + resolution: {integrity: sha512-LgO3D9yZJjApUiuUfl9iFAwrtaX4+lok3wJIqttGoKCHlWUqHqbQpnxCf82L8FjgKsh4iGo78hqJwgL8F6To2A==} + engines: {node: '>=14.0.0'} + tmp@0.0.33: resolution: {integrity: sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==} engines: {node: '>=0.6.0'} + totalist@3.0.1: + resolution: {integrity: sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ==} + engines: {node: '>=6'} + tr46@0.0.3: resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} @@ -2320,71 +2740,41 @@ packages: universal-user-agent@7.0.2: resolution: {integrity: sha512-0JCqzSKnStlRRQfCdowvqy3cy0Dvtlb8xecj/H8JFZuCze4rwjPZQOgvFvn0Ws/usCHQFGpyr+pB9adaGwXn4Q==} - - universalify@2.0.1: - resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==} - engines: {node: '>= 10.0.0'} - - vite@8.3.3: - resolution: {integrity: sha512-cTAldKPImjg6c+gk48U19POPn3GCBzZwpdsN8ZMEEcbpes+6/wvfqUd0C2y3qYY4wsj8PwgFwrZ/1jBPVttMSg==} - engines: {node: ^20.19.0 || >=22.12.0} - hasBin: true - peerDependencies: - '@types/node': ^20.19.0 || >=22.12.0 - '@vitejs/devtools': ^0.7.1 - esbuild: ^0.27.0 || ^0.28.0 - jiti: '>=1.21.0' - less: ^4.0.0 - sass: ^1.70.0 - sass-embedded: ^1.70.0 - stylus: '>=0.54.8' - sugarss: ^5.0.0 - terser: ^5.16.0 - tsx: ^4.8.1 - yaml: ^2.4.2 + + universalify@2.0.1: + resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==} + engines: {node: '>= 10.0.0'} + + vite-plus@0.2.4: + resolution: {integrity: sha512-gaBBjOXIq9lLRU44oAYdIr99p+JBLX1kxs+l/6LqGgSXwcVKAdDa1boSrOTELqYCkQQ0fpppXUGWi9o6JDT5zw==} + engines: {node: ^20.19.0 || ^22.18.0 || >=24.11.0} + hasBin: true + peerDependencies: + '@vitest/browser-playwright': 4.1.10 + '@vitest/browser-webdriverio': 4.1.10 peerDependenciesMeta: - '@types/node': - optional: true - '@vitejs/devtools': - optional: true - esbuild: - optional: true - jiti: - optional: true - less: - optional: true - sass: - optional: true - sass-embedded: - optional: true - stylus: - optional: true - sugarss: - optional: true - terser: - optional: true - tsx: + '@vitest/browser-playwright': optional: true - yaml: + '@vitest/browser-webdriverio': optional: true - vitest@5.0.5: - resolution: {integrity: sha512-cPODOMF8YnkiiYtDdHo6n4wWmBrOBBbOIYH2d33M4l3CdNn72h+qMmO6uXffUN6A5AZFXNND/d+krS9mgkXRfg==} - engines: {node: ^22.12.0 || ^24.0.0 || >=26.0.0} + vitest@4.1.10: + resolution: {integrity: sha512-R9jUTe5S4Qb0HCd4TNqpC7oGcrMssMRGXLW80ubjWsW9VH5GF8y1Y0SFLY9AbqSk6nt0PnOx4H4WNJYZ13GUPw==} + engines: {node: ^20.0.0 || ^22.0.0 || >=24.0.0} hasBin: true peerDependencies: '@edge-runtime/vm': '*' '@opentelemetry/api': ^1.9.0 - '@types/node': ^22.0.0 || >=24.0.0 - '@vitest/browser-playwright': 5.0.5 - '@vitest/browser-preview': 5.0.5 - '@vitest/browser-webdriverio': ^5.0.0-beta.5 || >=5.0.0 - '@vitest/coverage-istanbul': 5.0.5 - '@vitest/coverage-v8': 5.0.5 - '@vitest/ui': 5.0.5 + '@types/node': ^20.0.0 || ^22.0.0 || >=24.0.0 + '@vitest/browser-playwright': 4.1.10 + '@vitest/browser-preview': 4.1.10 + '@vitest/browser-webdriverio': 4.1.10 + '@vitest/coverage-istanbul': 4.1.10 + '@vitest/coverage-v8': 4.1.10 + '@vitest/ui': 4.1.10 happy-dom: '*' jsdom: '*' - vite: ^6.4.0 || ^7.0.0 || ^8.0.0 + vite: ^6.0.0 || ^7.0.0 || ^8.0.0 peerDependenciesMeta: '@edge-runtime/vm': optional: true @@ -2423,9 +2813,9 @@ packages: engines: {node: '>= 8'} hasBin: true - why-is-node-running@3.2.1: - resolution: {integrity: sha512-Tb2FUhB4vUsGQlfSquQLYkApkuPAFQXGFzxWKHHumVz2dK+X1RUm/HnID4+TfIGYJ1kTcwOaCk/buYCEJr6YjQ==} - engines: {node: '>=20.11'} + why-is-node-running@2.3.0: + resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==} + engines: {node: '>=8'} hasBin: true wrap-ansi@6.2.0: @@ -2440,6 +2830,18 @@ packages: resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==} engines: {node: '>=12'} + ws@8.22.0: + resolution: {integrity: sha512-Ydggc987+RO0AnWtZ/7Wq9FtNvcrL1b/RO0ud9mWjUPgDrsAAwQSF51sm2hm1XofbU/4jkpGEsLFsZZxU+1DOg==} + engines: {node: '>=10.0.0'} + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: '>=5.0.2' + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + y18n@4.0.3: resolution: {integrity: sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==} @@ -2482,10 +2884,20 @@ packages: snapshots: + '@babel/code-frame@7.29.7': + dependencies: + '@babel/helper-validator-identifier': 7.29.7 + js-tokens: 4.0.0 + picocolors: 1.1.1 + + '@babel/helper-validator-identifier@7.29.7': {} + '@babel/runtime@7.26.7': dependencies: regenerator-runtime: 0.14.1 + '@blazediff/core@1.9.1': {} + '@clack/core@1.5.1': dependencies: fast-wrap-ansi: 0.2.2 @@ -2724,7 +3136,9 @@ snapshots: '@open-draft/until@3.0.1': {} - '@oxc-project/types@0.152.0': {} + '@oxc-project/runtime@0.138.0': {} + + '@oxc-project/types@0.138.0': {} '@oxc-resolver/binding-android-arm-eabi@11.24.2': optional: true @@ -2787,113 +3201,204 @@ snapshots: '@oxc-resolver/binding-win32-x64-msvc@11.24.2': optional: true - '@oxlint/binding-android-arm-eabi@1.89.0': + '@oxfmt/binding-android-arm-eabi@0.57.0': optional: true - '@oxlint/binding-android-arm64@1.89.0': + '@oxfmt/binding-android-arm-eabi@0.75.0': optional: true - '@oxlint/binding-darwin-arm64@1.89.0': + '@oxfmt/binding-android-arm64@0.57.0': optional: true - '@oxlint/binding-darwin-x64@1.89.0': + '@oxfmt/binding-android-arm64@0.75.0': optional: true - '@oxlint/binding-freebsd-x64@1.89.0': + '@oxfmt/binding-darwin-arm64@0.57.0': optional: true - '@oxlint/binding-linux-arm-gnueabihf@1.89.0': + '@oxfmt/binding-darwin-arm64@0.75.0': optional: true - '@oxlint/binding-linux-arm-musleabihf@1.89.0': + '@oxfmt/binding-darwin-x64@0.57.0': optional: true - '@oxlint/binding-linux-arm64-gnu@1.89.0': + '@oxfmt/binding-darwin-x64@0.75.0': optional: true - '@oxlint/binding-linux-arm64-musl@1.89.0': + '@oxfmt/binding-freebsd-x64@0.57.0': optional: true - '@oxlint/binding-linux-ppc64-gnu@1.89.0': + '@oxfmt/binding-freebsd-x64@0.75.0': optional: true - '@oxlint/binding-linux-riscv64-gnu@1.89.0': + '@oxfmt/binding-linux-arm-gnueabihf@0.57.0': optional: true - '@oxlint/binding-linux-riscv64-musl@1.89.0': + '@oxfmt/binding-linux-arm-gnueabihf@0.75.0': optional: true - '@oxlint/binding-linux-s390x-gnu@1.89.0': + '@oxfmt/binding-linux-arm-musleabihf@0.57.0': optional: true - '@oxlint/binding-linux-x64-gnu@1.89.0': + '@oxfmt/binding-linux-arm-musleabihf@0.75.0': optional: true - '@oxlint/binding-linux-x64-musl@1.89.0': + '@oxfmt/binding-linux-arm64-gnu@0.57.0': optional: true - '@oxlint/binding-openharmony-arm64@1.89.0': + '@oxfmt/binding-linux-arm64-gnu@0.75.0': optional: true - '@oxlint/binding-win32-arm64-msvc@1.89.0': + '@oxfmt/binding-linux-arm64-musl@0.57.0': optional: true - '@oxlint/binding-win32-ia32-msvc@1.89.0': + '@oxfmt/binding-linux-arm64-musl@0.75.0': optional: true - '@oxlint/binding-win32-x64-msvc@1.89.0': + '@oxfmt/binding-linux-ppc64-gnu@0.57.0': optional: true - '@pkgjs/parseargs@0.11.0': + '@oxfmt/binding-linux-ppc64-gnu@0.75.0': optional: true - '@pkgr/core@0.2.10': {} + '@oxfmt/binding-linux-riscv64-gnu@0.57.0': + optional: true + + '@oxfmt/binding-linux-riscv64-gnu@0.75.0': + optional: true + + '@oxfmt/binding-linux-riscv64-musl@0.57.0': + optional: true + + '@oxfmt/binding-linux-riscv64-musl@0.75.0': + optional: true + + '@oxfmt/binding-linux-s390x-gnu@0.57.0': + optional: true + + '@oxfmt/binding-linux-s390x-gnu@0.75.0': + optional: true + + '@oxfmt/binding-linux-x64-gnu@0.57.0': + optional: true + + '@oxfmt/binding-linux-x64-gnu@0.75.0': + optional: true + + '@oxfmt/binding-linux-x64-musl@0.57.0': + optional: true + + '@oxfmt/binding-linux-x64-musl@0.75.0': + optional: true + + '@oxfmt/binding-openharmony-arm64@0.57.0': + optional: true + + '@oxfmt/binding-openharmony-arm64@0.75.0': + optional: true + + '@oxfmt/binding-win32-arm64-msvc@0.57.0': + optional: true + + '@oxfmt/binding-win32-arm64-msvc@0.75.0': + optional: true + + '@oxfmt/binding-win32-ia32-msvc@0.57.0': + optional: true + + '@oxfmt/binding-win32-ia32-msvc@0.75.0': + optional: true + + '@oxfmt/binding-win32-x64-msvc@0.57.0': + optional: true + + '@oxfmt/binding-win32-x64-msvc@0.75.0': + optional: true + + '@oxlint-tsgolint/darwin-arm64@0.24.0': + optional: true + + '@oxlint-tsgolint/darwin-x64@0.24.0': + optional: true + + '@oxlint-tsgolint/linux-arm64@0.24.0': + optional: true + + '@oxlint-tsgolint/linux-x64@0.24.0': + optional: true + + '@oxlint-tsgolint/win32-arm64@0.24.0': + optional: true + + '@oxlint-tsgolint/win32-x64@0.24.0': + optional: true + + '@oxlint/binding-android-arm-eabi@1.72.0': + optional: true + + '@oxlint/binding-android-arm64@1.72.0': + optional: true + + '@oxlint/binding-darwin-arm64@1.72.0': + optional: true + + '@oxlint/binding-darwin-x64@1.72.0': + optional: true + + '@oxlint/binding-freebsd-x64@1.72.0': + optional: true - '@rolldown/binding-android-arm-eabi@1.2.12': + '@oxlint/binding-linux-arm-gnueabihf@1.72.0': optional: true - '@rolldown/binding-android-arm64@1.2.12': + '@oxlint/binding-linux-arm-musleabihf@1.72.0': optional: true - '@rolldown/binding-darwin-arm64@1.2.12': + '@oxlint/binding-linux-arm64-gnu@1.72.0': optional: true - '@rolldown/binding-darwin-x64@1.2.12': + '@oxlint/binding-linux-arm64-musl@1.72.0': optional: true - '@rolldown/binding-freebsd-x64@1.2.12': + '@oxlint/binding-linux-ppc64-gnu@1.72.0': optional: true - '@rolldown/binding-linux-arm-gnueabihf@1.2.12': + '@oxlint/binding-linux-riscv64-gnu@1.72.0': optional: true - '@rolldown/binding-linux-arm64-gnu@1.2.12': + '@oxlint/binding-linux-riscv64-musl@1.72.0': optional: true - '@rolldown/binding-linux-arm64-musl@1.2.12': + '@oxlint/binding-linux-s390x-gnu@1.72.0': optional: true - '@rolldown/binding-linux-ppc64-gnu@1.2.12': + '@oxlint/binding-linux-x64-gnu@1.72.0': optional: true - '@rolldown/binding-linux-s390x-gnu@1.2.12': + '@oxlint/binding-linux-x64-musl@1.72.0': optional: true - '@rolldown/binding-linux-x64-gnu@1.2.12': + '@oxlint/binding-openharmony-arm64@1.72.0': optional: true - '@rolldown/binding-linux-x64-musl@1.2.12': + '@oxlint/binding-win32-arm64-msvc@1.72.0': optional: true - '@rolldown/binding-openharmony-arm64@1.2.12': + '@oxlint/binding-win32-ia32-msvc@1.72.0': optional: true - '@rolldown/binding-win32-arm64-msvc@1.2.12': + '@oxlint/binding-win32-x64-msvc@1.72.0': optional: true - '@rolldown/binding-win32-x64-msvc@1.2.12': + '@oxlint/plugins@1.68.0': {} + + '@pkgjs/parseargs@0.11.0': optional: true + '@pkgr/core@0.2.10': {} + + '@polka/url@1.0.0-next.29': {} + '@rolldown/pluginutils@1.0.1': {} '@rollup/rollup-android-arm-eabi@4.64.0': @@ -2975,6 +3480,8 @@ snapshots: '@sindresorhus/is@8.1.0': {} + '@standard-schema/spec@1.1.0': {} + '@swc-node/core@1.15.0(@swc/core@1.16.13)(@swc/types@0.1.28)': dependencies: '@swc/core': 1.16.13 @@ -3069,11 +3576,28 @@ snapshots: '@tanstack/query-core': 5.104.1 react: 19.3.0 + '@testing-library/dom@10.4.2': + dependencies: + '@babel/code-frame': 7.29.7 + '@babel/runtime': 7.26.7 + '@types/aria-query': 5.0.4 + aria-query: 5.3.0 + dom-accessibility-api: 0.5.16 + lz-string: 1.5.0 + picocolors: 1.1.1 + pretty-format: 27.5.1 + + '@testing-library/user-event@14.6.8(@testing-library/dom@10.4.2)': + dependencies: + '@testing-library/dom': 10.4.2 + '@tybys/wasm-util@0.10.4': dependencies: tslib: 2.8.1 optional: true + '@types/aria-query@5.0.4': {} + '@types/chai@5.2.3': dependencies: '@types/deep-eql': 4.0.2 @@ -3090,7 +3614,7 @@ snapshots: '@types/fs-extra@11.0.4': dependencies: '@types/jsonfile': 6.1.4 - '@types/node': 26.6.4 + '@types/node': 26.6.5 '@types/http-cache-semantics@4.2.0': {} @@ -3098,16 +3622,12 @@ snapshots: '@types/jsonfile@6.1.4': dependencies: - '@types/node': 26.6.4 + '@types/node': 26.6.5 '@types/lodash@4.17.25': {} '@types/ms@2.1.0': {} - '@types/node@26.6.4': - dependencies: - undici-types: 8.9.0 - '@types/node@26.6.5': dependencies: undici-types: 8.9.0 @@ -3124,21 +3644,118 @@ snapshots: dependencies: csstype: 3.2.3 - '@vitejs/plugin-react@6.1.2(vite@8.3.3(@types/node@26.6.4)(esbuild@0.27.7)(jiti@2.4.2)(yaml@2.9.1))': + '@vitejs/plugin-react@6.1.2(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))': dependencies: '@rolldown/pluginutils': 1.0.1 - vite: 8.3.3(@types/node@26.6.4)(esbuild@0.27.7)(jiti@2.4.2)(yaml@2.9.1) + vite: '@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)' - '@vitest/mocker@5.0.5(vite@8.3.3(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(yaml@2.9.1))': + '@vitest/browser-preview@4.1.10(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))(vitest@4.1.10)': dependencies: - '@jridgewell/trace-mapping': 0.3.31 - '@vitest/spy': 5.0.5 + '@testing-library/dom': 10.4.2 + '@testing-library/user-event': 14.6.8(@testing-library/dom@10.4.2) + '@vitest/browser': 4.1.10(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))(vitest@4.1.10) + vitest: 4.1.10(@types/node@26.6.5)(@vitest/browser-preview@4.1.10)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)) + transitivePeerDependencies: + - bufferutil + - msw + - utf-8-validate + - vite + + '@vitest/browser@4.1.10(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))(vitest@4.1.10)': + dependencies: + '@blazediff/core': 1.9.1 + '@vitest/mocker': 4.1.10(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)) + '@vitest/utils': 4.1.10 + magic-string: 0.30.21 + pngjs: 7.0.0 + sirv: 3.0.2 + tinyrainbow: 3.2.0 + vitest: 4.1.10(@types/node@26.6.5)(@vitest/browser-preview@4.1.10)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)) + ws: 8.22.0 + transitivePeerDependencies: + - bufferutil + - msw + - utf-8-validate + - vite + + '@vitest/expect@4.1.10': + dependencies: + '@standard-schema/spec': 1.1.0 + '@types/chai': 5.2.3 + '@vitest/spy': 4.1.10 + '@vitest/utils': 4.1.10 + chai: 6.3.0 + tinyrainbow: 3.2.0 + + '@vitest/mocker@4.1.10(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))': + dependencies: + '@vitest/spy': 4.1.10 estree-walker: 3.0.3 - magic-string: 1.4.3 + magic-string: 0.30.21 + optionalDependencies: + vite: '@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)' + + '@vitest/pretty-format@4.1.10': + dependencies: + tinyrainbow: 3.2.0 + + '@vitest/runner@4.1.10': + dependencies: + '@vitest/utils': 4.1.10 + pathe: 2.0.3 + + '@vitest/snapshot@4.1.10': + dependencies: + '@vitest/pretty-format': 4.1.10 + '@vitest/utils': 4.1.10 + magic-string: 0.30.21 + pathe: 2.0.3 + + '@vitest/spy@4.1.10': {} + + '@vitest/utils@4.1.10': + dependencies: + '@vitest/pretty-format': 4.1.10 + convert-source-map: 2.0.0 + tinyrainbow: 3.2.0 + + '@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)': + dependencies: + '@oxc-project/runtime': 0.138.0 + '@oxc-project/types': 0.138.0 + lightningcss: 1.33.0 + postcss: 8.5.29 optionalDependencies: - vite: 8.3.3(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(yaml@2.9.1) + '@types/node': 26.6.5 + esbuild: 0.27.7 + fsevents: 2.3.3 + jiti: 2.4.2 + typescript: 6.0.3 + yaml: 2.9.1 + + '@voidzero-dev/vite-plus-darwin-arm64@0.2.4': + optional: true + + '@voidzero-dev/vite-plus-darwin-x64@0.2.4': + optional: true + + '@voidzero-dev/vite-plus-linux-arm64-gnu@0.2.4': + optional: true + + '@voidzero-dev/vite-plus-linux-arm64-musl@0.2.4': + optional: true + + '@voidzero-dev/vite-plus-linux-x64-gnu@0.2.4': + optional: true + + '@voidzero-dev/vite-plus-linux-x64-musl@0.2.4': + optional: true + + '@voidzero-dev/vite-plus-win32-arm64-msvc@0.2.4': + optional: true - '@vitest/spy@5.0.5': {} + '@voidzero-dev/vite-plus-win32-x64-msvc@0.2.4': + optional: true acorn@8.19.0: {} @@ -3150,7 +3767,7 @@ snapshots: didyoumean: 1.2.2 inquirer: 7.3.3 json-fixer: 1.6.15 - lodash: 4.17.21 + lodash: 4.18.1 node-fetch: 2.7.0(encoding@0.1.13) pify: 5.0.0 yargs: 15.4.1 @@ -3171,12 +3788,18 @@ snapshots: dependencies: color-convert: 2.0.1 + ansi-styles@5.2.0: {} + ansi-styles@6.2.1: {} any-promise@1.3.0: {} argparse@2.0.1: {} + aria-query@5.3.0: + dependencies: + dequal: 2.0.3 + assertion-error@2.0.1: {} async@3.2.6: {} @@ -3282,6 +3905,8 @@ snapshots: content-type@3.1.1: {} + convert-source-map@2.0.0: {} + cross-spawn@7.0.6: dependencies: path-key: 3.1.1 @@ -3302,10 +3927,14 @@ snapshots: dependencies: mimic-response: 4.0.0 + dequal@2.0.3: {} + detect-libc@2.1.2: {} didyoumean@1.2.2: {} + dom-accessibility-api@0.5.16: {} + eastasianwidth@0.2.0: {} emoji-regex@8.0.0: {} @@ -3429,19 +4058,6 @@ snapshots: package-json-from-dist: 1.0.1 path-scurry: 1.11.1 - got@16.0.0: - dependencies: - '@sindresorhus/is': 8.1.0 - byte-counter: 0.1.0 - cacheable-request: 13.0.19 - chunk-data: 0.1.0 - decompress-response: 10.0.0 - keyv: 5.6.0 - lowercase-keys: 4.0.1 - responselike: 4.0.2 - type-fest: 5.10.0 - uint8array-extras: 1.6.0 - got@16.1.0: dependencies: '@sindresorhus/is': 8.1.0 @@ -3465,8 +4081,6 @@ snapshots: http2-client@1.3.5: {} - husky@9.1.7: {} - iconv-lite@0.4.24: dependencies: safer-buffer: 2.1.2 @@ -3486,7 +4100,7 @@ snapshots: cli-width: 3.0.0 external-editor: 3.1.0 figures: 3.2.0 - lodash: 4.17.21 + lodash: 4.18.1 mute-stream: 0.0.8 run-async: 2.4.1 rxjs: 6.6.7 @@ -3513,6 +4127,8 @@ snapshots: joycon@3.1.1: {} + js-tokens@4.0.0: {} + js-yaml@5.4.3: dependencies: argparse: 2.0.1 @@ -3594,8 +4210,6 @@ snapshots: dependencies: p-locate: 4.1.0 - lodash@4.17.21: {} - lodash@4.18.1: {} lowercase-keys@3.0.0: {} @@ -3604,11 +4218,9 @@ snapshots: lru-cache@10.4.3: {} - magic-string@0.30.21: - dependencies: - '@jridgewell/sourcemap-codec': 1.6.0 + lz-string@1.5.0: {} - magic-string@1.4.3: + magic-string@0.30.21: dependencies: '@jridgewell/sourcemap-codec': 1.6.0 @@ -3631,6 +4243,8 @@ snapshots: mri@1.2.0: {} + mrmime@2.0.1: {} + ms@2.1.3: {} mute-stream@0.0.8: {} @@ -3698,7 +4312,7 @@ snapshots: object-assign@4.1.1: {} - obug@3.0.0: {} + obug@2.2.1: {} onetime@5.1.2: dependencies: @@ -3734,27 +4348,88 @@ snapshots: '@oxc-resolver/binding-win32-arm64-msvc': 11.24.2 '@oxc-resolver/binding-win32-x64-msvc': 11.24.2 - oxlint@1.89.0: + oxfmt@0.57.0(vite-plus@0.2.4(@types/node@26.6.5)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)): + dependencies: + tinypool: 2.1.0 + optionalDependencies: + '@oxfmt/binding-android-arm-eabi': 0.57.0 + '@oxfmt/binding-android-arm64': 0.57.0 + '@oxfmt/binding-darwin-arm64': 0.57.0 + '@oxfmt/binding-darwin-x64': 0.57.0 + '@oxfmt/binding-freebsd-x64': 0.57.0 + '@oxfmt/binding-linux-arm-gnueabihf': 0.57.0 + '@oxfmt/binding-linux-arm-musleabihf': 0.57.0 + '@oxfmt/binding-linux-arm64-gnu': 0.57.0 + '@oxfmt/binding-linux-arm64-musl': 0.57.0 + '@oxfmt/binding-linux-ppc64-gnu': 0.57.0 + '@oxfmt/binding-linux-riscv64-gnu': 0.57.0 + '@oxfmt/binding-linux-riscv64-musl': 0.57.0 + '@oxfmt/binding-linux-s390x-gnu': 0.57.0 + '@oxfmt/binding-linux-x64-gnu': 0.57.0 + '@oxfmt/binding-linux-x64-musl': 0.57.0 + '@oxfmt/binding-openharmony-arm64': 0.57.0 + '@oxfmt/binding-win32-arm64-msvc': 0.57.0 + '@oxfmt/binding-win32-ia32-msvc': 0.57.0 + '@oxfmt/binding-win32-x64-msvc': 0.57.0 + vite-plus: 0.2.4(@types/node@26.6.5)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1) + + oxfmt@0.75.0(vite-plus@0.2.4(@types/node@26.6.5)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)): + dependencies: + tinypool: 2.2.0 + optionalDependencies: + '@oxfmt/binding-android-arm-eabi': 0.75.0 + '@oxfmt/binding-android-arm64': 0.75.0 + '@oxfmt/binding-darwin-arm64': 0.75.0 + '@oxfmt/binding-darwin-x64': 0.75.0 + '@oxfmt/binding-freebsd-x64': 0.75.0 + '@oxfmt/binding-linux-arm-gnueabihf': 0.75.0 + '@oxfmt/binding-linux-arm-musleabihf': 0.75.0 + '@oxfmt/binding-linux-arm64-gnu': 0.75.0 + '@oxfmt/binding-linux-arm64-musl': 0.75.0 + '@oxfmt/binding-linux-ppc64-gnu': 0.75.0 + '@oxfmt/binding-linux-riscv64-gnu': 0.75.0 + '@oxfmt/binding-linux-riscv64-musl': 0.75.0 + '@oxfmt/binding-linux-s390x-gnu': 0.75.0 + '@oxfmt/binding-linux-x64-gnu': 0.75.0 + '@oxfmt/binding-linux-x64-musl': 0.75.0 + '@oxfmt/binding-openharmony-arm64': 0.75.0 + '@oxfmt/binding-win32-arm64-msvc': 0.75.0 + '@oxfmt/binding-win32-ia32-msvc': 0.75.0 + '@oxfmt/binding-win32-x64-msvc': 0.75.0 + vite-plus: 0.2.4(@types/node@26.6.5)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1) + + oxlint-tsgolint@0.24.0: + optionalDependencies: + '@oxlint-tsgolint/darwin-arm64': 0.24.0 + '@oxlint-tsgolint/darwin-x64': 0.24.0 + '@oxlint-tsgolint/linux-arm64': 0.24.0 + '@oxlint-tsgolint/linux-x64': 0.24.0 + '@oxlint-tsgolint/win32-arm64': 0.24.0 + '@oxlint-tsgolint/win32-x64': 0.24.0 + + oxlint@1.72.0(oxlint-tsgolint@0.24.0)(vite-plus@0.2.4(@types/node@26.6.5)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)): optionalDependencies: - '@oxlint/binding-android-arm-eabi': 1.89.0 - '@oxlint/binding-android-arm64': 1.89.0 - '@oxlint/binding-darwin-arm64': 1.89.0 - '@oxlint/binding-darwin-x64': 1.89.0 - '@oxlint/binding-freebsd-x64': 1.89.0 - '@oxlint/binding-linux-arm-gnueabihf': 1.89.0 - '@oxlint/binding-linux-arm-musleabihf': 1.89.0 - '@oxlint/binding-linux-arm64-gnu': 1.89.0 - '@oxlint/binding-linux-arm64-musl': 1.89.0 - '@oxlint/binding-linux-ppc64-gnu': 1.89.0 - '@oxlint/binding-linux-riscv64-gnu': 1.89.0 - '@oxlint/binding-linux-riscv64-musl': 1.89.0 - '@oxlint/binding-linux-s390x-gnu': 1.89.0 - '@oxlint/binding-linux-x64-gnu': 1.89.0 - '@oxlint/binding-linux-x64-musl': 1.89.0 - '@oxlint/binding-openharmony-arm64': 1.89.0 - '@oxlint/binding-win32-arm64-msvc': 1.89.0 - '@oxlint/binding-win32-ia32-msvc': 1.89.0 - '@oxlint/binding-win32-x64-msvc': 1.89.0 + '@oxlint/binding-android-arm-eabi': 1.72.0 + '@oxlint/binding-android-arm64': 1.72.0 + '@oxlint/binding-darwin-arm64': 1.72.0 + '@oxlint/binding-darwin-x64': 1.72.0 + '@oxlint/binding-freebsd-x64': 1.72.0 + '@oxlint/binding-linux-arm-gnueabihf': 1.72.0 + '@oxlint/binding-linux-arm-musleabihf': 1.72.0 + '@oxlint/binding-linux-arm64-gnu': 1.72.0 + '@oxlint/binding-linux-arm64-musl': 1.72.0 + '@oxlint/binding-linux-ppc64-gnu': 1.72.0 + '@oxlint/binding-linux-riscv64-gnu': 1.72.0 + '@oxlint/binding-linux-riscv64-musl': 1.72.0 + '@oxlint/binding-linux-s390x-gnu': 1.72.0 + '@oxlint/binding-linux-x64-gnu': 1.72.0 + '@oxlint/binding-linux-x64-musl': 1.72.0 + '@oxlint/binding-openharmony-arm64': 1.72.0 + '@oxlint/binding-win32-arm64-msvc': 1.72.0 + '@oxlint/binding-win32-ia32-msvc': 1.72.0 + '@oxlint/binding-win32-x64-msvc': 1.72.0 + oxlint-tsgolint: 0.24.0 + vite-plus: 0.2.4(@types/node@26.6.5)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1) p-limit@2.3.0: dependencies: @@ -3791,14 +4466,10 @@ snapshots: picocolors@1.1.1: {} - picomatch@4.0.2: {} - picomatch@4.0.7: {} pify@5.0.0: {} - pirates@4.0.6: {} - pirates@4.0.7: {} pkg-types@1.3.1: @@ -3809,6 +4480,8 @@ snapshots: pluralize@8.0.0: {} + pngjs@7.0.0: {} + postcss-load-config@6.0.1(jiti@2.4.2)(postcss@8.5.29)(yaml@2.9.1): dependencies: lilconfig: 3.1.3 @@ -3828,7 +4501,11 @@ snapshots: prettier@3.9.10: {} - prettier@3.9.9: {} + pretty-format@27.5.1: + dependencies: + ansi-regex: 5.0.1 + ansi-styles: 5.2.0 + react-is: 17.0.2 pretty-quick@4.2.2(prettier@3.9.10): dependencies: @@ -3836,7 +4513,7 @@ snapshots: ignore: 7.0.12 mri: 1.2.0 picocolors: 1.1.1 - picomatch: 4.0.2 + picomatch: 4.0.7 prettier: 3.9.10 tinyexec: 0.3.2 tslib: 2.8.1 @@ -3846,6 +4523,8 @@ snapshots: react: 19.3.0 scheduler: 0.28.0 + react-is@17.0.2: {} + react@19.3.0: {} readdirp@4.1.1: {} @@ -3871,27 +4550,6 @@ snapshots: rettime@0.11.12: {} - rolldown@1.2.12: - dependencies: - '@oxc-project/types': 0.152.0 - '@rolldown/pluginutils': 1.0.1 - optionalDependencies: - '@rolldown/binding-android-arm-eabi': 1.2.12 - '@rolldown/binding-android-arm64': 1.2.12 - '@rolldown/binding-darwin-arm64': 1.2.12 - '@rolldown/binding-darwin-x64': 1.2.12 - '@rolldown/binding-freebsd-x64': 1.2.12 - '@rolldown/binding-linux-arm-gnueabihf': 1.2.12 - '@rolldown/binding-linux-arm64-gnu': 1.2.12 - '@rolldown/binding-linux-arm64-musl': 1.2.12 - '@rolldown/binding-linux-ppc64-gnu': 1.2.12 - '@rolldown/binding-linux-s390x-gnu': 1.2.12 - '@rolldown/binding-linux-x64-gnu': 1.2.12 - '@rolldown/binding-linux-x64-musl': 1.2.12 - '@rolldown/binding-openharmony-arm64': 1.2.12 - '@rolldown/binding-win32-arm64-msvc': 1.2.12 - '@rolldown/binding-win32-x64-msvc': 1.2.12 - rollup@4.64.0: dependencies: '@types/estree': 1.0.9 @@ -3968,10 +4626,18 @@ snapshots: should-type-adaptors: 1.1.0 should-util: 1.0.1 + siginfo@2.0.0: {} + signal-exit@3.0.7: {} signal-exit@4.1.0: {} + sirv@3.0.2: + dependencies: + '@polka/url': 1.0.0-next.29 + mrmime: 2.0.1 + totalist: 3.0.1 + sisteransi@1.0.5: {} slash@5.1.0: {} @@ -3987,6 +4653,8 @@ snapshots: source-map@0.7.6: {} + stackback@0.0.2: {} + std-env@4.3.0: {} string-width@4.2.3: @@ -4016,7 +4684,7 @@ snapshots: glob: 10.4.5 lines-and-columns: 1.2.4 mz: 2.7.0 - pirates: 4.0.6 + pirates: 4.0.7 ts-interface-checker: 0.1.13 supports-color@7.2.0: @@ -4051,7 +4719,7 @@ snapshots: through@2.3.8: {} - tinybench@6.2.2: {} + tinybench@2.9.0: {} tinyexec@0.3.2: {} @@ -4062,10 +4730,18 @@ snapshots: fdir: 6.5.0(picomatch@4.0.7) picomatch: 4.0.7 + tinypool@2.1.0: {} + + tinypool@2.2.0: {} + + tinyrainbow@3.2.0: {} + tmp@0.0.33: dependencies: os-tmpdir: 1.0.2 + totalist@3.0.1: {} + tr46@0.0.3: {} tree-kill@1.2.2: {} @@ -4130,52 +4806,89 @@ snapshots: universalify@2.0.1: {} - vite@8.3.3(@types/node@26.6.4)(esbuild@0.27.7)(jiti@2.4.2)(yaml@2.9.1): - dependencies: - lightningcss: 1.33.0 - picomatch: 4.0.7 - postcss: 8.5.29 - rolldown: 1.2.12 - tinyglobby: 0.2.17 - optionalDependencies: - '@types/node': 26.6.4 - esbuild: 0.27.7 - fsevents: 2.3.3 - jiti: 2.4.2 - yaml: 2.9.1 - - vite@8.3.3(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(yaml@2.9.1): - dependencies: - lightningcss: 1.33.0 - picomatch: 4.0.7 - postcss: 8.5.29 - rolldown: 1.2.12 - tinyglobby: 0.2.17 + vite-plus@0.2.4(@types/node@26.6.5)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1): + dependencies: + '@oxc-project/types': 0.138.0 + '@oxlint/plugins': 1.68.0 + '@vitest/browser': 4.1.10(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))(vitest@4.1.10) + '@vitest/browser-preview': 4.1.10(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))(vitest@4.1.10) + '@vitest/expect': 4.1.10 + '@vitest/mocker': 4.1.10(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)) + '@vitest/pretty-format': 4.1.10 + '@vitest/runner': 4.1.10 + '@vitest/snapshot': 4.1.10 + '@vitest/spy': 4.1.10 + '@vitest/utils': 4.1.10 + '@voidzero-dev/vite-plus-core': 0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1) + oxfmt: 0.57.0(vite-plus@0.2.4(@types/node@26.6.5)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)) + oxlint: 1.72.0(oxlint-tsgolint@0.24.0)(vite-plus@0.2.4(@types/node@26.6.5)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)) + oxlint-tsgolint: 0.24.0 + vitest: 4.1.10(@types/node@26.6.5)(@vitest/browser-preview@4.1.10)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)) optionalDependencies: - '@types/node': 26.6.5 - esbuild: 0.27.7 - fsevents: 2.3.3 - jiti: 2.4.2 - yaml: 2.9.1 + '@voidzero-dev/vite-plus-darwin-arm64': 0.2.4 + '@voidzero-dev/vite-plus-darwin-x64': 0.2.4 + '@voidzero-dev/vite-plus-linux-arm64-gnu': 0.2.4 + '@voidzero-dev/vite-plus-linux-arm64-musl': 0.2.4 + '@voidzero-dev/vite-plus-linux-x64-gnu': 0.2.4 + '@voidzero-dev/vite-plus-linux-x64-musl': 0.2.4 + '@voidzero-dev/vite-plus-win32-arm64-msvc': 0.2.4 + '@voidzero-dev/vite-plus-win32-x64-msvc': 0.2.4 + transitivePeerDependencies: + - '@arethetypeswrong/core' + - '@edge-runtime/vm' + - '@opentelemetry/api' + - '@types/node' + - '@vitejs/devtools' + - '@vitest/coverage-istanbul' + - '@vitest/coverage-v8' + - '@vitest/ui' + - bufferutil + - esbuild + - happy-dom + - jiti + - jsdom + - less + - msw + - publint + - sass + - sass-embedded + - stylus + - sugarss + - svelte + - terser + - tsx + - typescript + - unplugin-unused + - unrun + - utf-8-validate + - vite + - yaml - vitest@5.0.5(@types/node@26.6.5)(vite@8.3.3(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(yaml@2.9.1)): + vitest@4.1.10(@types/node@26.6.5)(@vitest/browser-preview@4.1.10)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)): dependencies: - '@types/chai': 5.2.3 - '@vitest/mocker': 5.0.5(vite@8.3.3(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(yaml@2.9.1)) - chai: 6.3.0 + '@vitest/expect': 4.1.10 + '@vitest/mocker': 4.1.10(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)) + '@vitest/pretty-format': 4.1.10 + '@vitest/runner': 4.1.10 + '@vitest/snapshot': 4.1.10 + '@vitest/spy': 4.1.10 + '@vitest/utils': 4.1.10 es-module-lexer: 2.3.2 expect-type: 1.4.0 - magic-string: 1.4.3 - obug: 3.0.0 + magic-string: 0.30.21 + obug: 2.2.1 + pathe: 2.0.3 picomatch: 4.0.7 std-env: 4.3.0 - tinybench: 6.2.2 + tinybench: 2.9.0 tinyexec: 1.3.1 tinyglobby: 0.2.17 - vite: 8.3.3(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(yaml@2.9.1) - why-is-node-running: 3.2.1 + tinyrainbow: 3.2.0 + vite: '@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)' + why-is-node-running: 2.3.0 optionalDependencies: '@types/node': 26.6.5 + '@vitest/browser-preview': 4.1.10(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))(vitest@4.1.10) transitivePeerDependencies: - msw @@ -4192,7 +4905,10 @@ snapshots: dependencies: isexe: 2.0.0 - why-is-node-running@3.2.1: {} + why-is-node-running@2.3.0: + dependencies: + siginfo: 2.0.0 + stackback: 0.0.2 wrap-ansi@6.2.0: dependencies: @@ -4212,6 +4928,8 @@ snapshots: string-width: 5.1.2 strip-ansi: 7.1.0 + ws@8.22.0: {} + y18n@4.0.3: {} y18n@5.0.8: {} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index f564634d..36f8be6f 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -7,3 +7,13 @@ allowBuilds: esbuild: true minimumReleaseAgeExclude: - nock@15.0.1 +catalog: + vite: npm:@voidzero-dev/vite-plus-core@0.2.4 + vite-plus: 0.2.4 +overrides: + vite: "catalog:" +peerDependencyRules: + allowAny: + - vite + allowedVersions: + vite: "*" diff --git a/vite.config.ts b/vite.config.ts new file mode 100644 index 00000000..ced673ff --- /dev/null +++ b/vite.config.ts @@ -0,0 +1,160 @@ +import { defineConfig } from "vite-plus"; + +export default defineConfig({ + staged: { + "*": "vp check --fix", + }, + lint: { + plugins: ["typescript"], + categories: { + correctness: "off", + }, + env: { + builtin: true, + browser: true, + node: true, + }, + ignorePatterns: ["**/lib/*", "examples/frontend/src/github/*"], + rules: { + "constructor-super": "error", + "for-direction": "error", + "getter-return": "error", + "no-async-promise-executor": "error", + "no-case-declarations": "error", + "no-class-assign": "error", + "no-compare-neg-zero": "error", + "no-cond-assign": "error", + "no-const-assign": "error", + "no-constant-binary-expression": "error", + "no-constant-condition": "error", + "no-control-regex": "error", + "no-debugger": "error", + "no-delete-var": "error", + "no-dupe-class-members": "error", + "no-dupe-else-if": "error", + "no-dupe-keys": "error", + "no-duplicate-case": "error", + "no-empty": "error", + "no-empty-character-class": "error", + "no-empty-pattern": "error", + "no-empty-static-block": "error", + "no-ex-assign": "error", + "no-extra-boolean-cast": "error", + "no-fallthrough": "error", + "no-func-assign": "error", + "no-global-assign": "error", + "no-import-assign": "error", + "no-invalid-regexp": "error", + "no-irregular-whitespace": "error", + "no-loss-of-precision": "error", + "no-misleading-character-class": "error", + "no-new-native-nonconstructor": "error", + "no-nonoctal-decimal-escape": "error", + "no-obj-calls": "error", + "no-prototype-builtins": "error", + "no-redeclare": "error", + "no-regex-spaces": "error", + "no-self-assign": "error", + "no-setter-return": "error", + "no-shadow-restricted-names": "error", + "no-sparse-arrays": "error", + "no-this-before-super": "error", + "no-unassigned-vars": "error", + "no-unexpected-multiline": "error", + "no-unreachable": "error", + "no-unsafe-finally": "error", + "no-unsafe-negation": "error", + "no-unsafe-optional-chaining": "error", + "no-unused-labels": "error", + "no-unused-private-class-members": "error", + "no-unused-vars": [ + "error", + { + args: "all", + argsIgnorePattern: "^_", + caughtErrors: "all", + caughtErrorsIgnorePattern: "^_", + destructuredArrayIgnorePattern: "^_", + varsIgnorePattern: "^_", + ignoreRestSiblings: true, + }, + ], + "no-useless-backreference": "error", + "no-useless-catch": "error", + "no-useless-escape": "error", + "no-with": "error", + "preserve-caught-error": "error", + "require-yield": "error", + "use-isnan": "error", + "valid-typeof": "error", + "no-array-constructor": "error", + "no-unused-expressions": "error", + "typescript/ban-ts-comment": "error", + "typescript/no-duplicate-enum-values": "error", + "typescript/no-empty-object-type": "error", + "typescript/no-explicit-any": "error", + "typescript/no-extra-non-null-assertion": "error", + "typescript/no-misused-new": "error", + "typescript/no-namespace": "error", + "typescript/no-non-null-asserted-optional-chain": "error", + "typescript/no-require-imports": "error", + "typescript/no-this-alias": "error", + "typescript/no-unnecessary-type-constraint": "error", + "typescript/no-unsafe-declaration-merging": "error", + "typescript/no-unsafe-function-type": "error", + "typescript/no-wrapper-object-types": "error", + "typescript/prefer-as-const": "error", + "typescript/prefer-namespace-keyword": "error", + "typescript/triple-slash-reference": "error", + "vite-plus/prefer-vite-plus-imports": "error", + }, + overrides: [ + { + files: ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.cts"], + rules: { + "constructor-super": "off", + "getter-return": "off", + "no-class-assign": "off", + "no-const-assign": "off", + "no-dupe-class-members": "off", + "no-dupe-keys": "off", + "no-func-assign": "off", + "no-import-assign": "off", + "no-new-native-nonconstructor": "off", + "no-obj-calls": "off", + "no-redeclare": "off", + "no-setter-return": "off", + "no-this-before-super": "off", + "no-unreachable": "off", + "no-unsafe-negation": "off", + "no-var": "error", + "no-with": "off", + "prefer-const": "error", + "prefer-rest-params": "error", + "prefer-spread": "error", + }, + }, + ], + options: { + typeAware: true, + typeCheck: true, + }, + jsPlugins: [ + { + name: "vite-plus", + specifier: "vite-plus/oxlint-plugin", + }, + ], + }, + fmt: { + trailingComma: "es5", + printWidth: 80, + sortPackageJson: false, + ignorePatterns: [ + "pnpm-lock.yaml", + "**/CHANGELOG.md", + // Slow to process due to a lot of levels of indentations + "plugins/typescript/src/generators/generateReactQueryComponents.ts", + ], + }, +}); From 984d7237dbc94728889d1f65468664fc194595f3 Mon Sep 17 00:00:00 2001 From: Fabien Bernard Date: Thu, 29 Oct 2026 12:01:09 +0100 Subject: [PATCH 2/9] Fix yaml dep (no default in the latest version) --- cli/src/core/parseOpenAPISourceFile.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/src/core/parseOpenAPISourceFile.ts b/cli/src/core/parseOpenAPISourceFile.ts index 616fea90..8ded1d53 100644 --- a/cli/src/core/parseOpenAPISourceFile.ts +++ b/cli/src/core/parseOpenAPISourceFile.ts @@ -3,7 +3,6 @@ import { OpenAPIObject } from "openapi3-ts/oas30"; import type { OpenAPISourceFile } from "../types"; import swagger2openapi from "swagger2openapi"; -import YAML from "js-yaml"; /** * Parse an openAPI source file to an openAPI object. @@ -13,10 +12,11 @@ import YAML from "js-yaml"; * @param text raw data of the spec * @param format format of the spec */ -export const parseOpenAPISourceFile = ({ +export const parseOpenAPISourceFile = async ({ text, format, }: OpenAPISourceFile): Promise => { + const YAML = await import("js-yaml"); const schema = format === "yaml" ? YAML.load(text) : JSON.parse(text); return new Promise((resolve, reject) => { From b6fd7f079e9c1a1c970027706ed2d38fa6170707 Mon Sep 17 00:00:00 2001 From: Fabien Bernard Date: Thu, 29 Oct 2026 14:10:28 +0100 Subject: [PATCH 3/9] Add knip and clean deps --- cli/examples/openapi-codegen.config.ts | 2 +- cli/package.json | 45 +- cli/src/core/getOpenAPISourceFile.ts | 2 +- cli/src/types/index.ts | 2 +- cli/vite.config.ts | 15 + knip.json | 15 + package.json | 11 +- plugins/typescript/package.json | 32 +- pnpm-lock.yaml | 1317 ++++++------------------ tsconfig.json | 1 - 10 files changed, 374 insertions(+), 1068 deletions(-) create mode 100644 cli/vite.config.ts create mode 100644 knip.json diff --git a/cli/examples/openapi-codegen.config.ts b/cli/examples/openapi-codegen.config.ts index fb160566..b1761e29 100644 --- a/cli/examples/openapi-codegen.config.ts +++ b/cli/examples/openapi-codegen.config.ts @@ -1,4 +1,4 @@ -import { defineConfig } from "../lib/index.js"; +import { defineConfig } from "../dist/index.mjs"; export default defineConfig({ withFile: { diff --git a/cli/package.json b/cli/package.json index 22664b90..36ae98a3 100644 --- a/cli/package.json +++ b/cli/package.json @@ -2,37 +2,35 @@ "name": "@openapi-codegen/cli", "version": "3.1.0", "description": "OpenAPI Codegen cli", - "main": "lib/index.js", - "types": "lib/index.d.ts", - "type": "module", - "bin": { - "openapi-codegen": "lib/cli.js" - }, - "repository": { - "url": "https://github.com/fabien0102/openapi-codegen", - "directory": "cli" - }, - "publishConfig": { - "access": "public" - }, - "author": "Fabien Bernard", "keywords": [ - "openapi", "codegen", + "openapi", "plugin", "typescript" ], "license": "MIT", - "scripts": { - "watch": "tsup src/index.ts src/cli.ts --outDir lib --format esm --watch", - "prebuild": "pnpm --workspace-root tsc --emitDeclarationOnly --declaration -p cli/tsconfig.package.json", - "build": "tsup src/index.ts src/cli.ts --outDir lib --format esm", - "prepublishOnly": "pnpm build" + "author": "Fabien Bernard", + "repository": { + "url": "https://github.com/fabien0102/openapi-codegen", + "directory": "cli" + }, + "bin": { + "openapi-codegen": "lib/cli.js" }, "files": [ "lib", "README.md" ], + "type": "module", + "main": "dist/index.mjs", + "types": "dist/index.d.mts", + "publishConfig": { + "access": "public" + }, + "scripts": { + "build": "vp pack", + "prepublishOnly": "pnpm build" + }, "dependencies": { "@clack/prompts": "^1.8.1", "@octokit/request": "^10.0.16", @@ -47,16 +45,11 @@ "oxfmt": "^0.75.0", "slash": "^5.1.0", "swagger2openapi": "^7.0.8", - "tslib": "^2.8.1", "typanion": "^3.14.0", "typescript": "~6.0.2" }, "devDependencies": { - "@swc-node/register": "^1.12.1", "@types/fs-extra": "^11.0.4", - "@types/js-yaml": "^4.0.9", - "nock": "^15.0.1", - "react": "^19.3.0", - "tsup": "^8.5.1" + "nock": "^15.0.1" } } diff --git a/cli/src/core/getOpenAPISourceFile.ts b/cli/src/core/getOpenAPISourceFile.ts index d05e054f..bcd4f4a5 100644 --- a/cli/src/core/getOpenAPISourceFile.ts +++ b/cli/src/core/getOpenAPISourceFile.ts @@ -109,7 +109,7 @@ export const getOpenAPISourceFile = async ( * * @param extension */ -export const getFormat = (extension: string) => { +const getFormat = (extension: string) => { if (extension.startsWith(".")) { extension = extension.slice(1); } diff --git a/cli/src/types/index.ts b/cli/src/types/index.ts index 2e6c5728..e968baae 100644 --- a/cli/src/types/index.ts +++ b/cli/src/types/index.ts @@ -68,7 +68,7 @@ export type GithubOptions = { export type FromOptions = FileOptions | UrlOptions | GithubOptions; -export type Context = { +type Context = { openAPIDocument: OpenAPIObject; outputDir: string; writeFile: (file: string, data: string) => Promise; diff --git a/cli/vite.config.ts b/cli/vite.config.ts new file mode 100644 index 00000000..50023e53 --- /dev/null +++ b/cli/vite.config.ts @@ -0,0 +1,15 @@ +import { defineConfig } from "vite-plus"; + +export default defineConfig({ + pack: [ + { + entry: ["src/index.ts"], + dts: true, + format: ["esm", "cjs"], + sourcemap: true, + }, + { + entry: ["src/cli.ts"], + }, + ], +}); diff --git a/knip.json b/knip.json new file mode 100644 index 00000000..ef5186f1 --- /dev/null +++ b/knip.json @@ -0,0 +1,15 @@ +{ + "$schema": "https://unpkg.com/knip@6/schema.json", + "tags": ["-lintignore"], + "workspaces": { + "cli": { + "entry": "src/{index,cli}.ts", + "project": ["src/**/*.{js,ts,ts}"], + "ignoreFiles": ["src/fixtures/*"] + }, + "plugins/*": { + "entry": ["src/index.ts"], + "project": ["src/**/*.{js,ts,ts}"] + } + } +} diff --git a/package.json b/package.json index b6e58ee2..3a4dfb59 100644 --- a/package.json +++ b/package.json @@ -11,21 +11,22 @@ "check": "pnpm /^check:.*/", "check:types": "tsc --noEmit", "check:lint": "vp lint .", - "check:prettier": "vp fmt --check .", + "check:fmt": "vp fmt --check .", + "check:knip": "knip --workspace cli --workspace plugins/*", "fix": "pnpm /^fix:.*/", "fix:lint": "vp lint --fix .", - "fix:prettier": "vp fmt .", + "fix:fmt": "vp fmt .", "build": "pnpm /^build:.*/", "build:plugin:ts": "pnpm --filter=@openapi-codegen/typescript build", "build:cli": "pnpm --filter=@openapi-codegen/cli build", "all-contrib": "all-contributors", - "prepare": "vp config" + "prepare": "vp config", + "knip": "knip" }, "devDependencies": { "@types/node": "^26.6.5", "all-contributors-cli": "^6.26.1", - "got": "^16.0.0", - "pretty-quick": "^4.2.2", + "knip": "^6.43.0", "typescript": "~6.0.2", "vite": "catalog:", "vite-plus": "catalog:" diff --git a/plugins/typescript/package.json b/plugins/typescript/package.json index d388f7aa..040f2dd8 100644 --- a/plugins/typescript/package.json +++ b/plugins/typescript/package.json @@ -2,44 +2,42 @@ "name": "@openapi-codegen/typescript", "version": "11.3.0", "description": "OpenAPI Codegen typescript generators", - "main": "lib/index.js", - "types": "lib/index.d.ts", + "keywords": [ + "codegen", + "openapi", + "plugin", + "typescript" + ], + "license": "MIT", + "author": "Fabien Bernard", "repository": { "url": "https://github.com/fabien0102/openapi-codegen", "directory": "plugins/typescript" }, + "files": [ + "lib", + "README.md" + ], + "main": "dist/index.mjs", + "types": "dist/index.d.mts", "publishConfig": { "access": "public" }, "scripts": { - "build": "pnpm --workspace-root tsc -p plugins/typescript/tsconfig.package.json", + "build": "vp pack src/index.ts", "prepublishOnly": "pnpm build" }, - "files": [ - "lib", - "README.md" - ], - "keywords": [ - "openapi", - "codegen", - "plugin", - "typescript" - ], - "author": "Fabien Bernard", - "license": "MIT", "dependencies": { "case": "^1.6.3", "lodash": "^4.18.1", "openapi3-ts": "^4.6.1", "pluralize": "^8.0.0", - "tslib": "^2.8.1", "tsutils": "^3.21.0", "typescript": "~6.0.2" }, "devDependencies": { "@types/lodash": "^4.17.25", "@types/pluralize": "^0.0.33", - "@types/qs": "^6.15.1", "oxfmt": "^0.75.0" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4431f7bd..a85bf3a7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -181,21 +181,18 @@ importers: all-contributors-cli: specifier: ^6.26.1 version: 6.26.1(encoding@0.1.13) - got: - specifier: ^16.0.0 - version: 16.1.0 - pretty-quick: - specifier: ^4.2.2 - version: 4.2.2(prettier@3.9.10) + knip: + specifier: ^6.43.0 + version: 6.43.0 typescript: specifier: ~6.0.2 version: 6.0.3 vite: specifier: npm:@voidzero-dev/vite-plus-core@0.2.4 - version: '@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)' + version: '@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1)' vite-plus: specifier: 'catalog:' - version: 0.2.4(@types/node@26.6.5)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1) + version: 0.2.4(@types/node@26.6.5)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1))(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1) cli: dependencies: @@ -231,16 +228,13 @@ importers: version: 4.6.1 oxfmt: specifier: ^0.75.0 - version: 0.75.0(vite-plus@0.2.4(@types/node@26.6.5)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)) + version: 0.75.0(vite-plus@0.2.4(@types/node@26.6.5)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1))(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1)) slash: specifier: ^5.1.0 version: 5.1.0 swagger2openapi: specifier: ^7.0.8 version: 7.0.8(encoding@0.1.13) - tslib: - specifier: ^2.8.1 - version: 2.8.1 typanion: specifier: ^3.14.0 version: 3.14.0 @@ -248,24 +242,12 @@ importers: specifier: ~6.0.2 version: 6.0.3 devDependencies: - '@swc-node/register': - specifier: ^1.12.1 - version: 1.12.1(@swc/core@1.16.13)(@swc/types@0.1.28)(supports-color@7.2.0)(typescript@6.0.3) '@types/fs-extra': specifier: ^11.0.4 version: 11.0.4 - '@types/js-yaml': - specifier: ^4.0.9 - version: 4.0.9 nock: specifier: ^15.0.1 version: 15.0.1(supports-color@7.2.0) - react: - specifier: ^19.3.0 - version: 19.3.0 - tsup: - specifier: ^8.5.1 - version: 8.5.1(@swc/core@1.16.13)(jiti@2.4.2)(postcss@8.5.29)(supports-color@7.2.0)(typescript@6.0.3)(yaml@2.9.1) examples/frontend: dependencies: @@ -293,16 +275,16 @@ importers: version: 19.3.0(@types/react@19.3.0) '@vitejs/plugin-react': specifier: 6.1.2 - version: 6.1.2(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)) + version: 6.1.2(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1)) typescript: specifier: ~6.0.2 version: 6.0.3 vite: specifier: npm:@voidzero-dev/vite-plus-core@0.2.4 - version: '@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)' + version: '@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1)' vite-plus: specifier: 'catalog:' - version: 0.2.4(@types/node@26.6.5)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1) + version: 0.2.4(@types/node@26.6.5)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1))(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1) plugins/typescript: dependencies: @@ -318,9 +300,6 @@ importers: pluralize: specifier: ^8.0.0 version: 8.0.0 - tslib: - specifier: ^2.8.1 - version: 2.8.1 tsutils: specifier: ^3.21.0 version: 3.21.0(typescript@6.0.3) @@ -334,12 +313,9 @@ importers: '@types/pluralize': specifier: ^0.0.33 version: 0.0.33 - '@types/qs': - specifier: ^6.15.1 - version: 6.15.1 oxfmt: specifier: ^0.75.0 - version: 0.75.0(vite-plus@0.2.4(@types/node@26.6.5)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)) + version: 0.75.0(vite-plus@0.2.4(@types/node@26.6.5)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1))(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1)) packages: @@ -534,28 +510,9 @@ packages: '@exodus/schemasafe@1.3.0': resolution: {integrity: sha512-5Aap/GaRupgNx/feGBwLLTVv8OQFfv3pq2lPRzPg9R+IOBnDgghTGW7l7EuVXOvg5cc/xSAlRW8rBrjIC3Nvqw==} - '@isaacs/cliui@8.0.2': - resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} - engines: {node: '>=12'} - - '@jridgewell/gen-mapping@0.3.8': - resolution: {integrity: sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==} - engines: {node: '>=6.0.0'} - - '@jridgewell/resolve-uri@3.1.2': - resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} - engines: {node: '>=6.0.0'} - - '@jridgewell/set-array@1.2.1': - resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==} - engines: {node: '>=6.0.0'} - '@jridgewell/sourcemap-codec@1.6.0': resolution: {integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==} - '@jridgewell/trace-mapping@0.3.31': - resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==} - '@keyv/serialize@1.1.1': resolution: {integrity: sha512-dXn3FZhPv0US+7dtJsIi2R+c7qWYiReoEh5zUntWCf4oSpMNib8FDhSoed6m3QyZdx5hK7iLFkYk3rNxwt8vTA==} @@ -563,13 +520,6 @@ packages: resolution: {integrity: sha512-IYHevRStF4ijM20GI9c9Ndhw483NSAjCydQhUr4/zIB0BNLsTVw3vFAxTo6TlvX4QnV60wEHttUa9539TTAq+A==} engines: {node: '>=22'} - '@napi-rs/lzma-linux-x64-gnu@1.5.1': - resolution: {integrity: sha512-oTXEIha4SsuXdTA4Iyskj0kpdx2yVXdhd75c2v3xGrHFfVMsbhTPZU/nMPL4sWKo4pBHm3aucLaqGlF696dTyQ==} - engines: {node: ^22.20 || ^24.12 || >=25} - cpu: [x64] - os: [linux] - libc: [glibc] - '@napi-rs/wasm-runtime@1.2.5': resolution: {integrity: sha512-HshSvXzmBxNzqejd3k/KemgQ3hdREUYFRRrgxOZ+gPljDIsO2SDZrVZMd4Z/HsxudQbE62OVyVFE8z9BCurfjA==} engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} @@ -577,113 +527,149 @@ packages: '@emnapi/core': ^1.7.1 || ^2.0.0-alpha.4 '@emnapi/runtime': ^1.7.1 || ^2.0.0-alpha.4 - '@node-rs/xxhash-android-arm-eabi@1.7.8': - resolution: {integrity: sha512-dOwbmnDzULc5uRgbIvcrxDa7vGdk51GQVREcY98DdxTBd0lomRg/gqAR9ny/S533cD5QTRSvrK+q8KEJMqoG4w==} - engines: {node: '>= 12'} + '@octokit/endpoint@11.0.5': + resolution: {integrity: sha512-iXa654H3yFafF/ieHkukfbgWo2rmXD2ceD0ZOtrPhw1bc3FDch1d9N/TNs0FQ1/cIbwb7kspUX8jzIs8nzb9DQ==} + engines: {node: '>= 20'} + + '@octokit/openapi-types@29.0.1': + resolution: {integrity: sha512-9qWOMFNxxLokERcms42rU0PTLqQmVs7g5E41TI4mCOxmpFayD1rfC7XxOL55cG9MBZLFlC31BrR37myMKardwg==} + + '@octokit/request-error@7.1.2': + resolution: {integrity: sha512-XZRuT3xZ84D3gYErI1DZvhJ33dCWVV6uzBtWkaBB4TvA/L6eOeTZodxLFVB44bBEEo3vEx7y00UfX1tBLrtLRg==} + engines: {node: '>= 20'} + + '@octokit/request@10.0.16': + resolution: {integrity: sha512-A0zWGjHzISIb+9ccG8s0dq7LKO5zVpJLRICjgUb+sJxEWqn8RUHB1rD3AE51+PECvXHIxqZ1VVvs4fHTSD9nUQ==} + engines: {node: '>= 20'} + + '@octokit/types@18.0.0': + resolution: {integrity: sha512-l6bAF43PNxkJp6g+W4PjoUSSkxHomXw2nOum5CTftJz1NlV3vu93NImgOYtLf6CbBUb5j+fiuzW0PPQ5JTSvZA==} + + '@open-draft/until@3.0.1': + resolution: {integrity: sha512-s7/9ELP4aP9YZtW7RJaa0Xf3RISaRH9+EFN18FtykJYRHGNrl8f9ymvoNXzjhrjmftFvkQudtuDU9RYhk0xs3A==} + + '@oxc-parser/binding-android-arm-eabi@0.155.0': + resolution: {integrity: sha512-A6xv7hDtnTm+xlZ7utn6rRQpRMJHRhVr3gjRGqlx0RUX84mNk0pAsy6YN/wWhuOTkaZhRrrzaLxf0NfbH77j2w==} + engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [android] - '@node-rs/xxhash-android-arm64@1.7.8': - resolution: {integrity: sha512-djHN4MBgYkD0uPIGM+IyWrO5aT4vEdsO5bzNxV2+NVl7r1Hdk3PB7GIv0BOKV1C+fkBGXHYJ5xezlOEY1LFDzA==} - engines: {node: '>= 12'} + '@oxc-parser/binding-android-arm64@0.155.0': + resolution: {integrity: sha512-T1wWwH9/JI5g7Z4kEQwDOwhToxdDhRyOTklH+uuNpJ16m3MZFmGl+l2rKc0NHQdbVRG2LTOBsNjpW3h1BWytPA==} + engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [android] - '@node-rs/xxhash-darwin-arm64@1.7.8': - resolution: {integrity: sha512-cwhxfUesdIPesdN23VSwh7Ypx9Kx4gvVmH3v6UINADcavnBeizdWRXXefRzdckDphUM2y8WGLko9WMM/86KHYQ==} - engines: {node: '>= 12'} + '@oxc-parser/binding-darwin-arm64@0.155.0': + resolution: {integrity: sha512-ZoRB3qJxJ8DWA41jHja+YeB0lLfjBy4T+Kr15vnN1k65X3zbJt3rPZftEwN4Ju4tmA4K/T9dWWD7Z8ewQLnrVA==} + engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [darwin] - '@node-rs/xxhash-darwin-x64@1.7.8': - resolution: {integrity: sha512-YO1x98WbSnMdkaiJiKojnMxNaNxg2QrnHz7W9U4BTSw/IcvvpXGFNxNaSm0FYtO6lZAlfvQpiDr4XGXFXjJtJw==} - engines: {node: '>= 12'} + '@oxc-parser/binding-darwin-x64@0.155.0': + resolution: {integrity: sha512-vxtL86BtM+IgrpejA86nbTk5j0HKTIMeuaJ1fQciw6p9RfavPtIPjI7gN34owap0yG9txXBaAWpGdxokNwdqIw==} + engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [darwin] - '@node-rs/xxhash-freebsd-x64@1.7.8': - resolution: {integrity: sha512-MDsskeigVvvGNEm7G9avNKyHeoqgzBCaDo6KLYsi0T/nEBih+xybVIjZ57+GPxTnpUbet8SrcmU64DgAQC5Rnw==} - engines: {node: '>= 12'} + '@oxc-parser/binding-freebsd-x64@0.155.0': + resolution: {integrity: sha512-tN6Ru5e0UVnWaIuiH8jEwnvxuxg7FvhWwSd3oe5oDhOD4ObsSr9/N6WfHLjilUWlPPj65ptwrSDH0Y7lzwTzmw==} + engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [freebsd] - '@node-rs/xxhash-linux-arm-gnueabihf@1.7.8': - resolution: {integrity: sha512-ld25nCGEGedwnmn2YgpFbgQNdKnvdQXDeqrwqMuORIbRhtc+QOm1dlcbq+tULN2Vii9G0bcpb6i1lPTEv5ejyQ==} - engines: {node: '>= 12'} + '@oxc-parser/binding-linux-arm-gnueabihf@0.155.0': + resolution: {integrity: sha512-h4ozA5n6L6lwolsz9iwunEhKWnIVbmFRots5QxEix0H6nJ5ICpuDa7PuShuhfpIDFe3+Qvyscioyiv+9g+4Syg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@oxc-parser/binding-linux-arm-musleabihf@0.155.0': + resolution: {integrity: sha512-058/+LardpfuUlsKIvBGk/CYoakEVcMgqYx8GgyUZeOxFWTojYLlCc1Gb60/y21v3esDhHidgiY/Zbq9LpBhaQ==} + engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [linux] - '@node-rs/xxhash-linux-arm64-gnu@1.7.8': - resolution: {integrity: sha512-Z9YH6BQ1Zywk/nl0j9MG3jRBsIYOed6rSZAGTMT4p924wo9nHll39DZ9hd43kksofInkXOv3WMemzDy7zQ6QFw==} - engines: {node: '>= 12'} + '@oxc-parser/binding-linux-arm64-gnu@0.155.0': + resolution: {integrity: sha512-nrOt2Y3xIAzu+lSPzH0864ieO+iCCXgoo9qFlGANE8Xh0cQ+RP8Wstfp+/wXN2YCyb98cAGzX0VruKYw7it/jw==} + engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] libc: [glibc] - '@node-rs/xxhash-linux-arm64-musl@1.7.8': - resolution: {integrity: sha512-L847azl5081s2QEsX8KqQF8sJAYw1W7j7rpBQH4l5IBC2/kITgdXTNVmPM/MrDHXI2OumKCtRVoNTVuEP8zYVg==} - engines: {node: '>= 12'} + '@oxc-parser/binding-linux-arm64-musl@0.155.0': + resolution: {integrity: sha512-KYAayyN5hQbJPtGKtRxlyc8XYmyntOplyXSQzTDrmbz7l/GCrzQbSswvyJFBTH1LGtsZrbXOAfN52i/Kz6kLKg==} + engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] libc: [musl] - '@node-rs/xxhash-linux-x64-gnu@1.7.8': - resolution: {integrity: sha512-tWvNBiFu73/gbZ57uU/3T/3tJ/q+NFAYQj06hsORt6qtllGLz0wJ7azYG/ZlJBfijJA0K7fT+3rThzKJlIdkZg==} - engines: {node: '>= 12'} + '@oxc-parser/binding-linux-ppc64-gnu@0.155.0': + resolution: {integrity: sha512-CSuSY5hfjtsBnHXydOj8jiNfS1qHbdPZuPz1YL1cSgK7VmNYP+QlZIbG0BBYYBgX/vYEgZwbG9mBdW4YairZ5w==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@oxc-parser/binding-linux-riscv64-gnu@0.155.0': + resolution: {integrity: sha512-7KCfOQm+Nz2N8trAXbQkal4TQ5756WVEmhm35y816YHvyFnEfVsICsiV5k0pEszNf/fRm4cm2i6i18SJ6/iCWg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@oxc-parser/binding-linux-riscv64-musl@0.155.0': + resolution: {integrity: sha512-JSlhgoK+/g1TGJI5NuADx2+6syhxnQNLCWLXyO5QLFyetomcr/vIxSdiNlmyAv963YXUzCuwAwRG6npZ5xyJ1A==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [riscv64] + os: [linux] + libc: [musl] + + '@oxc-parser/binding-linux-s390x-gnu@0.155.0': + resolution: {integrity: sha512-WFIX+dPokWp64mi434Md3U3lJaTwNxAphvGjpltoyQjGUsdXavOIRrnp9dOS34Hd75HOAwDxAI+YwWOwqmJbtg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@oxc-parser/binding-linux-x64-gnu@0.155.0': + resolution: {integrity: sha512-g6xSDC/JpbnVOz5uafMGyK3txBVRFMQTx8opv/yHXGxqV3ZMVl3bf7W8XrSnF68dmy3gM4dgReNryuE53+WkeQ==} + engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] libc: [glibc] - '@node-rs/xxhash-linux-x64-musl@1.7.8': - resolution: {integrity: sha512-HW29+JFyWbBHYzD/SfwkD9xxj5k2VH/VqG+Ltn9JH0PlJHvLQtG4IgXxLPboF9e6Kmwb1fjjBJn46GdT8hxA1w==} - engines: {node: '>= 12'} + '@oxc-parser/binding-linux-x64-musl@0.155.0': + resolution: {integrity: sha512-6/4xlxKlZJWrQ0uwDFPc0H9+xLu7068CKhX3vIDW3SbvP/lVgnVuT5v6dyugeWskWpuxqF/WJ4WKwhxjU3pG2w==} + engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] libc: [musl] - '@node-rs/xxhash-win32-arm64-msvc@1.7.8': - resolution: {integrity: sha512-3vf7hmj1LVOfrUXMfRZI67G9h6fNjWg39vmgbD/IQdC/CQ/39aAXvnNmOY0MJNEnVixml668CCiyRccll0ZiyQ==} - engines: {node: '>= 12'} + '@oxc-parser/binding-openharmony-arm64@0.155.0': + resolution: {integrity: sha512-tltklL0J0XjDxIRTBXWOBhvc2mitcmES45pIxhwDWfxRyqz7Vkeu0NekTZEIxGE4f/lXgq3vZcjjffteQOVorg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [openharmony] + + '@oxc-parser/binding-win32-arm64-msvc@0.155.0': + resolution: {integrity: sha512-alAb9TzjatUEsOeoncAziUnfdTDxfyswhalFZ9sC6plUgATIUx2NIZ0+bMn6aJ28AduS1OpG/OAisr/YISn4Ig==} + engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [win32] - '@node-rs/xxhash-win32-ia32-msvc@1.7.8': - resolution: {integrity: sha512-1yqUghB7/Megd3AhDO5KkOi/SiVtK+l0ERunxOTiDLmxvO3Vs4nmb3IW2EmH6mNPB732YYN8I2Y4ZQi3eJRt9Q==} - engines: {node: '>= 12'} + '@oxc-parser/binding-win32-ia32-msvc@0.155.0': + resolution: {integrity: sha512-yc5cbSfcGmRv/KpxDFuyk8adEBaWd/9HilWvBbQ4bFbus1V2PUh2mGB2Cfq9rqZTqLeiMT8x0skV+LKp9hOMgQ==} + engines: {node: ^20.19.0 || >=22.12.0} cpu: [ia32] os: [win32] - '@node-rs/xxhash-win32-x64-msvc@1.7.8': - resolution: {integrity: sha512-gccfpBxTsIAtwx23lvw40j+8moYQWBjc9/1ainrRBSke9HV4Oo8d4xQLgcR1wUXBhwE4mtK/f0T4EAE2oshOkg==} - engines: {node: '>= 12'} + '@oxc-parser/binding-win32-x64-msvc@0.155.0': + resolution: {integrity: sha512-8heq6jGq+rfpTDRDjoQiBHw0maQZf3IXkS99pdHQZPoTL5kyF5qyPS0RidUlSdnWDIqxXb5nux7GBD9cT+imUw==} + engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [win32] - '@node-rs/xxhash@1.7.8': - resolution: {integrity: sha512-sXiVUI18qaCei5Y5qXty7xfEKrk4Vx89qKNZkG2sGWZG/iTThO3Xmnp5IjQpXCy941IksVDcl41HhvWRuhDLyw==} - engines: {node: '>= 12'} - - '@octokit/endpoint@11.0.5': - resolution: {integrity: sha512-iXa654H3yFafF/ieHkukfbgWo2rmXD2ceD0ZOtrPhw1bc3FDch1d9N/TNs0FQ1/cIbwb7kspUX8jzIs8nzb9DQ==} - engines: {node: '>= 20'} - - '@octokit/openapi-types@29.0.1': - resolution: {integrity: sha512-9qWOMFNxxLokERcms42rU0PTLqQmVs7g5E41TI4mCOxmpFayD1rfC7XxOL55cG9MBZLFlC31BrR37myMKardwg==} - - '@octokit/request-error@7.1.2': - resolution: {integrity: sha512-XZRuT3xZ84D3gYErI1DZvhJ33dCWVV6uzBtWkaBB4TvA/L6eOeTZodxLFVB44bBEEo3vEx7y00UfX1tBLrtLRg==} - engines: {node: '>= 20'} - - '@octokit/request@10.0.16': - resolution: {integrity: sha512-A0zWGjHzISIb+9ccG8s0dq7LKO5zVpJLRICjgUb+sJxEWqn8RUHB1rD3AE51+PECvXHIxqZ1VVvs4fHTSD9nUQ==} - engines: {node: '>= 20'} - - '@octokit/types@18.0.0': - resolution: {integrity: sha512-l6bAF43PNxkJp6g+W4PjoUSSkxHomXw2nOum5CTftJz1NlV3vu93NImgOYtLf6CbBUb5j+fiuzW0PPQ5JTSvZA==} - - '@open-draft/until@3.0.1': - resolution: {integrity: sha512-s7/9ELP4aP9YZtW7RJaa0Xf3RISaRH9+EFN18FtykJYRHGNrl8f9ymvoNXzjhrjmftFvkQudtuDU9RYhk0xs3A==} - '@oxc-project/runtime@0.138.0': resolution: {integrity: sha512-yHhoXsN8tYxgdJCdD91PbySNjEEaBX/tH2OQRDXJpsQv5b184oC4/qVbU7qlblvfil/JP15Lh2HW7+HN5DS90Q==} engines: {node: ^20.19.0 || >=22.12.0} @@ -691,6 +677,9 @@ packages: '@oxc-project/types@0.138.0': resolution: {integrity: sha512-1a7ZKmrRTCoN1XMZ4L0PyyqrMnrNlLyPuOkdSX2MZg7IiIGRUyurNhAm73ptDOraoBcIordsIGKNPKUzy3ZmfA==} + '@oxc-project/types@0.155.0': + resolution: {integrity: sha512-SeE8JPwW1xs1tHeNycjUtUBdhorRa8o4jlvjwk49R7/Z291i+4DQa7JJIgOm/TaYQZx+QrPQbVJ/9c8dMIZN8Q==} + '@oxc-resolver/binding-android-arm-eabi@11.24.2': resolution: {integrity: sha512-y09e0L0SRI2OA2tUIrjBgoV3eH5hvUKXNkJqXmNo5V2WxIjyC7I7aJfRLMEVpA8yi95f90gFDvO0VMgrDw+vwA==} cpu: [arm] @@ -1194,158 +1183,12 @@ packages: resolution: {integrity: sha512-titLmukUt/h8ho7Svlf0xSBjoy2ccZKrXjpXpZCj+v6V4CJccC2KyP45BLSCMx8YIpifMyiDyUptM4+5sruKbQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - '@pkgjs/parseargs@0.11.0': - resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} - engines: {node: '>=14'} - - '@pkgr/core@0.2.10': - resolution: {integrity: sha512-x6fFWCeak8aCGfqZfe6CXYt5xVjxe9Os1cIPmVRcToInKLjhJkRVXvJ/L3/1KxFkjDQdbZV/YsuLKqa8t/xKpA==} - engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} - '@polka/url@1.0.0-next.29': resolution: {integrity: sha512-wwQAWhWSuHaag8c4q/KN/vCoeOJYshAIvMQwD4GpSb3OiZklFfvAgmj0VCBBImRpuF/aFgIRzllXlVX93Jevww==} '@rolldown/pluginutils@1.0.1': resolution: {integrity: sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==} - '@rollup/rollup-android-arm-eabi@4.64.0': - resolution: {integrity: sha512-FLLpX941CD/7aBvX3GqLGBM9OvY5PGXTryPJkG5r5/OuBpZpV5k45Uo3RxAvqd35tsyc3hH1bhtz921IKzoIzg==} - cpu: [arm] - os: [android] - - '@rollup/rollup-android-arm64@4.64.0': - resolution: {integrity: sha512-iI32XM/jnDYJsvx5ai/za/7gWO9XoSeFFtU06/ZCaRgyilfJOjaopD3nOpk2WrTCGOyeDt4hleUiGOAnd5tHNg==} - cpu: [arm64] - os: [android] - - '@rollup/rollup-darwin-arm64@4.64.0': - resolution: {integrity: sha512-dRBZlbt2sEtF8Mn4MODThze9fIPdDoOhVSlXMAKy5dQbOYK9pOOoPY4Fat3OTtr0+8zbJo5TTZwlsfxY/kDNJg==} - cpu: [arm64] - os: [darwin] - - '@rollup/rollup-darwin-x64@4.64.0': - resolution: {integrity: sha512-Y3whrJOMucfkhgNkvcM93M6j8C53iEAMmPMYD99C6G1kUy4ELigLWk9ar2/4aCBSRgsql0zdlOemLgW2m5GZgQ==} - cpu: [x64] - os: [darwin] - - '@rollup/rollup-freebsd-arm64@4.64.0': - resolution: {integrity: sha512-S6S1GEzPjFF6IONYJX3AKt/799+8RgBgCcwRnUo+Ep1IvBxUbw5M51iU0TDdK2NWWVnSvCQ8yi6Em0fGASMOng==} - cpu: [arm64] - os: [freebsd] - - '@rollup/rollup-freebsd-x64@4.64.0': - resolution: {integrity: sha512-Ed1DPoFENkXj4IGzSB12SesV40iP6LxCCrbTIkSGIQBpOOxpBM+0kj62lmaeIHfMWTDoddqTOtqc7s8LYfn+Pw==} - cpu: [x64] - os: [freebsd] - - '@rollup/rollup-linux-arm-gnueabihf@4.64.0': - resolution: {integrity: sha512-J/6xhutJPtFyIkmHdf4olOdHHKH5kOJNumojdWn+Elv5ICEYTVOa362Vw27TxsK0BLzb1le3EDlO3UbvFK1lnQ==} - cpu: [arm] - os: [linux] - libc: [glibc] - - '@rollup/rollup-linux-arm-musleabihf@4.64.0': - resolution: {integrity: sha512-G4L/Nnx59d2LvDoV/P4S5lZ7oVLT6hodOHMacqjiq2LL2gts86KbkEBTYL53+fBt0odhf7XPIbIATGoYiJctxg==} - cpu: [arm] - os: [linux] - libc: [musl] - - '@rollup/rollup-linux-arm64-gnu@4.64.0': - resolution: {integrity: sha512-zF16pvJDEUksGYRbfnXne7pdklAyj2XDmJeYKgP93oq0cUyX9Y8O7lUo1R+IY1GagP/YBvCEDCe7eEcAKpw//g==} - cpu: [arm64] - os: [linux] - libc: [glibc] - - '@rollup/rollup-linux-arm64-musl@4.64.0': - resolution: {integrity: sha512-nIggWn8n+w12+R5lsV+PYYoUY8vuObxPAQqJI7WES+9v0qspYuAHoZMfYM0yLxlipasT5BY9ht5W8t5c/rSCkg==} - cpu: [arm64] - os: [linux] - libc: [musl] - - '@rollup/rollup-linux-loong64-gnu@4.64.0': - resolution: {integrity: sha512-WLOTiHPzszP0dxIMsHpFeDSOSB5I49Mj8K4+yKE3H1X/D0JRG5XZ5jrctJLMjnUc/LUzaKiwq6EHWNJ8pup8PA==} - cpu: [loong64] - os: [linux] - libc: [glibc] - - '@rollup/rollup-linux-loong64-musl@4.64.0': - resolution: {integrity: sha512-35RK9aRhh7g7Pmeu5gQ01aCvrhXzj9LoBE6xtUcEH1ns+nyTaSzxSpADmBQINu4QiTDGvmQYwo1j5hlg1rRXFw==} - cpu: [loong64] - os: [linux] - libc: [musl] - - '@rollup/rollup-linux-ppc64-gnu@4.64.0': - resolution: {integrity: sha512-RqTfnpoTjuWfPAmqK5p2edt2AMCDJWm6oTn7sKfmyx+6tRga0ip05SJ977o6udTcIiDeF/CJMUfkaN4gtWt6Aw==} - cpu: [ppc64] - os: [linux] - libc: [glibc] - - '@rollup/rollup-linux-ppc64-musl@4.64.0': - resolution: {integrity: sha512-RQjZPigjxFvFZDijG6rjlSXxhRaTf9zLYVpGK+lVcga64oMqP1GbgVqCb46eHTTceSIgp89Ja0y5aPe3GFBYHg==} - cpu: [ppc64] - os: [linux] - libc: [musl] - - '@rollup/rollup-linux-riscv64-gnu@4.64.0': - resolution: {integrity: sha512-tjL58mgQcTRnDRpeky+Sth1MKQeYi2Ct6r3Luq9E5aTSjnM/i/JbozqZkKqp9thM5+oDSZxo+05f9kdQedfTGA==} - cpu: [riscv64] - os: [linux] - libc: [glibc] - - '@rollup/rollup-linux-riscv64-musl@4.64.0': - resolution: {integrity: sha512-ictoRyVaoZ8C67myHef+8hhCa6IplXJJ/xUCkVCxziV4zxMZh+jvhkhGsPBLqj1S72fnqD0QH5zL4lcaa4X7DQ==} - cpu: [riscv64] - os: [linux] - libc: [musl] - - '@rollup/rollup-linux-s390x-gnu@4.64.0': - resolution: {integrity: sha512-8aVvZ2hfr9RLFzBQkQNmYeHLDja8fLeQAmLt757zdKN/B+8L809KlLJKctQjS22wZotptV8G6o7fVPuAs8S1tQ==} - cpu: [s390x] - os: [linux] - libc: [glibc] - - '@rollup/rollup-linux-x64-gnu@4.64.0': - resolution: {integrity: sha512-2dEF8GAcDKwshUfydD+GhosppNyBzhVUHkdFF3CXd3FpOkzj/RZzF5aoEtzklujklT5qFVRU2GK/cFeLaTNKVg==} - cpu: [x64] - os: [linux] - libc: [glibc] - - '@rollup/rollup-linux-x64-musl@4.64.0': - resolution: {integrity: sha512-3XHTvoo2hKkh0MiOfS7SkhHjMaaWF7P4F3drocZZaho/Z8w7h/jpnuBHm91BOQLfvrKHs1yR+zir4E8RI3XzTQ==} - cpu: [x64] - os: [linux] - libc: [musl] - - '@rollup/rollup-openbsd-x64@4.64.0': - resolution: {integrity: sha512-HKtkzodL4a3KFWDXDoO61cRynAWTR3LnAE0oGtfG9lcNFpNuVYUFOByxDgNqEvic9rvaQbAj+SFwTEWDptRaIw==} - cpu: [x64] - os: [openbsd] - - '@rollup/rollup-openharmony-arm64@4.64.0': - resolution: {integrity: sha512-JBsxqiY16uyyCujtoC3s7zL+SrYyNElptD7K4V+KUoJ2V8/XG3hPWpheK+SuPwNh1cikJvIZmIdsrYXvD6PLJw==} - cpu: [arm64] - os: [openharmony] - - '@rollup/rollup-win32-arm64-msvc@4.64.0': - resolution: {integrity: sha512-S5Qrijh37qhnUYQ0ay8WN3LuWeKjow7wTUyCOPMZtnXiBXYXdsZETI6ZLfYnQAKovltckPLBFdNeD61P2rJc7g==} - cpu: [arm64] - os: [win32] - - '@rollup/rollup-win32-ia32-msvc@4.64.0': - resolution: {integrity: sha512-zbZ6iMmLFEsCtTdc2/y1F/cDFVNNCPF7Ae8PCT/wdPE//hGwYp6r+MyCLMFX+kOeIe09Pz6ASfnnfpSTN1FJQQ==} - cpu: [ia32] - os: [win32] - - '@rollup/rollup-win32-x64-gnu@4.64.0': - resolution: {integrity: sha512-L6Hw69oNpuYaOr1zCG30v0/DqKYCSRwodPGwIcVZ/6f8SOzq9rxtL/xNVI5MO4wjli+Ko0ErK9uHJL3mNPt8wQ==} - cpu: [x64] - os: [win32] - - '@rollup/rollup-win32-x64-msvc@4.64.0': - resolution: {integrity: sha512-nl+CTWIgOGszQmUz/kanfgrfFZ4qiwxKIfT/ryl3N3Ewk5tqizmYtNXiqb7Bu/fDtNgu1kyxdFiAUJNur3iysg==} - cpu: [x64] - os: [win32] - '@sec-ant/readable-stream@0.4.1': resolution: {integrity: sha512-831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg==} @@ -1356,22 +1199,6 @@ packages: '@standard-schema/spec@1.1.0': resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==} - '@swc-node/core@1.15.0': - resolution: {integrity: sha512-WAerrrl087WgenB92XG4Th2t0NQFfMNLYSe0sW2cEMMqM/LQmP4rozsDJl0vuzTrbewjpKQryxFXI+aYig/dBg==} - engines: {node: '>= 10'} - peerDependencies: - '@swc/core': '>= 1.13.3' - '@swc/types': '>= 0.1' - - '@swc-node/register@1.12.1': - resolution: {integrity: sha512-t6t+0bDos+bj0+jcSqKl7+ys/i1an5cEViC0LuIskJFSHONX871nXN8j+gxdKVOgCCpjs0buXUPNnp/0DaV4EQ==} - peerDependencies: - '@swc/core': '>= 1.4.13' - typescript: '>= 4.3 < 7' - - '@swc-node/sourcemap-support@0.6.1': - resolution: {integrity: sha512-ovltDVH5QpdHXZkW138vG4+dgcNsxfwxHVoV6BtmTbz2KKl1A8ZSlbdtxzzfNjCjbpayda8Us9eMtcHobm38dA==} - '@swc/core-darwin-arm64@1.16.13': resolution: {integrity: sha512-JrMH2h7ohd4mOIneNRx/diqTmCDSdWfp9uOdQ8VJ2V2CA7jOJ1jWb+qp8RoZLqgiVmwDDC7eySKB1kbvZ+jVXQ==} engines: {node: '>=10'} @@ -1507,9 +1334,6 @@ packages: '@types/http-cache-semantics@4.2.0': resolution: {integrity: sha512-L3LgimLHXtGkWikKnsPg0/VFx9OGZaC+eN1u4r+OB1XRqH3meBIAVC2zr1WdMH+RHmnRkqliQAOHNJ/E0j/e0Q==} - '@types/js-yaml@4.0.9': - resolution: {integrity: sha512-k4MGaQl5TGo/iipqb2UDG2UwjXziSWkh0uysQelTlJpX1qGlpUZYm8PnO4DxG1qBomtJUdYJ6qR6xdIah10JLg==} - '@types/jsonfile@6.1.4': resolution: {integrity: sha512-D5qGUYwjvnNNextdU59/+fI+spnwtTFmyQP0h+PfIOSkNfpU6AOICUOkm4i0OnSk+NyjdPJrxCDro0sJsWlRpQ==} @@ -1525,9 +1349,6 @@ packages: '@types/pluralize@0.0.33': resolution: {integrity: sha512-JOqsl+ZoCpP4e8TDke9W79FDcSgPAR0l6pixx2JHkhnRjvShyYiAYw2LVsnA7K08Y6DeOnaU6ujmENO4os/cYg==} - '@types/qs@6.15.1': - resolution: {integrity: sha512-GZHUBZR9hckSUhrxmp1nG6NwdpM9fCunJwyThLW1X3AyHgd9IlHb6VANpQQqDr2o/qQp6McZ3y/IA2rVzKzSbw==} - '@types/react-dom@19.3.0': resolution: {integrity: sha512-ZI7bU42mZXXKHn/qNLEw2IrbiINU7X5+vfgdixBHkCNpYWXjKgfQ/P+uyGb5CjOLB9UcnTeg3rylQtV2hym44Q==} peerDependencies: @@ -1700,11 +1521,6 @@ packages: cpu: [x64] os: [win32] - acorn@8.19.0: - resolution: {integrity: sha512-oJlA3XiRm7Cyk6qFD2Jn8ak9B7jSy0qy00ADO3+8dpT0LSjFihQYv4C02LFCSYJV3Q37xYwwRy5m+IpIiUzqWw==} - engines: {node: '>=0.4.0'} - hasBin: true - all-contributors-cli@6.26.1: resolution: {integrity: sha512-Ymgo3FJACRBEd1eE653FD1J/+uD0kqpUNYfr9zNC1Qby0LgbhDBzB3EF6uvkAbYpycStkk41J+0oo37Lc02yEw==} engines: {node: '>=4'} @@ -1718,10 +1534,6 @@ packages: resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} engines: {node: '>=8'} - ansi-regex@6.1.0: - resolution: {integrity: sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==} - engines: {node: '>=12'} - ansi-styles@4.3.0: resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} engines: {node: '>=8'} @@ -1730,10 +1542,6 @@ packages: resolution: {integrity: sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==} engines: {node: '>=10'} - ansi-styles@6.2.1: - resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==} - engines: {node: '>=12'} - any-promise@1.3.0: resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==} @@ -1750,29 +1558,10 @@ packages: async@3.2.6: resolution: {integrity: sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==} - balanced-match@1.0.2: - resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} - - brace-expansion@2.0.1: - resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==} - - buffer-from@1.1.2: - resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} - - bundle-require@5.1.0: - resolution: {integrity: sha512-3WrrOuZiyaaZPWiEt4G3+IffISVC9HYlWueJEBWED4ZH4aIAC2PnkdnuRrR94M+w6yGWn4AglWtJtBI8YqvgoA==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - peerDependencies: - esbuild: '>=0.18' - byte-counter@0.1.0: resolution: {integrity: sha512-jheRLVMeUKrDBjVw2O5+k4EvR4t9wtxHL+bo/LxfkxsVeuGMy3a5SEGgXdAFA4FSzTrU8rQXQIrsZ3oBq5a0pQ==} engines: {node: '>=20'} - cac@6.7.14: - resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==} - engines: {node: '>=8'} - cacheable-request@13.0.19: resolution: {integrity: sha512-SVXGH037+Mo1aIMO5B2UcleR43FGjFdN+M8JObSyEoQ2Mn4CODRWx28gN5jiTF0n5ItsgtIZfyargMNs8GX4kg==} engines: {node: '>=18'} @@ -1799,10 +1588,6 @@ packages: chardet@0.7.0: resolution: {integrity: sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==} - chokidar@4.0.3: - resolution: {integrity: sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==} - engines: {node: '>= 14.16.0'} - chunk-data@0.1.0: resolution: {integrity: sha512-zFyPtyC0SZ6Zu79b9sOYtXZcgrsXe0RpePrzRyj52hYVFG1+Rk6rBqjjOEk+GNQwc3PIX+86teQMok970pod1g==} engines: {node: '>=20'} @@ -1842,20 +1627,6 @@ packages: color-name@1.1.4: resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} - colorette@2.0.20: - resolution: {integrity: sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==} - - commander@4.1.1: - resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==} - engines: {node: '>= 6'} - - confbox@0.1.8: - resolution: {integrity: sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==} - - consola@3.4.0: - resolution: {integrity: sha512-EiPU8G6dQG0GFHNR8ljnZFki/8a+cQwEQ+7wpxdChl02Q8HXlwEZWD5lqAF8vC2sEC3Tehr8hy7vErz88LHyUA==} - engines: {node: ^14.18.0 || >=16.10.0} - content-type@3.1.1: resolution: {integrity: sha512-GW4qUsfFo59d0HbUibDlWv5wPz+vAAcaTWbKIuKCf0JkC7wWkSyf8f13IpXn5JkeMlB2P8iTSSIjwXljorg2vA==} engines: {node: '>=22'} @@ -1863,10 +1634,6 @@ packages: convert-source-map@2.0.0: resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} - cross-spawn@7.0.6: - resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} - engines: {node: '>= 8'} - csstype@3.2.3: resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==} @@ -1901,15 +1668,9 @@ packages: dom-accessibility-api@0.5.16: resolution: {integrity: sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==} - eastasianwidth@0.2.0: - resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} - emoji-regex@8.0.0: resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} - emoji-regex@9.2.2: - resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==} - encoding@0.1.13: resolution: {integrity: sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==} @@ -1943,9 +1704,6 @@ packages: resolution: {integrity: sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==} engines: {node: '>=4'} - fast-json-stable-stringify@2.1.0: - resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} - fast-safe-stringify@2.1.1: resolution: {integrity: sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==} @@ -1958,6 +1716,9 @@ packages: fast-wrap-ansi@0.2.2: resolution: {integrity: sha512-7F2Fl+TjRSenLqlU3UjSH0iyqopqoZIu7eZVpEirP2g1GtWa2G/ecEmBdgz31+Mxr+ELclgg6sokpSFIQiZ02Q==} + fd-package-json@2.0.0: + resolution: {integrity: sha512-jKmm9YtsNXN789RS/0mSzOC1NUq9mkVd65vbSSVsKdjGvYXBuE4oWe2QOEoFeRmJg+lPuZxpmrfFclNhoRMneQ==} + fdir@6.5.0: resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} engines: {node: '>=12.0.0'} @@ -1975,12 +1736,10 @@ packages: resolution: {integrity: sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==} engines: {node: '>=8'} - fix-dts-default-cjs-exports@1.0.1: - resolution: {integrity: sha512-pVIECanWFC61Hzl2+oOCtoJ3F17kglZC/6N94eRWycFgBH35hHx0Li604ZIzhseh97mf2p0cv7vVrOZGoqhlEg==} - - foreground-child@3.3.0: - resolution: {integrity: sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==} - engines: {node: '>=14'} + formatly@0.11.4: + resolution: {integrity: sha512-TeCC10lP8KCgoX+Fe5lryILIT0/Dy+nP0OSVnsuB5CwXoLuOdqxCYlPFF1inR8S/zTy1ec7TjhS2TeRKWzzImA==} + engines: {node: '>=18.14.0'} + hasBin: true fs-extra@11.4.1: resolution: {integrity: sha512-KYAb4c9BJQI6QqGKthV68OHe0badztdXJWKo0WtBA9IuCFPTKvE5ZdUBglP833aMjhaSPNO4A5j/EkzZtGlKjA==} @@ -1999,10 +1758,8 @@ packages: resolution: {integrity: sha512-kVCxPF3vQM/N0B1PmoqVUqgHP+EeVjmZSQn+1oCRPxd2P21P2F19lIgbR3HBosbB1PUhOAoctJnfEn2GbN2eZA==} engines: {node: '>=18'} - glob@10.4.5: - resolution: {integrity: sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==} - deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me - hasBin: true + get-tsconfig@4.14.3: + resolution: {integrity: sha512-++QEw4DIY7WGoukz+/+A/8dGYPT9l9yIadnmSgZ8Rjr3YVSVDipQSO9CdnJo9ePqFqUUqh+wk9uIaoiAwsiPkA==} got@16.1.0: resolution: {integrity: sha512-LOvohAoc/3O8+Gi3E5RRvamkyXmJq9ewj/cimmqQYn+Me5OKCVHKQI9ygF0O882l573lrpLbKZpsydYRttpDEg==} @@ -2032,10 +1789,6 @@ packages: resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==} engines: {node: '>=0.10.0'} - ignore@7.0.12: - resolution: {integrity: sha512-/8UvqAPU9DGTI9k4mxtf49U37Isfwr8Uts96+SBHIkFxPJnHS0Ew4f00sM4Scd8V8EjM0jUNtVDdv1kPdt35lg==} - engines: {node: '>= 4'} - inquirer@7.3.3: resolution: {integrity: sha512-JG3eIAj5V9CwcGvuOmoo6LB9kbAYT8HXffUl6memuszlwDC/qvFAJw49XJ5NROSFNPxp3iQg1GqkFhaY/CR0IA==} engines: {node: '>=8.0.0'} @@ -2051,20 +1804,10 @@ packages: resolution: {integrity: sha512-Dnz92NInDqYckGEUJv689RbRiTSEHCQ7wOVeALbkOz999YpqT46yMRIGtSNl2iCL1waAZSx40+h59NV/EwzV/A==} engines: {node: '>=18'} - isexe@2.0.0: - resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} - - jackspeak@3.4.3: - resolution: {integrity: sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==} - - jiti@2.4.2: - resolution: {integrity: sha512-rg9zJN+G4n2nfJl5MW3BMygZX56zKPNVEYYqq7adpmMh4Jn2QNEwhvQlFy6jPVdcod7txZtKHWnyZiA3a0zP7A==} + jiti@2.7.0: + resolution: {integrity: sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==} hasBin: true - joycon@3.1.1: - resolution: {integrity: sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==} - engines: {node: '>=10'} - js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} @@ -2085,6 +1828,11 @@ packages: keyv@5.6.0: resolution: {integrity: sha512-CYDD3SOtsHtyXeEORYRx2qBtpDJFjRTGXUtmNEMGyzYOKj1TE3tycdlho7kA1Ufx9OYWZzg52QFBGALTirzDSw==} + knip@6.43.0: + resolution: {integrity: sha512-8l3cCOg/EXoILO0qcSoMra49yQM91+lEIR4fu5Ko8rrArGX8xKdKZiGI9psPiY6rhLmfLERcMfFEByF0wli5CA==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + lightningcss-android-arm64@1.33.0: resolution: {integrity: sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==} engines: {node: '>= 12.0.0'} @@ -2159,17 +1907,6 @@ packages: resolution: {integrity: sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==} engines: {node: '>= 12.0.0'} - lilconfig@3.1.3: - resolution: {integrity: sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==} - engines: {node: '>=14'} - - lines-and-columns@1.2.4: - resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} - - load-tsconfig@0.2.5: - resolution: {integrity: sha512-IXO6OCs9yg8tMKzfPZ1YmheJbZCiEsnBdcB03l0OcfK9prKnJb96siuHCr5Fl37/yo9DnKU+TLpxzTUspw9shg==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - locate-path@5.0.0: resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==} engines: {node: '>=8'} @@ -2185,9 +1922,6 @@ packages: resolution: {integrity: sha512-wI9Nui/L8VfADa/cr/7NQruaASk1k23/Uh1khQ02BCVYiiy8F4AhOGnQzJy3Fl/c44GnYSbZHv8g7EcG3kJ1Qg==} engines: {node: '>=20'} - lru-cache@10.4.3: - resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==} - lz-string@1.5.0: resolution: {integrity: sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==} hasBin: true @@ -2203,21 +1937,6 @@ packages: resolution: {integrity: sha512-e5ISH9xMYU0DzrT+jl8q2ze9D6eWBto+I8CNpe+VI+K2J/F/k3PdkdTdz4wvGVH4NTpo+NRYTVIuMQEMMcsLqg==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - minimatch@9.0.5: - resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==} - engines: {node: '>=16 || 14 >=14.17'} - - minipass@7.1.2: - resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==} - engines: {node: '>=16 || 14 >=14.17'} - - mlly@1.8.2: - resolution: {integrity: sha512-d+ObxMQFmbt10sretNDytwt85VrbkhhUA/JBGm1MPaWJ65Cl4wOgLaB1NYvJSZ0Ef03MMEU/0xpPMXUIQ29UfA==} - - mri@1.2.0: - resolution: {integrity: sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==} - engines: {node: '>=4'} - mrmime@2.0.1: resolution: {integrity: sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ==} engines: {node: '>=10'} @@ -2298,6 +2017,10 @@ packages: outvariant@1.4.3: resolution: {integrity: sha512-+Sl2UErvtsoajRDKCE5/dBz4DIvHXQQnAxtQTF04OJxY0+DyZXSo5P5Bb7XYWOh81syohlYL24hbDwxedPUJCA==} + oxc-parser@0.155.0: + resolution: {integrity: sha512-C/ReSf1JUFukK/zvk6jhcNibSssvas5+ktIzK7fbKVd3CedWe59C3QwHEOrEZj/4Rt9+xg0Jeis/Jv1F/KM1mw==} + engines: {node: ^20.19.0 || >=22.12.0} + oxc-resolver@11.24.2: resolution: {integrity: sha512-FY91FiDBj7ls5MsFS9jN3tjz2o0/zsdSsymlakySaBwVJZorHhkWyICLZMKxlu1R9vYo+sd3z1jwb4J8x7bNDw==} @@ -2359,8 +2082,8 @@ packages: resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==} engines: {node: '>=6'} - package-json-from-dist@1.0.1: - resolution: {integrity: sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==} + package-manager-detector@1.9.0: + resolution: {integrity: sha512-zAMfbta9nPA8AKkA4WdmNAT8R8s6Dk0/xwPsqNnRidMFcLo1YkLuPDTgs2f64XdzS8vbLNnoJ+uUIkgbz7oRHA==} parse5-htmlparser2-tree-adapter@6.0.1: resolution: {integrity: sha512-qPuWvbLgvDGilKc5BoicRovlT4MtYT6JfJyBOMDsKoiT+GiuP5qyrPCnR9HcPECIJJmZh5jRndyNThnhhb/vlA==} @@ -2375,14 +2098,6 @@ packages: resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} engines: {node: '>=8'} - path-key@3.1.1: - resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} - engines: {node: '>=8'} - - path-scurry@1.11.1: - resolution: {integrity: sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==} - engines: {node: '>=16 || 14 >=14.18'} - pathe@2.0.3: resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} @@ -2402,13 +2117,6 @@ packages: resolution: {integrity: sha512-eW/gHNMlxdSP6dmG6uJip6FXN0EQBwm2clYYd8Wul42Cwu/DK8HEftzsapcNdYe2MfLiIwZqsDk2RDEsTE79hA==} engines: {node: '>=10'} - pirates@4.0.7: - resolution: {integrity: sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==} - engines: {node: '>= 6'} - - pkg-types@1.3.1: - resolution: {integrity: sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==} - pluralize@8.0.0: resolution: {integrity: sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==} engines: {node: '>=4'} @@ -2417,24 +2125,6 @@ packages: resolution: {integrity: sha512-LKWqWJRhstyYo9pGvgor/ivk2w94eSjE3RGVuzLGlr3NmD8bf7RcYGze1mNdEHRP6TRP6rMuDHk5t44hnTRyow==} engines: {node: '>=14.19.0'} - postcss-load-config@6.0.1: - resolution: {integrity: sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==} - engines: {node: '>= 18'} - peerDependencies: - jiti: '>=1.21.0' - postcss: '>=8.0.9' - tsx: ^4.8.1 - yaml: ^2.4.2 - peerDependenciesMeta: - jiti: - optional: true - postcss: - optional: true - tsx: - optional: true - yaml: - optional: true - postcss@8.5.29: resolution: {integrity: sha512-49cGhUbXj8Qenv0iTMxA1cFBzxXoctpC9Ujd77t1WcbJIr6nF/eI7g/8MgxrYldFRuAXvja7xQRwavoW7kgrxQ==} engines: {node: ^10 || ^12 || >=14} @@ -2444,22 +2134,10 @@ packages: engines: {node: '>=10.13.0'} hasBin: true - prettier@3.9.10: - resolution: {integrity: sha512-skGHTH1Yb9QvaTC4hWnRTzEYtCpApF0UMBPz+t/0ZPzP8ihefo/btKd+QA7pUE0fEwA1SbS/NmhyEcstdXOIdA==} - engines: {node: '>=14'} - hasBin: true - pretty-format@27.5.1: resolution: {integrity: sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==} engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - pretty-quick@4.2.2: - resolution: {integrity: sha512-uAh96tBW1SsD34VhhDmWuEmqbpfYc/B3j++5MC/6b3Cb8Ow7NJsvKFhg0eoGu2xXX+o9RkahkTK6sUdd8E7g5w==} - engines: {node: '>=14'} - hasBin: true - peerDependencies: - prettier: ^3.0.0 - react-dom@19.3.0: resolution: {integrity: sha512-JDk8dgif51OjFoDE70+OT9ICyYr+69HlmihNwp1+Nsfbna3t5sIiCa9ZJktDmQ4/1b/rn26hIAR2uYXDMr5r0Q==} peerDependencies: @@ -2472,10 +2150,6 @@ packages: resolution: {integrity: sha512-E8LUcbtBWt20bbl2YoHfx4ZDBdxVTfOKtCZn9cDSJ4l6/nuoApcpIBcj47t2wZoVX8g2ZHuMHbiShgCR1T5Sog==} engines: {node: '>=0.10.0'} - readdirp@4.1.1: - resolution: {integrity: sha512-h80JrZu/MHUZCyHu5ciuoI0+WxsCxzxJTILn6Fs8rxSnFPh+UVHYfeIxK1nVGugMqkfC4vJcBOYbkfkwYK0+gw==} - engines: {node: '>= 14.18.0'} - reftools@1.1.9: resolution: {integrity: sha512-OVede/NQE13xBQ+ob5CKd5KyeJYU2YInb1bmV4nRoOfquZPkAkxuOXicSe1PvqIuZZ4kD13sPKBbR7UFDmli6w==} @@ -2489,9 +2163,8 @@ packages: require-main-filename@2.0.0: resolution: {integrity: sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==} - resolve-from@5.0.0: - resolution: {integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==} - engines: {node: '>=8'} + resolve-pkg-maps@1.0.0: + resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==} responselike@4.0.2: resolution: {integrity: sha512-cGk8IbWEAnaCpdAt1BHzJ3Ahz5ewDJa0KseTsE3qIRMJ3C698W8psM7byCeWVpd/Ha7FUYzuRVzXoKoM6nRUbA==} @@ -2504,11 +2177,6 @@ packages: rettime@0.11.12: resolution: {integrity: sha512-5ExtR1ppiDBQkVoPw5NAqdbfH4Iq2VOmQKHMtUoaFxA9bo2krzFYBtyq6K40xxbYp+2w/YOr6D+1ToF6tTN53A==} - rollup@4.64.0: - resolution: {integrity: sha512-gjA/kFeDfffII8COoPsvLPvE16hWDTEc1+0QKQNKUkuV8iJjqsC4xXs8/FzuL0v9EV39kuxTbAgcFoTRyy2TGQ==} - engines: {node: '>=18.0.0', npm: '>=8.0.0'} - hasBin: true - run-async@2.4.1: resolution: {integrity: sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==} engines: {node: '>=0.12.0'} @@ -2526,14 +2194,6 @@ packages: set-blocking@2.0.0: resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==} - shebang-command@2.0.0: - resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} - engines: {node: '>=8'} - - shebang-regex@3.0.0: - resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} - engines: {node: '>=8'} - should-equal@2.0.0: resolution: {integrity: sha512-ZP36TMrK9euEuWQYBig9W55WPC7uo37qzAEmbjHz4gfyuXrEUgF8cUvQVO+w+d3OMfPvSRQJ22lSm8MQJ43LTA==} @@ -2558,10 +2218,6 @@ packages: signal-exit@3.0.7: resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==} - signal-exit@4.1.0: - resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} - engines: {node: '>=14'} - sirv@3.0.2: resolution: {integrity: sha512-2wcC/oGxHis/BoHkkPwldgiPSYcpZK3JU28WoMVv55yHJgcZ8rlXvuG9iZggz+sU1d4bRgIGASwyWqjxu3FM0g==} engines: {node: '>=18'} @@ -2573,21 +2229,14 @@ packages: resolution: {integrity: sha512-ZA6oR3T/pEyuqwMgAKT0/hAv8oAXckzbkmR0UkUosQ+Mc4RxGoJkRmwHgHufaenlyAgE1Mxgpdcrf75y6XcnDg==} engines: {node: '>=14.16'} + smol-toml@1.9.1: + resolution: {integrity: sha512-j7WyPdf0CJoutMzMoPLF/bVXHtKZIT9Rb4eGeEbWw8X2t5oirjPgpL+OpaENZrILYaXqYwnVH+qgUwVbl+pUJQ==} + engines: {node: '>= 18'} + source-map-js@1.2.2: resolution: {integrity: sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==} engines: {node: '>=0.10.0'} - source-map-support@0.5.21: - resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==} - - source-map@0.6.1: - resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} - engines: {node: '>=0.10.0'} - - source-map@0.7.6: - resolution: {integrity: sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ==} - engines: {node: '>= 12'} - stackback@0.0.2: resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} @@ -2598,22 +2247,13 @@ packages: resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} engines: {node: '>=8'} - string-width@5.1.2: - resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==} - engines: {node: '>=12'} - strip-ansi@6.0.1: resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} engines: {node: '>=8'} - strip-ansi@7.1.0: - resolution: {integrity: sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==} - engines: {node: '>=12'} - - sucrase@3.35.0: - resolution: {integrity: sha512-8EbVDiu9iN/nESwxeSxDKe0dunta1GOlHufmSSXxMD2z2/tMZpDMpvXQGsc+ajGo8y2uYUmixaSRUc/QPoQ0GA==} - engines: {node: '>=16 || 14 >=14.17'} - hasBin: true + strip-json-comments@5.0.3: + resolution: {integrity: sha512-1tB5mhVo7U+ETBKNf92xT4hrQa3pm0MZ0PQvuDnWgAAGHDsfp4lPSpiS6psrSiet87wyGPh9ft6wmhOMQ0hDiw==} + engines: {node: '>=14.16'} supports-color@7.2.0: resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} @@ -2640,9 +2280,6 @@ packages: tinybench@2.9.0: resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} - tinyexec@0.3.2: - resolution: {integrity: sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==} - tinyexec@1.3.1: resolution: {integrity: sha512-GCvB3aoys96IuDFBMcTB46JOR6mdMtAToqwiW8JlWhsoh1mhHi/xn9ss/Dg7N555GiJyEt2qzoG/NHCwM6h1EA==} engines: {node: '>=18'} @@ -2674,38 +2311,12 @@ packages: tr46@0.0.3: resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} - tree-kill@1.2.2: - resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==} - hasBin: true - - ts-interface-checker@0.1.13: - resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==} - tslib@1.14.1: resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==} tslib@2.8.1: resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} - tsup@8.5.1: - resolution: {integrity: sha512-xtgkqwdhpKWr3tKPmCkvYmS9xnQK3m3XgxZHwSUjvfTjp7YfXe5tT3GgWi0F2N+ZSMsOeWeZFh7ZZFg5iPhing==} - engines: {node: '>=18'} - hasBin: true - peerDependencies: - '@microsoft/api-extractor': ^7.36.0 - '@swc/core': ^1 - postcss: ^8.4.12 - typescript: '>=4.5.0' - peerDependenciesMeta: - '@microsoft/api-extractor': - optional: true - '@swc/core': - optional: true - postcss: - optional: true - typescript: - optional: true - tsutils@3.21.0: resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==} engines: {node: '>= 6'} @@ -2728,13 +2339,14 @@ packages: engines: {node: '>=14.17'} hasBin: true - ufo@1.6.4: - resolution: {integrity: sha512-JFNbkD1Svwe0KvGi8GOeLcP4kAWQ609twvCdcHxq1oSL8svv39ZuSvajcD8B+5D0eL4+s1Is2D/O6KN3qcTeRA==} - uint8array-extras@1.6.0: resolution: {integrity: sha512-8iAasVS4wUx0gPLjH8Xtz2PeDzTSiy8QiLGu2DT3X5GU+egFEQhpnbtkehbAwjvDcxIERmCYcysiODFmE3Ud0Q==} engines: {node: '>=18'} + unbash@6.0.1: + resolution: {integrity: sha512-0db9eS5iqybux41zLkX69nk90KTci7F7eZ+gXzEG/Q7E0tAqEBhRh5fkZvk1N7jT7QkGWqq34i8SFGPFEe1V8A==} + engines: {node: '>=14'} + undici-types@8.9.0: resolution: {integrity: sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg==} @@ -2799,6 +2411,10 @@ packages: jsdom: optional: true + walk-up-path@4.0.0: + resolution: {integrity: sha512-3hu+tD8YzSLGuFYtPRb48vdhKMi0KQV5sn+uWr8+7dMEq/2G/dtLrdDinkLjqq5TIbIBjYJ4Ax/n3YiaW7QM8A==} + engines: {node: 20 || >=22} + webidl-conversions@3.0.1: resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==} @@ -2808,11 +2424,6 @@ packages: which-module@2.0.1: resolution: {integrity: sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==} - which@2.0.2: - resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} - engines: {node: '>= 8'} - hasBin: true - why-is-node-running@2.3.0: resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==} engines: {node: '>=8'} @@ -2826,10 +2437,6 @@ packages: resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} engines: {node: '>=10'} - wrap-ansi@8.1.0: - resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==} - engines: {node: '>=12'} - ws@8.22.0: resolution: {integrity: sha512-Ydggc987+RO0AnWtZ/7Wq9FtNvcrL1b/RO0ud9mWjUPgDrsAAwQSF51sm2hm1XofbU/4jkpGEsLFsZZxU+1DOg==} engines: {node: '>=10.0.0'} @@ -2882,6 +2489,9 @@ packages: resolution: {integrity: sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==} engines: {node: '>=12'} + zod@4.6.7: + resolution: {integrity: sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==} + snapshots: '@babel/code-frame@7.29.7': @@ -3006,32 +2616,8 @@ snapshots: '@exodus/schemasafe@1.3.0': {} - '@isaacs/cliui@8.0.2': - dependencies: - string-width: 5.1.2 - string-width-cjs: string-width@4.2.3 - strip-ansi: 7.1.0 - strip-ansi-cjs: strip-ansi@6.0.1 - wrap-ansi: 8.1.0 - wrap-ansi-cjs: wrap-ansi@7.0.0 - - '@jridgewell/gen-mapping@0.3.8': - dependencies: - '@jridgewell/set-array': 1.2.1 - '@jridgewell/sourcemap-codec': 1.6.0 - '@jridgewell/trace-mapping': 0.3.31 - - '@jridgewell/resolve-uri@3.1.2': {} - - '@jridgewell/set-array@1.2.1': {} - '@jridgewell/sourcemap-codec@1.6.0': {} - '@jridgewell/trace-mapping@0.3.31': - dependencies: - '@jridgewell/resolve-uri': 3.1.2 - '@jridgewell/sourcemap-codec': 1.6.0 - '@keyv/serialize@1.1.1': {} '@mswjs/interceptors@0.44.0(supports-color@7.2.0)': @@ -3045,9 +2631,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@napi-rs/lzma-linux-x64-gnu@1.5.1': - optional: true - '@napi-rs/wasm-runtime@1.2.5(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.2)': dependencies: '@emnapi/core': 1.11.2 @@ -3055,91 +2638,95 @@ snapshots: '@tybys/wasm-util': 0.10.4 optional: true - '@node-rs/xxhash-android-arm-eabi@1.7.8': - optional: true + '@octokit/endpoint@11.0.5': + dependencies: + '@octokit/types': 18.0.0 + universal-user-agent: 7.0.2 + + '@octokit/openapi-types@29.0.1': {} + + '@octokit/request-error@7.1.2': + dependencies: + '@octokit/types': 18.0.0 + + '@octokit/request@10.0.16': + dependencies: + '@octokit/endpoint': 11.0.5 + '@octokit/request-error': 7.1.2 + '@octokit/types': 18.0.0 + content-type: 3.1.1 + json-with-bigint: 3.5.12 + universal-user-agent: 7.0.2 + + '@octokit/types@18.0.0': + dependencies: + '@octokit/openapi-types': 29.0.1 - '@node-rs/xxhash-android-arm64@1.7.8': + '@open-draft/until@3.0.1': {} + + '@oxc-parser/binding-android-arm-eabi@0.155.0': optional: true - '@node-rs/xxhash-darwin-arm64@1.7.8': + '@oxc-parser/binding-android-arm64@0.155.0': optional: true - '@node-rs/xxhash-darwin-x64@1.7.8': + '@oxc-parser/binding-darwin-arm64@0.155.0': optional: true - '@node-rs/xxhash-freebsd-x64@1.7.8': + '@oxc-parser/binding-darwin-x64@0.155.0': optional: true - '@node-rs/xxhash-linux-arm-gnueabihf@1.7.8': + '@oxc-parser/binding-freebsd-x64@0.155.0': optional: true - '@node-rs/xxhash-linux-arm64-gnu@1.7.8': + '@oxc-parser/binding-linux-arm-gnueabihf@0.155.0': optional: true - '@node-rs/xxhash-linux-arm64-musl@1.7.8': + '@oxc-parser/binding-linux-arm-musleabihf@0.155.0': optional: true - '@node-rs/xxhash-linux-x64-gnu@1.7.8': + '@oxc-parser/binding-linux-arm64-gnu@0.155.0': optional: true - '@node-rs/xxhash-linux-x64-musl@1.7.8': + '@oxc-parser/binding-linux-arm64-musl@0.155.0': optional: true - '@node-rs/xxhash-win32-arm64-msvc@1.7.8': + '@oxc-parser/binding-linux-ppc64-gnu@0.155.0': optional: true - '@node-rs/xxhash-win32-ia32-msvc@1.7.8': + '@oxc-parser/binding-linux-riscv64-gnu@0.155.0': optional: true - '@node-rs/xxhash-win32-x64-msvc@1.7.8': + '@oxc-parser/binding-linux-riscv64-musl@0.155.0': optional: true - '@node-rs/xxhash@1.7.8': - optionalDependencies: - '@node-rs/xxhash-android-arm-eabi': 1.7.8 - '@node-rs/xxhash-android-arm64': 1.7.8 - '@node-rs/xxhash-darwin-arm64': 1.7.8 - '@node-rs/xxhash-darwin-x64': 1.7.8 - '@node-rs/xxhash-freebsd-x64': 1.7.8 - '@node-rs/xxhash-linux-arm-gnueabihf': 1.7.8 - '@node-rs/xxhash-linux-arm64-gnu': 1.7.8 - '@node-rs/xxhash-linux-arm64-musl': 1.7.8 - '@node-rs/xxhash-linux-x64-gnu': 1.7.8 - '@node-rs/xxhash-linux-x64-musl': 1.7.8 - '@node-rs/xxhash-win32-arm64-msvc': 1.7.8 - '@node-rs/xxhash-win32-ia32-msvc': 1.7.8 - '@node-rs/xxhash-win32-x64-msvc': 1.7.8 + '@oxc-parser/binding-linux-s390x-gnu@0.155.0': + optional: true - '@octokit/endpoint@11.0.5': - dependencies: - '@octokit/types': 18.0.0 - universal-user-agent: 7.0.2 + '@oxc-parser/binding-linux-x64-gnu@0.155.0': + optional: true - '@octokit/openapi-types@29.0.1': {} + '@oxc-parser/binding-linux-x64-musl@0.155.0': + optional: true - '@octokit/request-error@7.1.2': - dependencies: - '@octokit/types': 18.0.0 + '@oxc-parser/binding-openharmony-arm64@0.155.0': + optional: true - '@octokit/request@10.0.16': - dependencies: - '@octokit/endpoint': 11.0.5 - '@octokit/request-error': 7.1.2 - '@octokit/types': 18.0.0 - content-type: 3.1.1 - json-with-bigint: 3.5.12 - universal-user-agent: 7.0.2 + '@oxc-parser/binding-win32-arm64-msvc@0.155.0': + optional: true - '@octokit/types@18.0.0': - dependencies: - '@octokit/openapi-types': 29.0.1 + '@oxc-parser/binding-win32-ia32-msvc@0.155.0': + optional: true - '@open-draft/until@3.0.1': {} + '@oxc-parser/binding-win32-x64-msvc@0.155.0': + optional: true '@oxc-project/runtime@0.138.0': {} '@oxc-project/types@0.138.0': {} + '@oxc-project/types@0.155.0': {} + '@oxc-resolver/binding-android-arm-eabi@11.24.2': optional: true @@ -3392,123 +2979,16 @@ snapshots: '@oxlint/plugins@1.68.0': {} - '@pkgjs/parseargs@0.11.0': - optional: true - - '@pkgr/core@0.2.10': {} - '@polka/url@1.0.0-next.29': {} '@rolldown/pluginutils@1.0.1': {} - '@rollup/rollup-android-arm-eabi@4.64.0': - optional: true - - '@rollup/rollup-android-arm64@4.64.0': - optional: true - - '@rollup/rollup-darwin-arm64@4.64.0': - optional: true - - '@rollup/rollup-darwin-x64@4.64.0': - optional: true - - '@rollup/rollup-freebsd-arm64@4.64.0': - optional: true - - '@rollup/rollup-freebsd-x64@4.64.0': - optional: true - - '@rollup/rollup-linux-arm-gnueabihf@4.64.0': - optional: true - - '@rollup/rollup-linux-arm-musleabihf@4.64.0': - optional: true - - '@rollup/rollup-linux-arm64-gnu@4.64.0': - optional: true - - '@rollup/rollup-linux-arm64-musl@4.64.0': - optional: true - - '@rollup/rollup-linux-loong64-gnu@4.64.0': - optional: true - - '@rollup/rollup-linux-loong64-musl@4.64.0': - optional: true - - '@rollup/rollup-linux-ppc64-gnu@4.64.0': - optional: true - - '@rollup/rollup-linux-ppc64-musl@4.64.0': - optional: true - - '@rollup/rollup-linux-riscv64-gnu@4.64.0': - optional: true - - '@rollup/rollup-linux-riscv64-musl@4.64.0': - optional: true - - '@rollup/rollup-linux-s390x-gnu@4.64.0': - optional: true - - '@rollup/rollup-linux-x64-gnu@4.64.0': - optional: true - - '@rollup/rollup-linux-x64-musl@4.64.0': - optional: true - - '@rollup/rollup-openbsd-x64@4.64.0': - optional: true - - '@rollup/rollup-openharmony-arm64@4.64.0': - optional: true - - '@rollup/rollup-win32-arm64-msvc@4.64.0': - optional: true - - '@rollup/rollup-win32-ia32-msvc@4.64.0': - optional: true - - '@rollup/rollup-win32-x64-gnu@4.64.0': - optional: true - - '@rollup/rollup-win32-x64-msvc@4.64.0': - optional: true - '@sec-ant/readable-stream@0.4.1': {} '@sindresorhus/is@8.1.0': {} '@standard-schema/spec@1.1.0': {} - '@swc-node/core@1.15.0(@swc/core@1.16.13)(@swc/types@0.1.28)': - dependencies: - '@swc/core': 1.16.13 - '@swc/types': 0.1.28 - - '@swc-node/register@1.12.1(@swc/core@1.16.13)(@swc/types@0.1.28)(supports-color@7.2.0)(typescript@6.0.3)': - dependencies: - '@node-rs/xxhash': 1.7.8 - '@swc-node/core': 1.15.0(@swc/core@1.16.13)(@swc/types@0.1.28) - '@swc-node/sourcemap-support': 0.6.1 - '@swc/core': 1.16.13 - colorette: 2.0.20 - debug: 4.4.3(supports-color@7.2.0) - fast-json-stable-stringify: 2.1.0 - oxc-resolver: 11.24.2 - pirates: 4.0.7 - tslib: 2.8.1 - typescript: 6.0.3 - transitivePeerDependencies: - - '@swc/types' - - supports-color - - '@swc-node/sourcemap-support@0.6.1': - dependencies: - source-map-support: 0.5.21 - tslib: 2.8.1 - '@swc/core-darwin-arm64@1.16.13': optional: true @@ -3618,8 +3098,6 @@ snapshots: '@types/http-cache-semantics@4.2.0': {} - '@types/js-yaml@4.0.9': {} - '@types/jsonfile@6.1.4': dependencies: '@types/node': 26.6.5 @@ -3634,8 +3112,6 @@ snapshots: '@types/pluralize@0.0.33': {} - '@types/qs@6.15.1': {} - '@types/react-dom@19.3.0(@types/react@19.3.0)': dependencies: '@types/react': 19.3.0 @@ -3644,33 +3120,33 @@ snapshots: dependencies: csstype: 3.2.3 - '@vitejs/plugin-react@6.1.2(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))': + '@vitejs/plugin-react@6.1.2(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1))': dependencies: '@rolldown/pluginutils': 1.0.1 - vite: '@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)' + vite: '@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1)' - '@vitest/browser-preview@4.1.10(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))(vitest@4.1.10)': + '@vitest/browser-preview@4.1.10(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1))(vitest@4.1.10)': dependencies: '@testing-library/dom': 10.4.2 '@testing-library/user-event': 14.6.8(@testing-library/dom@10.4.2) - '@vitest/browser': 4.1.10(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))(vitest@4.1.10) - vitest: 4.1.10(@types/node@26.6.5)(@vitest/browser-preview@4.1.10)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)) + '@vitest/browser': 4.1.10(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1))(vitest@4.1.10) + vitest: 4.1.10(@types/node@26.6.5)(@vitest/browser-preview@4.1.10)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1)) transitivePeerDependencies: - bufferutil - msw - utf-8-validate - vite - '@vitest/browser@4.1.10(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))(vitest@4.1.10)': + '@vitest/browser@4.1.10(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1))(vitest@4.1.10)': dependencies: '@blazediff/core': 1.9.1 - '@vitest/mocker': 4.1.10(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)) + '@vitest/mocker': 4.1.10(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1)) '@vitest/utils': 4.1.10 magic-string: 0.30.21 pngjs: 7.0.0 sirv: 3.0.2 tinyrainbow: 3.2.0 - vitest: 4.1.10(@types/node@26.6.5)(@vitest/browser-preview@4.1.10)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)) + vitest: 4.1.10(@types/node@26.6.5)(@vitest/browser-preview@4.1.10)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1)) ws: 8.22.0 transitivePeerDependencies: - bufferutil @@ -3687,13 +3163,13 @@ snapshots: chai: 6.3.0 tinyrainbow: 3.2.0 - '@vitest/mocker@4.1.10(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))': + '@vitest/mocker@4.1.10(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1))': dependencies: '@vitest/spy': 4.1.10 estree-walker: 3.0.3 magic-string: 0.30.21 optionalDependencies: - vite: '@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)' + vite: '@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1)' '@vitest/pretty-format@4.1.10': dependencies: @@ -3719,7 +3195,7 @@ snapshots: convert-source-map: 2.0.0 tinyrainbow: 3.2.0 - '@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)': + '@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1)': dependencies: '@oxc-project/runtime': 0.138.0 '@oxc-project/types': 0.138.0 @@ -3729,7 +3205,7 @@ snapshots: '@types/node': 26.6.5 esbuild: 0.27.7 fsevents: 2.3.3 - jiti: 2.4.2 + jiti: 2.7.0 typescript: 6.0.3 yaml: 2.9.1 @@ -3757,8 +3233,6 @@ snapshots: '@voidzero-dev/vite-plus-win32-x64-msvc@0.2.4': optional: true - acorn@8.19.0: {} - all-contributors-cli@6.26.1(encoding@0.1.13): dependencies: '@babel/runtime': 7.26.7 @@ -3782,16 +3256,12 @@ snapshots: ansi-regex@5.0.1: {} - ansi-regex@6.1.0: {} - ansi-styles@4.3.0: dependencies: color-convert: 2.0.1 ansi-styles@5.2.0: {} - ansi-styles@6.2.1: {} - any-promise@1.3.0: {} argparse@2.0.1: {} @@ -3804,23 +3274,8 @@ snapshots: async@3.2.6: {} - balanced-match@1.0.2: {} - - brace-expansion@2.0.1: - dependencies: - balanced-match: 1.0.2 - - buffer-from@1.1.2: {} - - bundle-require@5.1.0(esbuild@0.27.7): - dependencies: - esbuild: 0.27.7 - load-tsconfig: 0.2.5 - byte-counter@0.1.0: {} - cac@6.7.14: {} - cacheable-request@13.0.19: dependencies: '@types/http-cache-semantics': 4.2.0 @@ -3846,10 +3301,6 @@ snapshots: chardet@0.7.0: {} - chokidar@4.0.3: - dependencies: - readdirp: 4.1.1 - chunk-data@0.1.0: {} cli-cursor@3.1.0: @@ -3895,24 +3346,10 @@ snapshots: color-name@1.1.4: {} - colorette@2.0.20: {} - - commander@4.1.1: {} - - confbox@0.1.8: {} - - consola@3.4.0: {} - content-type@3.1.1: {} convert-source-map@2.0.0: {} - cross-spawn@7.0.6: - dependencies: - path-key: 3.1.1 - shebang-command: 2.0.0 - which: 2.0.2 - csstype@3.2.3: {} debug@4.4.3(supports-color@7.2.0): @@ -3935,12 +3372,8 @@ snapshots: dom-accessibility-api@0.5.16: {} - eastasianwidth@0.2.0: {} - emoji-regex@8.0.0: {} - emoji-regex@9.2.2: {} - encoding@0.1.13: dependencies: iconv-lite: 0.6.3 @@ -3978,6 +3411,7 @@ snapshots: '@esbuild/win32-arm64': 0.27.7 '@esbuild/win32-ia32': 0.27.7 '@esbuild/win32-x64': 0.27.7 + optional: true escalade@3.2.0: {} @@ -3995,8 +3429,6 @@ snapshots: iconv-lite: 0.4.24 tmp: 0.0.33 - fast-json-stable-stringify@2.1.0: {} - fast-safe-stringify@2.1.1: {} fast-string-truncated-width@3.0.3: {} @@ -4009,6 +3441,10 @@ snapshots: dependencies: fast-string-width: 3.0.2 + fd-package-json@2.0.0: + dependencies: + walk-up-path: 4.0.0 + fdir@6.5.0(picomatch@4.0.7): optionalDependencies: picomatch: 4.0.7 @@ -4022,16 +3458,10 @@ snapshots: locate-path: 5.0.0 path-exists: 4.0.0 - fix-dts-default-cjs-exports@1.0.1: - dependencies: - magic-string: 0.30.21 - mlly: 1.8.2 - rollup: 4.64.0 - - foreground-child@3.3.0: + formatly@0.11.4: dependencies: - cross-spawn: 7.0.6 - signal-exit: 4.1.0 + fd-package-json: 2.0.0 + package-manager-detector: 1.9.0 fs-extra@11.4.1: dependencies: @@ -4049,14 +3479,9 @@ snapshots: '@sec-ant/readable-stream': 0.4.1 is-stream: 4.0.1 - glob@10.4.5: + get-tsconfig@4.14.3: dependencies: - foreground-child: 3.3.0 - jackspeak: 3.4.3 - minimatch: 9.0.5 - minipass: 7.1.2 - package-json-from-dist: 1.0.1 - path-scurry: 1.11.1 + resolve-pkg-maps: 1.0.0 got@16.1.0: dependencies: @@ -4090,8 +3515,6 @@ snapshots: safer-buffer: 2.1.2 optional: true - ignore@7.0.12: {} - inquirer@7.3.3: dependencies: ansi-escapes: 4.3.2 @@ -4114,18 +3537,7 @@ snapshots: is-stream@4.0.1: {} - isexe@2.0.0: {} - - jackspeak@3.4.3: - dependencies: - '@isaacs/cliui': 8.0.2 - optionalDependencies: - '@pkgjs/parseargs': 0.11.0 - - jiti@2.4.2: - optional: true - - joycon@3.1.1: {} + jiti@2.7.0: {} js-tokens@4.0.0: {} @@ -4151,6 +3563,21 @@ snapshots: dependencies: '@keyv/serialize': 1.1.1 + knip@6.43.0: + dependencies: + formatly: 0.11.4 + get-tsconfig: 4.14.3 + jiti: 2.7.0 + oxc-parser: 0.155.0 + oxc-resolver: 11.24.2 + picomatch: 4.0.7 + smol-toml: 1.9.1 + strip-json-comments: 5.0.3 + tinyglobby: 0.2.17 + unbash: 6.0.1 + yaml: 2.9.1 + zod: 4.6.7 + lightningcss-android-arm64@1.33.0: optional: true @@ -4200,12 +3627,6 @@ snapshots: lightningcss-win32-arm64-msvc: 1.33.0 lightningcss-win32-x64-msvc: 1.33.0 - lilconfig@3.1.3: {} - - lines-and-columns@1.2.4: {} - - load-tsconfig@0.2.5: {} - locate-path@5.0.0: dependencies: p-locate: 4.1.0 @@ -4216,8 +3637,6 @@ snapshots: lowercase-keys@4.0.1: {} - lru-cache@10.4.3: {} - lz-string@1.5.0: {} magic-string@0.30.21: @@ -4228,21 +3647,6 @@ snapshots: mimic-response@4.0.0: {} - minimatch@9.0.5: - dependencies: - brace-expansion: 2.0.1 - - minipass@7.1.2: {} - - mlly@1.8.2: - dependencies: - acorn: 8.19.0 - pathe: 2.0.3 - pkg-types: 1.3.1 - ufo: 1.6.4 - - mri@1.2.0: {} - mrmime@2.0.1: {} ms@2.1.3: {} @@ -4326,6 +3730,30 @@ snapshots: outvariant@1.4.3: {} + oxc-parser@0.155.0: + dependencies: + '@oxc-project/types': 0.155.0 + optionalDependencies: + '@oxc-parser/binding-android-arm-eabi': 0.155.0 + '@oxc-parser/binding-android-arm64': 0.155.0 + '@oxc-parser/binding-darwin-arm64': 0.155.0 + '@oxc-parser/binding-darwin-x64': 0.155.0 + '@oxc-parser/binding-freebsd-x64': 0.155.0 + '@oxc-parser/binding-linux-arm-gnueabihf': 0.155.0 + '@oxc-parser/binding-linux-arm-musleabihf': 0.155.0 + '@oxc-parser/binding-linux-arm64-gnu': 0.155.0 + '@oxc-parser/binding-linux-arm64-musl': 0.155.0 + '@oxc-parser/binding-linux-ppc64-gnu': 0.155.0 + '@oxc-parser/binding-linux-riscv64-gnu': 0.155.0 + '@oxc-parser/binding-linux-riscv64-musl': 0.155.0 + '@oxc-parser/binding-linux-s390x-gnu': 0.155.0 + '@oxc-parser/binding-linux-x64-gnu': 0.155.0 + '@oxc-parser/binding-linux-x64-musl': 0.155.0 + '@oxc-parser/binding-openharmony-arm64': 0.155.0 + '@oxc-parser/binding-win32-arm64-msvc': 0.155.0 + '@oxc-parser/binding-win32-ia32-msvc': 0.155.0 + '@oxc-parser/binding-win32-x64-msvc': 0.155.0 + oxc-resolver@11.24.2: optionalDependencies: '@oxc-resolver/binding-android-arm-eabi': 11.24.2 @@ -4348,7 +3776,7 @@ snapshots: '@oxc-resolver/binding-win32-arm64-msvc': 11.24.2 '@oxc-resolver/binding-win32-x64-msvc': 11.24.2 - oxfmt@0.57.0(vite-plus@0.2.4(@types/node@26.6.5)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)): + oxfmt@0.57.0(vite-plus@0.2.4(@types/node@26.6.5)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1))(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1)): dependencies: tinypool: 2.1.0 optionalDependencies: @@ -4371,9 +3799,9 @@ snapshots: '@oxfmt/binding-win32-arm64-msvc': 0.57.0 '@oxfmt/binding-win32-ia32-msvc': 0.57.0 '@oxfmt/binding-win32-x64-msvc': 0.57.0 - vite-plus: 0.2.4(@types/node@26.6.5)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1) + vite-plus: 0.2.4(@types/node@26.6.5)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1))(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1) - oxfmt@0.75.0(vite-plus@0.2.4(@types/node@26.6.5)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)): + oxfmt@0.75.0(vite-plus@0.2.4(@types/node@26.6.5)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1))(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1)): dependencies: tinypool: 2.2.0 optionalDependencies: @@ -4396,7 +3824,7 @@ snapshots: '@oxfmt/binding-win32-arm64-msvc': 0.75.0 '@oxfmt/binding-win32-ia32-msvc': 0.75.0 '@oxfmt/binding-win32-x64-msvc': 0.75.0 - vite-plus: 0.2.4(@types/node@26.6.5)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1) + vite-plus: 0.2.4(@types/node@26.6.5)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1))(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1) oxlint-tsgolint@0.24.0: optionalDependencies: @@ -4407,7 +3835,7 @@ snapshots: '@oxlint-tsgolint/win32-arm64': 0.24.0 '@oxlint-tsgolint/win32-x64': 0.24.0 - oxlint@1.72.0(oxlint-tsgolint@0.24.0)(vite-plus@0.2.4(@types/node@26.6.5)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)): + oxlint@1.72.0(oxlint-tsgolint@0.24.0)(vite-plus@0.2.4(@types/node@26.6.5)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1))(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1)): optionalDependencies: '@oxlint/binding-android-arm-eabi': 1.72.0 '@oxlint/binding-android-arm64': 1.72.0 @@ -4429,7 +3857,7 @@ snapshots: '@oxlint/binding-win32-ia32-msvc': 1.72.0 '@oxlint/binding-win32-x64-msvc': 1.72.0 oxlint-tsgolint: 0.24.0 - vite-plus: 0.2.4(@types/node@26.6.5)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1) + vite-plus: 0.2.4(@types/node@26.6.5)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1))(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1) p-limit@2.3.0: dependencies: @@ -4441,7 +3869,7 @@ snapshots: p-try@2.2.0: {} - package-json-from-dist@1.0.1: {} + package-manager-detector@1.9.0: {} parse5-htmlparser2-tree-adapter@6.0.1: dependencies: @@ -4453,13 +3881,6 @@ snapshots: path-exists@4.0.0: {} - path-key@3.1.1: {} - - path-scurry@1.11.1: - dependencies: - lru-cache: 10.4.3 - minipass: 7.1.2 - pathe@2.0.3: {} pegjs@0.10.0: {} @@ -4470,26 +3891,10 @@ snapshots: pify@5.0.0: {} - pirates@4.0.7: {} - - pkg-types@1.3.1: - dependencies: - confbox: 0.1.8 - mlly: 1.8.2 - pathe: 2.0.3 - pluralize@8.0.0: {} pngjs@7.0.0: {} - postcss-load-config@6.0.1(jiti@2.4.2)(postcss@8.5.29)(yaml@2.9.1): - dependencies: - lilconfig: 3.1.3 - optionalDependencies: - jiti: 2.4.2 - postcss: 8.5.29 - yaml: 2.9.1 - postcss@8.5.29: dependencies: nanoid: 3.3.20 @@ -4499,25 +3904,12 @@ snapshots: prettier@2.8.8: optional: true - prettier@3.9.10: {} - pretty-format@27.5.1: dependencies: ansi-regex: 5.0.1 ansi-styles: 5.2.0 react-is: 17.0.2 - pretty-quick@4.2.2(prettier@3.9.10): - dependencies: - '@pkgr/core': 0.2.10 - ignore: 7.0.12 - mri: 1.2.0 - picocolors: 1.1.1 - picomatch: 4.0.7 - prettier: 3.9.10 - tinyexec: 0.3.2 - tslib: 2.8.1 - react-dom@19.3.0(react@19.3.0): dependencies: react: 19.3.0 @@ -4527,8 +3919,6 @@ snapshots: react@19.3.0: {} - readdirp@4.1.1: {} - reftools@1.1.9: {} regenerator-runtime@0.14.1: {} @@ -4537,7 +3927,7 @@ snapshots: require-main-filename@2.0.0: {} - resolve-from@5.0.0: {} + resolve-pkg-maps@1.0.0: {} responselike@4.0.2: dependencies: @@ -4550,38 +3940,6 @@ snapshots: rettime@0.11.12: {} - rollup@4.64.0: - dependencies: - '@types/estree': 1.0.9 - optionalDependencies: - '@napi-rs/lzma-linux-x64-gnu': 1.5.1 - '@rollup/rollup-android-arm-eabi': 4.64.0 - '@rollup/rollup-android-arm64': 4.64.0 - '@rollup/rollup-darwin-arm64': 4.64.0 - '@rollup/rollup-darwin-x64': 4.64.0 - '@rollup/rollup-freebsd-arm64': 4.64.0 - '@rollup/rollup-freebsd-x64': 4.64.0 - '@rollup/rollup-linux-arm-gnueabihf': 4.64.0 - '@rollup/rollup-linux-arm-musleabihf': 4.64.0 - '@rollup/rollup-linux-arm64-gnu': 4.64.0 - '@rollup/rollup-linux-arm64-musl': 4.64.0 - '@rollup/rollup-linux-loong64-gnu': 4.64.0 - '@rollup/rollup-linux-loong64-musl': 4.64.0 - '@rollup/rollup-linux-ppc64-gnu': 4.64.0 - '@rollup/rollup-linux-ppc64-musl': 4.64.0 - '@rollup/rollup-linux-riscv64-gnu': 4.64.0 - '@rollup/rollup-linux-riscv64-musl': 4.64.0 - '@rollup/rollup-linux-s390x-gnu': 4.64.0 - '@rollup/rollup-linux-x64-gnu': 4.64.0 - '@rollup/rollup-linux-x64-musl': 4.64.0 - '@rollup/rollup-openbsd-x64': 4.64.0 - '@rollup/rollup-openharmony-arm64': 4.64.0 - '@rollup/rollup-win32-arm64-msvc': 4.64.0 - '@rollup/rollup-win32-ia32-msvc': 4.64.0 - '@rollup/rollup-win32-x64-gnu': 4.64.0 - '@rollup/rollup-win32-x64-msvc': 4.64.0 - fsevents: 2.3.3 - run-async@2.4.1: {} rxjs@6.6.7: @@ -4594,12 +3952,6 @@ snapshots: set-blocking@2.0.0: {} - shebang-command@2.0.0: - dependencies: - shebang-regex: 3.0.0 - - shebang-regex@3.0.0: {} - should-equal@2.0.0: dependencies: should-type: 1.4.0 @@ -4630,8 +3982,6 @@ snapshots: signal-exit@3.0.7: {} - signal-exit@4.1.0: {} - sirv@3.0.2: dependencies: '@polka/url': 1.0.0-next.29 @@ -4642,16 +3992,9 @@ snapshots: slash@5.1.0: {} - source-map-js@1.2.2: {} - - source-map-support@0.5.21: - dependencies: - buffer-from: 1.1.2 - source-map: 0.6.1 - - source-map@0.6.1: {} + smol-toml@1.9.1: {} - source-map@0.7.6: {} + source-map-js@1.2.2: {} stackback@0.0.2: {} @@ -4663,29 +4006,11 @@ snapshots: is-fullwidth-code-point: 3.0.0 strip-ansi: 6.0.1 - string-width@5.1.2: - dependencies: - eastasianwidth: 0.2.0 - emoji-regex: 9.2.2 - strip-ansi: 7.1.0 - strip-ansi@6.0.1: dependencies: ansi-regex: 5.0.1 - strip-ansi@7.1.0: - dependencies: - ansi-regex: 6.1.0 - - sucrase@3.35.0: - dependencies: - '@jridgewell/gen-mapping': 0.3.8 - commander: 4.1.1 - glob: 10.4.5 - lines-and-columns: 1.2.4 - mz: 2.7.0 - pirates: 4.0.7 - ts-interface-checker: 0.1.13 + strip-json-comments@5.0.3: {} supports-color@7.2.0: dependencies: @@ -4721,8 +4046,6 @@ snapshots: tinybench@2.9.0: {} - tinyexec@0.3.2: {} - tinyexec@1.3.1: {} tinyglobby@0.2.17: @@ -4744,42 +4067,10 @@ snapshots: tr46@0.0.3: {} - tree-kill@1.2.2: {} - - ts-interface-checker@0.1.13: {} - tslib@1.14.1: {} - tslib@2.8.1: {} - - tsup@8.5.1(@swc/core@1.16.13)(jiti@2.4.2)(postcss@8.5.29)(supports-color@7.2.0)(typescript@6.0.3)(yaml@2.9.1): - dependencies: - bundle-require: 5.1.0(esbuild@0.27.7) - cac: 6.7.14 - chokidar: 4.0.3 - consola: 3.4.0 - debug: 4.4.3(supports-color@7.2.0) - esbuild: 0.27.7 - fix-dts-default-cjs-exports: 1.0.1 - joycon: 3.1.1 - picocolors: 1.1.1 - postcss-load-config: 6.0.1(jiti@2.4.2)(postcss@8.5.29)(yaml@2.9.1) - resolve-from: 5.0.0 - rollup: 4.64.0 - source-map: 0.7.6 - sucrase: 3.35.0 - tinyexec: 0.3.2 - tinyglobby: 0.2.17 - tree-kill: 1.2.2 - optionalDependencies: - '@swc/core': 1.16.13 - postcss: 8.5.29 - typescript: 6.0.3 - transitivePeerDependencies: - - jiti - - supports-color - - tsx - - yaml + tslib@2.8.1: + optional: true tsutils@3.21.0(typescript@6.0.3): dependencies: @@ -4796,34 +4087,34 @@ snapshots: typescript@6.0.3: {} - ufo@1.6.4: {} - uint8array-extras@1.6.0: {} + unbash@6.0.1: {} + undici-types@8.9.0: {} universal-user-agent@7.0.2: {} universalify@2.0.1: {} - vite-plus@0.2.4(@types/node@26.6.5)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1): + vite-plus@0.2.4(@types/node@26.6.5)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1))(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1): dependencies: '@oxc-project/types': 0.138.0 '@oxlint/plugins': 1.68.0 - '@vitest/browser': 4.1.10(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))(vitest@4.1.10) - '@vitest/browser-preview': 4.1.10(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))(vitest@4.1.10) + '@vitest/browser': 4.1.10(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1))(vitest@4.1.10) + '@vitest/browser-preview': 4.1.10(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1))(vitest@4.1.10) '@vitest/expect': 4.1.10 - '@vitest/mocker': 4.1.10(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)) + '@vitest/mocker': 4.1.10(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1)) '@vitest/pretty-format': 4.1.10 '@vitest/runner': 4.1.10 '@vitest/snapshot': 4.1.10 '@vitest/spy': 4.1.10 '@vitest/utils': 4.1.10 - '@voidzero-dev/vite-plus-core': 0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1) - oxfmt: 0.57.0(vite-plus@0.2.4(@types/node@26.6.5)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)) - oxlint: 1.72.0(oxlint-tsgolint@0.24.0)(vite-plus@0.2.4(@types/node@26.6.5)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)) + '@voidzero-dev/vite-plus-core': 0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1) + oxfmt: 0.57.0(vite-plus@0.2.4(@types/node@26.6.5)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1))(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1)) + oxlint: 1.72.0(oxlint-tsgolint@0.24.0)(vite-plus@0.2.4(@types/node@26.6.5)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1))(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1)) oxlint-tsgolint: 0.24.0 - vitest: 4.1.10(@types/node@26.6.5)(@vitest/browser-preview@4.1.10)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)) + vitest: 4.1.10(@types/node@26.6.5)(@vitest/browser-preview@4.1.10)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1)) optionalDependencies: '@voidzero-dev/vite-plus-darwin-arm64': 0.2.4 '@voidzero-dev/vite-plus-darwin-x64': 0.2.4 @@ -4864,10 +4155,10 @@ snapshots: - vite - yaml - vitest@4.1.10(@types/node@26.6.5)(@vitest/browser-preview@4.1.10)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)): + vitest@4.1.10(@types/node@26.6.5)(@vitest/browser-preview@4.1.10)(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1)): dependencies: '@vitest/expect': 4.1.10 - '@vitest/mocker': 4.1.10(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)) + '@vitest/mocker': 4.1.10(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1)) '@vitest/pretty-format': 4.1.10 '@vitest/runner': 4.1.10 '@vitest/snapshot': 4.1.10 @@ -4884,14 +4175,16 @@ snapshots: tinyexec: 1.3.1 tinyglobby: 0.2.17 tinyrainbow: 3.2.0 - vite: '@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1)' + vite: '@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1)' why-is-node-running: 2.3.0 optionalDependencies: '@types/node': 26.6.5 - '@vitest/browser-preview': 4.1.10(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.4.2)(typescript@6.0.3)(yaml@2.9.1))(vitest@4.1.10) + '@vitest/browser-preview': 4.1.10(@voidzero-dev/vite-plus-core@0.2.4(@types/node@26.6.5)(esbuild@0.27.7)(jiti@2.7.0)(typescript@6.0.3)(yaml@2.9.1))(vitest@4.1.10) transitivePeerDependencies: - msw + walk-up-path@4.0.0: {} + webidl-conversions@3.0.1: {} whatwg-url@5.0.0: @@ -4901,10 +4194,6 @@ snapshots: which-module@2.0.1: {} - which@2.0.2: - dependencies: - isexe: 2.0.0 - why-is-node-running@2.3.0: dependencies: siginfo: 2.0.0 @@ -4922,12 +4211,6 @@ snapshots: string-width: 4.2.3 strip-ansi: 6.0.1 - wrap-ansi@8.1.0: - dependencies: - ansi-styles: 6.2.1 - string-width: 5.1.2 - strip-ansi: 7.1.0 - ws@8.22.0: {} y18n@4.0.3: {} @@ -4980,3 +4263,5 @@ snapshots: string-width: 4.2.3 y18n: 5.0.8 yargs-parser: 21.1.1 + + zod@4.6.7: {} diff --git a/tsconfig.json b/tsconfig.json index edb9e409..1ab76e5d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,7 +5,6 @@ "moduleResolution": "Bundler", "lib": ["ESNext"], "allowSyntheticDefaultImports": true, - "importHelpers": true, "strict": true, "noImplicitAny": true, "noImplicitThis": true, From 1821153b7b9662c7b608e6c5ec8242adc2e6088f Mon Sep 17 00:00:00 2001 From: Fabien Bernard Date: Fri, 30 Oct 2026 16:35:50 +0100 Subject: [PATCH 4/9] Remove obsolete oxlintrc --- .oxlintrc.json | 132 ------------------------------------------------- 1 file changed, 132 deletions(-) delete mode 100644 .oxlintrc.json diff --git a/.oxlintrc.json b/.oxlintrc.json deleted file mode 100644 index 20346f8a..00000000 --- a/.oxlintrc.json +++ /dev/null @@ -1,132 +0,0 @@ -{ - "$schema": "./node_modules/oxlint/configuration_schema.json", - "plugins": ["typescript"], - "categories": { - "correctness": "off" - }, - "env": { - "builtin": true, - "browser": true, - "node": true - }, - "ignorePatterns": ["**/lib/*", "examples/frontend/src/github/*"], - "rules": { - "constructor-super": "error", - "for-direction": "error", - "getter-return": "error", - "no-async-promise-executor": "error", - "no-case-declarations": "error", - "no-class-assign": "error", - "no-compare-neg-zero": "error", - "no-cond-assign": "error", - "no-const-assign": "error", - "no-constant-binary-expression": "error", - "no-constant-condition": "error", - "no-control-regex": "error", - "no-debugger": "error", - "no-delete-var": "error", - "no-dupe-class-members": "error", - "no-dupe-else-if": "error", - "no-dupe-keys": "error", - "no-duplicate-case": "error", - "no-empty": "error", - "no-empty-character-class": "error", - "no-empty-pattern": "error", - "no-empty-static-block": "error", - "no-ex-assign": "error", - "no-extra-boolean-cast": "error", - "no-fallthrough": "error", - "no-func-assign": "error", - "no-global-assign": "error", - "no-import-assign": "error", - "no-invalid-regexp": "error", - "no-irregular-whitespace": "error", - "no-loss-of-precision": "error", - "no-misleading-character-class": "error", - "no-new-native-nonconstructor": "error", - "no-nonoctal-decimal-escape": "error", - "no-obj-calls": "error", - "no-prototype-builtins": "error", - "no-redeclare": "error", - "no-regex-spaces": "error", - "no-self-assign": "error", - "no-setter-return": "error", - "no-shadow-restricted-names": "error", - "no-sparse-arrays": "error", - "no-this-before-super": "error", - "no-unassigned-vars": "error", - "no-unexpected-multiline": "error", - "no-unreachable": "error", - "no-unsafe-finally": "error", - "no-unsafe-negation": "error", - "no-unsafe-optional-chaining": "error", - "no-unused-labels": "error", - "no-unused-private-class-members": "error", - "no-unused-vars": [ - "error", - { - "args": "all", - "argsIgnorePattern": "^_", - "caughtErrors": "all", - "caughtErrorsIgnorePattern": "^_", - "destructuredArrayIgnorePattern": "^_", - "varsIgnorePattern": "^_", - "ignoreRestSiblings": true - } - ], - "no-useless-backreference": "error", - "no-useless-catch": "error", - "no-useless-escape": "error", - "no-with": "error", - "preserve-caught-error": "error", - "require-yield": "error", - "use-isnan": "error", - "valid-typeof": "error", - "no-array-constructor": "error", - "no-unused-expressions": "error", - "typescript/ban-ts-comment": "error", - "typescript/no-duplicate-enum-values": "error", - "typescript/no-empty-object-type": "error", - "typescript/no-explicit-any": "error", - "typescript/no-extra-non-null-assertion": "error", - "typescript/no-misused-new": "error", - "typescript/no-namespace": "error", - "typescript/no-non-null-asserted-optional-chain": "error", - "typescript/no-require-imports": "error", - "typescript/no-this-alias": "error", - "typescript/no-unnecessary-type-constraint": "error", - "typescript/no-unsafe-declaration-merging": "error", - "typescript/no-unsafe-function-type": "error", - "typescript/no-wrapper-object-types": "error", - "typescript/prefer-as-const": "error", - "typescript/prefer-namespace-keyword": "error", - "typescript/triple-slash-reference": "error" - }, - "overrides": [ - { - "files": ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.cts"], - "rules": { - "constructor-super": "off", - "getter-return": "off", - "no-class-assign": "off", - "no-const-assign": "off", - "no-dupe-class-members": "off", - "no-dupe-keys": "off", - "no-func-assign": "off", - "no-import-assign": "off", - "no-new-native-nonconstructor": "off", - "no-obj-calls": "off", - "no-redeclare": "off", - "no-setter-return": "off", - "no-this-before-super": "off", - "no-unreachable": "off", - "no-unsafe-negation": "off", - "no-var": "error", - "no-with": "off", - "prefer-const": "error", - "prefer-rest-params": "error", - "prefer-spread": "error" - } - } - ] -} From 697f7a9db66dec77d85c85a3e956111f68378b1d Mon Sep 17 00:00:00 2001 From: Fabien Bernard Date: Fri, 30 Oct 2026 17:07:37 +0100 Subject: [PATCH 5/9] Migrate to es module - Add `.js` extension for local imports - Replace `case` with `case-anything` - Replace `lodash` with `lodash-es` --- cli/package.json | 8 +-- cli/src/commands/GenerateCommand.ts | 6 +- cli/src/commands/InitCommand.ts | 13 +++-- cli/src/core/generateConfigProperty.test.ts | 2 +- cli/src/core/generateConfigProperty.ts | 2 +- .../core/getOpenAPISourceFile.file.test.ts | 2 +- cli/src/core/getOpenAPISourceFile.ts | 6 +- cli/src/core/getOpenAPISourceFile.url.test.ts | 2 +- cli/src/core/parseOpenAPISourceFile.ts | 2 +- cli/src/core/updateConfig.test.ts | 4 +- cli/src/core/updateConfig.ts | 2 +- cli/src/index.ts | 2 +- cli/src/utils/getGithubToken.ts | 2 +- cli/src/utils/resolveGithubPullRequest.ts | 2 +- plugins/typescript/package.json | 11 ++-- .../src/core/analyzeImportUsage.test.ts | 2 +- .../src/core/camelizedPathParams.ts | 4 +- .../src/core/createNamedImport.test.ts | 6 +- .../typescript/src/core/createNamedImport.ts | 2 +- .../src/core/createOperationFetcherFnNodes.ts | 2 +- .../src/core/createOperationQueryFnNodes.ts | 4 +- .../src/core/findCompatibleMediaType.test.ts | 2 +- .../src/core/getDataResponseType.test.ts | 4 +- .../src/core/getDataResponseType.ts | 10 ++-- .../src/core/getErrorResponseType.test.ts | 4 +- .../src/core/getErrorResponseType.ts | 8 +-- .../src/core/getOperationTypes.test.ts | 8 +-- .../typescript/src/core/getOperationTypes.ts | 32 +++++----- .../src/core/getParamsGroupByType.ts | 2 +- .../typescript/src/core/getReference.test.ts | 2 +- plugins/typescript/src/core/getReference.ts | 2 +- .../typescript/src/core/getRequestBodyType.ts | 10 ++-- .../src/core/getUsedImports.test.ts | 4 +- plugins/typescript/src/core/getUsedImports.ts | 15 +++-- .../src/core/getVariablesType.test.ts | 4 +- .../src/core/isRequestBodyOptional.test.ts | 2 +- .../src/core/isRequestBodyOptional.ts | 6 +- plugins/typescript/src/core/isVerb.test.ts | 2 +- .../src/core/paramsToSchema.test.ts | 2 +- plugins/typescript/src/core/paramsToSchema.ts | 4 +- .../src/core/schemaToEnumDeclaration.test.ts | 6 +- .../src/core/schemaToEnumDeclaration.ts | 10 ++-- .../core/schemaToTypeAliasDeclaration.test.ts | 2 +- .../src/core/schemaToTypeAliasDeclaration.ts | 20 +++---- .../src/generators/generateFetchers.test.ts | 6 +- .../src/generators/generateFetchers.ts | 41 ++++++------- .../generateReactQueryComponents.test.ts | 4 +- .../generateReactQueryComponents.ts | 58 +++++++++---------- .../generators/generateSchemaTypes.test.ts | 14 ++--- .../src/generators/generateSchemaTypes.ts | 25 ++++---- plugins/typescript/src/generators/types.ts | 3 +- plugins/typescript/src/index.ts | 12 ++-- plugins/typescript/src/templates/context.ts | 20 +++---- plugins/typescript/src/templates/fetcher.ts | 18 +++--- plugins/typescript/src/templates/utils.ts | 2 +- .../typescript/src/utils/addPathParam.test.ts | 2 +- plugins/typescript/src/utils/addPathParam.ts | 2 +- .../utils/forceReactQueryComponent.test.ts | 4 +- .../src/utils/forceReactQueryComponent.ts | 6 +- .../src/utils/getEnumProperties.test.ts | 2 +- .../typescript/src/utils/getEnumProperties.ts | 8 +-- .../src/utils/renameComponent.test.ts | 4 +- .../typescript/src/utils/renameComponent.ts | 2 +- plugins/typescript/tsconfig.json | 2 - pnpm-lock.yaml | 40 ++++++++----- tsconfig.json | 4 +- 66 files changed, 273 insertions(+), 253 deletions(-) diff --git a/cli/package.json b/cli/package.json index 36ae98a3..467d4ae1 100644 --- a/cli/package.json +++ b/cli/package.json @@ -11,14 +11,14 @@ "license": "MIT", "author": "Fabien Bernard", "repository": { - "url": "https://github.com/fabien0102/openapi-codegen", + "url": "git+https://github.com/fabien0102/openapi-codegen.git", "directory": "cli" }, "bin": { - "openapi-codegen": "lib/cli.js" + "openapi-codegen": "dist/cli.mjs" }, "files": [ - "lib", + "dist", "README.md" ], "type": "module", @@ -35,7 +35,7 @@ "@clack/prompts": "^1.8.1", "@octokit/request": "^10.0.16", "@swc/core": "^1.16.13", - "case": "^1.6.3", + "case-anything": "^3.1.7", "cli-highlight": "^2.1.11", "clipanion": "^4.0.0-rc.4", "fs-extra": "^11.4.1", diff --git a/cli/src/commands/GenerateCommand.ts b/cli/src/commands/GenerateCommand.ts index 40ed8afb..e43823bf 100644 --- a/cli/src/commands/GenerateCommand.ts +++ b/cli/src/commands/GenerateCommand.ts @@ -7,11 +7,11 @@ import * as swc from "@swc/core"; import { fileURLToPath } from "url"; import slash from "slash"; -import { Config, FromOptions, Namespace } from "../types"; +import { Config, FromOptions, Namespace } from "../types/index.js"; import { getOpenAPISourceFile } from "../core/getOpenAPISourceFile.js"; import { parseOpenAPISourceFile } from "../core/parseOpenAPISourceFile.js"; -import { getGithubToken } from "../utils/getGithubToken"; -import { resolveGithubPullRequest } from "../utils/resolveGithubPullRequest"; +import { getGithubToken } from "../utils/getGithubToken.js"; +import { resolveGithubPullRequest } from "../utils/resolveGithubPullRequest.js"; const __filename = fileURLToPath(import.meta.url); diff --git a/cli/src/commands/InitCommand.ts b/cli/src/commands/InitCommand.ts index ea6241a4..8493b3fb 100644 --- a/cli/src/commands/InitCommand.ts +++ b/cli/src/commands/InitCommand.ts @@ -4,9 +4,14 @@ import { posix as path } from "path"; import fsExtra from "fs-extra"; import ts from "typescript"; import { highlight } from "cli-highlight"; -import format from "case"; +import { camelCase } from "case-anything"; -import type { FileOptions, FromOptions, UrlOptions, Plugin } from "../types"; +import type { + FileOptions, + FromOptions, + UrlOptions, + Plugin, +} from "../types/index.js"; import { generateConfigProperty, @@ -15,7 +20,7 @@ import { import { getText } from "../utils/getText.js"; import emptyConfig from "../templates/emptyConfig.js"; import { updateConfig } from "../core/updateConfig.js"; -import { handlePromptCancel } from "../utils/handlePromptCancel"; +import { handlePromptCancel } from "../utils/handlePromptCancel.js"; export class InitCommand extends Command { static paths = [["init"]]; @@ -173,7 +178,7 @@ export class InitCommand extends Command { const from: FromOptions = source === "file" ? await this.askForFile() : await this.askForUrl(); - const namespace = format.camel( + const namespace = camelCase( await prompt .text({ message: "What namespace do you want for your API?", diff --git a/cli/src/core/generateConfigProperty.test.ts b/cli/src/core/generateConfigProperty.test.ts index 324cd23b..edcc0082 100644 --- a/cli/src/core/generateConfigProperty.test.ts +++ b/cli/src/core/generateConfigProperty.test.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from "vite-plus/test"; import ts from "typescript"; -import { generateConfigProperty } from "./generateConfigProperty"; +import { generateConfigProperty } from "./generateConfigProperty.js"; describe("generateConfigProperty", () => { it("should generate a type only configuration node", () => { diff --git a/cli/src/core/generateConfigProperty.ts b/cli/src/core/generateConfigProperty.ts index e3db7e29..55b37dce 100644 --- a/cli/src/core/generateConfigProperty.ts +++ b/cli/src/core/generateConfigProperty.ts @@ -1,6 +1,6 @@ import ts from "typescript"; -import type { Config, Import, Plugin } from "../types"; +import type { Config, Import, Plugin } from "../types/index.js"; const { factory } = ts; diff --git a/cli/src/core/getOpenAPISourceFile.file.test.ts b/cli/src/core/getOpenAPISourceFile.file.test.ts index c7c07cdd..d5c21e5c 100644 --- a/cli/src/core/getOpenAPISourceFile.file.test.ts +++ b/cli/src/core/getOpenAPISourceFile.file.test.ts @@ -1,5 +1,5 @@ import { assert, describe, expect, it } from "vite-plus/test"; -import { getOpenAPISourceFile } from "./getOpenAPISourceFile"; +import { getOpenAPISourceFile } from "./getOpenAPISourceFile.js"; describe("getOpenAPISourceFile (source = file)", () => { it("should retrieve a local yaml file specs", async () => { diff --git a/cli/src/core/getOpenAPISourceFile.ts b/cli/src/core/getOpenAPISourceFile.ts index bcd4f4a5..598d278d 100644 --- a/cli/src/core/getOpenAPISourceFile.ts +++ b/cli/src/core/getOpenAPISourceFile.ts @@ -6,9 +6,9 @@ import { homedir } from "os"; import { join, parse } from "path"; import { URL } from "url"; -import { FromOptions, OpenAPISourceFile } from "../types"; -import { getGithubToken } from "../utils/getGithubToken"; -import { handlePromptCancel } from "../utils/handlePromptCancel"; +import { FromOptions, OpenAPISourceFile } from "../types/index.js"; +import { getGithubToken } from "../utils/getGithubToken.js"; +import { handlePromptCancel } from "../utils/handlePromptCancel.js"; /** * Retrieve the OpenAPI source. diff --git a/cli/src/core/getOpenAPISourceFile.url.test.ts b/cli/src/core/getOpenAPISourceFile.url.test.ts index a1cf25cc..b48ab14c 100644 --- a/cli/src/core/getOpenAPISourceFile.url.test.ts +++ b/cli/src/core/getOpenAPISourceFile.url.test.ts @@ -1,5 +1,5 @@ import { describe, expect, it } from "vite-plus/test"; -import { getOpenAPISourceFile } from "./getOpenAPISourceFile"; +import { getOpenAPISourceFile } from "./getOpenAPISourceFile.js"; import nock from "nock"; describe("getOpenAPISourceFile (source = url)", () => { diff --git a/cli/src/core/parseOpenAPISourceFile.ts b/cli/src/core/parseOpenAPISourceFile.ts index 8ded1d53..a03c5183 100644 --- a/cli/src/core/parseOpenAPISourceFile.ts +++ b/cli/src/core/parseOpenAPISourceFile.ts @@ -1,6 +1,6 @@ import { OpenAPIObject } from "openapi3-ts/oas30"; -import type { OpenAPISourceFile } from "../types"; +import type { OpenAPISourceFile } from "../types/index.js"; import swagger2openapi from "swagger2openapi"; diff --git a/cli/src/core/updateConfig.test.ts b/cli/src/core/updateConfig.test.ts index c7158e82..35a804e2 100644 --- a/cli/src/core/updateConfig.test.ts +++ b/cli/src/core/updateConfig.test.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from "vite-plus/test"; import ts from "typescript"; -import { updateConfig } from "./updateConfig"; +import { updateConfig } from "./updateConfig.js"; describe("updateConfig", () => { const configProperty = ts.factory.createPropertyAssignment( @@ -10,7 +10,7 @@ describe("updateConfig", () => { it("should add import statement if not already existing", () => { const sourceText = `import { defineConfig } from "@openapi-codegen/cli"; - + // This comment should stay export default defineConfig({})`; const sourceFile = ts.createSourceFile( diff --git a/cli/src/core/updateConfig.ts b/cli/src/core/updateConfig.ts index 197f8beb..6ff62ca1 100644 --- a/cli/src/core/updateConfig.ts +++ b/cli/src/core/updateConfig.ts @@ -1,5 +1,5 @@ import ts from "typescript"; -import type { Import } from "../types"; +import type { Import } from "../types/index.js"; const { factory: f } = ts; diff --git a/cli/src/index.ts b/cli/src/index.ts index c35984a4..4369d1d4 100644 --- a/cli/src/index.ts +++ b/cli/src/index.ts @@ -1,4 +1,4 @@ -import { Config, Namespace } from "./types"; +import { Config, Namespace } from "./types/index.js"; /** * Type helper to make it easier to use openapi-codegen.ts. diff --git a/cli/src/utils/getGithubToken.ts b/cli/src/utils/getGithubToken.ts index 131c71b2..941cf882 100644 --- a/cli/src/utils/getGithubToken.ts +++ b/cli/src/utils/getGithubToken.ts @@ -3,7 +3,7 @@ import { join } from "path"; import { homedir } from "os"; import { existsSync } from "fs"; import { readFile, writeFile } from "fs/promises"; -import { handlePromptCancel } from "./handlePromptCancel"; +import { handlePromptCancel } from "./handlePromptCancel.js"; /** * Ask for GitHub token if needed and save it for later. diff --git a/cli/src/utils/resolveGithubPullRequest.ts b/cli/src/utils/resolveGithubPullRequest.ts index 8f6ae955..d501467c 100644 --- a/cli/src/utils/resolveGithubPullRequest.ts +++ b/cli/src/utils/resolveGithubPullRequest.ts @@ -1,5 +1,5 @@ import { request } from "@octokit/request"; -import { GithubOptions } from "../types"; +import { GithubOptions } from "../types/index.js"; export type PullRequest = { ref: string; diff --git a/plugins/typescript/package.json b/plugins/typescript/package.json index 040f2dd8..ddb5d5c1 100644 --- a/plugins/typescript/package.json +++ b/plugins/typescript/package.json @@ -11,11 +11,11 @@ "license": "MIT", "author": "Fabien Bernard", "repository": { - "url": "https://github.com/fabien0102/openapi-codegen", + "url": "git+https://github.com/fabien0102/openapi-codegen.git", "directory": "plugins/typescript" }, "files": [ - "lib", + "dist", "README.md" ], "main": "dist/index.mjs", @@ -28,15 +28,16 @@ "prepublishOnly": "pnpm build" }, "dependencies": { - "case": "^1.6.3", - "lodash": "^4.18.1", + "case-anything": "^3.1.7", + "lodash-es": "^4.18.1", "openapi3-ts": "^4.6.1", "pluralize": "^8.0.0", "tsutils": "^3.21.0", "typescript": "~6.0.2" }, + "type": "module", "devDependencies": { - "@types/lodash": "^4.17.25", + "@types/lodash-es": "^4.17.12", "@types/pluralize": "^0.0.33", "oxfmt": "^0.75.0" } diff --git a/plugins/typescript/src/core/analyzeImportUsage.test.ts b/plugins/typescript/src/core/analyzeImportUsage.test.ts index 03b82093..b2baff30 100644 --- a/plugins/typescript/src/core/analyzeImportUsage.test.ts +++ b/plugins/typescript/src/core/analyzeImportUsage.test.ts @@ -1,6 +1,6 @@ import { describe, it, expect } from "vite-plus/test"; import ts, { factory as f } from "typescript"; -import { analyzeImportUsage } from "./analyzeImportUsage"; +import { analyzeImportUsage } from "./analyzeImportUsage.js"; // Helper to set parent references for TypeScript AST nodes const setParentReferences = (node: T): T => { diff --git a/plugins/typescript/src/core/camelizedPathParams.ts b/plugins/typescript/src/core/camelizedPathParams.ts index 5a424352..948cc5b9 100644 --- a/plugins/typescript/src/core/camelizedPathParams.ts +++ b/plugins/typescript/src/core/camelizedPathParams.ts @@ -1,4 +1,4 @@ -import { camel } from "case"; +import { camelCase } from "case-anything"; /** * Transform url params case to camel. @@ -7,4 +7,4 @@ import { camel } from "case"; * `pet/{pet_id}` -> `pet/{petId}` */ export const camelizedPathParams = (url: string) => - url.replace(/\{[\w\d\-_.]*\}/g, (match) => `{${camel(match)}}`); + url.replace(/\{[\w\d\-_.]*\}/g, (match) => `{${camelCase(match)}}`); diff --git a/plugins/typescript/src/core/createNamedImport.test.ts b/plugins/typescript/src/core/createNamedImport.test.ts index 974a8580..9d73b8bd 100644 --- a/plugins/typescript/src/core/createNamedImport.test.ts +++ b/plugins/typescript/src/core/createNamedImport.test.ts @@ -1,8 +1,8 @@ import { describe, it, expect } from "vite-plus/test"; -import { createNamedImport, shouldUseTypeImport } from "./createNamedImport"; -import { analyzeImportUsage } from "./analyzeImportUsage"; +import { createNamedImport, shouldUseTypeImport } from "./createNamedImport.js"; +import { analyzeImportUsage } from "./analyzeImportUsage.js"; import { factory as f } from "typescript"; -import * as ts from "typescript"; +import ts from "typescript"; // Helper function to set parent references in AST nodes const setParentReferences = (node: ts.Node): ts.Node => { diff --git a/plugins/typescript/src/core/createNamedImport.ts b/plugins/typescript/src/core/createNamedImport.ts index 545b16a1..95669a48 100644 --- a/plugins/typescript/src/core/createNamedImport.ts +++ b/plugins/typescript/src/core/createNamedImport.ts @@ -1,6 +1,6 @@ import { factory as f } from "typescript"; import type * as ts from "typescript"; -import { analyzeImportUsage } from "./analyzeImportUsage"; +import { analyzeImportUsage } from "./analyzeImportUsage.js"; /** * Helper to create named imports. diff --git a/plugins/typescript/src/core/createOperationFetcherFnNodes.ts b/plugins/typescript/src/core/createOperationFetcherFnNodes.ts index f66e232d..72565941 100644 --- a/plugins/typescript/src/core/createOperationFetcherFnNodes.ts +++ b/plugins/typescript/src/core/createOperationFetcherFnNodes.ts @@ -1,6 +1,6 @@ import { OperationObject } from "openapi3-ts/oas30"; import ts, { factory as f } from "typescript"; -import { camelizedPathParams } from "./camelizedPathParams"; +import { camelizedPathParams } from "./camelizedPathParams.js"; /** * Create the declaration of the fetcher function. diff --git a/plugins/typescript/src/core/createOperationQueryFnNodes.ts b/plugins/typescript/src/core/createOperationQueryFnNodes.ts index 7fe5c0b6..84339760 100644 --- a/plugins/typescript/src/core/createOperationQueryFnNodes.ts +++ b/plugins/typescript/src/core/createOperationQueryFnNodes.ts @@ -1,7 +1,7 @@ -import { camelCase } from "lodash"; +import { camelCase } from "case-anything"; import { OperationObject } from "openapi3-ts/oas30"; import ts, { factory as f } from "typescript"; -import { camelizedPathParams } from "./camelizedPathParams"; +import { camelizedPathParams } from "./camelizedPathParams.js"; /** * Create the declaration of the react-router queries. diff --git a/plugins/typescript/src/core/findCompatibleMediaType.test.ts b/plugins/typescript/src/core/findCompatibleMediaType.test.ts index aa36d94d..9227354d 100644 --- a/plugins/typescript/src/core/findCompatibleMediaType.test.ts +++ b/plugins/typescript/src/core/findCompatibleMediaType.test.ts @@ -1,6 +1,6 @@ import type { MediaTypeObject } from "openapi3-ts/oas30"; import { describe, expect, it } from "vite-plus/test"; -import { findCompatibleMediaType } from "./findCompatibleMediaType"; +import { findCompatibleMediaType } from "./findCompatibleMediaType.js"; describe("findCompatibleMediaType", () => { it("should return undefined if content is empty", () => { diff --git a/plugins/typescript/src/core/getDataResponseType.test.ts b/plugins/typescript/src/core/getDataResponseType.test.ts index e90c0204..ca35b55d 100644 --- a/plugins/typescript/src/core/getDataResponseType.test.ts +++ b/plugins/typescript/src/core/getDataResponseType.test.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from "vite-plus/test"; import { ResponsesObject } from "openapi3-ts/oas30"; -import { print } from "../testUtils"; -import { getDataResponseType } from "./getDataResponseType"; +import { print } from "../testUtils.js"; +import { getDataResponseType } from "./getDataResponseType.js"; describe("getDataResponseType", () => { it("should extract the response type with 200 status", () => { diff --git a/plugins/typescript/src/core/getDataResponseType.ts b/plugins/typescript/src/core/getDataResponseType.ts index 010fed12..daf360ed 100644 --- a/plugins/typescript/src/core/getDataResponseType.ts +++ b/plugins/typescript/src/core/getDataResponseType.ts @@ -6,11 +6,11 @@ import { ResponseObject, ResponsesObject, } from "openapi3-ts/oas30"; -import { uniqBy } from "lodash"; -import { pascal } from "case"; +import { uniqBy } from "lodash-es"; +import { pascalCase } from "case-anything"; -import { findCompatibleMediaType } from "./findCompatibleMediaType"; -import { getType } from "./schemaToTypeAliasDeclaration"; +import { findCompatibleMediaType } from "./findCompatibleMediaType.js"; +import { getType } from "./schemaToTypeAliasDeclaration.js"; /** * Extract types from success responses (2xx) @@ -48,7 +48,7 @@ export const getDataResponseType = ({ f.createTypeReferenceNode( f.createQualifiedName( f.createIdentifier("Responses"), - f.createIdentifier(pascal(name)) + f.createIdentifier(pascalCase(name)) ), undefined ), diff --git a/plugins/typescript/src/core/getErrorResponseType.test.ts b/plugins/typescript/src/core/getErrorResponseType.test.ts index 3dc2638a..c02379b9 100644 --- a/plugins/typescript/src/core/getErrorResponseType.test.ts +++ b/plugins/typescript/src/core/getErrorResponseType.test.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from "vite-plus/test"; import { ResponseObject } from "openapi3-ts/oas30"; -import { print } from "../testUtils"; -import { getErrorResponseType } from "./getErrorResponseType"; +import { print } from "../testUtils.js"; +import { getErrorResponseType } from "./getErrorResponseType.js"; describe("getErrorResponseType", () => { it("should generate a simple error", () => { diff --git a/plugins/typescript/src/core/getErrorResponseType.ts b/plugins/typescript/src/core/getErrorResponseType.ts index eca183b0..a269484b 100644 --- a/plugins/typescript/src/core/getErrorResponseType.ts +++ b/plugins/typescript/src/core/getErrorResponseType.ts @@ -7,9 +7,9 @@ import { ResponsesObject, } from "openapi3-ts/oas30"; -import { findCompatibleMediaType } from "./findCompatibleMediaType"; -import { getType } from "./schemaToTypeAliasDeclaration"; -import { pascal } from "case"; +import { findCompatibleMediaType } from "./findCompatibleMediaType.js"; +import { getType } from "./schemaToTypeAliasDeclaration.js"; +import { pascalCase } from "case-anything"; export const clientErrorStatus = "ClientErrorStatus"; export const serverErrorStatus = "ServerErrorStatus"; @@ -51,7 +51,7 @@ export const getErrorResponseType = ({ f.createTypeReferenceNode( f.createQualifiedName( f.createIdentifier("Responses"), - f.createIdentifier(pascal(name)) + f.createIdentifier(pascalCase(name)) ), undefined ), diff --git a/plugins/typescript/src/core/getOperationTypes.test.ts b/plugins/typescript/src/core/getOperationTypes.test.ts index f67ccba9..4d68b3c6 100644 --- a/plugins/typescript/src/core/getOperationTypes.test.ts +++ b/plugins/typescript/src/core/getOperationTypes.test.ts @@ -1,11 +1,11 @@ import { it, describe, expect } from "vite-plus/test"; -import { omit } from "lodash"; +import { omit } from "lodash-es"; import ts, { factory } from "typescript"; import { OperationObject } from "openapi3-ts/oas30"; -import { petstore } from "../fixtures/petstore"; -import { getOperationTypes } from "./getOperationTypes"; -import { print } from "../testUtils"; +import { petstore } from "../fixtures/petstore.js"; +import { getOperationTypes } from "./getOperationTypes.js"; +import { print } from "../testUtils.js"; describe("getOperationTypes", () => { it("should generate a variable type (with extra props)", () => { diff --git a/plugins/typescript/src/core/getOperationTypes.ts b/plugins/typescript/src/core/getOperationTypes.ts index dcd68051..3068305f 100644 --- a/plugins/typescript/src/core/getOperationTypes.ts +++ b/plugins/typescript/src/core/getOperationTypes.ts @@ -1,4 +1,4 @@ -import { pascal } from "case"; +import { pascalCase } from "case-anything"; import { OpenAPIObject, OperationObject, @@ -6,14 +6,14 @@ import { } from "openapi3-ts/oas30"; import ts, { factory as f } from "typescript"; -import { getParamsGroupByType } from "./getParamsGroupByType"; -import { getRequestBodyType } from "./getRequestBodyType"; -import { getDataResponseType } from "./getDataResponseType"; -import { getVariablesType } from "./getVariablesType"; -import { isRequestBodyOptional } from "./isRequestBodyOptional"; -import { paramsToSchema } from "./paramsToSchema"; -import { schemaToTypeAliasDeclaration } from "./schemaToTypeAliasDeclaration"; -import { getErrorResponseType } from "./getErrorResponseType"; +import { getParamsGroupByType } from "./getParamsGroupByType.js"; +import { getRequestBodyType } from "./getRequestBodyType.js"; +import { getDataResponseType } from "./getDataResponseType.js"; +import { getVariablesType } from "./getVariablesType.js"; +import { isRequestBodyOptional } from "./isRequestBodyOptional.js"; +import { paramsToSchema } from "./paramsToSchema.js"; +import { schemaToTypeAliasDeclaration } from "./schemaToTypeAliasDeclaration.js"; +import { getErrorResponseType } from "./getErrorResponseType.js"; export type GetOperationTypesOptions = { operationId: string; @@ -131,7 +131,7 @@ export const getOperationTypes = ({ } // Export error type - const errorTypeIdentifier = pascal(`${operationId}Error`); + const errorTypeIdentifier = pascalCase(`${operationId}Error`); declarationNodes.push( f.createTypeAliasDeclaration( [f.createModifier(ts.SyntaxKind.ExportKeyword)], @@ -145,7 +145,7 @@ export const getOperationTypes = ({ // Export data type if needed if (shouldExtractNode(dataType)) { - const dataTypeIdentifier = pascal(`${operationId}Response`); + const dataTypeIdentifier = pascalCase(`${operationId}Response`); declarationNodes.push( f.createTypeAliasDeclaration( [f.createModifier(ts.SyntaxKind.ExportKeyword)], @@ -160,7 +160,7 @@ export const getOperationTypes = ({ // Export requestBody type if needed if (shouldExtractNode(requestBodyType)) { - const requestBodyIdentifier = pascal(`${operationId}RequestBody`); + const requestBodyIdentifier = pascalCase(`${operationId}RequestBody`); declarationNodes.push( f.createTypeAliasDeclaration( [f.createModifier(ts.SyntaxKind.ExportKeyword)], @@ -175,21 +175,21 @@ export const getOperationTypes = ({ const pathParamsType = pathParams.length > 0 - ? f.createTypeReferenceNode(`${pascal(operationId)}PathParams`) + ? f.createTypeReferenceNode(`${pascalCase(operationId)}PathParams`) : f.createTypeLiteralNode([]); const queryParamsType = queryParams.length > 0 - ? f.createTypeReferenceNode(`${pascal(operationId)}QueryParams`) + ? f.createTypeReferenceNode(`${pascalCase(operationId)}QueryParams`) : f.createTypeLiteralNode([]); const headersType = headerParams.length > 0 - ? f.createTypeReferenceNode(`${pascal(operationId)}Headers`) + ? f.createTypeReferenceNode(`${pascalCase(operationId)}Headers`) : f.createTypeLiteralNode([]); // Generate fetcher variables type - const variablesIdentifier = pascal(`${operationId}Variables`); + const variablesIdentifier = pascalCase(`${operationId}Variables`); let variablesType: ts.TypeNode = getVariablesType({ requestBodyType, diff --git a/plugins/typescript/src/core/getParamsGroupByType.ts b/plugins/typescript/src/core/getParamsGroupByType.ts index df7490db..88c6752f 100644 --- a/plugins/typescript/src/core/getParamsGroupByType.ts +++ b/plugins/typescript/src/core/getParamsGroupByType.ts @@ -1,4 +1,4 @@ -import { get, groupBy } from "lodash"; +import { get, groupBy } from "lodash-es"; import { ComponentsObject, isReferenceObject, diff --git a/plugins/typescript/src/core/getReference.test.ts b/plugins/typescript/src/core/getReference.test.ts index 2cdf7373..4b7d024d 100644 --- a/plugins/typescript/src/core/getReference.test.ts +++ b/plugins/typescript/src/core/getReference.test.ts @@ -1,6 +1,6 @@ import { ComponentsObject } from "openapi3-ts/oas30"; import { describe, expect, it } from "vite-plus/test"; -import { getReferenceSchema } from "./getReference"; +import { getReferenceSchema } from "./getReference.js"; describe("getReferenceSchema", () => { const components = { diff --git a/plugins/typescript/src/core/getReference.ts b/plugins/typescript/src/core/getReference.ts index 8649bf8d..f0fbb0b3 100644 --- a/plugins/typescript/src/core/getReference.ts +++ b/plugins/typescript/src/core/getReference.ts @@ -1,4 +1,4 @@ -import { get } from "lodash"; +import { get } from "lodash-es"; import { ComponentsObject, isReferenceObject, diff --git a/plugins/typescript/src/core/getRequestBodyType.ts b/plugins/typescript/src/core/getRequestBodyType.ts index 6a9e8db9..8a4f724c 100644 --- a/plugins/typescript/src/core/getRequestBodyType.ts +++ b/plugins/typescript/src/core/getRequestBodyType.ts @@ -5,10 +5,10 @@ import { ReferenceObject, RequestBodyObject, } from "openapi3-ts/oas30"; -import { pascal } from "case"; +import { pascalCase } from "case-anything"; -import { findCompatibleMediaType } from "./findCompatibleMediaType"; -import { getType } from "./schemaToTypeAliasDeclaration"; +import { findCompatibleMediaType } from "./findCompatibleMediaType.js"; +import { getType } from "./schemaToTypeAliasDeclaration.js"; /** * Extract types from request body @@ -39,7 +39,7 @@ export const getRequestBodyType = ({ return f.createTypeReferenceNode( f.createQualifiedName( f.createIdentifier("RequestBodies"), - f.createIdentifier(pascal(name)) + f.createIdentifier(pascalCase(name)) ), undefined ); @@ -64,7 +64,7 @@ export const getRequestBodyType = ({ return f.createTypeReferenceNode( f.createQualifiedName( f.createIdentifier("Schemas"), - f.createIdentifier(pascal(name)) + f.createIdentifier(pascalCase(name)) ), undefined ); diff --git a/plugins/typescript/src/core/getUsedImports.test.ts b/plugins/typescript/src/core/getUsedImports.test.ts index 78651842..3eaba588 100644 --- a/plugins/typescript/src/core/getUsedImports.test.ts +++ b/plugins/typescript/src/core/getUsedImports.test.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from "vite-plus/test"; import ts, { factory as f } from "typescript"; -import { print } from "../testUtils"; -import { getUsedImports } from "./getUsedImports"; +import { print } from "../testUtils.js"; +import { getUsedImports } from "./getUsedImports.js"; describe("getUsedImports", () => { it("should generate requestBodies import", () => { diff --git a/plugins/typescript/src/core/getUsedImports.ts b/plugins/typescript/src/core/getUsedImports.ts index 3e76a3c7..1edc31a9 100644 --- a/plugins/typescript/src/core/getUsedImports.ts +++ b/plugins/typescript/src/core/getUsedImports.ts @@ -1,9 +1,12 @@ -import { camel } from "case"; -import { get } from "lodash"; +import { camelCase } from "case-anything"; +import { get } from "lodash-es"; import ts, { factory as f } from "typescript"; -import { createNamedImport } from "./createNamedImport"; -import { createNamespaceImport } from "./createNamespaceImport"; -import { clientErrorStatus, serverErrorStatus } from "./getErrorResponseType"; +import { createNamedImport } from "./createNamedImport.js"; +import { createNamespaceImport } from "./createNamespaceImport.js"; +import { + clientErrorStatus, + serverErrorStatus, +} from "./getErrorResponseType.js"; /** * Generate the needed imports regarding the generated nodes usage. @@ -62,7 +65,7 @@ export const getUsedImports = ( const visitor: ts.Visitor = (node) => { if (ts.isQualifiedName(node)) { // We can’t use `node.left.getText()` because the node is not compiled (no internal `text` property) - const text = camel(get(node.left, "escapedText", "") as string); + const text = camelCase(get(node.left, "escapedText", "") as string); if (text in imports) { imports[text as keyof typeof imports].used = true; } diff --git a/plugins/typescript/src/core/getVariablesType.test.ts b/plugins/typescript/src/core/getVariablesType.test.ts index 95b196dd..b118c713 100644 --- a/plugins/typescript/src/core/getVariablesType.test.ts +++ b/plugins/typescript/src/core/getVariablesType.test.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from "vite-plus/test"; -import { print } from "../testUtils"; +import { print } from "../testUtils.js"; import ts, { factory as f } from "typescript"; -import { getVariablesType } from "./getVariablesType"; +import { getVariablesType } from "./getVariablesType.js"; describe("getVariableType", () => { it("should return void if no types are provided", () => { diff --git a/plugins/typescript/src/core/isRequestBodyOptional.test.ts b/plugins/typescript/src/core/isRequestBodyOptional.test.ts index 48171493..0dd3cff2 100644 --- a/plugins/typescript/src/core/isRequestBodyOptional.test.ts +++ b/plugins/typescript/src/core/isRequestBodyOptional.test.ts @@ -1,5 +1,5 @@ import { describe, expect, it } from "vite-plus/test"; -import { isRequestBodyOptional } from "./isRequestBodyOptional"; +import { isRequestBodyOptional } from "./isRequestBodyOptional.js"; describe("isRequestBodyOptional", () => { it("should return true if no requestBody", () => { diff --git a/plugins/typescript/src/core/isRequestBodyOptional.ts b/plugins/typescript/src/core/isRequestBodyOptional.ts index a0a10fa5..e40bea42 100644 --- a/plugins/typescript/src/core/isRequestBodyOptional.ts +++ b/plugins/typescript/src/core/isRequestBodyOptional.ts @@ -1,4 +1,4 @@ -import { get } from "lodash"; +import { get } from "lodash-es"; import { ComponentsObject, isReferenceObject, @@ -7,8 +7,8 @@ import { ReferenceObject, RequestBodyObject, } from "openapi3-ts/oas30"; -import { findCompatibleMediaType } from "./findCompatibleMediaType"; -import { getReferenceSchema } from "./getReference"; +import { findCompatibleMediaType } from "./findCompatibleMediaType.js"; +import { getReferenceSchema } from "./getReference.js"; /** * Check if all the properties are optionals diff --git a/plugins/typescript/src/core/isVerb.test.ts b/plugins/typescript/src/core/isVerb.test.ts index c70bcafc..6810e294 100644 --- a/plugins/typescript/src/core/isVerb.test.ts +++ b/plugins/typescript/src/core/isVerb.test.ts @@ -1,5 +1,5 @@ import { describe, expect, it } from "vite-plus/test"; -import { isVerb } from "./isVerb"; +import { isVerb } from "./isVerb.js"; describe("isVerb", () => { [ diff --git a/plugins/typescript/src/core/paramsToSchema.test.ts b/plugins/typescript/src/core/paramsToSchema.test.ts index 686054a5..ffbae594 100644 --- a/plugins/typescript/src/core/paramsToSchema.test.ts +++ b/plugins/typescript/src/core/paramsToSchema.test.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from "vite-plus/test"; import { ParameterObject } from "openapi3-ts/oas30"; -import { paramsToSchema } from "./paramsToSchema"; +import { paramsToSchema } from "./paramsToSchema.js"; describe("paramsToSchema", () => { const params: ParameterObject[] = [ diff --git a/plugins/typescript/src/core/paramsToSchema.ts b/plugins/typescript/src/core/paramsToSchema.ts index 79a63d62..151fd368 100644 --- a/plugins/typescript/src/core/paramsToSchema.ts +++ b/plugins/typescript/src/core/paramsToSchema.ts @@ -1,4 +1,4 @@ -import { camel } from "case"; +import { camelCase } from "case-anything"; import { ParameterObject, SchemaObject } from "openapi3-ts/oas30"; /** @@ -12,7 +12,7 @@ export const paramsToSchema = ( params: ParameterObject[], optionalKeys: string[] = [] ): SchemaObject => { - const formatKey = params[0].in === "path" ? camel : (key: string) => key; + const formatKey = params[0].in === "path" ? camelCase : (key: string) => key; return { type: "object", properties: params.reduce((mem, param) => { diff --git a/plugins/typescript/src/core/schemaToEnumDeclaration.test.ts b/plugins/typescript/src/core/schemaToEnumDeclaration.test.ts index 7108409d..d5b138be 100644 --- a/plugins/typescript/src/core/schemaToEnumDeclaration.test.ts +++ b/plugins/typescript/src/core/schemaToEnumDeclaration.test.ts @@ -1,8 +1,8 @@ import { describe, expect, it } from "vite-plus/test"; import { OpenAPIObject, SchemaObject } from "openapi3-ts/oas30"; import ts from "typescript"; -import { schemaToEnumDeclaration } from "./schemaToEnumDeclaration"; -import { OpenAPIComponentType } from "./schemaToTypeAliasDeclaration"; +import { schemaToEnumDeclaration } from "./schemaToEnumDeclaration.js"; +import { OpenAPIComponentType } from "./schemaToTypeAliasDeclaration.js"; describe("schemaToTypeAliasDeclaration", () => { it("should generate a string enums", () => { @@ -104,7 +104,7 @@ describe("schemaToTypeAliasDeclaration", () => { Saimois = "saimois", Bengal = "bengal", BritishShorthair = "british shorthair", - "danish\\u2013swedish farmdog" = "danish\\u2013swedish farmdog" + DanishswedishFarmdog = "danish\\u2013swedish farmdog" }" `); }); diff --git a/plugins/typescript/src/core/schemaToEnumDeclaration.ts b/plugins/typescript/src/core/schemaToEnumDeclaration.ts index d3779403..eecc1de6 100644 --- a/plugins/typescript/src/core/schemaToEnumDeclaration.ts +++ b/plugins/typescript/src/core/schemaToEnumDeclaration.ts @@ -1,9 +1,9 @@ -import { pascal } from "case"; +import { pascalCase } from "case-anything"; import { SchemaObject } from "openapi3-ts/oas30"; import ts, { factory as f } from "typescript"; import { isValidIdentifier } from "tsutils"; -import { convertNumberToWord } from "../utils/getEnumProperties"; -import { Context, getJSDocComment } from "./schemaToTypeAliasDeclaration"; +import { convertNumberToWord } from "../utils/getEnumProperties.js"; +import { Context, getJSDocComment } from "./schemaToTypeAliasDeclaration.js"; /** * Add Enum support when transforming an OpenAPI Schema Object to Typescript Nodes. @@ -21,7 +21,7 @@ export const schemaToEnumDeclaration = ( const members = getEnumMembers(schema); const declarationNode = f.createEnumDeclaration( [f.createModifier(ts.SyntaxKind.ExportKeyword)], - pascal(name), + pascalCase(name), members ); @@ -63,7 +63,7 @@ function getEnumMembers(schema: SchemaObject): ts.EnumMember[] { throw new Error(`Unsupported enum value type: ${typeof enumValue}`); } - enumName = pascal(enumName); + enumName = pascalCase(enumName); return f.createEnumMember( isValidIdentifier(enumName) ? f.createIdentifier(enumName) diff --git a/plugins/typescript/src/core/schemaToTypeAliasDeclaration.test.ts b/plugins/typescript/src/core/schemaToTypeAliasDeclaration.test.ts index 0ae7d96f..bf074f65 100644 --- a/plugins/typescript/src/core/schemaToTypeAliasDeclaration.test.ts +++ b/plugins/typescript/src/core/schemaToTypeAliasDeclaration.test.ts @@ -8,7 +8,7 @@ import ts from "typescript"; import { OpenAPIComponentType, schemaToTypeAliasDeclaration, -} from "./schemaToTypeAliasDeclaration"; +} from "./schemaToTypeAliasDeclaration.js"; describe("schemaToTypeAliasDeclaration", () => { type SchemaObjectWithConst = SchemaObject & { diff --git a/plugins/typescript/src/core/schemaToTypeAliasDeclaration.ts b/plugins/typescript/src/core/schemaToTypeAliasDeclaration.ts index 908b4489..08d448ec 100644 --- a/plugins/typescript/src/core/schemaToTypeAliasDeclaration.ts +++ b/plugins/typescript/src/core/schemaToTypeAliasDeclaration.ts @@ -1,5 +1,5 @@ -import { pascal } from "case"; -import { keys, pickBy, intersection, merge, omit } from "lodash"; +import { pascalCase } from "case-anything"; +import { keys, pickBy, intersection, merge, omit } from "lodash-es"; import { ComponentsObject, DiscriminatorObject, @@ -9,15 +9,15 @@ import { isReferenceObject, isSchemaObject, } from "openapi3-ts/oas30"; -import { singular } from "pluralize"; +import pluralize from "pluralize"; import { isValidIdentifier } from "tsutils"; import ts, { factory as f, isIdentifierPart, isIdentifierStart, } from "typescript"; -import { convertNumberToWord } from "../utils/getEnumProperties"; -import { getReferenceSchema } from "./getReference"; +import { convertNumberToWord } from "../utils/getEnumProperties.js"; +import { getReferenceSchema } from "./getReference.js"; type RemoveIndex = { [P in keyof T as string extends P @@ -67,11 +67,11 @@ export const schemaToTypeAliasDeclaration = ( ? getJSDocComment(schema, context) : undefined; - let identifier = pascal(name); + let identifier = pascalCase(name); if (identifier.length > 0 && !isNaN(Number(identifier))) { // If the identifier can be cast to a number, convert it to a word. - identifier = pascal(convertNumberToWord(Number(identifier))); + identifier = pascalCase(convertNumberToWord(Number(identifier))); } else { // If the identifier does not start with a valid character but valid identifier part, prefix it with an underscore. if ( @@ -127,7 +127,7 @@ export const getType = ( namespace === context.currentComponent ? f.createIdentifier(name) : f.createQualifiedName( - f.createIdentifier(pascal(namespace)), + f.createIdentifier(pascalCase(namespace)), f.createIdentifier(name) ) ); @@ -317,7 +317,7 @@ export const getType = ( getType( property, context, - `${name}${pascal(key)}`.replace(/[^a-zA-Z0-9 ]/g, ""), + `${name}${pascalCase(key)}`.replace(/[^a-zA-Z0-9 ]/g, ""), isEnum ) ); @@ -735,7 +735,7 @@ export const getJSDocComment = ( value.forEach((v) => propertyTags.push( f.createJSDocPropertyTag( - f.createIdentifier(singular(key)), + f.createIdentifier(pluralize.singular(key)), getJsDocIdentifier(v), false ) diff --git a/plugins/typescript/src/generators/generateFetchers.test.ts b/plugins/typescript/src/generators/generateFetchers.test.ts index 89636b5c..8af579de 100644 --- a/plugins/typescript/src/generators/generateFetchers.test.ts +++ b/plugins/typescript/src/generators/generateFetchers.test.ts @@ -1,8 +1,8 @@ import { describe, expect, it } from "vite-plus/test"; -import { set } from "lodash"; +import { set } from "lodash-es"; import { OpenAPIObject } from "openapi3-ts/oas30"; -import { Config, generateFetchers } from "./generateFetchers"; -import { createWriteFileMock } from "../testUtils"; +import { Config, generateFetchers } from "./generateFetchers.js"; +import { createWriteFileMock } from "../testUtils.js"; const config: Config = { filenamePrefix: "petstore", diff --git a/plugins/typescript/src/generators/generateFetchers.ts b/plugins/typescript/src/generators/generateFetchers.ts index 1e9c4036..ecb95baf 100644 --- a/plugins/typescript/src/generators/generateFetchers.ts +++ b/plugins/typescript/src/generators/generateFetchers.ts @@ -1,24 +1,24 @@ import ts, { factory as f } from "typescript"; -import * as c from "case"; -import { get } from "lodash"; +import * as c from "case-anything"; +import { get } from "lodash-es"; -import { ConfigBase, Context } from "./types"; +import { ConfigBase, Context } from "./types.js"; import { PathItemObject } from "openapi3-ts/oas30"; -import { getUsedImports } from "../core/getUsedImports"; -import { createWatermark } from "../core/createWatermark"; -import { createOperationFetcherFnNodes } from "../core/createOperationFetcherFnNodes"; -import { isVerb } from "../core/isVerb"; -import { isOperationObject } from "../core/isOperationObject"; -import { getOperationTypes } from "../core/getOperationTypes"; +import { getUsedImports } from "../core/getUsedImports.js"; +import { createWatermark } from "../core/createWatermark.js"; +import { createOperationFetcherFnNodes } from "../core/createOperationFetcherFnNodes.js"; +import { isVerb } from "../core/isVerb.js"; +import { isOperationObject } from "../core/isOperationObject.js"; +import { getOperationTypes } from "../core/getOperationTypes.js"; import { createNamedImport, shouldUseTypeImport, -} from "../core/createNamedImport"; +} from "../core/createNamedImport.js"; -import { getFetcher } from "../templates/fetcher"; -import { getUtils } from "../templates/utils"; -import { createNamespaceImport } from "../core/createNamespaceImport"; +import { getFetcher } from "../templates/fetcher.js"; +import { getUtils } from "../templates/utils.js"; +import { createNamespaceImport } from "../core/createNamespaceImport.js"; export type Config = ConfigBase & { /** @@ -66,25 +66,26 @@ export const generateFetchers = async (context: Context, config: Config) => { .join("\n"); const filenamePrefix = - c.snake(config.filenamePrefix ?? context.openAPIDocument.info.title) + "-"; + c.snakeCase(config.filenamePrefix ?? context.openAPIDocument.info.title) + + "-"; const formatFilename = typeof config.formatFilename === "function" ? config.formatFilename : config.filenameCase - ? c[config.filenameCase] - : c.camel; + ? c[`${config.filenameCase}Case`] + : c.camelCase; const filename = formatFilename(filenamePrefix + "-components"); - const fetcherFn = c.camel(`${filenamePrefix}-fetch`); + const fetcherFn = c.camelCase(`${filenamePrefix}-fetch`); const nodes: ts.Node[] = []; const fetcherImports = [fetcherFn]; const fetcherFilename = formatFilename(filenamePrefix + "-fetcher"); const utilsFilename = formatFilename(filenamePrefix + "-utils"); - const fetcherExtraPropsTypeName = `${c.pascal( + const fetcherExtraPropsTypeName = `${c.pascalCase( filenamePrefix )}FetcherExtraProps`; @@ -134,7 +135,7 @@ export const generateFetchers = async (context: Context, config: Config) => { ([route, verbs]: [string, PathItemObject]) => { Object.entries(verbs).forEach(([verb, operation]) => { if (!isVerb(verb) || !isOperationObject(operation)) return; - const operationId = c.camel(operation.operationId); + const operationId = c.camelCase(operation.operationId); if (operationIds.includes(operationId)) { throw new Error( `The operationId "${operation.operationId}" is duplicated in your schema definition!` @@ -204,7 +205,7 @@ export const generateFetchers = async (context: Context, config: Config) => { f.createObjectLiteralExpression( Object.entries(operationByTags).map(([tag, operationIds]) => { return f.createPropertyAssignment( - f.createStringLiteral(c.camel(tag)), + f.createStringLiteral(c.camelCase(tag)), f.createObjectLiteralExpression( operationIds.map((operationId) => f.createShorthandPropertyAssignment(operationId) diff --git a/plugins/typescript/src/generators/generateReactQueryComponents.test.ts b/plugins/typescript/src/generators/generateReactQueryComponents.test.ts index c7dab80f..d3b624d2 100644 --- a/plugins/typescript/src/generators/generateReactQueryComponents.test.ts +++ b/plugins/typescript/src/generators/generateReactQueryComponents.test.ts @@ -3,8 +3,8 @@ import { OpenAPIObject } from "openapi3-ts/oas30"; import { Config, generateReactQueryComponents, -} from "./generateReactQueryComponents"; -import { createWriteFileMock } from "../testUtils"; +} from "./generateReactQueryComponents.js"; +import { createWriteFileMock } from "../testUtils.js"; const config: Config = { filenamePrefix: "petstore", diff --git a/plugins/typescript/src/generators/generateReactQueryComponents.ts b/plugins/typescript/src/generators/generateReactQueryComponents.ts index 7d75b411..7e2f628a 100644 --- a/plugins/typescript/src/generators/generateReactQueryComponents.ts +++ b/plugins/typescript/src/generators/generateReactQueryComponents.ts @@ -1,27 +1,27 @@ import ts, { factory as f } from "typescript"; -import * as c from "case"; -import { get, camelCase } from "lodash"; +import * as c from "case-anything"; +import { get } from "lodash-es"; -import { ConfigBase, Context } from "./types"; +import { ConfigBase, Context } from "./types.js"; import { OperationObject, PathItemObject } from "openapi3-ts/oas30"; -import { getUsedImports } from "../core/getUsedImports"; -import { createWatermark } from "../core/createWatermark"; -import { createOperationFetcherFnNodes } from "../core/createOperationFetcherFnNodes"; -import { isVerb } from "../core/isVerb"; -import { isOperationObject } from "../core/isOperationObject"; -import { getOperationTypes } from "../core/getOperationTypes"; +import { getUsedImports } from "../core/getUsedImports.js"; +import { createWatermark } from "../core/createWatermark.js"; +import { createOperationFetcherFnNodes } from "../core/createOperationFetcherFnNodes.js"; +import { isVerb } from "../core/isVerb.js"; +import { isOperationObject } from "../core/isOperationObject.js"; +import { getOperationTypes } from "../core/getOperationTypes.js"; import { createNamedImport, createNamedImportWithTypes, -} from "../core/createNamedImport"; +} from "../core/createNamedImport.js"; -import { getFetcher } from "../templates/fetcher"; -import { getContext } from "../templates/context"; -import { getUtils } from "../templates/utils"; -import { createNamespaceImport } from "../core/createNamespaceImport"; -import { camelizedPathParams } from "../core/camelizedPathParams"; -import { createOperationQueryFnNodes } from "../core/createOperationQueryFnNodes"; +import { getFetcher } from "../templates/fetcher.js"; +import { getContext } from "../templates/context.js"; +import { getUtils } from "../templates/utils.js"; +import { createNamespaceImport } from "../core/createNamespaceImport.js"; +import { camelizedPathParams } from "../core/camelizedPathParams.js"; +import { createOperationQueryFnNodes } from "../core/createOperationQueryFnNodes.js"; export type Config = ConfigBase & { /** @@ -74,21 +74,21 @@ export const generateReactQueryComponents = async ( .join("\n"); const filenamePrefix = - c.snake(finalConfig.filenamePrefix ?? context.openAPIDocument.info.title) + + c.snakeCase(finalConfig.filenamePrefix ?? context.openAPIDocument.info.title) + "-"; const formatFilename = typeof finalConfig.formatFilename === "function" ? finalConfig.formatFilename : finalConfig.filenameCase - ? c[finalConfig.filenameCase] - : c.camel; + ? c[`${finalConfig.filenameCase}Case`] + : c.camelCase; const filename = formatFilename(filenamePrefix + "-components"); - const fetcherFn = c.camel(`${filenamePrefix}-fetch`); - const contextTypeName = `${c.pascal(filenamePrefix)}Context`; - const contextHookName = `use${c.pascal(filenamePrefix)}Context`; + const fetcherFn = c.camelCase(`${filenamePrefix}-fetch`); + const contextTypeName = `${c.pascalCase(filenamePrefix)}Context`; + const contextHookName = `use${c.pascalCase(filenamePrefix)}Context`; const nodes: ts.Node[] = []; const keyManagerItems: ts.TypeLiteralNode[] = []; @@ -145,7 +145,7 @@ export const generateReactQueryComponents = async ( ([route, verbs]: [string, PathItemObject]) => { Object.entries(verbs).forEach(([verb, operation]) => { if (!isVerb(verb) || !isOperationObject(operation)) return; - const operationId = c.camel(operation.operationId); + const operationId = c.camelCase(operation.operationId); if (operationIds.includes(operationId)) { throw new Error( `The operationId "${operation.operationId}" is duplicated in your schema definition!` @@ -180,8 +180,8 @@ export const generateReactQueryComponents = async ( nodes.push(...declarationNodes); - const operationFetcherFnName = `fetch${c.pascal(operationId)}`; - const operationQueryFnName = camelCase(`${c.camel(operationId)}Query`); + const operationFetcherFnName = `fetch${c.pascalCase(operationId)}`; + const operationQueryFnName = c.camelCase(`${c.camelCase(operationId)}Query`); const component: "useQuery" | "useMutate" = operation["x-openapi-codegen-component"] || @@ -238,7 +238,7 @@ export const generateReactQueryComponents = async ( contextHookName, operationId, url: route, - name: `use${c.pascal(operationId)}`, + name: `use${c.pascalCase(operationId)}`, }; nodes.push( @@ -269,12 +269,12 @@ export const generateReactQueryComponents = async ( }), ...createQueryHook({ ...useQueryHookOptions, - name: `useSuspense${c.pascal(operationId)}`, + name: `useSuspense${c.pascalCase(operationId)}`, useQueryIdentifier: "useSuspenseQuery", }), ...createQueryHook({ ...useQueryHookOptions, - name: `use${c.pascal(operationId)}`, + name: `use${c.pascalCase(operationId)}`, useQueryIdentifier: "useQuery", }), ] @@ -285,7 +285,7 @@ export const generateReactQueryComponents = async ( errorType, variablesType, contextHookName, - name: `use${c.pascal(operationId)}`, + name: `use${c.pascalCase(operationId)}`, })) ); }); diff --git a/plugins/typescript/src/generators/generateSchemaTypes.test.ts b/plugins/typescript/src/generators/generateSchemaTypes.test.ts index a2ae1487..80258032 100644 --- a/plugins/typescript/src/generators/generateSchemaTypes.test.ts +++ b/plugins/typescript/src/generators/generateSchemaTypes.test.ts @@ -1,8 +1,8 @@ import { describe, expect, it, vi } from "vite-plus/test"; import { OpenAPIObject } from "openapi3-ts/oas30"; -import { petstore } from "../fixtures/petstore"; -import { generateSchemaTypes } from "./generateSchemaTypes"; -import { createWriteFileMock } from "../testUtils"; +import { petstore } from "../fixtures/petstore.js"; +import { generateSchemaTypes } from "./generateSchemaTypes.js"; +import { createWriteFileMock } from "../testUtils.js"; describe("generateSchemaTypes", () => { describe("filenameCase option", () => { @@ -236,27 +236,27 @@ describe("generateSchemaTypes", () => { Carlin = "carlin", Beagle = "beagle", } - + export enum CatTemperament { Calm = "calm", Playful = "playful", Aggressive = "aggressive", Shy = "shy", } - + export enum DogBreed { Saimois = "saimois", Bengal = "bengal", BritishShorthair = "british shorthair", } - + export enum DogTemperament { Calm = "calm", Playful = "playful", Aggressive = "aggressive", Shy = "shy", } - + /** * A new pet. */ diff --git a/plugins/typescript/src/generators/generateSchemaTypes.ts b/plugins/typescript/src/generators/generateSchemaTypes.ts index c7f88468..a50495fa 100644 --- a/plugins/typescript/src/generators/generateSchemaTypes.ts +++ b/plugins/typescript/src/generators/generateSchemaTypes.ts @@ -1,20 +1,20 @@ -import * as c from "case"; +import * as c from "case-anything"; import ts from "typescript"; import { ReferenceObject, SchemaObject } from "openapi3-ts/oas30"; -import { createWatermark } from "../core/createWatermark"; -import { getUsedImports } from "../core/getUsedImports"; +import { createWatermark } from "../core/createWatermark.js"; +import { getUsedImports } from "../core/getUsedImports.js"; import { OpenAPIComponentType, schemaToTypeAliasDeclaration, -} from "../core/schemaToTypeAliasDeclaration"; -import { getEnumProperties } from "../utils/getEnumProperties"; -import { ConfigBase, Context } from "./types"; +} from "../core/schemaToTypeAliasDeclaration.js"; +import { getEnumProperties } from "../utils/getEnumProperties.js"; +import { ConfigBase, Context } from "./types.js"; import { isReferenceObject } from "openapi3-ts/oas30"; -import { findCompatibleMediaType } from "../core/findCompatibleMediaType"; -import { schemaToEnumDeclaration } from "../core/schemaToEnumDeclaration"; +import { findCompatibleMediaType } from "../core/findCompatibleMediaType.js"; +import { schemaToEnumDeclaration } from "../core/schemaToEnumDeclaration.js"; type Config = ConfigBase; @@ -106,15 +106,16 @@ export const generateSchemaTypes = async ( }; const filenamePrefix = - c.snake(finalConfig.filenamePrefix ?? context.openAPIDocument.info.title) + - "-"; + c.snakeCase( + finalConfig.filenamePrefix ?? context.openAPIDocument.info.title + ) + "-"; const formatFilename = typeof finalConfig.formatFilename === "function" ? finalConfig.formatFilename : finalConfig.filenameCase - ? c[finalConfig.filenameCase] - : c.camel; + ? c[`${finalConfig.filenameCase}Case`] + : c.camelCase; const files = { requestBodies: formatFilename(filenamePrefix + "-request-bodies"), schemas: formatFilename(filenamePrefix + "-schemas"), diff --git a/plugins/typescript/src/generators/types.ts b/plugins/typescript/src/generators/types.ts index 3494b742..92c20757 100644 --- a/plugins/typescript/src/generators/types.ts +++ b/plugins/typescript/src/generators/types.ts @@ -1,5 +1,4 @@ import { OpenAPIObject } from "openapi3-ts/oas30"; -import * as c from "case"; /** * Generator context (provided by `@openapi-codegen/cli`) @@ -24,7 +23,7 @@ export type ConfigBase = { * * @default camel */ - filenameCase?: keyof Pick; + filenameCase?: "snake" | "camel" | "kebab" | "pascal"; /** * Allows customizing the filename. * If provided, `filenameCase` will be ignored. diff --git a/plugins/typescript/src/index.ts b/plugins/typescript/src/index.ts index 2b99e19a..ca8b2eb6 100644 --- a/plugins/typescript/src/index.ts +++ b/plugins/typescript/src/index.ts @@ -1,9 +1,9 @@ // Generators -export { generateSchemaTypes } from "./generators/generateSchemaTypes"; -export { generateReactQueryComponents } from "./generators/generateReactQueryComponents"; -export { generateFetchers } from "./generators/generateFetchers"; +export { generateSchemaTypes } from "./generators/generateSchemaTypes.js"; +export { generateReactQueryComponents } from "./generators/generateReactQueryComponents.js"; +export { generateFetchers } from "./generators/generateFetchers.js"; // Utils -export { renameComponent } from "./utils/renameComponent"; -export { forceReactQueryComponent } from "./utils/forceReactQueryComponent"; -export { addPathParam } from "./utils/addPathParam"; +export { renameComponent } from "./utils/renameComponent.js"; +export { forceReactQueryComponent } from "./utils/forceReactQueryComponent.js"; +export { addPathParam } from "./utils/addPathParam.js"; diff --git a/plugins/typescript/src/templates/context.ts b/plugins/typescript/src/templates/context.ts index 816e303f..e6fc9e31 100644 --- a/plugins/typescript/src/templates/context.ts +++ b/plugins/typescript/src/templates/context.ts @@ -1,4 +1,4 @@ -import { pascal } from "case"; +import { pascalCase } from "case-anything"; export const getContext = ( prefix: string, @@ -12,8 +12,8 @@ export const getContext = ( type UseQueryOptions, } from "@tanstack/react-query"; import ${useTypeImports ? "type { QueryOperation }" : "{ QueryOperation }"} from './${componentsFile}'; - - export type ${pascal(prefix)}Context< + + export type ${pascalCase(prefix)}Context< TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, @@ -37,20 +37,20 @@ export const getContext = ( enabled?: UseQueryOptions["enabled"]; }; }; - + /** * Context injected into every react-query hook wrappers - * + * * @param queryOptions options from the useQuery wrapper */ - export function use${pascal(prefix)}Context< + export function use${pascalCase(prefix)}Context< TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey >( _queryOptions?: Omit, 'queryKey' | 'queryFn'> - ): ${pascal(prefix)}Context { + ): ${pascalCase(prefix)}Context { return { fetcherOptions: {}, queryOptions: {} @@ -64,15 +64,15 @@ export const getContext = ( .filter(Boolean) .map((i) => resolvePathParam(i, operation.variables.pathParams)) : operation.path.split("/").filter(Boolean); - + if (hasQueryParams(operation)) { queryKey.push(operation.variables.queryParams); } - + if (hasBody(operation)) { queryKey.push(operation.variables.body); } - + return queryKey; } diff --git a/plugins/typescript/src/templates/fetcher.ts b/plugins/typescript/src/templates/fetcher.ts index ff7d20c2..6ce91c57 100644 --- a/plugins/typescript/src/templates/fetcher.ts +++ b/plugins/typescript/src/templates/fetcher.ts @@ -1,4 +1,4 @@ -import { camel, pascal } from "case"; +import { camelCase, pascalCase } from "case-anything"; /** * Get fetcher template @@ -18,13 +18,13 @@ export const getFetcher = ({ }) => `${ contextPath - ? `import ${useTypeImports ? `type { ${pascal(prefix)}Context }` : `{ ${pascal(prefix)}Context }`} from "./${contextPath}";` - : `export type ${pascal(prefix)}FetcherExtraProps = { + ? `import ${useTypeImports ? `type { ${pascalCase(prefix)}Context }` : `{ ${pascalCase(prefix)}Context }`} from "./${contextPath}";` + : `export type ${pascalCase(prefix)}FetcherExtraProps = { /** * You can add some extra props to your generated fetchers. * * Note: You need to re-gen after adding the first property to - * have the \`${pascal(prefix)}FetcherExtraProps\` injected in \`${pascal( + * have the \`${pascalCase(prefix)}FetcherExtraProps\` injected in \`${pascalCase( prefix )}Components.ts\` **/ @@ -37,7 +37,7 @@ export type ErrorWrapper = | TError | { status: "unknown"; payload: string }; -export type ${pascal( +export type ${pascalCase( prefix )}FetcherOptions = { url: string; @@ -49,11 +49,11 @@ export type ${pascal( signal?: AbortSignal; } & ${ contextPath - ? `${pascal(prefix)}Context["fetcherOptions"];` - : `${pascal(prefix)}FetcherExtraProps` + ? `${pascalCase(prefix)}Context["fetcherOptions"];` + : `${pascalCase(prefix)}FetcherExtraProps` } -export async function ${camel(prefix)}Fetch< +export async function ${camelCase(prefix)}Fetch< TData, TError, TBody extends {} | FormData | undefined | null, @@ -68,7 +68,7 @@ export async function ${camel(prefix)}Fetch< pathParams, queryParams, signal, -}: ${pascal(prefix)}FetcherOptions< +}: ${pascalCase(prefix)}FetcherOptions< TBody, THeaders, TQueryParams, diff --git a/plugins/typescript/src/templates/utils.ts b/plugins/typescript/src/templates/utils.ts index 3a700bf9..cbc0f56e 100644 --- a/plugins/typescript/src/templates/utils.ts +++ b/plugins/typescript/src/templates/utils.ts @@ -1,7 +1,7 @@ import { clientErrorStatus, serverErrorStatus, -} from "../core/getErrorResponseType"; +} from "../core/getErrorResponseType.js"; export const getUtils = () => `type ComputeRange< diff --git a/plugins/typescript/src/utils/addPathParam.test.ts b/plugins/typescript/src/utils/addPathParam.test.ts index 8808469e..aeded1ea 100644 --- a/plugins/typescript/src/utils/addPathParam.test.ts +++ b/plugins/typescript/src/utils/addPathParam.test.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from "vite-plus/test"; import { OpenAPIObject } from "openapi3-ts/oas30"; -import { addPathParam } from "./addPathParam"; +import { addPathParam } from "./addPathParam.js"; describe("addPathParam", () => { const openAPIDocument: OpenAPIObject = { diff --git a/plugins/typescript/src/utils/addPathParam.ts b/plugins/typescript/src/utils/addPathParam.ts index 1e202ab4..ce891f50 100644 --- a/plugins/typescript/src/utils/addPathParam.ts +++ b/plugins/typescript/src/utils/addPathParam.ts @@ -1,4 +1,4 @@ -import { mapValues } from "lodash"; +import { mapValues } from "lodash-es"; import { OpenAPIObject, PathItemObject } from "openapi3-ts/oas30"; /** diff --git a/plugins/typescript/src/utils/forceReactQueryComponent.test.ts b/plugins/typescript/src/utils/forceReactQueryComponent.test.ts index b03c4f4f..433da4fa 100644 --- a/plugins/typescript/src/utils/forceReactQueryComponent.test.ts +++ b/plugins/typescript/src/utils/forceReactQueryComponent.test.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from "vite-plus/test"; -import { petstore } from "../fixtures/petstore"; -import { forceReactQueryComponent } from "./forceReactQueryComponent"; +import { petstore } from "../fixtures/petstore.js"; +import { forceReactQueryComponent } from "./forceReactQueryComponent.js"; describe("forceReactQueryComponent", () => { it("should add the extension to the targeted operationId", () => { diff --git a/plugins/typescript/src/utils/forceReactQueryComponent.ts b/plugins/typescript/src/utils/forceReactQueryComponent.ts index 86c8c0c4..caee43f6 100644 --- a/plugins/typescript/src/utils/forceReactQueryComponent.ts +++ b/plugins/typescript/src/utils/forceReactQueryComponent.ts @@ -1,8 +1,8 @@ -import { cloneDeep, set } from "lodash"; +import { cloneDeep, set } from "lodash-es"; import { OpenAPIObject, PathItemObject } from "openapi3-ts/oas30"; -import { isOperationObject } from "../core/isOperationObject"; -import { isVerb } from "../core/isVerb"; +import { isOperationObject } from "../core/isOperationObject.js"; +import { isVerb } from "../core/isVerb.js"; export const forceReactQueryComponent = ({ openAPIDocument, diff --git a/plugins/typescript/src/utils/getEnumProperties.test.ts b/plugins/typescript/src/utils/getEnumProperties.test.ts index 452749e7..bb3fdd99 100644 --- a/plugins/typescript/src/utils/getEnumProperties.test.ts +++ b/plugins/typescript/src/utils/getEnumProperties.test.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from "vite-plus/test"; import { ReferenceObject, SchemaObject } from "openapi3-ts/oas30"; -import { convertNumberToWord, getEnumProperties } from "./getEnumProperties"; +import { convertNumberToWord, getEnumProperties } from "./getEnumProperties.js"; describe("getEnumProperties", () => { it("should return an empty array when input schema array is empty", () => { diff --git a/plugins/typescript/src/utils/getEnumProperties.ts b/plugins/typescript/src/utils/getEnumProperties.ts index 1564f539..8ca73234 100644 --- a/plugins/typescript/src/utils/getEnumProperties.ts +++ b/plugins/typescript/src/utils/getEnumProperties.ts @@ -1,4 +1,4 @@ -import { pascal } from "case"; +import { pascalCase } from "case-anything"; import { isReferenceObject, ReferenceObject, @@ -24,7 +24,7 @@ export const getEnumProperties = ( ([propertyName, propertySchema]) => { processProperty( enumProperties, - `${name}${pascal(propertyName)}`, + `${name}${pascalCase(propertyName)}`, propertySchema ); } @@ -42,13 +42,13 @@ const processProperty = ( ) => { if (isReferenceObject(propertySchema)) return; if (propertySchema.enum) { - enumProperties.push([`${pascal(propertyName)}`, propertySchema]); + enumProperties.push([`${pascalCase(propertyName)}`, propertySchema]); } else if (propertySchema.type === "object" && propertySchema.properties) { Object.entries(propertySchema.properties).forEach( ([nestedPropertyName, nestedPropertySchema]) => { processProperty( enumProperties, - `${propertyName}${pascal(nestedPropertyName)}`, + `${propertyName}${pascalCase(nestedPropertyName)}`, nestedPropertySchema ); } diff --git a/plugins/typescript/src/utils/renameComponent.test.ts b/plugins/typescript/src/utils/renameComponent.test.ts index 8e330b14..3ef9f216 100644 --- a/plugins/typescript/src/utils/renameComponent.test.ts +++ b/plugins/typescript/src/utils/renameComponent.test.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from "vite-plus/test"; import { OpenAPIObject } from "openapi3-ts/oas30"; -import { petstore } from "../fixtures/petstore"; -import { renameComponent } from "./renameComponent"; +import { petstore } from "../fixtures/petstore.js"; +import { renameComponent } from "./renameComponent.js"; describe("renameComponent", () => { it("should rename all $ref", () => { diff --git a/plugins/typescript/src/utils/renameComponent.ts b/plugins/typescript/src/utils/renameComponent.ts index fe34b302..7a6f697d 100644 --- a/plugins/typescript/src/utils/renameComponent.ts +++ b/plugins/typescript/src/utils/renameComponent.ts @@ -1,4 +1,4 @@ -import { get, set, unset } from "lodash"; +import { get, set, unset } from "lodash-es"; import { OpenAPIObject } from "openapi3-ts/oas30"; /** diff --git a/plugins/typescript/tsconfig.json b/plugins/typescript/tsconfig.json index 372581f7..2494e911 100644 --- a/plugins/typescript/tsconfig.json +++ b/plugins/typescript/tsconfig.json @@ -1,8 +1,6 @@ { "extends": "../../tsconfig.json", "compilerOptions": { - "module": "Node16", - "moduleResolution": "Node16", "lib": ["ESNext", "DOM"] }, "include": ["src/**/*"] diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a85bf3a7..fcefec3f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -205,9 +205,9 @@ importers: '@swc/core': specifier: ^1.16.13 version: 1.16.13 - case: - specifier: ^1.6.3 - version: 1.6.3 + case-anything: + specifier: ^3.1.7 + version: 3.1.7 cli-highlight: specifier: ^2.1.11 version: 2.1.11 @@ -288,10 +288,10 @@ importers: plugins/typescript: dependencies: - case: - specifier: ^1.6.3 - version: 1.6.3 - lodash: + case-anything: + specifier: ^3.1.7 + version: 3.1.7 + lodash-es: specifier: ^4.18.1 version: 4.18.1 openapi3-ts: @@ -307,9 +307,9 @@ importers: specifier: ~6.0.2 version: 6.0.3 devDependencies: - '@types/lodash': - specifier: ^4.17.25 - version: 4.17.25 + '@types/lodash-es': + specifier: ^4.17.12 + version: 4.17.12 '@types/pluralize': specifier: ^0.0.33 version: 0.0.33 @@ -1337,6 +1337,9 @@ packages: '@types/jsonfile@6.1.4': resolution: {integrity: sha512-D5qGUYwjvnNNextdU59/+fI+spnwtTFmyQP0h+PfIOSkNfpU6AOICUOkm4i0OnSk+NyjdPJrxCDro0sJsWlRpQ==} + '@types/lodash-es@4.17.12': + resolution: {integrity: sha512-0NgftHUcV4v34VhXm8QBSftKVXtbkBG3ViCjs6+eJ5a6y6Mi/jiFGPc1sC7QK+9BFhWrURE3EOggmWaSxL9OzQ==} + '@types/lodash@4.17.25': resolution: {integrity: sha512-+K1NIO8I+F9/wNulfVvu23QYd0Pe9/OCqRrim4NoYIf1VoEDL90Ve4ClzpyqBLc7NpGGWRvYNCKZ1BE/Jpf8dQ==} @@ -1573,9 +1576,9 @@ packages: resolution: {integrity: sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==} engines: {node: '>=6'} - case@1.6.3: - resolution: {integrity: sha512-mzDSXIPaFwVDvZAHqZ9VlbyF4yyXRuX6IvB06WvPYkqJVO24kX1PPhv9bfpKNFZyxYFmmgo03HUiD8iklmJYRQ==} - engines: {node: '>= 0.8.0'} + case-anything@3.1.7: + resolution: {integrity: sha512-52UPzAJDZgxaNsYK4kvmov1kVaAfPc+OU2j0OSUZWbdWMuJd7Axi94XWSfSuafMd7K9avhsEnU6W6rXJdAd+Ug==} + engines: {node: '>=18'} chai@6.3.0: resolution: {integrity: sha512-XWAtwJ6OHO+tj0EKCs0Y2UamnyOxseZWltU4x2U2wh8g4AigdjwvtUjvLP2tqkA/avxHEtzxNaqGq/YGNwckKg==} @@ -1911,6 +1914,9 @@ packages: resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==} engines: {node: '>=8'} + lodash-es@4.18.1: + resolution: {integrity: sha512-J8xewKD/Gk22OZbhpOVSwcs60zhd95ESDwezOFuA3/099925PdHJ7OFHNTGtajL3AlZkykD32HykiMo+BIBI8A==} + lodash@4.18.1: resolution: {integrity: sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==} @@ -3102,6 +3108,10 @@ snapshots: dependencies: '@types/node': 26.6.5 + '@types/lodash-es@4.17.12': + dependencies: + '@types/lodash': 4.17.25 + '@types/lodash@4.17.25': {} '@types/ms@2.1.0': {} @@ -3290,7 +3300,7 @@ snapshots: camelcase@5.3.1: {} - case@1.6.3: {} + case-anything@3.1.7: {} chai@6.3.0: {} @@ -3631,6 +3641,8 @@ snapshots: dependencies: p-locate: 4.1.0 + lodash-es@4.18.1: {} + lodash@4.18.1: {} lowercase-keys@3.0.0: {} diff --git a/tsconfig.json b/tsconfig.json index 1ab76e5d..1e7ce3dc 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,8 +1,8 @@ { "compilerOptions": { - "module": "ESNext", + "module": "NodeNext", "target": "ESNext", - "moduleResolution": "Bundler", + "moduleResolution": "NodeNext", "lib": ["ESNext"], "allowSyntheticDefaultImports": true, "strict": true, From a995f25a9aea6c9c634897af8f72b15155591986 Mon Sep 17 00:00:00 2001 From: Fabien Bernard Date: Tue, 3 Nov 2026 19:31:57 +0100 Subject: [PATCH 6/9] Build before testing --- .github/workflows/tests.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index b2a30cea..be5bec8c 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -25,6 +25,8 @@ jobs: cache: "pnpm" - name: Install dependencies run: pnpm install + - name: Build + run: pnpm build - name: Check types, linting and code style run: pnpm check - name: Run tests From 0ab263f69c64c7b642c702d2ff068da05cb6cefd Mon Sep 17 00:00:00 2001 From: Fabien Bernard Date: Wed, 4 Nov 2026 18:14:59 +0100 Subject: [PATCH 7/9] Fix regression when calling `Schema.Foo` (should be pascal to match the declaration) --- .../src/core/schemaToTypeAliasDeclaration.ts | 4 +- plugins/typescript/src/fixtures/petstore.ts | 20 +-- .../generateReactQueryComponents.test.ts | 2 +- .../generators/generateSchemaTypes.test.ts | 132 +++++++++--------- .../src/utils/renameComponent.test.ts | 2 +- 5 files changed, 78 insertions(+), 82 deletions(-) diff --git a/plugins/typescript/src/core/schemaToTypeAliasDeclaration.ts b/plugins/typescript/src/core/schemaToTypeAliasDeclaration.ts index 08d448ec..4ea69c8b 100644 --- a/plugins/typescript/src/core/schemaToTypeAliasDeclaration.ts +++ b/plugins/typescript/src/core/schemaToTypeAliasDeclaration.ts @@ -125,10 +125,10 @@ export const getType = ( let refNode: ts.TypeNode = f.createTypeReferenceNode( namespace === context.currentComponent - ? f.createIdentifier(name) + ? f.createIdentifier(pascalCase(name)) : f.createQualifiedName( f.createIdentifier(pascalCase(namespace)), - f.createIdentifier(name) + f.createIdentifier(pascalCase(name)) ) ); diff --git a/plugins/typescript/src/fixtures/petstore.ts b/plugins/typescript/src/fixtures/petstore.ts index c9f9af14..0a619a9f 100644 --- a/plugins/typescript/src/fixtures/petstore.ts +++ b/plugins/typescript/src/fixtures/petstore.ts @@ -62,7 +62,7 @@ export const petstore: OpenAPIObject = { schema: { type: "array", items: { - $ref: "#/components/schemas/Pet", + $ref: "#/components/schemas/pet", }, }, }, @@ -89,7 +89,7 @@ export const petstore: OpenAPIObject = { content: { "application/json": { schema: { - $ref: "#/components/schemas/NewPet", + $ref: "#/components/schemas/new-pet", }, }, }, @@ -100,7 +100,7 @@ export const petstore: OpenAPIObject = { content: { "application/json": { schema: { - $ref: "#/components/schemas/Pet", + $ref: "#/components/schemas/pet", }, }, }, @@ -141,7 +141,7 @@ export const petstore: OpenAPIObject = { content: { "application/json": { schema: { - $ref: "#/components/schemas/Pet", + $ref: "#/components/schemas/pet", }, }, }, @@ -213,7 +213,7 @@ export const petstore: OpenAPIObject = { content: { "application/json": { schema: { - $ref: "#/components/schemas/Pet", + $ref: "#/components/schemas/pet", }, }, }, @@ -259,7 +259,7 @@ export const petstore: OpenAPIObject = { content: { "application/json": { schema: { - $ref: "#/components/schemas/NewPet", + $ref: "#/components/schemas/new-pet", }, }, }, @@ -286,7 +286,7 @@ export const petstore: OpenAPIObject = { content: { "application/json": { schema: { - $ref: "#/components/schemas/Pet", + $ref: "#/components/schemas/pet", }, }, }, @@ -304,11 +304,11 @@ export const petstore: OpenAPIObject = { }, }, schemas: { - Pet: { + pet: { description: "A pet.", allOf: [ { - $ref: "#/components/schemas/NewPet", + $ref: "#/components/schemas/new-pet", }, { type: "object", @@ -322,7 +322,7 @@ export const petstore: OpenAPIObject = { }, ], }, - NewPet: { + "new-pet": { description: "A new pet.", type: "object", required: ["name"], diff --git a/plugins/typescript/src/generators/generateReactQueryComponents.test.ts b/plugins/typescript/src/generators/generateReactQueryComponents.test.ts index d3b624d2..8bda03cc 100644 --- a/plugins/typescript/src/generators/generateReactQueryComponents.test.ts +++ b/plugins/typescript/src/generators/generateReactQueryComponents.test.ts @@ -63,7 +63,7 @@ describe("generateReactQueryComponents", () => { schema: { type: "array", items: { - $ref: "#/components/schemas/Pet", + $ref: "#/components/schemas/pet", }, }, }, diff --git a/plugins/typescript/src/generators/generateSchemaTypes.test.ts b/plugins/typescript/src/generators/generateSchemaTypes.test.ts index 80258032..992c64cf 100644 --- a/plugins/typescript/src/generators/generateSchemaTypes.test.ts +++ b/plugins/typescript/src/generators/generateSchemaTypes.test.ts @@ -138,72 +138,70 @@ describe("generateSchemaTypes", () => { expect(writeFile.mock.calls[0][1]).toMatchInlineSnapshot(` "/** * Generated by @openapi-codegen - * + * * @version 1.0.0 */ /** * A new pet. */ - export type Pet = NewPet & { - /** - * @format int64 - */ - id: number; + export type Pet = new-pet & { + /** + * @format int64 + */ + id: number; }; /** * A new pet. */ export type NewPet = { - name: string; - tag?: string; + name: string; + tag?: string; }; /** * A discriminator example. */ - export type CatOrDog = - | (Omit & { - type: "cat"; - }) - | (Omit & { - type: "dog"; - }); + export type CatOrDog = (Omit & { + type: "cat"; + }) | (Omit & { + type: "dog"; + }); /** * A cat, meow. */ export type Cat = { - type: string; - breed: "labrador" | "carlin" | "beagle"; - temperament: "calm" | "playful" | "aggressive" | "shy" | null; + type: string; + breed: "labrador" | "carlin" | "beagle"; + temperament: "calm" | "playful" | "aggressive" | "shy" | null; }; /** * A dog, wooof. */ export type Dog = { - type: string; - breed: "saimois" | "bengal" | "british shorthair"; - temperament: "calm" | "playful" | "aggressive" | "shy" | null; + type: string; + breed: "saimois" | "bengal" | "british shorthair"; + temperament: "calm" | "playful" | "aggressive" | "shy" | null; }; /** * An error :( */ export type Error = { - /** - * @format int32 - */ - code: number; - message: string; + /** + * @format int32 + */ + code: number; + message: string; }; /** * Request description */ export type Request = { - action?: ("create" | "read" | "update" | "delete")[]; + action?: ("create" | "read" | "update" | "delete")[]; }; " `); @@ -228,98 +226,96 @@ describe("generateSchemaTypes", () => { expect(writeFile.mock.calls[0][1]).toMatchInlineSnapshot(` "/** * Generated by @openapi-codegen - * + * * @version 1.0.0 */ export enum CatBreed { - Labrador = "labrador", - Carlin = "carlin", - Beagle = "beagle", + Labrador = "labrador", + Carlin = "carlin", + Beagle = "beagle" } export enum CatTemperament { - Calm = "calm", - Playful = "playful", - Aggressive = "aggressive", - Shy = "shy", + Calm = "calm", + Playful = "playful", + Aggressive = "aggressive", + Shy = "shy" } export enum DogBreed { - Saimois = "saimois", - Bengal = "bengal", - BritishShorthair = "british shorthair", + Saimois = "saimois", + Bengal = "bengal", + BritishShorthair = "british shorthair" } export enum DogTemperament { - Calm = "calm", - Playful = "playful", - Aggressive = "aggressive", - Shy = "shy", + Calm = "calm", + Playful = "playful", + Aggressive = "aggressive", + Shy = "shy" } /** * A new pet. */ - export type Pet = NewPet & { - /** - * @format int64 - */ - id: number; + export type Pet = new-pet & { + /** + * @format int64 + */ + id: number; }; /** * A new pet. */ export type NewPet = { - name: string; - tag?: string; + name: string; + tag?: string; }; /** * A discriminator example. */ - export type CatOrDog = - | (Omit & { - type: "cat"; - }) - | (Omit & { - type: "dog"; - }); + export type CatOrDog = (Omit & { + type: "cat"; + }) | (Omit & { + type: "dog"; + }); /** * A cat, meow. */ export type Cat = { - type: string; - breed: CatBreed; - temperament: CatTemperament | null; + type: string; + breed: CatBreed; + temperament: CatTemperament | null; }; /** * A dog, wooof. */ export type Dog = { - type: string; - breed: DogBreed; - temperament: DogTemperament | null; + type: string; + breed: DogBreed; + temperament: DogTemperament | null; }; /** * An error :( */ export type Error = { - /** - * @format int32 - */ - code: number; - message: string; + /** + * @format int32 + */ + code: number; + message: string; }; /** * Request description */ export type Request = { - action?: ("create" | "read" | "update" | "delete")[]; + action?: ("create" | "read" | "update" | "delete")[]; }; " `); diff --git a/plugins/typescript/src/utils/renameComponent.test.ts b/plugins/typescript/src/utils/renameComponent.test.ts index 3ef9f216..fc200d2e 100644 --- a/plugins/typescript/src/utils/renameComponent.test.ts +++ b/plugins/typescript/src/utils/renameComponent.test.ts @@ -7,7 +7,7 @@ describe("renameComponent", () => { it("should rename all $ref", () => { const updatedSpecs = renameComponent({ openAPIDocument: petstore, - from: "#/components/schemas/Pet", + from: "#/components/schemas/pet", to: "#/components/schemas/APet", }); const updatedSpecsAsString = JSON.stringify(updatedSpecs); From f0de289f823c08d0fe91bce779242959349bd9c5 Mon Sep 17 00:00:00 2001 From: Fabien Bernard Date: Wed, 4 Nov 2026 18:48:51 +0100 Subject: [PATCH 8/9] Improve `null` in enums spec --- .../core/schemaToTypeAliasDeclaration.test.ts | 10 ++ .../src/core/schemaToTypeAliasDeclaration.ts | 36 +++-- .../generators/generateSchemaTypes.test.ts | 132 +++++++++--------- 3 files changed, 100 insertions(+), 78 deletions(-) diff --git a/plugins/typescript/src/core/schemaToTypeAliasDeclaration.test.ts b/plugins/typescript/src/core/schemaToTypeAliasDeclaration.test.ts index bf074f65..c8e3a689 100644 --- a/plugins/typescript/src/core/schemaToTypeAliasDeclaration.test.ts +++ b/plugins/typescript/src/core/schemaToTypeAliasDeclaration.test.ts @@ -102,6 +102,16 @@ describe("schemaToTypeAliasDeclaration", () => { expect(printSchema(schema)).toBe(`export type Test = "foo" | null;`); }); + it("should handle null in enums", () => { + const schema: SchemaObjectWithConst = { + type: "string", + enum: ["foo", null, "bar"], + }; + expect(printSchema(schema)).toBe( + `export type Test = "foo" | "bar" | null;` + ); + }); + it("should generate an array of numbers", () => { const schema: SchemaObject = { type: "array", diff --git a/plugins/typescript/src/core/schemaToTypeAliasDeclaration.ts b/plugins/typescript/src/core/schemaToTypeAliasDeclaration.ts index 4ea69c8b..29b7cfa0 100644 --- a/plugins/typescript/src/core/schemaToTypeAliasDeclaration.ts +++ b/plugins/typescript/src/core/schemaToTypeAliasDeclaration.ts @@ -224,21 +224,29 @@ export const getType = ( ]); } + const SKIP = Symbol("SKIP"); + const unionTypes = f.createUnionTypeNode([ - ...schema.enum.map((value) => { - if (typeof value === "string") { - return f.createLiteralTypeNode(f.createStringLiteral(value)); - } - if (typeof value === "number") { - return f.createLiteralTypeNode(f.createNumericLiteral(value)); - } - if (typeof value === "boolean") { - return f.createLiteralTypeNode( - value ? f.createTrue() : f.createFalse() - ); - } - return f.createKeywordTypeNode(ts.SyntaxKind.AnyKeyword); - }), + ...schema.enum + .map((value) => { + if (typeof value === "string") { + return f.createLiteralTypeNode(f.createStringLiteral(value)); + } + if (typeof value === "number") { + return f.createLiteralTypeNode(f.createNumericLiteral(value)); + } + if (typeof value === "boolean") { + return f.createLiteralTypeNode( + value ? f.createTrue() : f.createFalse() + ); + } + if (value === null) { + schema.nullable = true; + return SKIP; + } + return f.createKeywordTypeNode(ts.SyntaxKind.AnyKeyword); + }) + .filter((i) => i !== SKIP), ...(schema.nullable ? [f.createLiteralTypeNode(f.createNull())] : []), ]); diff --git a/plugins/typescript/src/generators/generateSchemaTypes.test.ts b/plugins/typescript/src/generators/generateSchemaTypes.test.ts index 992c64cf..80258032 100644 --- a/plugins/typescript/src/generators/generateSchemaTypes.test.ts +++ b/plugins/typescript/src/generators/generateSchemaTypes.test.ts @@ -138,70 +138,72 @@ describe("generateSchemaTypes", () => { expect(writeFile.mock.calls[0][1]).toMatchInlineSnapshot(` "/** * Generated by @openapi-codegen - * + * * @version 1.0.0 */ /** * A new pet. */ - export type Pet = new-pet & { - /** - * @format int64 - */ - id: number; + export type Pet = NewPet & { + /** + * @format int64 + */ + id: number; }; /** * A new pet. */ export type NewPet = { - name: string; - tag?: string; + name: string; + tag?: string; }; /** * A discriminator example. */ - export type CatOrDog = (Omit & { - type: "cat"; - }) | (Omit & { - type: "dog"; - }); + export type CatOrDog = + | (Omit & { + type: "cat"; + }) + | (Omit & { + type: "dog"; + }); /** * A cat, meow. */ export type Cat = { - type: string; - breed: "labrador" | "carlin" | "beagle"; - temperament: "calm" | "playful" | "aggressive" | "shy" | null; + type: string; + breed: "labrador" | "carlin" | "beagle"; + temperament: "calm" | "playful" | "aggressive" | "shy" | null; }; /** * A dog, wooof. */ export type Dog = { - type: string; - breed: "saimois" | "bengal" | "british shorthair"; - temperament: "calm" | "playful" | "aggressive" | "shy" | null; + type: string; + breed: "saimois" | "bengal" | "british shorthair"; + temperament: "calm" | "playful" | "aggressive" | "shy" | null; }; /** * An error :( */ export type Error = { - /** - * @format int32 - */ - code: number; - message: string; + /** + * @format int32 + */ + code: number; + message: string; }; /** * Request description */ export type Request = { - action?: ("create" | "read" | "update" | "delete")[]; + action?: ("create" | "read" | "update" | "delete")[]; }; " `); @@ -226,96 +228,98 @@ describe("generateSchemaTypes", () => { expect(writeFile.mock.calls[0][1]).toMatchInlineSnapshot(` "/** * Generated by @openapi-codegen - * + * * @version 1.0.0 */ export enum CatBreed { - Labrador = "labrador", - Carlin = "carlin", - Beagle = "beagle" + Labrador = "labrador", + Carlin = "carlin", + Beagle = "beagle", } export enum CatTemperament { - Calm = "calm", - Playful = "playful", - Aggressive = "aggressive", - Shy = "shy" + Calm = "calm", + Playful = "playful", + Aggressive = "aggressive", + Shy = "shy", } export enum DogBreed { - Saimois = "saimois", - Bengal = "bengal", - BritishShorthair = "british shorthair" + Saimois = "saimois", + Bengal = "bengal", + BritishShorthair = "british shorthair", } export enum DogTemperament { - Calm = "calm", - Playful = "playful", - Aggressive = "aggressive", - Shy = "shy" + Calm = "calm", + Playful = "playful", + Aggressive = "aggressive", + Shy = "shy", } /** * A new pet. */ - export type Pet = new-pet & { - /** - * @format int64 - */ - id: number; + export type Pet = NewPet & { + /** + * @format int64 + */ + id: number; }; /** * A new pet. */ export type NewPet = { - name: string; - tag?: string; + name: string; + tag?: string; }; /** * A discriminator example. */ - export type CatOrDog = (Omit & { - type: "cat"; - }) | (Omit & { - type: "dog"; - }); + export type CatOrDog = + | (Omit & { + type: "cat"; + }) + | (Omit & { + type: "dog"; + }); /** * A cat, meow. */ export type Cat = { - type: string; - breed: CatBreed; - temperament: CatTemperament | null; + type: string; + breed: CatBreed; + temperament: CatTemperament | null; }; /** * A dog, wooof. */ export type Dog = { - type: string; - breed: DogBreed; - temperament: DogTemperament | null; + type: string; + breed: DogBreed; + temperament: DogTemperament | null; }; /** * An error :( */ export type Error = { - /** - * @format int32 - */ - code: number; - message: string; + /** + * @format int32 + */ + code: number; + message: string; }; /** * Request description */ export type Request = { - action?: ("create" | "read" | "update" | "delete")[]; + action?: ("create" | "read" | "update" | "delete")[]; }; " `); From 9ec3338ac10cd785f230505f3cd6858fe9be0dd3 Mon Sep 17 00:00:00 2001 From: Fabien Bernard Date: Fri, 6 Nov 2026 10:32:17 +0100 Subject: [PATCH 9/9] Merge enum values when needed --- .../core/schemaToTypeAliasDeclaration.test.ts | 76 +++++++++++++ .../src/core/schemaToTypeAliasDeclaration.ts | 106 ++++++++++++------ vite.config.ts | 9 ++ 3 files changed, 155 insertions(+), 36 deletions(-) diff --git a/plugins/typescript/src/core/schemaToTypeAliasDeclaration.test.ts b/plugins/typescript/src/core/schemaToTypeAliasDeclaration.test.ts index c8e3a689..652cdc97 100644 --- a/plugins/typescript/src/core/schemaToTypeAliasDeclaration.test.ts +++ b/plugins/typescript/src/core/schemaToTypeAliasDeclaration.test.ts @@ -112,6 +112,17 @@ describe("schemaToTypeAliasDeclaration", () => { ); }); + it("should handle null in enums (nullable)", () => { + const schema: SchemaObjectWithConst = { + type: "string", + nullable: true, + enum: ["foo", null, "bar"], + }; + expect(printSchema(schema)).toBe( + `export type Test = "foo" | "bar" | null;` + ); + }); + it("should generate an array of numbers", () => { const schema: SchemaObject = { type: "array", @@ -742,6 +753,31 @@ describe("schemaToTypeAliasDeclaration", () => { ); }); + it("should optimize oneOf with null values", () => { + const schema: SchemaObject = { + oneOf: [ + { + type: "string", + nullable: true, + }, + { + type: "integer", + nullable: true, + }, + { + type: "array", + nullable: true, + items: { + type: "string", + }, + }, + ], + }; + expect(printSchema(schema)).toMatchInlineSnapshot( + `"export type Test = string | number | string[] | null;"` + ); + }); + it("should generate a oneOf with const branches", () => { const schema: SchemaObjectWithConst = { oneOf: [ @@ -1005,6 +1041,46 @@ describe("schemaToTypeAliasDeclaration", () => { `); }); + it("should merge enum values", () => { + const schema: SchemaObject = { + allOf: [ + { + type: "object", + properties: { + conclusion: { + type: "string", + nullable: true, + enum: [ + "success", + "failure", + null, + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", + ], + }, + }, + }, + { + type: "object", + properties: { + conclusion: { + type: "string", + enum: ["cancelled", "action_required", "neutral", "timed_out"], + }, + }, + }, + ], + }; + expect(printSchema(schema)).toMatchInlineSnapshot(` + "export type Test = { + conclusion?: "success" | "failure" | "skipped" | "cancelled" | "action_required" | "neutral" | "timed_out" | null; + };" + `); + }); + it("should combine properties & additionalProperties & allOf", () => { const schema: SchemaObject = { allOf: [ diff --git a/plugins/typescript/src/core/schemaToTypeAliasDeclaration.ts b/plugins/typescript/src/core/schemaToTypeAliasDeclaration.ts index 29b7cfa0..9209c0c6 100644 --- a/plugins/typescript/src/core/schemaToTypeAliasDeclaration.ts +++ b/plugins/typescript/src/core/schemaToTypeAliasDeclaration.ts @@ -1,5 +1,5 @@ import { pascalCase } from "case-anything"; -import { keys, pickBy, intersection, merge, omit } from "lodash-es"; +import { keys, pickBy, intersection, merge, omit, uniq } from "lodash-es"; import { ComponentsObject, DiscriminatorObject, @@ -164,14 +164,21 @@ export const getType = ( if (schema.oneOf) { return f.createUnionTypeNode([ - ...schema.oneOf.map((i) => - withDiscriminator( - getType({ ...omit(schema, ["oneOf", "nullable"]), ...i }, context), + ...schema.oneOf.map((i) => { + // Merge nullable to avoid type duplication + if (isSchemaObject(i) && i.nullable) { + schema.nullable = true; + } + return withDiscriminator( + getType( + { ...omit(schema, ["oneOf", "nullable"]), ...omit(i, "nullable") }, + context + ), i, schema.discriminator, context - ) - ), + ); + }), ...(schema.nullable ? [f.createLiteralTypeNode(f.createNull())] : []), ]); } @@ -590,7 +597,8 @@ const mergeSchemas = ( if (Boolean(a.type) && Boolean(b.type) && a.type !== b.type) { return { mergedSchema: { - ...merge(a, b), + ...a, + ...b, ["x-openapi-codegen"]: { type: "never", }, @@ -601,41 +609,67 @@ const mergeSchemas = ( if (a.properties && b.properties) { let isColliding = false; - const properties = Object.entries(a.properties).reduce( - (mergedProperties, [key, propertyA]) => { - const propertyB = b.properties?.[key]; - if (propertyB) { - isColliding = true; - } - if ( - propertyB && - isSchemaObject(propertyB) && - isSchemaObject(propertyA) && - Boolean(propertyB.type) && - Boolean(propertyA.type) && - propertyA.type !== propertyB.type - ) { - return { - ...mergedProperties, - [key]: { - ...propertyA, - ...propertyB, - ["x-openapi-codegen"]: { - type: "never", + + const properties = Object.fromEntries( + uniq([...Object.keys(a.properties), ...Object.keys(b.properties)]).map( + (propertyKey) => { + const propertyA = a.properties ? a.properties[propertyKey] : null; + const propertyB = b.properties ? b.properties[propertyKey] : null; + if (propertyA && propertyB) { + isColliding = true; + } + + // not compatible types + if ( + propertyA && + propertyB && + isSchemaObject(propertyA) && + isSchemaObject(propertyB) && + propertyA.type && + propertyB.type && + propertyA.type !== propertyB.type + ) { + return [ + propertyKey, + { + ...propertyA, + ...propertyB, + ["x-openapi-codegen"]: { + type: "never", + }, }, - }, - }; - } + ]; + } - return { ...mergedProperties, [key]: propertyA }; - }, - {} as typeof a.properties + // enum merging + if ( + propertyB && + propertyA && + isSchemaObject(propertyB) && + isSchemaObject(propertyA) && + propertyA.enum && + propertyB.enum + ) { + return [ + propertyKey, + { + ...propertyA, + ...propertyB, + enum: uniq([...propertyA.enum, ...propertyB.enum]), + }, + ]; + } + + return [propertyKey, { ...propertyA, ...propertyB }]; + } + ) ); return { mergedSchema: { - ...merge({}, a, b), - properties: merge({}, properties, b.properties), + ...a, + ...b, + properties, }, isColliding, }; diff --git a/vite.config.ts b/vite.config.ts index ced673ff..d228a433 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -156,5 +156,14 @@ export default defineConfig({ // Slow to process due to a lot of levels of indentations "plugins/typescript/src/generators/generateReactQueryComponents.ts", ], + overrides: [ + { + files: ["**/*.test.ts"], + options: { + // Avoid inline snapshots to be formatted + embeddedLanguageFormatting: "off", + }, + }, + ], }, });