build(deps): take the dev toolchain to its newest week-old releases
Every dev dependency moves to the newest release that has been public for at least 7 days, and that rule is now enforced rather than remembered: .npmrc sets min-release-age=7 and Dependabot gets a 7-day cooldown on both ecosystems. `npm ci` was verified to ignore the age rule for versions already in the lockfile, so it only shapes what gets locked. vitest / coverage-v8 4.1.10 -> 5.0.5 (suite passed unchanged) @biomejs/biome 2.5.5 -> 2.6.2 (exact) svelte 5.56.8 -> 5.57.2 vite-plugin-svelte 7.2.0 -> 7.3.1 svelte-check 4.7.4 -> 4.7.7 jsdom 30.0.1 -> 30.1.3 (dom-environment canary first) knip 6.29.0 -> 6.42.1 wxt 0.21.3 -> 0.21.4 (+ transitive vite 8.3.5) npm audit: 13 (7 high) -> 3 low, all one deepmerge advisory with no fixed release, inside vite-plugin-svelte's dev-time option merging; documented in docs/09 §3.1. --omit=dev stays 0. This supersedes Dependabot #19-#25. The six-entry overrides block is deleted: none of those packages is in the tree any more (WXT 0.21 dropped web-ext-run, Vite 8 bundles with rolldown), and a stale override would silently pin a package the day it came back. WXT got the built-manifest diff the 2026-08-03 decision requires: identical keys and values apart from the deliberate minimum_chrome_version, identical file inventory. Biome 2.6 began formatting Markdown and YAML, so both are excluded rather than letting a formatter reflow hand-written docs. dependabot.yml now keeps WXT out of the routine group and ignores majors of the TypeScript pair and @types/node. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
85f9fb4d13
commit
37c72636cb
11 files changed
+986
-1248
No files matched your search
+30
-8
@@ -2,11 +2,16 @@
|
||||
# .github/workflows/.
|
||||
#
|
||||
# Note what this file cannot do: Dependabot *security* updates run from the
|
||||
# repo's alerts regardless of any config here. Several currently fail because
|
||||
# the advisories are against transitive dev dependencies with no reachable
|
||||
# patched version. That is noisy but not shipped — BookmarkMagic has zero
|
||||
# runtime dependencies, so `npm audit --omit=dev` reports 0 and nothing in the
|
||||
# published extension is affected (docs/09 T5).
|
||||
# repo's alerts regardless of any config here, and they ignore `cooldown`.
|
||||
# BookmarkMagic has zero runtime dependencies, so `npm audit --omit=dev`
|
||||
# reports 0 and an advisory against the dev toolchain never reaches the
|
||||
# published extension (docs/09 T5).
|
||||
#
|
||||
# `.npmrc` sets `min-release-age=7`, the same rule as `cooldown` below, for
|
||||
# installs made by hand. A security PR for a version younger than 7 days can
|
||||
# therefore fail to resolve until that version ages — the price of not being
|
||||
# the first to install a compromised release. `npm ci` is unaffected: it
|
||||
# installs whatever the lockfile pins.
|
||||
version: 2
|
||||
|
||||
updates:
|
||||
@@ -16,6 +21,10 @@ updates:
|
||||
interval: weekly
|
||||
day: monday
|
||||
open-pull-requests-limit: 5
|
||||
# Supply-chain cooldown (docs/01 §6): only propose releases that have been
|
||||
# public for a week.
|
||||
cooldown:
|
||||
default-days: 7
|
||||
commit-message:
|
||||
# Conventional Commits — docs/10 §7 applies to bot commits too.
|
||||
prefix: chore
|
||||
@@ -29,12 +38,23 @@ updates:
|
||||
update-types:
|
||||
- minor
|
||||
- patch
|
||||
# WXT is 0.x, so its "minor" is semver's breaking slot, and every WXT
|
||||
# bump needs the BUILT manifest diffed by hand (docs/15 decision log,
|
||||
# 2026-08-03). It gets its own PR so it can never ride along unseen.
|
||||
exclude-patterns:
|
||||
- 'wxt'
|
||||
- '@wxt-dev/*'
|
||||
ignore:
|
||||
# Held deliberately: svelte-check and Volar need the TypeScript 6
|
||||
# programmatic API until TS 7.1 (docs/01). A major bump here breaks
|
||||
# `npm run check` rather than improving anything.
|
||||
# The TypeScript pair is held on purpose (docs/01 §2): `@typescript/native`
|
||||
# is the TS 7 `tsc`, `typescript` is the TS 6 API that svelte-check needs.
|
||||
# A major on either is a documented decision, not a weekly bump.
|
||||
- dependency-name: typescript
|
||||
update-types: [version-update:semver-major]
|
||||
- dependency-name: '@typescript/native'
|
||||
update-types: [version-update:semver-major]
|
||||
# Tracks the Node major in .nvmrc (docs/01 §2), so it moves with Node.
|
||||
- dependency-name: '@types/node'
|
||||
update-types: [version-update:semver-major]
|
||||
|
||||
- package-ecosystem: github-actions
|
||||
directory: /
|
||||
@@ -42,6 +62,8 @@ updates:
|
||||
interval: weekly
|
||||
day: monday
|
||||
open-pull-requests-limit: 3
|
||||
cooldown:
|
||||
default-days: 7
|
||||
commit-message:
|
||||
prefix: ci
|
||||
include: scope
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
# Supply-chain cooldown (docs/01 §6): resolve every install to the newest
|
||||
# release that has been public for at least 7 days. Malicious versions
|
||||
# published to npm have historically been caught and pulled within hours to
|
||||
# days; a week of age keeps this repo out of that window. Units are DAYS.
|
||||
# Dependabot applies the same rule through `cooldown` in dependabot.yml.
|
||||
min-release-age=7
|
||||
+13
-2
@@ -1,9 +1,20 @@
|
||||
{
|
||||
"$schema": "https://biomejs.dev/schemas/2.5.5/schema.json",
|
||||
"$schema": "https://biomejs.dev/schemas/2.6.2/schema.json",
|
||||
"vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true },
|
||||
"files": {
|
||||
"ignoreUnknown": true,
|
||||
"includes": ["**", "!**/*.svelte", "!**/*.css", "!.output", "!.wxt", "!tests/fixtures"]
|
||||
"includes": [
|
||||
"**",
|
||||
"!**/*.svelte",
|
||||
"!**/*.css",
|
||||
"!**/*.md",
|
||||
"!**/*.yml",
|
||||
"!**/*.yaml",
|
||||
"!.output",
|
||||
"!.wxt",
|
||||
"!coverage",
|
||||
"!tests/fixtures"
|
||||
]
|
||||
},
|
||||
"formatter": {
|
||||
"enabled": true,
|
||||
|
||||
@@ -172,10 +172,9 @@ Derived identifiers (canonical across docs and code):
|
||||
the four is already known — `CHROME_EXTENSION_ID` is the item id in §9. The
|
||||
other three come from `npx wxt submit init` (`12 §3`). Note there is no
|
||||
dry-run: the first time that step executes it makes a real submission.
|
||||
7. **Untested:** `npm run dev:firefox` against the `overrides` block in
|
||||
`09 §3.1`. Four of those overrides sit under `web-ext-run` and no gate
|
||||
exercises that script. Firefox is a v1.0 non-goal (§7), so this blocks
|
||||
nothing — but do not assume it works.
|
||||
7. **Untested:** `npm run dev:firefox`. No gate exercises it (Firefox is a
|
||||
non-goal, §7). The `overrides` block that used to threaten it is gone
|
||||
(`09 §3.1`), but do not assume it works.
|
||||
8. **Unmeasured:** the 2 s parse budget on a real browser (`11 §6`). The
|
||||
recorded 2869 ms is a jsdom figure and settles nothing. `scripts/gen-fixture.mjs`
|
||||
now produces the file needed to measure it.
|
||||
|
||||
+15
-10
@@ -20,17 +20,18 @@
|
||||
|---|---|---|
|
||||
| Node.js | **26.x (Active LTS)** (was 24.x through v1.0.1) | Build runtime. Node 26 entered Active LTS on 2026-10-28 (maintenance from 2027-10-20, end of life 2029-04-30); Node 24 moved to maintenance on 2026-10-20. `.nvmrc`, `engines` and every CI job say 26 — CI reads `.nvmrc` where it can, and passes `'26'` to the ops reusable, which takes a string input. |
|
||||
| npm | bundled with Node 26 (v11.20+) | Package manager. Commit `package-lock.json`. `.npmrc` sets `min-release-age=7` (§6). |
|
||||
| **WXT** | **^0.21.3** (was ^0.20.27 through v1.0.0) | Extension framework: entrypoints, manifest generation, HMR, `wxt zip`, `wxt submit`. **0.x, so a minor is semver's breaking slot** — and 0.21 was: `wxt/testing` split into `wxt/testing/fake-browser` and `wxt/testing/vitest-plugin`, and `tabs.create` is now typed as returning `void`. Both are dev-only. Never take a WXT bump without diffing the **built** manifest before and after (`12 §2.3`); `tests/unit/manifest.test.ts` reads `wxt.config.ts` and is structurally incapable of noticing. |
|
||||
| **WXT** | **^0.21.4** (was ^0.20.27 through v1.0.0) | Extension framework: entrypoints, manifest generation, HMR, `wxt zip`, `wxt submit`. **0.x, so a minor is semver's breaking slot** — and 0.21 was: `wxt/testing` split into `wxt/testing/fake-browser` and `wxt/testing/vitest-plugin`, and `tabs.create` is now typed as returning `void`. Both are dev-only. Never take a WXT bump without diffing the **built** manifest before and after (`12 §2.3`); `tests/unit/manifest.test.ts` reads `wxt.config.ts` and is structurally incapable of noticing. |
|
||||
| **TypeScript** | **7.0 for `tsc`, 6.0 for the API** (strict) | Two packages under two names, Microsoft's documented side-by-side setup for toolchains that embed the compiler: `"@typescript/native": "npm:typescript@~7.0.2"` provides the `tsc` binary (the Go-native 7.0 compiler that type-checks every `.ts` file in `npm run check`), and `"typescript": "npm:@typescript/typescript6@~6.0.2"` keeps the TS 6.0 programmatic API under the `typescript` module name (it re-exports the real `typescript@6.0.x` and adds a `tsc6` binary). svelte-check (peer `typescript ^5 || ^6`) and Volar need that API — TS 7 has none until 7.1 — so `.svelte` files are checked by 6.0 and `.ts` files by both. `tsc --version` must say 7.x and `tsc6 --version` 6.x. Drop the alias when svelte-check declares TS 7 support. Both pinned `~` (patch-only). |
|
||||
| **Svelte** | **^5.56.4** | UI, runes mode only (`$state`, `$derived`, `$effect`, `$props`). |
|
||||
| @wxt-dev/module-svelte | latest at scaffold | WXT ↔ Svelte integration. |
|
||||
| **Biome** | **2.5.2 (pinned exact)** | Lint + format (replaces ESLint + Prettier). Install with `npm i -D -E @biomejs/biome` per Biome guidance. |
|
||||
| svelte-check | ^4.7.4 | Type/template authority for `.svelte` files. |
|
||||
| **Svelte** | **^5.57.2** | UI, runes mode only (`$state`, `$derived`, `$effect`, `$props`). The compiled runtime ships in the bundle (MIT — `legal/THIRD_PARTY_NOTICES.md`). |
|
||||
| @sveltejs/vite-plugin-svelte | ^7.3.1 | Compiles `.svelte` and the runes in `.svelte.ts` stores for Vitest (`vitest.config.ts`). Its `deepmerge` dependency carries the one advisory with no fix (`09 §3.1`). |
|
||||
| @wxt-dev/module-svelte | ^2.0.5 | WXT ↔ Svelte integration. |
|
||||
| **Biome** | **2.6.2 (pinned exact)** | Lint + format (replaces ESLint + Prettier). Install with `npm i -D -E @biomejs/biome` per Biome guidance. 2.6 started formatting Markdown and YAML; both are excluded in `biome.json` so docs and workflows keep their hand layout (`10 §3`). |
|
||||
| svelte-check | ^4.7.7 | Type/template authority for `.svelte` files. Runs on the TS 6 API (see TypeScript above). |
|
||||
| **@types/node** | **^26** (matches the Node major) | Types for `node:fs`, `node:path`, `node:child_process` and `process`, which the test suite and `scripts/*.mjs` genuinely use. **Declared explicitly since 2026-08-03** — it used to arrive transitively, and WXT 0.21 stopped providing it. Types only: erased at build, so hard rule 2 (zero *runtime* dependencies) is untouched. |
|
||||
| jsdom | **^30** (was ^29 through v1.0.0) | Test DOM. Not interchangeable — `02 §3` picks jsdom over happy-dom because the Netscape walk depends on parse5's implied-end-tag behaviour. A major bump runs `tests/unit/dom-environment.test.ts` first; if that canary fails, pin rather than loosen the test. |
|
||||
| **Knip** | **^6** (6.29.0 latest as of 2026-07) | Dead code: unused files, exports, dependencies. Requires Node ≥ 20.19. v6 swapped the TypeScript backend for oxc-parser — confirm `compilers.svelte` is still the supported `.svelte` hook before scaffold (`10 §4`). |
|
||||
| **Vitest** | latest stable at scaffold | Unit tests for `src/lib/core`. |
|
||||
| @vitest/coverage-v8 | match Vitest | Coverage reporting. |
|
||||
| jsdom | **^30.1** (was ^29 through v1.0.0) | Test DOM. Not interchangeable — `02 §3` picks jsdom over happy-dom because the Netscape walk depends on parse5's implied-end-tag behaviour. A major bump runs `tests/unit/dom-environment.test.ts` first; if that canary fails, pin rather than loosen the test. |
|
||||
| **Knip** | **^6** (6.42.1 as of 2026-10) | Dead code: unused files, exports, dependencies. Requires Node ≥ 20.19. v6 swapped the TypeScript backend for oxc-parser — confirm `compilers.svelte` is still the supported `.svelte` hook before scaffold (`10 §4`). |
|
||||
| **Vitest** | **^5.0.5** (was ^4 through v1.0.1) | Unit tests. 5.0 changed `clearMocks` to default `true`, requires `vi.mock` at top level and fails unawaited async assertions; the suite needed no changes. Requires Node ≥ 22.12. |
|
||||
| @vitest/coverage-v8 | match Vitest | Coverage reporting (`text` + `lcov` for SonarCloud, `12 §2.5`). |
|
||||
|
||||
## 3. Explicitly rejected
|
||||
|
||||
@@ -100,4 +101,8 @@ Commit `.nvmrc` containing `26`.
|
||||
- `@typescript/native` (TS 7 `tsc`) and `typescript` (the TS 6 API alias) → `~` (patch only; TS minors can break svelte-check). Dependabot ignores majors of both — a 7→8 or 6→7 jump is a doc decision, not a weekly bump.
|
||||
- `@biomejs/biome` → exact (`-E`), formatter output must be reproducible.
|
||||
- Everything else → `^`, with `package-lock.json` committed as source of truth.
|
||||
- Renovate/Dependabot: weekly, grouped, majors require manual review.
|
||||
- **Cooldown:** `.npmrc` `min-release-age=7` — installs resolve to the newest
|
||||
release that has been public for 7 days (npm counts days). Dependabot uses the
|
||||
same `cooldown`. Lockfile installs (`npm ci`) are not affected (`09 §3.1`).
|
||||
- Renovate/Dependabot: weekly, grouped, majors require manual review; WXT
|
||||
bumps arrive in their own PR (built-manifest diff, `12 §2.3`).
|
||||
+23
-23
@@ -21,7 +21,7 @@
|
||||
| T2 | Malicious file — resource exhaustion (huge/deep/zip-bomb-style) | 500 MB file, 1M nodes, 10k-deep nesting | Pre-parse size cap 25 MB; node cap 100 000; depth cap 200 — typed errors, parse aborts early. Lazy tree rendering (§05 §9) bounds DOM size. |
|
||||
| T3 | Dangerous URLs in imported bookmarks (`javascript:`, `data:`) | Clicking them in #edit | Never rendered as `<a href>`; "Open" uses `tabs.create`, which refuses `javascript:`. UI marks non-http(s)/ftp/file/about/chrome schemes with a ⚠ badge; they are display-only. Imported URLs are stored verbatim (user's data, not ours to censor) — the browser's own bookmark UI applies its own rules. |
|
||||
| T4 | Data loss from destructive import | User picks "Replace all" casually | Non-skippable auto safety-backup (BM JSON download) *before* deletion; danger-styled confirm with exact counts; default mode is non-destructive new-folder. |
|
||||
| T5 | Supply-chain compromise | Malicious transitive dep | **Zero runtime deps**; dev deps pinned via lockfile; Dependabot + `npm audit` in CI; Biome installed exact-pinned. See §5.1 for the `overrides` block. |
|
||||
| T5 | Supply-chain compromise | Malicious transitive dep | **Zero runtime deps**; dev deps pinned via lockfile; Dependabot with a 7-day cooldown + `min-release-age=7`; `npm audit --omit=dev` in CI; Biome installed exact-pinned. See §3.1. |
|
||||
| T6 | Store-listing impersonation / trademark issues | — | Unique name + linked GitHub; report via CWS if cloned. |
|
||||
| T7 | XSS via filenames/titles echoed into UI (result cards, toasts) | Weird characters in file name | Same as T1 — text interpolation only; filenames additionally sanitized for the *download* name (`[\\/:*?"<>|]` → `_`). |
|
||||
| T8 | Clipboard abuse | "Copy URL" action | Uses `navigator.clipboard.writeText` on explicit user click only; never reads the clipboard. |
|
||||
@@ -77,32 +77,32 @@ mechanical was watching:
|
||||
≤120-char excerpt of the offending line (avoids log-injection weirdness in
|
||||
screenshots/issues).
|
||||
|
||||
### 3.1 The `package.json` `overrides` block
|
||||
### 3.1 Dev-dependency advisories
|
||||
|
||||
Six Dependabot alerts and six `npm audit` highs were all transitive **dev**
|
||||
dependencies that their parents pinned to vulnerable ranges, so Dependabot's own
|
||||
per-package PRs could not fix them — every one failed. `overrides` is the npm
|
||||
mechanism for exactly this, and it takes `npm audit` to **0**.
|
||||
**There is no `overrides` block any more** (removed 2026-10-28). The six pins
|
||||
added on 2026-07-26 (`shell-quote`, `adm-zip`, `tmp`, `uuid`, `esbuild`,
|
||||
`brace-expansion`) had all become dead: WXT 0.21 dropped `web-ext-run`, which
|
||||
four of them sat under, and Vite 8 bundles with rolldown rather than esbuild.
|
||||
None of the six packages was in the lockfile — and a stale override is worse
|
||||
than none, because the day the package returns it silently pins it.
|
||||
|
||||
| Override | Was | Reached through | Remove when |
|
||||
|---|---|---|---|
|
||||
| `shell-quote ^1.9.0` | 1.7.3 | `wxt > web-ext-run > fx-runner` | `web-ext-run` updates `fx-runner` |
|
||||
| `adm-zip ^0.6.0` | 0.5.18 | `wxt > web-ext-run > firefox-profile` | `web-ext-run` updates `firefox-profile` |
|
||||
| `tmp ^0.2.6` | 0.2.5 | `wxt > web-ext-run` | `web-ext-run` bumps `tmp` |
|
||||
| `uuid ^11.1.1` | 8.3.2 | `wxt > web-ext-run > node-notifier` | `web-ext-run` updates `node-notifier` |
|
||||
| `esbuild ^0.28.1` | 0.27.7 | `vite`, `wxt`, `unplugin` | vite/wxt allow 0.28.x |
|
||||
| `brace-expansion ^5.0.8` | 1.1.16 | `web-ext-run > multimatch > minimatch` | `multimatch` unpins `minimatch` |
|
||||
State after the v1.1.0 toolchain pass (Node 26, Vitest 5, Vite 8.3, WXT 0.21.4):
|
||||
|
||||
Four of the six exist only under **`web-ext-run`**, the Firefox dev runner
|
||||
behind `npm run dev:firefox` — which `00 §7` lists as a v1.0 non-goal, and which
|
||||
neither CI nor the Chrome build touches. ⚠️ **`npm run dev:firefox` is therefore
|
||||
the one script these overrides could plausibly break**, and it is the one script
|
||||
no gate exercises. Verify it by hand before relying on it.
|
||||
| Check | Result |
|
||||
|---|---|
|
||||
| `npm audit --omit=dev` | **0** — nothing third-party is a runtime dependency (CI runs this, `12 §2.1`) |
|
||||
| `npm audit` (dev included) | 3 low, one root cause: **`deepmerge`** (GHSA-gcqx-w48m-w2h4, prototype poisoning in `mergeObject`), reached through `@sveltejs/vite-plugin-svelte`. **No fixed version exists.** It merges the build's own plugin options at dev/build time — never user data, never in the shipped extension — so it is accepted and recorded rather than overridden. Re-check when the plugin drops or bumps it. |
|
||||
|
||||
Everything CI runs was re-verified after the overrides landed: lint, check,
|
||||
knip, coverage, guard, build, `check:manifest` and `zip`, plus a clean-room
|
||||
`npm ci`. Drop an override as soon as its parent ships the fix — a stale
|
||||
override silently holds a package back.
|
||||
How new advisories are kept out:
|
||||
|
||||
- `.npmrc` sets `min-release-age=7`, and Dependabot's `cooldown` is 7 days:
|
||||
a release must have been public for a week before this repo installs it. The
|
||||
2025 npm compromises were caught and pulled within hours to days, so that
|
||||
window is the point (`01 §6`).
|
||||
- `npm ci` installs exactly what the lockfile pins and is unaffected by the
|
||||
age rule — verified, not assumed.
|
||||
- Dependabot *security* PRs bypass `cooldown`; one for a version younger than
|
||||
a week may fail to resolve until it ages. That is the intended trade-off.
|
||||
|
||||
## 4. Permissions posture
|
||||
|
||||
|
||||
@@ -46,14 +46,18 @@ rather than assign `undefined`. Build nodes with conditional spreads
|
||||
- Discriminated unions over boolean flags for state
|
||||
(`{ kind: 'parsed', … } | { kind: 'error', … }`).
|
||||
|
||||
## 3. Biome — `biome.json` (2.5.x)
|
||||
## 3. Biome — `biome.json` (2.6.x)
|
||||
|
||||
```jsonc
|
||||
{
|
||||
"$schema": "https://biomejs.dev/schemas/2.5.2/schema.json",
|
||||
"$schema": "https://biomejs.dev/schemas/2.6.2/schema.json",
|
||||
"vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true },
|
||||
// Svelte and CSS are excluded on purpose — see the note below.
|
||||
"files": { "includes": ["src/**", "tests/**", "*.ts", "!**/*.svelte", "!**/*.css"] },
|
||||
// Svelte, CSS, Markdown and YAML are excluded on purpose — see the notes below.
|
||||
"files": {
|
||||
"ignoreUnknown": true,
|
||||
"includes": ["**", "!**/*.svelte", "!**/*.css", "!**/*.md", "!**/*.yml", "!**/*.yaml",
|
||||
"!.output", "!.wxt", "!coverage", "!tests/fixtures"]
|
||||
},
|
||||
"formatter": { "enabled": true, "indentStyle": "space", "indentWidth": 2, "lineWidth": 100 },
|
||||
"javascript": { "formatter": { "quoteStyle": "single", "semicolons": "always", "trailingCommas": "all" } },
|
||||
"linter": {
|
||||
@@ -74,6 +78,10 @@ rather than assign `undefined`. Build nodes with conditional spreads
|
||||
(`switch-every-tab-hotkey`) excludes `.svelte` and `.css` instead, and we
|
||||
follow it rather than putting the build on an experimental flag.
|
||||
**`svelte-check` is the authority** for everything inside `.svelte`.
|
||||
- **Markdown and YAML are excluded since Biome 2.6**, which started formatting
|
||||
both. The docs and workflow files are laid out by hand (long explanatory
|
||||
comments, deliberate wrapping); letting a formatter own them would turn every
|
||||
doc edit into a reflow diff.
|
||||
- There is **no Biome rule that catches `{@html}`.** `noDangerouslySetInnerHtml`
|
||||
is a React rule and does not apply to Svelte. The ban in `09 §3` is enforced
|
||||
by the canonical grep gate (`08 §3`, run as `npm run guard`) and by review —
|
||||
|
||||
+4
-2
@@ -383,8 +383,10 @@ means "unknown", not "not done".
|
||||
reusable-workflow caller cannot use `continue-on-error` to absorb it
|
||||
(§2.3). Unset means skipped, which is the safe default.
|
||||
- [x] Dependabot: npm weekly, grouped dev minor+patch, `github-actions` too —
|
||||
`.github/dependabot.yml`. Note it has no awareness of the `package.json`
|
||||
`overrides` block, so those six pins must be reviewed by hand (`09 §3.1`).
|
||||
`.github/dependabot.yml`. Both ecosystems have a 7-day `cooldown`
|
||||
(matching `.npmrc` `min-release-age=7`, `09 §3.1`); WXT is excluded from
|
||||
the group so every WXT bump arrives alone and gets its built-manifest
|
||||
diff; majors of the TypeScript pair and `@types/node` are ignored.
|
||||
- [x] Issue templates: `.github/ISSUE_TEMPLATE/` — bug, parser report (requires
|
||||
a sanitized sample), translation, feature, plus a `config.yml` chooser.
|
||||
Landed 2026-08-03; `13 §6` had asserted they existed since before launch.
|
||||
|
||||
@@ -209,3 +209,10 @@ independently of the package (`13 §5`), though the copy should still go through
|
||||
| 2026-08-03 | **`continue-on-error` is invalid on a job that calls a reusable workflow** — GitHub rejects the file with "Property continue-on-error is not allowed", and a rejected file is a `startup_failure` with zero jobs and no log, not a failed job. `release.yml`'s announce job had carried it since `5f4c6e7`; that commit landed *after* the `v1.0.0` tag and no tag was pushed since, so **the first v1.0.1 tag would have been its first execution**. Both notification jobs are now gated with `if:` on a repo variable — allowed there, unlike a secret — defaulting to skipped | 12 §2.3, 12 §2.4 |
|
||||
| 2026-08-03 | **A notification must never change the colour of the thing it reports on.** `notify-ci-failure.yml` had been failing on *every* CI completion, success included, because the reusable declares a secret that does not exist and GitHub validates that before the reusable's own success filter runs. Same lesson as `5f4c6e7`, learned twice | 12 §2.4 |
|
||||
| 2026-08-03 | **No support email on any in-product surface.** About links to the store listing, the repo, issues and the changelog. Publishing an address inside the extension invites unsanitized bookmark files by mail, which is the exact receipt-of-personal-data problem the privacy clause exists to bound. The address stays in `SECURITY.md`, `CONTRIBUTING.md` and the privacy policy | 06 §3.5, 09 §6 |
|
||||
| 2026-10-28 | **Node 26 LTS for the whole toolchain.** Node 26 entered Active LTS that day and Node 24 had gone to maintenance on 2026-10-20 — the "latest stable or LTS" rule of `01` moves with it | 01 §2 |
|
||||
| 2026-10-28 | **TypeScript 7 runs beside the TS 6 API instead of replacing it.** `@typescript/native` (`npm:typescript@~7.0.2`) owns `tsc`; `typescript` is aliased to `@typescript/typescript6`, which re-exports TS 6.0.3 for svelte-check and Volar. TS 7 has no programmatic API until 7.1, and svelte-check peers `^5 \|\| ^6`, so this is the only way to adopt 7 without losing template type-checking | 01 §2 |
|
||||
| 2026-10-28 | **ES2025, and the Chrome floor that makes it honest: 120 → 136.** A lib newer than the floor lets the compiler accept APIs the oldest allowed Chrome lacks (`RegExp.escape` is 136). `CHROME_FLOOR` in `wxt.config.ts` drives both `minimum_chrome_version` and Vite's `build.target`; `manifest.test.ts` pins those and tsconfig's `lib` together. A floor raise strands nobody — users below it keep their version and stop updating — but it is user-visible, so never in a patch | 01 §1, 08 §7 |
|
||||
| 2026-10-28 | **7-day supply-chain cooldown:** `.npmrc` `min-release-age=7` + Dependabot `cooldown: 7`. Verified that `npm ci` still installs whatever the lockfile pins, so the rule only shapes *what gets locked* | 01 §6, 09 §3.1 |
|
||||
| 2026-10-28 | **The `overrides` block is deleted.** All six pinned packages had left the tree (WXT 0.21 dropped `web-ext-run`; Vite 8 uses rolldown, not esbuild). `npm audit` 13 → 3 low, all one unfixable `deepmerge` advisory inside vite-plugin-svelte, accepted and documented; `--omit=dev` stays 0 | 09 §3.1 |
|
||||
| 2026-10-28 | **WXT 0.21.3 → 0.21.4 accepted after the built-manifest diff** the 2026-08-03 rule requires: identical key set and values (only the deliberate `minimum_chrome_version`), identical file inventory, chunk sizes within ±1.1 kB from the Svelte 5.57 runtime. Vitest 4 → 5 and jsdom 30.0 → 30.1 passed the whole suite unchanged, the `dom-environment` canary first | 01 §2 |
|
||||
| 2026-10-28 | **Biome ignores Markdown and YAML.** 2.6 began formatting both and flagged 35 hand-laid docs and workflows; formatting prose is not what the gate is for | 10 §3 |
|
||||
Generated
+864
-1178
File diff suppressed because it is too large.
Load diff
+9
-17
@@ -37,26 +37,18 @@
|
||||
"verify:full": "npm run verify && npm run coverage && npm run build && npm run check:manifest"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "2.5.5",
|
||||
"@sveltejs/vite-plugin-svelte": "^7.2.0",
|
||||
"@biomejs/biome": "2.6.2",
|
||||
"@sveltejs/vite-plugin-svelte": "^7.3.1",
|
||||
"@types/node": "^26.6.5",
|
||||
"@typescript/native": "npm:typescript@~7.0.2",
|
||||
"@vitest/coverage-v8": "^4.1.10",
|
||||
"@vitest/coverage-v8": "^5.0.5",
|
||||
"@wxt-dev/module-svelte": "^2.0.5",
|
||||
"jsdom": "^30.0.1",
|
||||
"knip": "^6.29.0",
|
||||
"svelte": "^5.56.8",
|
||||
"svelte-check": "^4.7.4",
|
||||
"jsdom": "^30.1.3",
|
||||
"knip": "^6.42.1",
|
||||
"svelte": "^5.57.2",
|
||||
"svelte-check": "^4.7.7",
|
||||
"typescript": "npm:@typescript/typescript6@~6.0.2",
|
||||
"vitest": "^4.1.10",
|
||||
"wxt": "^0.21.3"
|
||||
},
|
||||
"overrides": {
|
||||
"shell-quote": "^1.9.0",
|
||||
"adm-zip": "^0.6.0",
|
||||
"tmp": "^0.2.6",
|
||||
"uuid": "^11.1.1",
|
||||
"esbuild": "^0.28.1",
|
||||
"brace-expansion": "^5.0.8"
|
||||
"vitest": "^5.0.5",
|
||||
"wxt": "^0.21.4"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user