@aion0/forge 0.10.2 → 0.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/RELEASE_NOTES.md +6 -3
- package/app/api/settings/route.ts +11 -0
- package/package.json +1 -1
package/RELEASE_NOTES.md
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
# Forge v0.10.
|
|
1
|
+
# Forge v0.10.3
|
|
2
2
|
|
|
3
3
|
Released: 2026-05-30
|
|
4
4
|
|
|
5
|
-
## Changes since v0.10.
|
|
5
|
+
## Changes since v0.10.2
|
|
6
6
|
|
|
7
|
+
### Other
|
|
8
|
+
- fix(settings): unmask apiProfiles.*.apiKey on POST (regression in v0.10.0)
|
|
7
9
|
|
|
8
|
-
|
|
10
|
+
|
|
11
|
+
**Full Changelog**: https://github.com/aiwatching/forge/compare/v0.10.2...v0.10.3
|
|
@@ -65,6 +65,17 @@ export async function PUT(req: Request) {
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
+
// Same for apiProfiles (the canonical location post-migration). Without
|
|
69
|
+
// this, editing any unrelated setting wipes every saved apiKey.
|
|
70
|
+
if (updated.apiProfiles) {
|
|
71
|
+
for (const [id, p] of Object.entries(updated.apiProfiles)) {
|
|
72
|
+
const newKey = (p as any)?.apiKey;
|
|
73
|
+
if (newKey === '••••••••') {
|
|
74
|
+
const existing = settings.apiProfiles?.[id]?.apiKey;
|
|
75
|
+
if (existing) (p as any).apiKey = existing;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
68
79
|
|
|
69
80
|
// Remove internal fields
|
|
70
81
|
delete (updated as any)._secretStatus;
|
package/package.json
CHANGED