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

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/actions/setup-node-pnpm/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ runs:
using: composite
steps:
- name: Install pnpm
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0

- name: Use Node.js ${{ inputs.node-version }}
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
registry-url: https://registry.npmjs.org
node-version: ${{ inputs.node-version }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
${{ runner.os }}-nextjs-${{ hashFiles('pnpm-lock.yaml') }}-

- name: Download built workspace
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: workspace-${{ matrix.node-version }}
path: ${{runner.temp}}
Expand Down Expand Up @@ -124,7 +124,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Download built workspace
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: workspace-${{ matrix.node-version }}
path: ${{runner.temp}}
Expand Down Expand Up @@ -161,7 +161,7 @@ jobs:
node-version: ${{ matrix.node-version }}

- name: Download built workspace
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: workspace-${{ matrix.node-version }}
path: ${{runner.temp}}
Expand Down Expand Up @@ -202,7 +202,7 @@ jobs:
node-version: ${{ matrix.node-version }}

- name: Download built workspace
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: workspace-${{ matrix.node-version }}
path: ${{runner.temp}}
Expand Down Expand Up @@ -239,7 +239,7 @@ jobs:
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
registry-url: "https://registry.npmjs.org"
node-version: 26.2.0
node-version: 26.12.1
cache: "pnpm"

- run: pnpm ci
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 26.2.0
node-version: 26.12.1
package-manager-cache: false

- run: pnpm ci
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
registry-url: "https://registry.npmjs.org"
node-version: 26.2.0
node-version: 26.12.1
package-manager-cache: false

- name: Validate tag matches package.json versions
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/typescript-axios/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
"dependencies": {
"@nahkies/typescript-axios-runtime": "workspace:*",
"axios": "catalog:",
"dotenv": "^17.4.2",
"dotenv": "^18.0.0",
"tslib": "^2.8.1"
},
"devDependencies": {
"@types/node": "^22.20.0",
"@types/node": "^26.0.0",
"typescript": "catalog:typescript7"
}
}
4 changes: 2 additions & 2 deletions integration-tests/typescript-fetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
"type": "module",
"dependencies": {
"@nahkies/typescript-fetch-runtime": "workspace:*",
"dotenv": "^17.4.2",
"dotenv": "^18.0.0",
"tslib": "^2.8.1"
},
"devDependencies": {
"@types/node": "^22.20.0",
"@types/node": "^26.0.0",
"typescript": "catalog:typescript7"
}
}
32 changes: 16 additions & 16 deletions mise.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ lockfile = true
experimental = true

[tools]
node = "26.5.0"
"npm:corepack" = "0.35.0"
node = "26.12.1"
"npm:corepack" = "0.36.0"

