Skip to content

Commit b80a973

Browse files
chore(deps): bundle renovate dependency updates (#227)
Bundles open Renovate PRs into one update: - @biomejs/biome 2.5.0 -> 2.5.5 (#218) - @hey-api/openapi-ts ^0.98.2 -> ^0.99.0 + regenerated clients (#217) - semantic-release monorepo incl. changelog v7 / git v11 majors (#219, #226) - typedoc ^0.28.19 -> ^0.28.20 (#221) - actions/checkout v6 -> v7 (#216) - actions/setup-node v6 -> v7 (#224) - Node.js 24.16.0 -> 24.18.0 (#210) - lockfile maintenance (#215) typescript v7 (#223) is excluded: @hey-api/openapi-ts crashes on TS7 (ts.SyntaxKind unavailable in the native compiler API). Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent 68e4c77 commit b80a973

17 files changed

Lines changed: 219 additions & 223 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
steps:
1616
- name: Checkout code
17-
uses: actions/checkout@v6
17+
uses: actions/checkout@v7
1818

1919
- name: Setup Bun
2020
uses: oven-sh/setup-bun@v2
@@ -56,7 +56,7 @@ jobs:
5656

5757
steps:
5858
- name: Checkout code
59-
uses: actions/checkout@v6
59+
uses: actions/checkout@v7
6060

6161
- name: Build Nix flake
6262
run: |

.github/workflows/clawhub-skill.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ jobs:
2323

2424
steps:
2525
- name: Checkout code
26-
uses: actions/checkout@v6
26+
uses: actions/checkout@v7
2727

2828
- name: Setup Node.js
29-
uses: actions/setup-node@v6
29+
uses: actions/setup-node@v7
3030
with:
31-
node-version: '24.16.0'
31+
node-version: '24.18.0'
3232

3333
- name: Validate skill bundle structure
3434
run: |
@@ -64,7 +64,7 @@ jobs:
6464
fi
6565
6666
- name: Checkout code
67-
uses: actions/checkout@v6
67+
uses: actions/checkout@v7
6868

6969
- name: Configure 1Password
7070
uses: 1password/load-secrets-action/configure@v4
@@ -79,9 +79,9 @@ jobs:
7979
CLAWHUB_TOKEN: op://Tsarr/clawhub/api-token
8080

8181
- name: Setup Node.js
82-
uses: actions/setup-node@v6
82+
uses: actions/setup-node@v7
8383
with:
84-
node-version: '24.16.0'
84+
node-version: '24.18.0'
8585

8686
- name: Install ClawHub CLI
8787
run: npm install -g clawhub

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: arc-tsarr
2020
steps:
2121
- name: Checkout
22-
uses: actions/checkout@v6
22+
uses: actions/checkout@v7
2323

2424
- name: Setup Bun
2525
uses: oven-sh/setup-bun@v2

.github/workflows/refresh-specs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
steps:
1616
- name: Checkout code
17-
uses: actions/checkout@v6
17+
uses: actions/checkout@v7
1818
with:
1919
token: ${{ secrets.GITHUB_TOKEN }}
2020

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
steps:
2323
- name: Checkout code
24-
uses: actions/checkout@v6
24+
uses: actions/checkout@v7
2525
with:
2626
fetch-depth: 0
2727
token: ${{ secrets.GITHUB_TOKEN }}
@@ -65,9 +65,9 @@ jobs:
6565
run: bun run build:js && bun run build:cli && bun run build:types
6666

6767
- name: Setup Node.js for npm
68-
uses: actions/setup-node@v6
68+
uses: actions/setup-node@v7
6969
with:
70-
node-version: '24.16.0'
70+
node-version: '24.18.0'
7171
registry-url: 'https://registry.npmjs.org'
7272

7373
- name: Release
@@ -189,7 +189,7 @@ jobs:
189189

190190
steps:
191191
- name: Checkout code
192-
uses: actions/checkout@v6
192+
uses: actions/checkout@v7
193193
with:
194194
ref: v${{ needs.release.outputs.version }}
195195

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
24.16.0
1+
24.18.0

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
24.16.0
1+
24.18.0

bun.lock

Lines changed: 51 additions & 111 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
"main": "dist/index.js",
1313
"module": "dist/index.js",
1414
"devDependencies": {
15-
"@biomejs/biome": "2.5.0",
16-
"@hey-api/openapi-ts": "^0.98.2",
17-
"@semantic-release/changelog": "^6.0.3",
18-
"@semantic-release/git": "^10.0.1",
19-
"@semantic-release/github": "^12.0.8",
15+
"@biomejs/biome": "2.5.5",
16+
"@hey-api/openapi-ts": "^0.99.0",
17+
"@semantic-release/changelog": "^7.0.0",
18+
"@semantic-release/git": "^11.0.0",
19+
"@semantic-release/github": "^12.0.9",
2020
"@semantic-release/npm": "^13.1.5",
2121
"@types/bun": "^1.3.14",
22-
"semantic-release": "^25.0.5",
22+
"semantic-release": "^25.0.8",
2323
"type-coverage": "^2.29.7",
24-
"typedoc": "^0.28.19",
24+
"typedoc": "^0.28.20",
2525
"typescript": "^6.0.3"
2626
},
2727
"exports": {
@@ -88,7 +88,7 @@
8888
},
8989
"description": "Type-safe TypeScript SDK for Servarr APIs (Radarr, Sonarr, etc.)",
9090
"engines": {
91-
"node": ">=24.16.0"
91+
"node": ">=24.18.0"
9292
},
9393
"files": [
9494
"dist",

src/generated/bazarr/core/params.gen.ts

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -88,32 +88,39 @@ function buildKeyMap(fields: FieldsConfig, map?: KeyMap): KeyMap {
8888
}
8989

9090
interface Params {
91-
body: unknown;
91+
body?: unknown;
9292
headers: Record<string, unknown>;
9393
path: Record<string, unknown>;
9494
query: Record<string, unknown>;
9595
}
9696

97-
type ParamsSlotMap = Record<Slot, unknown>;
98-
99-
function stripEmptySlots(params: ParamsSlotMap): void {
97+
function stripEmptySlots(params: Params): void {
10098
for (const [slot, value] of Object.entries(params)) {
99+
if (slot === 'body') continue;
101100
if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) {
102101
delete params[slot as Slot];
103102
}
104103
}
105104
}
106105

107106
export function buildClientParams(args: ReadonlyArray<unknown>, fields: FieldsConfig): Params {
108-
const params: ParamsSlotMap = {
109-
body: Object.create(null),
107+
const params: Params = {
110108
headers: Object.create(null),
111109
path: Object.create(null),
112110
query: Object.create(null),
113111
};
114112

115113
const map = buildKeyMap(fields);
116114

115+
function writeSlot(slot: Slot, key: string, value: unknown): void {
116+
let record = params[slot] as Record<string, unknown> | undefined;
117+
if (record === undefined) {
118+
record = Object.create(null) as Record<string, unknown>;
119+
params[slot] = record;
120+
}
121+
record[key] = value;
122+
}
123+
117124
let config: FieldsConfig[number] | undefined;
118125

119126
for (const [index, arg] of args.entries()) {
@@ -130,7 +137,7 @@ export function buildClientParams(args: ReadonlyArray<unknown>, fields: FieldsCo
130137
const field = map.get(config.key)!;
131138
const name = field.map || config.key;
132139
if (field.in) {
133-
(params[field.in] as Record<string, unknown>)[name] = arg;
140+
writeSlot(field.in, name, arg);
134141
}
135142
} else {
136143
params.body = arg;
@@ -142,7 +149,7 @@ export function buildClientParams(args: ReadonlyArray<unknown>, fields: FieldsCo
142149
if (field) {
143150
if (field.in) {
144151
const name = field.map || key;
145-
(params[field.in] as Record<string, unknown>)[name] = value;
152+
writeSlot(field.in, name, value);
146153
} else {
147154
params[field.map] = value;
148155
}
@@ -151,11 +158,11 @@ export function buildClientParams(args: ReadonlyArray<unknown>, fields: FieldsCo
151158

152159
if (extra) {
153160
const [prefix, slot] = extra;
154-
(params[slot] as Record<string, unknown>)[key.slice(prefix.length)] = value;
161+
writeSlot(slot, key.slice(prefix.length), value);
155162
} else if ('allowExtra' in config && config.allowExtra) {
156163
for (const [slot, allowed] of Object.entries(config.allowExtra)) {
157164
if (allowed) {
158-
(params[slot as Slot] as Record<string, unknown>)[key] = value;
165+
writeSlot(slot as Slot, key, value);
159166
break;
160167
}
161168
}
@@ -167,5 +174,5 @@ export function buildClientParams(args: ReadonlyArray<unknown>, fields: FieldsCo
167174

168175
stripEmptySlots(params);
169176

170-
return params as Params;
177+
return params;
171178
}

0 commit comments

Comments
 (0)