Skip to content

Commit 243ff1f

Browse files
authored
chore: update dependencies and consolidate examples (#163)
## Summary - Update dependencies to the newest versions eligible under the seven-day release cooldown and override vulnerable transitive dependencies. - Consolidate examples into a separate pnpm workspace with a shared lockfile and validate its frozen install in CI. - Run code generation before snapshot tests to prevent concurrent writes from causing intermittent failures. TypeScript remains at 6.0.3 in the root and API example because tsup and ts-node require the compiler API removed from TypeScript 7. The pure JS example uses TypeScript 7. ## Validation - `pnpm build`, `pnpm type-check`, `pnpm lint`, `pnpm test` - `pnpm audit --audit-level moderate` in root and examples: no known vulnerabilities - examples frozen install and both example generation commands The tsup declaration build emits warnings about private shared type exports; downstream declaration compatibility should be reviewed.
1 parent 6c0754c commit 243ff1f

12 files changed

Lines changed: 3344 additions & 4299 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626
node-version: ${{ matrix.node-version }}
2727
cache: "pnpm"
2828
- run: pnpm install --frozen-lockfile
29+
- name: Install examples
30+
run: pnpm --dir examples install --frozen-lockfile
2931
- name: Test & Build
3032
run: |
3133
pnpm build

‎biome.json‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.5.10/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.6.8/schema.json",
33
"assist": { "actions": { "source": { "organizeImports": "on" } } },
44
"formatter": {
55
"enabled": true,
@@ -43,6 +43,8 @@
4343
"includes": ["**", "!**/dist", "!coverage", "!examples", "!test/code", "!**/__snapshots__"],
4444
"maxSize": 10485760
4545
},
46+
"markdown": { "formatter": { "enabled": false } },
47+
"yaml": { "formatter": { "enabled": false } },
4648
"javascript": {
4749
"formatter": {
4850
"arrowParentheses": "asNeeded"

‎examples/README.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Examples
2+
3+
Install dependencies for all examples from this directory:
4+
5+
```sh
6+
pnpm install
7+
```
8+
9+
Run a sample with `pnpm --filter api-client-demo codegen` or `pnpm --filter pure-js gen` after building the root package with `pnpm build`. Dependencies use a seven-day minimum release age.

‎examples/apis/package.json‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
"ts": "node --no-warnings=ExperimentalWarning --experimental-specifier-resolution=node --loader ts-node/esm"
1212
},
1313
"dependencies": {
14-
"@himenon/openapi-parameter-formatter": "2.1.0",
14+
"@himenon/openapi-parameter-formatter": "3.1.0",
1515
"@himenon/openapi-typescript-code-generator": "link:../..",
16-
"axios": "1.15.2",
17-
"superagent": "10.3.0"
16+
"axios": "1.21.1",
17+
"superagent": "10.4.2"
1818
},
1919
"devDependencies": {
2020
"@types/node-fetch": "^2.6.13",
21-
"@types/superagent": "^8.1.9",
21+
"@types/superagent": "^8.1.11",
2222
"node-fetch": "^3.3.2",
2323
"ts-node": "10.9.2",
2424
"typescript": "6.0.3"

‎examples/package.json‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "examples",
3+
"private": true,
4+
"packageManager": "pnpm@12.3.1",
5+
"engines": {
6+
"node": ">=24.0.0"
7+
}
8+
}

0 commit comments

Comments
 (0)