[hooks]
postinstall = 'npx corepack enable'
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"@lerna-lite/version": "catalog:",
"@tsconfig/node24": "^24.0.5",
"@tsconfig/strictest": "^2.0.8",
"@types/node": "^22.20.0",
"@types/node": "^26.0.0",
"@vitest/coverage-v8": "catalog:",
"commander": "catalog:",
"conventional-changelog-conventionalcommits": "catalog:",
Expand All @@ -70,5 +70,5 @@
"engines": {
"node": ">=22"
},
"packageManager": "pnpm@11.25.0+sha512.5cde925b4f075f725eb71fbae18a42ffe784524789f19b61c731cb8721ec28aaee160e01a8d5af4fedb2a42cdbf300efe23db356b0d4a17b4d63e11f8ab7c956"
"packageManager": "pnpm@12.14.0+sha512.c18ba6d87993d3d164cb5e8948f32b2c06ee854487e06cd8d86781342fb3e5bb4634367034711e86802baa9c37bea906ce1929ad08d70884c97d801df13389a6"
}
2 changes: 1 addition & 1 deletion packages/documentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
"devDependencies": {
"@types/lodash": "catalog:",
"@types/node": "^22.20.0",
"@types/node": "^26.0.0",
"@types/react": "catalog:",
"@types/react-dom": "catalog:",
"gh-pages": "^6.3.0",
Expand Down
14 changes: 7 additions & 7 deletions packages/openapi-code-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"@biomejs/wasm-nodejs": "catalog:",
"@commander-js/extra-typings": "catalog:",
"@hyperjump/json-schema": "catalog:",
"@hyperjump/json-schema-errors": "1.0.0-alpha.1",
"@hyperjump/json-schema-errors": "1.0.1",
"commander": "catalog:",
"js-yaml": "catalog:",
"json5": "^2.2.3",
Expand All @@ -101,15 +101,15 @@
},
"peerDependencies": {
"@typespec/compiler": "^1.12.0",
"@typespec/events": "^0.84.0",
"@typespec/events": "^0.87.0",
"@typespec/http": "^1.12.0",
"@typespec/openapi": "^1.12.0",
"@typespec/openapi3": "^1.12.0",
"@typespec/rest": "^0.84.0",
"@typespec/sse": "^0.84.0",
"@typespec/streams": "^0.84.0",
"@typespec/versioning": "^0.84.0",
"@typespec/xml": "^0.84.0",
"@typespec/rest": "^0.87.0",
"@typespec/sse": "^0.87.0",
"@typespec/streams": "^0.87.0",
"@typespec/versioning": "^0.87.0",
"@typespec/xml": "^0.87.0",
"prettier": "catalog:"
},
"peerDependenciesMeta": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ describe("core/openapi-validator", () => {
true,
),
).rejects.toThrow(
"Validation failed: -> Expected an object with at least '1' properties at path '#/paths/~1something/get/responses' ({\"schemaLocations\":[\"https://spec.openapis.org/oas/3.0/schema/2021-09-28#/definitions/Responses/minProperties\"]})",
'Validation failed: -> Expected a non-empty object at path \'#/paths/~1something/get/responses\' ({"schemaLocations":["https://spec.openapis.org/oas/3.0/schema/2021-09-28#/definitions/Responses/minProperties"]})',
)
})
})
Expand Down Expand Up @@ -111,8 +111,8 @@ describe("core/openapi-validator", () => {
true,
),
).rejects.toThrow(
"Validation failed: -> Expected an object with at least '1' properties at path '#/paths/~1something/get/responses' ({\"schemaLocations\":[\"https://spec.openapis.org/oas/3.1/schema#/$defs/responses/minProperties\"]})\n" +
"-> Missing required 'property: 'default'' at path '#/paths/~1something/get/responses' ({\"schemaLocations\":[\"https://spec.openapis.org/oas/3.1/schema#/$defs/responses/then/required\"]})",
'Validation failed: -> Expected a non-empty object at path \'#/paths/~1something/get/responses\' ({"schemaLocations":["https://spec.openapis.org/oas/3.1/schema#/$defs/responses/minProperties"]})\n' +
'-> Missing required property: default at path \'#/paths/~1something/get/responses\' ({"schemaLocations":["https://spec.openapis.org/oas/3.1/schema#/$defs/responses/then/required"]})',
)
})
})
Expand Down
11 changes: 1 addition & 10 deletions packages/openapi-code-generator/src/core/openapi-validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ import type {
} from "@hyperjump/json-schema"
import {validate as validate3_0} from "@hyperjump/json-schema/openapi-3-0"
import {validate as validate3_1} from "@hyperjump/json-schema/openapi-3-1"
import {
jsonSchemaErrors,
setNormalizationHandler,
} from "@hyperjump/json-schema-errors"
import {jsonSchemaErrors} from "@hyperjump/json-schema-errors"
import {logger} from "./logger.ts"
import type {ValidateFunction} from "./schemas/IValidateFunction.ts"

Expand Down Expand Up @@ -91,12 +88,6 @@ export class OpenapiValidator implements IOpenapiValidator {
static async create(
onValidationFailed: (filename: string) => Promise<void> = async () => {},
): Promise<OpenapiValidator> {
setNormalizationHandler("https://json-schema.org/keyword/comment", {
evaluate() {
// Only applicator keywords need to return a value
},
})

return new OpenapiValidator(
wrapHyperjump(validate3_1, "https://spec.openapis.org/oas/3.1/schema"),
wrapHyperjump(validate3_0, "https://spec.openapis.org/oas/3.0/schema"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export class ClientServersBuilder implements ICompilable {
operations.length
? `static readonly operations = ${this.classExportName}Operations`
: ""
}
}
}
`
}
Expand Down
1 change: 0 additions & 1 deletion packages/typescript-axios-runtime/src/main.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
} from "./main.ts"

class ConcreteAxiosClient extends AbstractAxiosClient {
// biome-ignore lint/complexity/noUselessConstructor: make public
constructor(config: AbstractAxiosConfig) {
super(config)
}
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript-common-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"test": "vitest run"
},
"dependencies": {
"raw-body": "^3.0.2",
"raw-body": "^4.0.0",
"tslib": "^2.8.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript-express-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"test": "vitest run"
},
"dependencies": {
"raw-body": "^3.0.2",
"raw-body": "^4.0.0",
"tslib": "^2.8.1"
},
"peerDependencies": {
Expand Down
1 change: 0 additions & 1 deletion packages/typescript-fetch-runtime/src/main.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
} from "./main.ts"

class ConcreteFetchClient extends AbstractFetchClient {
// biome-ignore lint/complexity/noUselessConstructor: make public
constructor(config: AbstractFetchClientConfig) {
super(config)
}
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript-koa-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"test": "vitest run"
},
"dependencies": {
"raw-body": "^3.0.2",
"raw-body": "^4.0.0",
"tslib": "^2.8.1"
},
"peerDependencies": {
Expand Down
Loading
Loading