Skip to content

Commit 9d8a269

Browse files
marcstraubeclaude
andauthored
security(deps-dev): fix all dev dependency vulnerabilities (#34)
## Summary - Update `vitest` 3 → 4 and `@vitest/coverage-v8` (fixes vite, rollup, picomatch vulns) - Update `eslint-plugin-boundaries` 5 → 6 (fixes handlebars vulns) - Migrate eslint boundaries config to v6 syntax (`element-types` → `dependencies`) - Add `vite@7.3.2` as direct dev dep to resolve remaining vite vulns - Add `smol-toml` override for `markdownlint-cli2` transitive dep - Fix vitest v4 mock constructor breaking changes in tests Resolves all 12 remaining dev dependency vulnerabilities (55 → 0 total). ## Test plan - [ ] All 4016 tests pass - [ ] ESLint clean (no warnings) - [ ] TypeScript strict mode passes - [ ] Build succeeds - [ ] `pnpm audit` reports 0 vulnerabilities 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent aafcfa8 commit 9d8a269

5 files changed

Lines changed: 324 additions & 788 deletions

File tree

eslint.config.js

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -124,31 +124,40 @@ export default [
124124
'no-sequences': ['error', { allowInParentheses: false }], // Disallow comma expressions
125125

126126
// Module boundary enforcement
127-
'boundaries/element-types': [
127+
'boundaries/dependencies': [
128128
'error',
129129
{
130130
default: 'disallow',
131131
rules: [
132132
// Entry point can import any module
133-
{ from: ['entry'], allow: ['core', 'module'] },
133+
{
134+
from: { type: 'entry' },
135+
allow: [{ to: { type: 'core' } }, { to: { type: 'module' } }],
136+
},
134137
// Core can only import from core (internal)
135-
{ from: ['core'], allow: ['core'] },
138+
{
139+
from: { type: 'core' },
140+
allow: [{ to: { type: 'core' } }],
141+
},
136142
// Domain modules can import from core and from themselves (same family)
137143
{
138-
from: ['module'],
139-
allow: ['core', ['module', { family: '${family}' }]],
144+
from: { type: 'module' },
145+
allow: [
146+
{ to: { type: 'core' } },
147+
{ to: { type: 'module', captured: { family: '{{ from.captured.family }}' } } },
148+
],
140149
},
141150
// session extends BaseStorageManager from storage
142151
{
143-
from: [['module', { family: 'session' }]],
144-
allow: [['module', { family: 'storage' }]],
152+
from: { type: 'module', captured: { family: 'session' } },
153+
allow: [{ to: { type: 'module', captured: { family: 'storage' } } }],
145154
},
146155
// offline integrates indexeddb persistence with network status
147156
{
148-
from: [['module', { family: 'offline' }]],
157+
from: { type: 'module', captured: { family: 'offline' } },
149158
allow: [
150-
['module', { family: 'indexeddb' }],
151-
['module', { family: 'network' }],
159+
{ to: { type: 'module', captured: { family: 'indexeddb' } } },
160+
{ to: { type: 'module', captured: { family: 'network' } } },
152161
],
153162
},
154163
],

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,11 @@
219219
"@types/node": "^25.2.3",
220220
"@typescript-eslint/eslint-plugin": "^8.55.0",
221221
"@typescript-eslint/parser": "^8.55.0",
222-
"@vitest/coverage-v8": "^3.2.4",
222+
"@vitest/coverage-v8": "^4.1.4",
223223
"eslint": "^10.0.0",
224224
"eslint-config-prettier": "^10.0.0",
225225
"eslint-import-resolver-typescript": "^4.4.4",
226-
"eslint-plugin-boundaries": "^5.4.0",
226+
"eslint-plugin-boundaries": "^6.0.2",
227227
"eslint-plugin-jsdoc": "^62.5.4",
228228
"eslint-plugin-prettier": "^5.0.0",
229229
"eslint-plugin-security": "^3.0.0",
@@ -239,7 +239,8 @@
239239
"size-limit": "^12.0.0",
240240
"typedoc": "^0.28.0",
241241
"typescript": "^5.7.0",
242-
"vitest": "^3.2.4"
242+
"vite": "7.3.2",
243+
"vitest": "^4.1.4"
243244
},
244245
"engines": {
245246
"node": ">=20.0.0"
@@ -254,7 +255,8 @@
254255
},
255256
"pnpm": {
256257
"overrides": {
257-
"@isaacs/brace-expansion": ">=5.0.1"
258+
"@isaacs/brace-expansion": ">=5.0.1",
259+
"smol-toml": ">=1.6.1"
258260
}
259261
}
260262
}

0 commit comments

Comments
 (0)