Commit 73e5587
authored
chore(deps): upgrade dev deps to fix audit and bump 3.2.0 (#27)
* chore(deps): upgrade dev deps to fix audit and bump 3.2.0
Resolves all 14 npm audit vulnerabilities (7 high, 7 moderate) by
upgrading devDependencies. Runtime behavior unchanged — vulnerabilities
were only in build/test tooling, not distributed in the published package.
Upgrades:
- @typescript-eslint/{eslint-plugin,parser}: ^6.21.0 → ^8.59.0
- vitest, @vitest/coverage-v8, @vitest/ui: ^1.6.1 → ^4.1.5
- openapi-typescript: ^6.7.0 → ^7.13.0
Adapts scripts/generate-types.ts to openapi-typescript v7 (AST output via
astToString, URL input, Redocly config to tolerate legacy specs). Renames
duplicate operationId in nf-servico-v1.yaml — v6 silently merged the two
distinct operations under /external/{id} and /{id}; v7 correctly keeps
them separate. Migrates test signatures for vitest 4 (it() options arg
moved to second position, FormData mock uses function instead of arrow).
Bumps version 3.1.0 → 3.2.0 (minor) and adds CHANGELOG entry.
* fix(ci): downgrade vitest to 3.x to keep Node 18 supported
CI on Node 18 failed because vitest 4 depends on rolldown, which
imports `styleText` from node:util — only available in Node 20+.
Downgrade vitest, @vitest/coverage-v8 and @vitest/ui from ^4.1.5 to
^3.2.4. Vitest 3.2.4 supports Node 18 ^ 20 ^ >=22 and already ships
with the patched esbuild via Vite, so npm audit remains at 0
vulnerabilities. Existing test changes (it(name, opts, fn) signature,
FormData function mock) are forward-compatible with both 3.x and 4.x.
Validated full pipeline (validate:spec, generate, lint, typecheck,
build, test) under Node 18.20.8 and Node 24.13.1.
* ci: grant pull-requests:write to openapi-validation job
The job uses actions/github-script to post a PR comment with spec
validation info, but failed with HTTP 403 "Resource not accessible by
integration" because the default GITHUB_TOKEN permissions for the
workflow were read-only.
Scope the new permissions to this job only (least privilege) and
keep `contents: read` for checkout — adding a `permissions:` block
implicitly drops all other defaults to none.1 parent ff49f72 commit 73e5587
19 files changed
Lines changed: 23677 additions & 20644 deletions
File tree
- .github/workflows
- openapi/spec
- scripts
- src/generated
- tests
- integration
- unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
130 | 133 | | |
131 | 134 | | |
132 | 135 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
8 | 61 | | |
9 | 62 | | |
10 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4063 | 4063 | | |
4064 | 4064 | | |
4065 | 4065 | | |
4066 | | - | |
| 4066 | + | |
4067 | 4067 | | |
4068 | 4068 | | |
4069 | 4069 | | |
| |||
0 commit comments