Commit c2a7d06
fix: replace direct axios usage with native fetch (#615)
* fix: add prettier as explicit devDependency
prettier was used in format scripts and pre-commit hooks but was never
declared as a dependency — it only worked as a ghost dependency via
transitive hoisting. This breaks on pnpm 10+ which is stricter about
hoisting.
Also ignore .pnpm-store in .gitignore and .prettierignore.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* feat: add dev container and .npmrc for supply chain security
Isolate development in a container to limit blast radius of compromised
packages, and enforce frozen-lockfile + ignore-scripts via .npmrc.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* feat: upgrade to pnpm 10 for built-in supply chain security
pnpm 10+ blocks dependency install scripts (postinstall, preinstall) by
default, replacing the need for ignore-scripts in .npmrc. This protects
against malicious packages without breaking the project's own lifecycle
hooks (e.g. prepare: husky).
See: https://pnpm.io/supply-chain-security
Changes:
- Remove .npmrc (ignore-scripts no longer needed, frozen-lockfile is
enforced by CI via --frozen-lockfile flag)
- Bump packageManager to pnpm@10.33.0
- Update CI workflows to use pnpm 10.33.0
- Update README to document pnpm 10 approach and link to docs
- Update devcontainer image tag
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* docs: simplify dev container and supply chain sections in README
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: replace axios with native fetch to reduce supply chain attack surface
Remove axios and wait-on dependencies, replacing the axios-based fetcher
with a native fetch implementation that preserves the same error handling
and timeout behavior.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: keep fetch timeout active until body is fully consumed
Address Copilot review: move clearTimeout after body read so the
AbortController covers slow-streaming responses, and enrich non-2xx
errors with statusText.
Co-Authored-By: copilot-pull-request-reviewer[bot] <noreply@github.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: copilot-pull-request-reviewer[bot] <noreply@github.com>1 parent 5f49e35 commit c2a7d06
5 files changed
Lines changed: 30 additions & 110 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
| 49 | + | |
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
| |||
75 | 74 | | |
76 | 75 | | |
77 | 76 | | |
78 | | - | |
79 | 77 | | |
80 | 78 | | |
81 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments