Compare commits

..

6 Commits

Author SHA1 Message Date
c4a5db8ebc Enforce dependency freshness in utils' own CI
Some checks failed
crdt-sync pre-commit / pre-commit (push) Waiting to run
crdt-sync tests / test (3.10) (push) Waiting to run
crdt-sync tests / test (3.11) (push) Waiting to run
crdt-sync tests / test (3.12) (push) Waiting to run
dependency freshness / dependencies on newest stable (push) Waiting to run
file length / file-length (push) Waiting to run
gatelock pre-commit / pre-commit (push) Waiting to run
gatelock tests / test (3.10) (push) Waiting to run
gatelock tests / test (3.11) (push) Waiting to run
gatelock tests / test (3.12) (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
palette drift / palette (push) Waiting to run
shared gate tests / gate unit tests (push) Waiting to run
web_ui tests / test (push) Waiting to run
github_device_auth tests / test (push) Has been cancelled
ts_core tests / test (push) Has been cancelled
Deliberately the last step, not the first. All eleven manifests here are now
on latest stable -- four Dart libs, two Python packages, two TypeScript
packages -- so `--all --strict` exits 0 and this can be a gate rather than a
permanent red light. Installing it any earlier would have taught everyone to
ignore it.

Unlike every other repo's copy, this one runs `scripts/check_dependency_freshness.sh`
directly instead of checking kuhyx/utils out into `.utils`: this repo IS the
gate.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CRykabMwPgDzFHcARoqpaK
2026-08-28 13:51:28 +02:00
0e78c8b752 ts_core + web_ui: latest stable, pnpm 11, and a quarantine-aware gate
Finishes the last two of the eleven manifests in this repo. Exact-pins every
devDependency and takes three majors -- @testing-library/jest-dom 6 -> 7,
jsdom 29 -> 30, pnpm 10.13.1 -> 11.24.0 -- with lint and coverage green in
both (ts_core 42/42, web_ui 102/102, 100% branches).

**TypeScript stays at 6.0.3, and this is the campaign's first real
unsatisfiable conflict.** TS 7.0.2 is latest, but typescript-eslint 8.68.0 --
itself the latest release -- declares `typescript: ">=4.8.4 <6.1.0"` and throws
"does not support TS 7.0" as eslint loads its config. There is no 9.x. Taking
TS 7 would mean dropping every type-aware lint rule from both packages, so the
compiler waits for the linter. Recorded as a `transitive:` allowlist entry,
which is a predicate rather than a date: the gate re-checks the blocker each
run and the entry clears itself when upstream ships support. First use of the
allowlist, and the loud banner now prints on every run here.

**pnpm 11 also made the gate wrong, and the gate was fixed rather than pnpm.**
pnpm 11 quarantines packages published inside a 24h window -- a supply-chain
measure against the period when a compromised publish is live -- and refused
@testing-library/react 16.3.3, published 18h earlier. Reporting a repo as
behind a version its package manager will not install is a finding nobody can
act on: the hook fails, and so does the fix it asks for. `quarantine.py` now
narrows npm's "latest" to the newest release old enough to install, bounded
above by `dist-tags.latest` so a maintenance-line release never outranks the
tag. It fetches the FULL packument (7MB for react, 16MB for typescript) and so
runs only after a finding already exists -- a clean run pays nothing, which a
test asserts by making the fetch raise.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CRykabMwPgDzFHcARoqpaK
2026-08-28 13:50:25 +02:00
71133a808f Judge peer dependencies by range, and check the packageManager pin
Two npm-specific corrections found by running the gate over web_ui.

**`peerDependencies` must not be exact-pinned.** The gate was reporting
`react: ">=19"` as "not exact-pinned", and acting on that would have been
actively harmful: a peer range declares what a CONSUMER may bring, so pinning
it forces every consumer of @kuhyx/web-ui onto one exact React. Peers are now
judged the way toolchain ranges are -- does the range still admit latest? --
and only reported when it does not.

**`packageManager` is a real dependency.** corepack enforces it, so
`pnpm@10.13.1` is an exact pin that nothing was checking. It is now read and
compared, which immediately surfaced that both TS packages sit on pnpm 10.13.1
against 11.24.0.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CRykabMwPgDzFHcARoqpaK
2026-08-28 13:38:40 +02:00
81d2493476 gatelock + crdt-sync: exact-pin every Python dependency
Sixteen `>=` floors become exact pins across the two Python packages, taking
five majors with them: mypy 1.13 -> 2.3.1, pylint 3.3 -> 4.0.7, pytest 8 -> 9,
pytest-cov 5 -> 7, bandit 1.7 -> 1.9.4, plus ruff 0.15 -> 0.16.5 and
requests/types-requests. A `>=` floor is satisfied by everything newer, so it
told a checker nothing about whether these repos were actually current.

Verified in a clean venv per repo, which is what both CI workflows do
(`pip install -r requirements.txt`): gatelock 389 tests at 100% coverage under
xvfb, crdt-sync 432 tests at 100%. No test change was needed for any of the
five majors.

**Open, and deliberately not in this commit:** `.pre-commit-config.yaml` pins
these same tools AGAIN via `rev:` (ruff v0.15.2, mypy v1.13.0, pylint v3.3.2),
independently of requirements.txt, and the gate does not read `rev:` pins at
all -- so the linters CI actually runs are still on the old majors. Bumping
them is a separate and much larger job: ruff 0.16 raises 71 findings here
(CPY001 alone accounts for many, since this repo selects ALL) and mypy 2.x
raises 60, mostly stricter implicit-re-export rules. One major per commit, and
that is several.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CRykabMwPgDzFHcARoqpaK
2026-08-28 13:37:25 +02:00
f83c6feeaa Accept exact pins with more than three version components
`types-requests==2.33.0.20260712` was reported as "not exact-pinned" against
its own value: the regex capped the release segment at three components, and
PyPI stub packages date-stamp a fourth. PEP 440 places no such limit.

Found by running the gate over crdt-sync's newly pinned requirements.txt,
which is the only manifest in the fleet with a four-part pin.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CRykabMwPgDzFHcARoqpaK
2026-08-28 13:37:12 +02:00
11c752fe65 github_device_auth: exact pins (http 1.6.0, url_launcher 6.3.2)
Both were the oldest floors left in the fleet -- `http: ^1.2.0` while every
sibling was on ^1.6.0. Neither moved a resolved version: pubspec.lock is
untouched, so this is a declaration change, and analyze / 24 tests / 75-line
100% coverage are all unchanged.

This is the first real repo to exercise the three-way manifest / lockfile /
registry check, since it is the one library here that tracks its pubspec.lock
while its four siblings gitignore theirs. Both directions confirmed against a
copy of this repo: a lock resolving 1.5.9 under a manifest pinning 1.6.0 is
reported as "manifest and lockfile disagree", and staleness correctly takes
precedence over it when both apply.

Version 0.3.0 -> 0.3.1, tag cut. Four consumers pin it by git tag
(home_inventory, todo, diet-guard, wake-alarm) and move when their turn comes.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CRykabMwPgDzFHcARoqpaK
2026-08-28 13:34:45 +02:00
22 changed files with 978 additions and 524 deletions

View File

@ -0,0 +1,52 @@
name: dependency freshness
# Every dependency on its ecosystem's newest STABLE release, enforced on push
# as well as at commit time. This repo OWNS the gate, so unlike every other
# repo it runs its own copy directly instead of checking one out.
#
# Deliberately added last, after all eleven manifests here were brought
# current: installing the gate on a repo before its dependencies are upgraded
# makes it instantly and permanently red, which teaches people to ignore it. The local pre-commit hook only sees the manifests
# in a commit and can be skipped entirely by a fresh clone that never ran
# `pre-commit install`; this runs `--all` over the whole repo.
#
# `--strict` is CI-only. Offline the gate degrades to its cached answer and
# passes, because `--no-verify` is banned locally and a hook that hard-failed
# on a flaky connection would leave no way to commit. A runner is always
# online, so here an undeterminable answer is a real failure.
#
# Expect this to go red for reasons this repo's commit did not cause: an
# upstream release overnight is enough. That is the chosen behaviour -- the
# alternative is a gate that only notices staleness when someone remembers to
# look.
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
dependency-freshness:
name: dependencies on newest stable
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install the gate's two runtime dependencies
run: python -m pip install --upgrade pyyaml packaging
- name: Cache registry lookups
uses: actions/cache@v4
with:
path: ~/.cache/dep-freshness
key: dep-freshness-${{ hashFiles('**/pubspec.yaml', '**/package.json', '**/requirements*.txt', '**/pyproject.toml') }}
restore-keys: dep-freshness-
- name: Every dependency is on newest stable
run: bash scripts/check_dependency_freshness.sh --all --strict

View File

@ -3,7 +3,7 @@ name = "crdt-sync"
version = "0.9.0"
description = "Shared CRDT merge scheme + GitHub-Contents-API sync transport for cross-device apps"
requires-python = ">=3.10"
dependencies = ["requests"]
dependencies = ["requests==2.34.2"]
# Ship only the library. `tool/` is a package too (it has an __init__.py so
# its scripts import cleanly), and setuptools' flat-layout auto-discovery

View File

@ -1,9 +1,12 @@
bandit[toml]>=1.7
mypy>=1.13
pre-commit>=4.0
pylint>=3.3
pytest>=8.0
pytest-cov>=5.0
requests>=2.31
ruff>=0.15
types-requests>=2.31
# Exact pins, enforced by the shared dependency-freshness gate: a `>=`
# floor is satisfied by anything newer, so it tells a checker nothing
# about whether this repo is actually current.
bandit[toml]==1.9.4
mypy==2.3.1
pre-commit==4.6.2
pylint==4.0.7
pytest==9.1.1
pytest-cov==7.1.0
requests==2.34.2
ruff==0.16.5
types-requests==2.33.0.20260712

View File

@ -35,6 +35,12 @@ FLUTTER_RELEASES: Final = (
NODE_RELEASES: Final = "https://nodejs.org/dist/index.json"
UTILS_TAG_REMOTE: Final = "https://github.com/kuhyx/utils"
# pnpm 11 quarantines packages younger than this before it will install them,
# to blunt the window in which a compromised publish is live. The gate matches
# it: reporting a repo as behind a version its package manager refuses to
# install is a failure nobody can act on. Its default is 1440 minutes.
NPM_QUARANTINE_HOURS: Final = 24
# crates.io 403s without one; npm/PyPI want a contactable agent too.
USER_AGENT: Final = "kuhyx-dependency-freshness (+https://github.com/kuhyx/utils)"

View File

@ -20,12 +20,14 @@ import subprocess
import sys
from dep_freshness import report
from dep_freshness._tables import NPM
from dep_freshness.allowlist import AllowlistError, load
from dep_freshness.discover import find_manifests, is_manifest, parse_manifest
from dep_freshness.evaluate import judge
from dep_freshness.models import Finding, Severity
from dep_freshness.quarantine import installable_latest
from dep_freshness.registries import http
from dep_freshness.resolve import Resolver
from dep_freshness.resolve import Answer, Resolver
def repo_root(start: Path) -> Path:
@ -66,12 +68,32 @@ def _excuse(findings: list[Finding], entries) -> tuple[list[Finding], list]:
return failing, dead
def _unquarantine(finding: Finding) -> Finding | None:
"""Re-judge an npm finding against what pnpm will actually install.
pnpm 11 refuses a package published inside its quarantine window, so a
repo pinned to the newest *installable* version is not behind in any sense
a commit could fix. Only npm findings reach here, and only after a finding
already exists, so the expensive full-document fetch never happens on a
clean run.
"""
if finding.dep.ecosystem != NPM or finding.latest is None:
return finding
installable = installable_latest(finding.dep.name, finding.latest)
if installable is None or installable == finding.latest:
return finding
return judge(finding.dep, Answer(installable))
def collect(targets: list[Path], resolver: Resolver) -> list[Finding]:
deps = [dep for path in targets for dep in parse_manifest(path)]
resolver.prefetch(deps)
findings = []
for dep in deps:
finding = judge(dep, resolver.latest(dep))
if finding is None:
continue
finding = _unquarantine(finding)
if finding is not None:
findings.append(finding)
return findings

View File

@ -64,6 +64,17 @@ def judge(dep: Dep, answer: Answer) -> Finding | None:
if dep.ecosystem == TOOLCHAIN:
return _toolchain(dep, latest)
if dep.peer:
# A peerDependency declares what a CONSUMER may bring, so exact-pinning
# it is actively wrong: it would force every consumer onto one version.
# The meaningful question is whether the range still admits latest.
if not satisfies(dep.constraint, latest):
return Finding(
dep, Severity.STALE, latest,
detail=f"the peer range excludes the current {latest}",
)
return None
if dep.pinned is None:
if dep.caret_ok:
floor = lower_bound(dep.constraint)

View File

@ -37,6 +37,7 @@ class Dep:
dev: bool = False
caret_ok: bool = False # Q13 carve-out: a range is legal here
override: bool = False
peer: bool = False # a compatibility range, not a build pin
@dataclass(frozen=True)

View File

@ -16,13 +16,14 @@ from dep_freshness.models import Dep
from dep_freshness.parsers._lines import index
from dep_freshness.versions import exact_pin
# (section, is_dev, is_override, is_peer)
_SECTIONS = (
("dependencies", False, False),
("devDependencies", True, False),
("optionalDependencies", False, False),
("peerDependencies", False, False),
("resolutions", False, True),
("overrides", False, True),
("dependencies", False, False, False),
("devDependencies", True, False, False),
("optionalDependencies", False, False, False),
("peerDependencies", False, False, True),
("resolutions", False, True, False),
("overrides", False, True, False),
)
_LOCAL_PREFIXES = ("file:", "link:", "workspace:", "git+", "github:", "npm:")
@ -49,14 +50,26 @@ def parse_package_json(path: Path) -> list[Dep]:
line=lines.get("node", 0), pinned=exact_pin(node), caret_ok=True,
))
for section, is_dev, is_override in _SECTIONS:
# `packageManager: pnpm@10.13.1` is an exact pin of the package manager
# itself, which corepack enforces -- a real dependency, and the only one
# three of these repos omit entirely.
manager = data.get("packageManager")
if isinstance(manager, str) and "@" in manager:
name, _, version = manager.rpartition("@")
deps.append(Dep(
ecosystem=NPM, name=name, constraint=version, path=path,
line=lines.get("packageManager", 0), pinned=exact_pin(version),
dev=True,
))
for section, is_dev, is_override, is_peer in _SECTIONS:
for name, spec in (data.get(section) or {}).items():
if not isinstance(spec, str) or spec.startswith(_LOCAL_PREFIXES):
continue
deps.append(Dep(
ecosystem=NPM, name=str(name), constraint=spec, path=path,
line=lines.get(str(name), 0), pinned=exact_pin(spec),
dev=is_dev, override=is_override,
dev=is_dev, override=is_override, peer=is_peer,
))
return deps

View File

@ -0,0 +1,76 @@
"""What is the newest npm version the package manager will actually install?
pnpm 11 refuses any package published inside its `minimumReleaseAge` window --
a supply-chain measure that blunts the period during which a compromised
publish is live. Reporting a repo as "behind" a version pnpm would reject is a
finding nobody can act on, so the gate's notion of latest is narrowed to match.
Cost is the reason this is a separate pass rather than part of `npmjs.latest`.
Publish timestamps live only in the FULL registry document, which is 7MB for
react and 16MB for typescript, against 3MB and 9MB abbreviated. So the full
document is fetched only when a finding already exists -- in the steady state,
where everything is current, that is zero extra requests.
"""
from __future__ import annotations
from datetime import datetime, timedelta, timezone
from dep_freshness._tables import NPM_API, NPM_QUARANTINE_HOURS
from dep_freshness.registries.http import Offline, get_json
from dep_freshness.versions import newest_stable, parse
def cutoff(now: datetime | None = None) -> datetime:
"""Publishes at or after this instant are still quarantined."""
moment = now or datetime.now(timezone.utc)
return moment - timedelta(hours=NPM_QUARANTINE_HOURS)
def _parse(stamp: str) -> datetime | None:
try:
return datetime.fromisoformat(str(stamp).replace("Z", "+00:00"))
except (TypeError, ValueError):
return None
def installable_latest(
name: str, ceiling: str, now: datetime | None = None
) -> str | None:
"""Newest stable release published before the quarantine cutoff.
`ceiling` is the registry's `dist-tags.latest`, and candidates above it are
ignored. npm lets a maintainer publish a version without tagging it
`latest` -- a maintenance-line release on an older major, say -- so the
highest version NUMBER is not always the current release. Falling back to
the numeric maximum here would recommend a version npm does not consider
current, and would disagree with `npmjs.latest`, which honours the tag.
Returns None when the answer cannot be determined (offline, or the
registry has no `time` map), which callers must treat as "no change" --
narrowing on a guess would hide a genuinely stale dependency.
"""
url = NPM_API.format(name=name.replace("/", "%2f"))
try:
payload = get_json(url)
except Offline:
return None
if not payload:
return None
times = payload.get("time")
if not isinstance(times, dict):
return None
limit = cutoff(now)
top = parse(ceiling)
old_enough = []
for version, stamp in times.items():
if version in ("created", "modified"):
continue
when = _parse(stamp)
if when is None or when >= limit:
continue
here = parse(version)
if top is not None and (here is None or here > top):
continue
old_enough.append(version)
return newest_stable(old_enough)

View File

@ -110,6 +110,25 @@ def test_a_pinned_toolchain_behind_latest_is_stale():
assert finding.severity is Severity.STALE
def test_a_peer_range_admitting_latest_is_not_a_violation():
"""Exact-pinning a peer dep would force every consumer onto one version."""
assert judge(
dep(ecosystem="npm", name="react", constraint=">=19", pinned=None,
peer=True),
Answer("19.2.8"),
) is None
def test_a_peer_range_excluding_latest_is_reported():
finding = judge(
dep(ecosystem="npm", name="react", constraint=">=19 <19.2", pinned=None,
peer=True),
Answer("19.2.8"),
)
assert finding.severity is Severity.STALE
assert "peer range excludes" in finding.detail
def test_no_answer_at_all_is_unknown_not_stale():
finding = judge(dep(), Answer(None, unavailable=True))
assert finding.severity is Severity.UNKNOWN

View File

@ -110,6 +110,24 @@ lint = ["ruff==0.16.5"]
assert deps["python"].constraint == ">=3.10"
def test_package_json_reads_the_package_manager_pin(tmp_path):
"""corepack enforces `packageManager`, so it is a real dependency."""
path = write(tmp_path, "package.json", '{"packageManager": "pnpm@10.13.1"}')
deps = {d.name: d for d in javascript.parse_package_json(path)}
assert deps["pnpm"].pinned == "10.13.1"
def test_a_package_manager_without_a_version_is_ignored(tmp_path):
path = write(tmp_path, "package.json", '{"packageManager": "pnpm"}')
assert javascript.parse_package_json(path) == []
def test_peer_dependencies_are_marked_as_such(tmp_path):
path = write(tmp_path, "package.json",
'{"peerDependencies": {"react": ">=19"}}')
assert javascript.parse_package_json(path)[0].peer
def test_package_json_reads_engines_and_overrides(tmp_path):
path = write(tmp_path, "package.json", """\
{"engines": {"node": "24.20.0"},

View File

@ -0,0 +1,168 @@
"""pnpm 11 refuses freshly-published packages; the gate must agree.
Reporting a repo as behind a version its package manager will not install is a
finding nobody can act on -- the pre-commit hook would fail, and the fix the
message asks for would fail too.
"""
from __future__ import annotations
from datetime import datetime, timedelta, timezone
import pytest
from dep_freshness import check, quarantine
from dep_freshness.models import Dep, Finding, Severity
from dep_freshness.tests.conftest import write
NOW = datetime(2026, 8, 28, 12, 0, tzinfo=timezone.utc)
def _stamp(hours_ago: float) -> str:
return (NOW - timedelta(hours=hours_ago)).isoformat().replace("+00:00", "Z")
PACKUMENT = {
"time": {
"created": _stamp(9000),
"modified": _stamp(1),
"16.3.0": _stamp(900),
"16.3.2": _stamp(400),
"16.3.3": _stamp(18), # inside the 24h window
}
}
@pytest.fixture
def packument(monkeypatch):
def install(payload):
monkeypatch.setattr(quarantine, "get_json", lambda *_a, **_k: payload)
return install
def test_a_release_inside_the_window_is_not_installable(packument):
packument(PACKUMENT)
assert quarantine.installable_latest("x", "16.3.3", now=NOW) == "16.3.2"
def test_a_release_outside_the_window_is_installable(packument):
packument(PACKUMENT)
assert quarantine.installable_latest("x", "16.3.2", now=NOW) == "16.3.2"
def test_versions_above_the_dist_tag_are_ignored(packument):
"""npm lets a maintenance release outrank `latest` numerically."""
payload = {"time": {**PACKUMENT["time"], "17.0.0": _stamp(500)}}
packument(payload)
assert quarantine.installable_latest("x", "16.3.3", now=NOW) == "16.3.2"
def test_the_created_and_modified_keys_are_not_versions(packument):
packument({"time": {"created": _stamp(900), "modified": _stamp(1)}})
assert quarantine.installable_latest("x", "1.0.0", now=NOW) is None
def test_an_unparseable_timestamp_is_skipped(packument):
packument({"time": {"1.0.0": "not a date", "0.9.0": _stamp(500)}})
assert quarantine.installable_latest("x", "1.0.0", now=NOW) == "0.9.0"
def test_an_unparseable_ceiling_stops_narrowing_but_the_window_still_applies(
packument,
):
packument(PACKUMENT)
# No version ceiling to apply, but 16.3.3 is still 18h old.
assert quarantine.installable_latest("x", "latest", now=NOW) == "16.3.2"
def test_a_registry_without_a_time_map_is_undeterminable(packument):
packument({"versions": {"1.0.0": {}}})
assert quarantine.installable_latest("x", "1.0.0", now=NOW) is None
def test_a_missing_package_is_undeterminable(packument):
packument(None)
assert quarantine.installable_latest("x", "1.0.0", now=NOW) is None
def test_offline_is_undeterminable(monkeypatch):
from dep_freshness.registries.http import Offline
def down(*_a, **_k):
raise Offline("no network")
monkeypatch.setattr(quarantine, "get_json", down)
assert quarantine.installable_latest("x", "1.0.0") is None
def test_the_cutoff_defaults_to_now():
assert quarantine.cutoff() < datetime.now(timezone.utc)
def _dep(ecosystem="npm", pinned="16.3.2", constraint="16.3.2") -> Dep:
from pathlib import Path
return Dep(ecosystem=ecosystem, name="@testing-library/react",
constraint=constraint, path=Path("package.json"), line=1,
pinned=pinned)
def test_a_finding_only_caused_by_a_quarantined_release_is_dropped(monkeypatch):
monkeypatch.setattr(check, "installable_latest",
lambda _n, _c: "16.3.2")
finding = Finding(_dep(), Severity.STALE, "16.3.3")
assert check._unquarantine(finding) is None
def test_a_finding_that_survives_the_narrowing_is_kept(monkeypatch):
monkeypatch.setattr(check, "installable_latest", lambda _n, _c: "16.3.2")
finding = Finding(_dep(pinned="16.1.0"), Severity.STALE, "16.3.3")
survivor = check._unquarantine(finding)
assert survivor is not None
assert survivor.latest == "16.3.2"
def test_non_npm_findings_are_never_narrowed(monkeypatch):
monkeypatch.setattr(check, "installable_latest", _explode)
finding = Finding(_dep(ecosystem="pub"), Severity.STALE, "1.0.0")
assert check._unquarantine(finding) is finding
def test_a_finding_with_no_latest_is_never_narrowed(monkeypatch):
monkeypatch.setattr(check, "installable_latest", _explode)
finding = Finding(_dep(), Severity.UNKNOWN, None)
assert check._unquarantine(finding) is finding
def test_an_undeterminable_narrowing_leaves_the_finding_alone(monkeypatch):
monkeypatch.setattr(check, "installable_latest", lambda _n, _c: None)
finding = Finding(_dep(pinned="16.1.0"), Severity.STALE, "16.3.3")
assert check._unquarantine(finding) is finding
def test_a_clean_run_never_pays_for_the_full_document(repo, monkeypatch,
cache_dir):
"""The full packument is 7MB for react; it must not be fetched when
everything is already current."""
monkeypatch.setattr(check, "installable_latest", _explode)
monkeypatch.setattr("dep_freshness.resolve._fetch",
lambda _e, _n: "19.2.8")
write(repo, "package.json", '{"dependencies": {"react": "19.2.8"}}')
monkeypatch.chdir(repo)
assert check.main(["--all"]) == 0
def _explode(*_args):
raise AssertionError("the full packument must not be fetched here")
def test_a_repo_pinned_to_the_newest_installable_version_passes(
repo, monkeypatch, cache_dir
):
"""End to end: the only finding is a release pnpm would refuse, so the
gate must exit 0 rather than demand a version that cannot be installed."""
monkeypatch.setattr("dep_freshness.resolve._fetch", lambda _e, _n: "16.3.3")
monkeypatch.setattr(check, "installable_latest", lambda _n, _c: "16.3.2")
write(repo, "package.json",
'{"dependencies": {"@testing-library/react": "16.3.2"}}')
monkeypatch.chdir(repo)
assert check.main(["--all"]) == 0

View File

@ -34,7 +34,10 @@ def test_newest_stable_ignores_unparseable_entries():
@pytest.mark.parametrize("raw,expected", [
("1.6.0", "1.6.0"), ("==1.6.0", "1.6.0"), ("v2.0.0", "2.0.0"),
(" 1.0.0 ", "1.0.0"),
(" 1.0.0 ", "1.0.0"), ("1.9", "1.9"), ("3", "3"),
# PyPI stub packages date-stamp a fourth component. Capping the regex at
# three reported this exact pin as unpinned *against its own value*.
("==2.33.0.20260712", "2.33.0.20260712"),
])
def test_exact_pins_are_recognised(raw, expected):
assert exact_pin(raw) == expected

View File

@ -74,7 +74,10 @@ def behind(pinned: str, latest: str) -> bool:
return left < right
EXACT = re.compile(r"^\s*(?:==\s*)?v?\d+(?:\.\d+){0,2}(?:[-+][0-9A-Za-z.-]+)?\s*$")
# Any number of numeric release components, not three: PyPI stub packages
# date-stamp a fourth (`types-requests==2.33.0.20260712`), and capping at
# three reported an exact pin as unpinned against itself.
EXACT = re.compile(r"^\s*(?:==\s*)?v?\d+(?:\.\d+)*(?:[-+][0-9A-Za-z.-]+)?\s*$")
def exact_pin(constraint: str) -> str | None:

View File

@ -0,0 +1,29 @@
# Dependencies deliberately held below latest stable, and why.
#
# Two entry classes, and the distinction is load-bearing:
#
# blocked_by: transitive:<pkg>@<ver>
# A PREDICATE. The gate re-evaluates the blocker on every run and the
# entry clears itself the moment upstream moves. It must NOT carry
# `expires` -- a calendar date nobody can act on only turns the gate red
# for a reason no commit can fix.
#
# anything else
# Discretionary. Requires `expires`, capped at 90 days, and fails once
# past.
#
# Every entry prints loudly on every gate run and at session start. An
# exception nobody sees any more is a suppression.
exceptions:
- ecosystem: npm
package: typescript
pinned: "6.0.3"
latest_known: "7.0.2"
reason: >-
typescript-eslint 8.68.0 -- itself the latest release -- declares
`typescript: ">=4.8.4 <6.1.0"` and throws "typescript-eslint does not
support TS 7.0" when eslint loads its config. No 9.x exists. Taking TS 7
would mean dropping every type-aware lint rule from ts_core and web_ui
until upstream catches up, so the compiler waits for the linter.
blocked_by: "transitive:typescript-eslint@8.68.0"

View File

@ -15,7 +15,7 @@ dependencies = [] # pure stdlib — tkinter is bundled with Python
# promptly — so this must stay OPTIONAL: a locker that refuses to start
# because a dependency is missing is itself a way to end up unlocked.
# Consumers' install scripts install it unconditionally all the same.
randr = ["python-xlib>=0.33"]
randr = ["python-xlib==0.33"]
[tool.setuptools.packages.find]
include = ["gatelock*"]

View File

@ -1,7 +1,10 @@
bandit[toml]>=1.7
mypy>=1.13
pre-commit>=4.0
pylint>=3.3
pytest>=8.0
pytest-cov>=5.0
ruff>=0.15
# Exact pins, enforced by the shared dependency-freshness gate: a `>=`
# floor is satisfied by anything newer, so it tells a checker nothing
# about whether this repo is actually current.
bandit[toml]==1.9.4
mypy==2.3.1
pre-commit==4.6.2
pylint==4.0.7
pytest==9.1.1
pytest-cov==7.1.0
ruff==0.16.5

View File

@ -4,7 +4,7 @@ description: >-
modal that drives it. Extracted from four apps that each carried a copy,
two of them byte-identical.
publish_to: 'none'
version: 0.3.0
version: 0.3.1
environment:
sdk: ^3.12.2
@ -12,8 +12,8 @@ environment:
dependencies:
flutter:
sdk: flutter
http: ^1.2.0
url_launcher: ^6.3.0
http: 1.6.0
url_launcher: 6.3.2
dev_dependencies:
flutter_test:

View File

@ -9,7 +9,7 @@
"node": ">=24",
"pnpm": ">=10"
},
"packageManager": "pnpm@10.13.1",
"packageManager": "pnpm@11.24.0+sha512.bd27e345e976dcb0be0b7a1228217b049a817e21b1f355c90dbe7dc46671895a8bc1e6d06c24554505ea93ea0b45f489a27ec1bfbc8de6a9659fca0f16fa0000",
"files": [
"dist"
],
@ -28,12 +28,12 @@
"coverage": "vitest run --coverage"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@types/node": "^26.1.1",
"@vitest/coverage-v8": "^4.1.10",
"eslint": "^10.7.0",
"typescript": "^6.0.3",
"typescript-eslint": "^8.64.0",
"vitest": "^4.1.10"
"@eslint/js": "10.0.1",
"@types/node": "26.4.0",
"@vitest/coverage-v8": "4.1.11",
"eslint": "10.9.1",
"typescript": "6.0.3",
"typescript-eslint": "8.68.0",
"vitest": "4.1.11"
}
}

View File

@ -9,26 +9,26 @@ importers:
.:
devDependencies:
'@eslint/js':
specifier: ^10.0.1
version: 10.0.1(eslint@10.8.1)
specifier: 10.0.1
version: 10.0.1(eslint@10.9.1)
'@types/node':
specifier: ^26.1.1
version: 26.2.0
specifier: 26.4.0
version: 26.4.0
'@vitest/coverage-v8':
specifier: ^4.1.10
version: 4.1.10(vitest@4.1.10)
specifier: 4.1.11
version: 4.1.11(vitest@4.1.11)
eslint:
specifier: ^10.7.0
version: 10.8.1
specifier: 10.9.1
version: 10.9.1
typescript:
specifier: ^6.0.3
specifier: 6.0.3
version: 6.0.3
typescript-eslint:
specifier: ^8.64.0
version: 8.67.0(eslint@10.8.1)(typescript@6.0.3)
specifier: 8.68.0
version: 8.68.0(eslint@10.9.1)(typescript@6.0.3)
vitest:
specifier: ^4.1.10
version: 4.1.10(@types/node@26.2.0)(@vitest/coverage-v8@4.1.10)(vite@8.2.1(@types/node@26.2.0))
specifier: 4.1.11
version: 4.1.11(@types/node@26.4.0)(@vitest/coverage-v8@4.1.11)(vite@8.2.1(@types/node@26.4.0))
packages:
@ -230,82 +230,82 @@ packages:
'@types/json-schema@7.0.15':
resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==}
'@types/node@26.2.0':
resolution: {integrity: sha512-5IviulTZeRNp2vAJ514cc/HUlY5nZ9fCbq9DMyC52BrhFZACo3nI0R7qBxhQmo/d27NFe96ur/b7Wwxklda+kg==}
'@types/node@26.4.0':
resolution: {integrity: sha512-faiGnoIrLH/V8cibOMEAZ8pMw6oXqSukl29ra4mN8GdaB2ZewzeaLj+INpV5N+Z1eKWzY+IzaIZH2EIR6YZRNQ==}
'@typescript-eslint/eslint-plugin@8.67.0':
resolution: {integrity: sha512-Un7Heoyj65NREbKAyIrFxeM143NZpExWmy1Nep4DLeQOeLlTeumPjoNKnBrU5D5moWXbPJgRa5Uwcdu0faVNGQ==}
'@typescript-eslint/eslint-plugin@8.68.0':
resolution: {integrity: sha512-WASHDpCm6qO5jj9g1a+8NiW5+GCkAyLReR56/4VruYmNgfUmqpxOfZ2Yfb8xGfJPWv5Qi6LSD8sXdces3vbp/Q==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
'@typescript-eslint/parser': ^8.67.0
'@typescript-eslint/parser': ^8.68.0
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
typescript: '>=4.8.4 <6.1.0'
'@typescript-eslint/parser@8.67.0':
resolution: {integrity: sha512-fUBfTuuEulWqX6V8+O3PtScV01tzYYRUDTAirHFKoRAt7nOzoGiPt0M/bB47wWNy0coOOcgEwAMUtBpykMxl6w==}
'@typescript-eslint/parser@8.68.0':
resolution: {integrity: sha512-fHq2VC1kpyYfvEcbiMjOpySY4WS7voEp89yAThrHRX5sm9j2lzYppCb2umFMEed4fWcyeLjHxrz0mpjNBaBxMQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
typescript: '>=4.8.4 <6.1.0'
'@typescript-eslint/project-service@8.67.0':
resolution: {integrity: sha512-cvE8c7ulYeXN9fYuszhCeCsbzyVEXuhrRCybnBre7TUmqb5nRmBfQAwCj0O3WJFDeyAZt4VYv51vMCC9LHSdYw==}
'@typescript-eslint/project-service@8.68.0':
resolution: {integrity: sha512-5GQtWZCXFcFYux955pvoS02WLc49pXNlvIxocKjS0clvwo3in1RdlzVKyiqQH9vE5AKWFLTaUgeQkOrTS+0Qxw==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
typescript: '>=4.8.4 <6.1.0'
'@typescript-eslint/scope-manager@8.67.0':
resolution: {integrity: sha512-EgvsleTwS4E+WzzSvem8fAUubLwatMNF1B5hHSLQxcvs7q2dtRhGyujHwLJSYlG41niJ7GP24Aha2+0mb1b2kg==}
'@typescript-eslint/scope-manager@8.68.0':
resolution: {integrity: sha512-T5eXpcaJNg8bhjHJ8Rjp68Vq/QBteYtTKY8TZqVNPaUbuz0f6jI9t6aDkylwvalpAB9XTTFeFOjrjXAZ3YvmVA==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@typescript-eslint/tsconfig-utils@8.67.0':
resolution: {integrity: sha512-vV+LUSv5njUWsknE71fqKTlXUva+R76SaeORd6Zojcunk/6DvKFXONU3BrAs2H49mbygUXt6gbYunzwqNwlhdg==}
'@typescript-eslint/tsconfig-utils@8.68.0':
resolution: {integrity: sha512-F7zrGQfiJHojPwi8vhxZQC1tWtJzvL74cK/nqri2lk8YUXvYaYwl263xOJ69jDWPUk1hmcdoayFwk9lX09npVw==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
typescript: '>=4.8.4 <6.1.0'
'@typescript-eslint/type-utils@8.67.0':
resolution: {integrity: sha512-aVWDXbRmdXO9siTfX4ditQI1T9+zVcNazT48EJCD0v40/9RIFoUgZ05CmGEq9H2gixRpjUn/iplwvlcvutJW/Q==}
'@typescript-eslint/type-utils@8.68.0':
resolution: {integrity: sha512-X77zqoY1EjeWGs/0JNxeaMfp5C5lIz4Tw8y66F1Ne8Faq6g424sBNYM6xBAqElfGZPLpWS+CZAp0DXyKDzWiHg==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
typescript: '>=4.8.4 <6.1.0'
'@typescript-eslint/types@8.67.0':
resolution: {integrity: sha512-sBtgslww8nsMYUjhdPBiSyUqSzT8uR6g93A2QXnQC8+cGdjz0CyaOdqHDRJb1AtORbZCNUJBBeFA/tNR2uQmww==}
'@typescript-eslint/types@8.68.0':
resolution: {integrity: sha512-9RnpsGJjrAllCMefGVVsImJM24YurhC0Q1h4UbvivtvOqXmR/vEJge2OoE++z9m6hyg8T1Q8t5SNT6tHSbrxcg==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@typescript-eslint/typescript-estree@8.67.0':
resolution: {integrity: sha512-EKQBCE9yNlRJYm7jdTW5AhDacDUmSwQb0FAJAmK2EKYrNXIsa2vxcSZx6PvJ/dEdI6lS+Y9W+EXckLj0iPFGcw==}
'@typescript-eslint/typescript-estree@8.68.0':
resolution: {integrity: sha512-OKKsD0tYmoNiU5PW2zehO1yO56jYOm1ShYlxon/Z0SJNidAkdVg86eg9ruRuoXf8xfnuWZGbwDsStkoXbZtIIA==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
typescript: '>=4.8.4 <6.1.0'
'@typescript-eslint/utils@8.67.0':
resolution: {integrity: sha512-U9D1FdwEWBwok3hxxSdhclMb0twvt9QnjIQ0VfQ1AiX2epnpSgv2ubVDsayOFyY8K6FX+AQ7E0FKWVG3iKsj1A==}
'@typescript-eslint/utils@8.68.0':
resolution: {integrity: sha512-PB5gJMMOg0Q5P1tsgWtEAqQacJXq0qEqRHDX/YJ4FaTMLfZPpHB3gjl2EJuiZyPABxmj4ZQYiY9m1bdAJ5y7tQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
typescript: '>=4.8.4 <6.1.0'
'@typescript-eslint/visitor-keys@8.67.0':
resolution: {integrity: sha512-fkv8dHRDqfGtTHuJeebdrQ7cX6Ad4WAS00rgHh9UGvMycF1mjBfsxry1XsLIFhWZ6Judlh6UdzK+TYlbpCXgnA==}
'@typescript-eslint/visitor-keys@8.68.0':
resolution: {integrity: sha512-YR65gGdGvTUAWLldC3xLOvOzamdGzB4A5/N8rehEaHs3Zvoe39BhgY+u0SPch1OvrVTfLcc55wsSgK2NcnTS/A==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@vitest/coverage-v8@4.1.10':
resolution: {integrity: sha512-IM49HmthevbgAO4anp1hwtoT9wYe59w0LR00gr+eagHE+ZJ5lK4sLPeO0ubgoJcwLk6dehU3R24N+FbEEKDc8g==}
'@vitest/coverage-v8@4.1.11':
resolution: {integrity: sha512-8MVGEFnJIcdGjcbfKmeq8z0pZHH0JlVtoVZH9Q/qwUp6wyFnEJUBMrw9DCaj+ra3vShGmhavjalMIhPNxZAUcw==}
peerDependencies:
'@vitest/browser': 4.1.10
vitest: 4.1.10
'@vitest/browser': 4.1.11
vitest: 4.1.11
peerDependenciesMeta:
'@vitest/browser':
optional: true
'@vitest/expect@4.1.10':
resolution: {integrity: sha512-YsCn+qAk1GWjQOWFEsEcL2gNQ0zmVmQu3T03qP6UyjhtmdtwtbuI+DASn/7iQB3HGTXkdBwGddzxPlmiql5vlA==}
'@vitest/expect@4.1.11':
resolution: {integrity: sha512-VX2x5vNJXET47KAFzwERI+KRMtTTCSWTfSMKsW7JsUsXV4psq++e3DvZpuTDOpHcxytiDs6p2nhVb2tVDiiUYw==}
'@vitest/mocker@4.1.10':
resolution: {integrity: sha512-v0xaezt+DKEmKfaxg133ldzADrwLGd7Ze1MfQQTYfvs8OqZIwbxyxaYURivwV7sWy5fqn3rH5uOrSp07bp44Ow==}
'@vitest/mocker@4.1.11':
resolution: {integrity: sha512-2XJVD55d1o5AZous5CCGKS74g/riOj9odEt2bQpCVZeblHyHdnMeFl4jl0XjU21stf4mbjUkew2eXQZt65g5CQ==}
peerDependencies:
msw: ^2.4.9
vite: ^6.0.0 || ^7.0.0 || ^8.0.0
@ -315,20 +315,20 @@ packages:
vite:
optional: true
'@vitest/pretty-format@4.1.10':
resolution: {integrity: sha512-W1HsjSH4MXQ9YfmmhLAoIYf1HRfekQCGngeIgcei6MP5QQGWUe0gkopdZQaVCFO+JDJMrAJGwa5pRpNpvy4P8Q==}
'@vitest/pretty-format@4.1.11':
resolution: {integrity: sha512-yiZzPbGTS9Sr/JpFl8zHrcIkAofNbFV6k21vIgQN/cY/oxZeXhJv5sc/MBJ5jFKWmWs+oJHw0UXLZjmf931+Vw==}
'@vitest/runner@4.1.10':
resolution: {integrity: sha512-IKI6kpIH+LmpROplyLwBBaCfMgOZOMsygVa6BARD6ahA04VRuJSa6OaVG7kRvSEMD870Vd91rSSw0eegtWyLGg==}
'@vitest/runner@4.1.11':
resolution: {integrity: sha512-LztvUgdwMNJMIkj3hQnnxiC2Xy1zNxq928W/xhjCLaNCzqTZOudjwbQf6v9IntZGPw132i2Lq2rgTRZHD3JHNw==}
'@vitest/snapshot@4.1.10':
resolution: {integrity: sha512-xRkfOT1qpTAi/Ti4Y1LtfRc3kEuqxGw59eN2jN9pRWMtS/XDevekhcFSqvQqjUNGksfjMJu3Y+oJ+4Ypn2OaJw==}
'@vitest/snapshot@4.1.11':
resolution: {integrity: sha512-pN7ikn1ON7h8ee4gIAp4AzyK+zBtJPzVbqOgu5LCEh4VaJVbPQcgYQYJIMGQPXVeJJq1fnfazis7a5pFNPahog==}
'@vitest/spy@4.1.10':
resolution: {integrity: sha512-PLf/Ugvoq5wO/b4rwYCR1h2PSIdXz7wnkQFMiUpLdtM7l6pqVFcQIBEHyT1+l+cj7mNwAfZHzqXqDyjvOuwbDw==}
'@vitest/spy@4.1.11':
resolution: {integrity: sha512-apNa/prQy2qCeywhnixOHPRCgGNhvg7T4Dapfl1GahLp/R+uhBm5cPyFoNVyqsNd2h1nJxL6BqqdIjiABL60YA==}
'@vitest/utils@4.1.10':
resolution: {integrity: sha512-fy9am/HWxbaGt/Sawrp90vt6Y6jQwf1RX77cz3uwoJwJVMli/e1IEwRPnMNJ7vKfPTwo0diXifkpPvwH9v7nGA==}
'@vitest/utils@4.1.11':
resolution: {integrity: sha512-zTCVGpyFsGWBhllOyKlTw/vnr6D9qxsfSDyfbyZmTyjHw5N/VuvzHpHoQjm2ZJzn4RJgx5w4r7V0er69CmLgPQ==}
acorn-jsx@5.3.2:
resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==}
@ -404,8 +404,8 @@ packages:
resolution: {integrity: sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==}
engines: {node: ^20.19.0 || ^22.13.0 || >=24}
eslint@10.8.1:
resolution: {integrity: sha512-wqA7W2jbsC/BnV9Iv1UZpKVFkO1AdNoSmYW8NWG4HNOBbkAMvIqDZ27pI2f07dqn583NcIC44ckjAcOXDL1QbQ==}
eslint@10.9.1:
resolution: {integrity: sha512-9VaAkDURekixUQJy0oJYl2DcN6oKMfxay7XzaGYAWQwsb6qfKf+x76R2k1L8kb1boc+FyCAaTA9GmiKaaiaF+A==}
engines: {node: ^20.19.0 || ^22.13.0 || >=24}
hasBin: true
peerDependencies:
@ -749,8 +749,8 @@ packages:
resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==}
engines: {node: '>= 0.8.0'}
typescript-eslint@8.67.0:
resolution: {integrity: sha512-S2udFs8tCKEKffuJ4TB1idGUZiXdCPGi3IPBGWXarbLQ5UPXORV8QEVzJ4gCRduURMb5EkpNCdjbk0eDIuI8Yg==}
typescript-eslint@8.68.0:
resolution: {integrity: sha512-MHy0Y0ynqeEbx/S45+i/bBssdy3X6KNBfmJAP35GrgtNxu2TQ5K5xsFDhAnmsq1jvpdoZOPG1LGtJo0HWqYCrQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
@ -810,20 +810,20 @@ packages:
yaml:
optional: true
vitest@4.1.10:
resolution: {integrity: sha512-R9jUTe5S4Qb0HCd4TNqpC7oGcrMssMRGXLW80ubjWsW9VH5GF8y1Y0SFLY9AbqSk6nt0PnOx4H4WNJYZ13GUPw==}
vitest@4.1.11:
resolution: {integrity: sha512-fhACrNXUidIbGSBr5FlbuBkO7VWC1ZyLl0DO4CU2DrQoAPxX84Ysxs+HeGQpii5lZWV1Q4gBZTTu49mF+A6Edw==}
engines: {node: ^20.0.0 || ^22.0.0 || >=24.0.0}
hasBin: true
peerDependencies:
'@edge-runtime/vm': '*'
'@opentelemetry/api': ^1.9.0
'@types/node': ^20.0.0 || ^22.0.0 || >=24.0.0
'@vitest/browser-playwright': 4.1.10
'@vitest/browser-preview': 4.1.10
'@vitest/browser-webdriverio': 4.1.10
'@vitest/coverage-istanbul': 4.1.10
'@vitest/coverage-v8': 4.1.10
'@vitest/ui': 4.1.10
'@vitest/browser-playwright': 4.1.11
'@vitest/browser-preview': 4.1.11
'@vitest/browser-webdriverio': 4.1.11
'@vitest/coverage-istanbul': 4.1.11
'@vitest/coverage-v8': 4.1.11
'@vitest/ui': 4.1.11
happy-dom: '*'
jsdom: '*'
vite: ^6.0.0 || ^7.0.0 || ^8.0.0
@ -886,9 +886,9 @@ snapshots:
'@bcoe/v8-coverage@1.0.2': {}
'@eslint-community/eslint-utils@4.10.1(eslint@10.8.1)':
'@eslint-community/eslint-utils@4.10.1(eslint@10.9.1)':
dependencies:
eslint: 10.8.1
eslint: 10.9.1
eslint-visitor-keys: 3.4.3
'@eslint-community/regexpp@4.12.2': {}
@ -909,9 +909,9 @@ snapshots:
dependencies:
'@types/json-schema': 7.0.15
'@eslint/js@10.0.1(eslint@10.8.1)':
'@eslint/js@10.0.1(eslint@10.9.1)':
optionalDependencies:
eslint: 10.8.1
eslint: 10.9.1
'@eslint/object-schema@3.0.5': {}
@ -1006,19 +1006,19 @@ snapshots:
'@types/json-schema@7.0.15': {}
'@types/node@26.2.0':
'@types/node@26.4.0':
dependencies:
undici-types: 8.3.0
'@typescript-eslint/eslint-plugin@8.67.0(@typescript-eslint/parser@8.67.0(eslint@10.8.1)(typescript@6.0.3))(eslint@10.8.1)(typescript@6.0.3)':
'@typescript-eslint/eslint-plugin@8.68.0(@typescript-eslint/parser@8.68.0(eslint@10.9.1)(typescript@6.0.3))(eslint@10.9.1)(typescript@6.0.3)':
dependencies:
'@eslint-community/regexpp': 4.12.2
'@typescript-eslint/parser': 8.67.0(eslint@10.8.1)(typescript@6.0.3)
'@typescript-eslint/scope-manager': 8.67.0
'@typescript-eslint/type-utils': 8.67.0(eslint@10.8.1)(typescript@6.0.3)
'@typescript-eslint/utils': 8.67.0(eslint@10.8.1)(typescript@6.0.3)
'@typescript-eslint/visitor-keys': 8.67.0
eslint: 10.8.1
'@typescript-eslint/parser': 8.68.0(eslint@10.9.1)(typescript@6.0.3)
'@typescript-eslint/scope-manager': 8.68.0
'@typescript-eslint/type-utils': 8.68.0(eslint@10.9.1)(typescript@6.0.3)
'@typescript-eslint/utils': 8.68.0(eslint@10.9.1)(typescript@6.0.3)
'@typescript-eslint/visitor-keys': 8.68.0
eslint: 10.9.1
ignore: 7.0.6
natural-compare: 1.4.0
ts-api-utils: 2.5.0(typescript@6.0.3)
@ -1026,56 +1026,56 @@ snapshots:
transitivePeerDependencies:
- supports-color
'@typescript-eslint/parser@8.67.0(eslint@10.8.1)(typescript@6.0.3)':
'@typescript-eslint/parser@8.68.0(eslint@10.9.1)(typescript@6.0.3)':
dependencies:
'@typescript-eslint/scope-manager': 8.67.0
'@typescript-eslint/types': 8.67.0
'@typescript-eslint/typescript-estree': 8.67.0(typescript@6.0.3)
'@typescript-eslint/visitor-keys': 8.67.0
'@typescript-eslint/scope-manager': 8.68.0
'@typescript-eslint/types': 8.68.0
'@typescript-eslint/typescript-estree': 8.68.0(typescript@6.0.3)
'@typescript-eslint/visitor-keys': 8.68.0
debug: 4.4.3
eslint: 10.8.1
eslint: 10.9.1
typescript: 6.0.3
transitivePeerDependencies:
- supports-color
'@typescript-eslint/project-service@8.67.0(typescript@6.0.3)':
'@typescript-eslint/project-service@8.68.0(typescript@6.0.3)':
dependencies:
'@typescript-eslint/tsconfig-utils': 8.67.0(typescript@6.0.3)
'@typescript-eslint/types': 8.67.0
'@typescript-eslint/tsconfig-utils': 8.68.0(typescript@6.0.3)
'@typescript-eslint/types': 8.68.0
debug: 4.4.3
typescript: 6.0.3
transitivePeerDependencies:
- supports-color
'@typescript-eslint/scope-manager@8.67.0':
'@typescript-eslint/scope-manager@8.68.0':
dependencies:
'@typescript-eslint/types': 8.67.0
'@typescript-eslint/visitor-keys': 8.67.0
'@typescript-eslint/types': 8.68.0
'@typescript-eslint/visitor-keys': 8.68.0
'@typescript-eslint/tsconfig-utils@8.67.0(typescript@6.0.3)':
'@typescript-eslint/tsconfig-utils@8.68.0(typescript@6.0.3)':
dependencies:
typescript: 6.0.3
'@typescript-eslint/type-utils@8.67.0(eslint@10.8.1)(typescript@6.0.3)':
'@typescript-eslint/type-utils@8.68.0(eslint@10.9.1)(typescript@6.0.3)':
dependencies:
'@typescript-eslint/types': 8.67.0
'@typescript-eslint/typescript-estree': 8.67.0(typescript@6.0.3)
'@typescript-eslint/utils': 8.67.0(eslint@10.8.1)(typescript@6.0.3)
'@typescript-eslint/types': 8.68.0
'@typescript-eslint/typescript-estree': 8.68.0(typescript@6.0.3)
'@typescript-eslint/utils': 8.68.0(eslint@10.9.1)(typescript@6.0.3)
debug: 4.4.3
eslint: 10.8.1
eslint: 10.9.1
ts-api-utils: 2.5.0(typescript@6.0.3)
typescript: 6.0.3
transitivePeerDependencies:
- supports-color
'@typescript-eslint/types@8.67.0': {}
'@typescript-eslint/types@8.68.0': {}
'@typescript-eslint/typescript-estree@8.67.0(typescript@6.0.3)':
'@typescript-eslint/typescript-estree@8.68.0(typescript@6.0.3)':
dependencies:
'@typescript-eslint/project-service': 8.67.0(typescript@6.0.3)
'@typescript-eslint/tsconfig-utils': 8.67.0(typescript@6.0.3)
'@typescript-eslint/types': 8.67.0
'@typescript-eslint/visitor-keys': 8.67.0
'@typescript-eslint/project-service': 8.68.0(typescript@6.0.3)
'@typescript-eslint/tsconfig-utils': 8.68.0(typescript@6.0.3)
'@typescript-eslint/types': 8.68.0
'@typescript-eslint/visitor-keys': 8.68.0
debug: 4.4.3
minimatch: 10.2.6
semver: 7.8.5
@ -1085,26 +1085,26 @@ snapshots:
transitivePeerDependencies:
- supports-color
'@typescript-eslint/utils@8.67.0(eslint@10.8.1)(typescript@6.0.3)':
'@typescript-eslint/utils@8.68.0(eslint@10.9.1)(typescript@6.0.3)':
dependencies:
'@eslint-community/eslint-utils': 4.10.1(eslint@10.8.1)
'@typescript-eslint/scope-manager': 8.67.0
'@typescript-eslint/types': 8.67.0
'@typescript-eslint/typescript-estree': 8.67.0(typescript@6.0.3)
eslint: 10.8.1
'@eslint-community/eslint-utils': 4.10.1(eslint@10.9.1)
'@typescript-eslint/scope-manager': 8.68.0
'@typescript-eslint/types': 8.68.0
'@typescript-eslint/typescript-estree': 8.68.0(typescript@6.0.3)
eslint: 10.9.1
typescript: 6.0.3
transitivePeerDependencies:
- supports-color
'@typescript-eslint/visitor-keys@8.67.0':
'@typescript-eslint/visitor-keys@8.68.0':
dependencies:
'@typescript-eslint/types': 8.67.0
'@typescript-eslint/types': 8.68.0
eslint-visitor-keys: 5.0.1
'@vitest/coverage-v8@4.1.10(vitest@4.1.10)':
'@vitest/coverage-v8@4.1.11(vitest@4.1.11)':
dependencies:
'@bcoe/v8-coverage': 1.0.2
'@vitest/utils': 4.1.10
'@vitest/utils': 4.1.11
ast-v8-to-istanbul: 1.0.5
istanbul-lib-coverage: 3.2.2
istanbul-lib-report: 3.0.1
@ -1113,46 +1113,46 @@ snapshots:
obug: 2.1.4
std-env: 4.2.0
tinyrainbow: 3.1.1
vitest: 4.1.10(@types/node@26.2.0)(@vitest/coverage-v8@4.1.10)(vite@8.2.1(@types/node@26.2.0))
vitest: 4.1.11(@types/node@26.4.0)(@vitest/coverage-v8@4.1.11)(vite@8.2.1(@types/node@26.4.0))
'@vitest/expect@4.1.10':
'@vitest/expect@4.1.11':
dependencies:
'@standard-schema/spec': 1.1.0
'@types/chai': 5.2.3
'@vitest/spy': 4.1.10
'@vitest/utils': 4.1.10
'@vitest/spy': 4.1.11
'@vitest/utils': 4.1.11
chai: 6.2.2
tinyrainbow: 3.1.1
'@vitest/mocker@4.1.10(vite@8.2.1(@types/node@26.2.0))':
'@vitest/mocker@4.1.11(vite@8.2.1(@types/node@26.4.0))':
dependencies:
'@vitest/spy': 4.1.10
'@vitest/spy': 4.1.11
estree-walker: 3.0.3
magic-string: 0.30.21
optionalDependencies:
vite: 8.2.1(@types/node@26.2.0)
vite: 8.2.1(@types/node@26.4.0)
'@vitest/pretty-format@4.1.10':
'@vitest/pretty-format@4.1.11':
dependencies:
tinyrainbow: 3.1.1
'@vitest/runner@4.1.10':
'@vitest/runner@4.1.11':
dependencies:
'@vitest/utils': 4.1.10
'@vitest/utils': 4.1.11
pathe: 2.0.3
'@vitest/snapshot@4.1.10':
'@vitest/snapshot@4.1.11':
dependencies:
'@vitest/pretty-format': 4.1.10
'@vitest/utils': 4.1.10
'@vitest/pretty-format': 4.1.11
'@vitest/utils': 4.1.11
magic-string: 0.30.21
pathe: 2.0.3
'@vitest/spy@4.1.10': {}
'@vitest/spy@4.1.11': {}
'@vitest/utils@4.1.10':
'@vitest/utils@4.1.11':
dependencies:
'@vitest/pretty-format': 4.1.10
'@vitest/pretty-format': 4.1.11
convert-source-map: 2.0.0
tinyrainbow: 3.1.1
@ -1216,9 +1216,9 @@ snapshots:
eslint-visitor-keys@5.0.1: {}
eslint@10.8.1:
eslint@10.9.1:
dependencies:
'@eslint-community/eslint-utils': 4.10.1(eslint@10.8.1)
'@eslint-community/eslint-utils': 4.10.1(eslint@10.9.1)
'@eslint-community/regexpp': 4.12.2
'@eslint/config-array': 0.23.5
'@eslint/config-helpers': 0.7.0
@ -1531,13 +1531,13 @@ snapshots:
dependencies:
prelude-ls: 1.2.1
typescript-eslint@8.67.0(eslint@10.8.1)(typescript@6.0.3):
typescript-eslint@8.68.0(eslint@10.9.1)(typescript@6.0.3):
dependencies:
'@typescript-eslint/eslint-plugin': 8.67.0(@typescript-eslint/parser@8.67.0(eslint@10.8.1)(typescript@6.0.3))(eslint@10.8.1)(typescript@6.0.3)
'@typescript-eslint/parser': 8.67.0(eslint@10.8.1)(typescript@6.0.3)
'@typescript-eslint/typescript-estree': 8.67.0(typescript@6.0.3)
'@typescript-eslint/utils': 8.67.0(eslint@10.8.1)(typescript@6.0.3)
eslint: 10.8.1
'@typescript-eslint/eslint-plugin': 8.68.0(@typescript-eslint/parser@8.68.0(eslint@10.9.1)(typescript@6.0.3))(eslint@10.9.1)(typescript@6.0.3)
'@typescript-eslint/parser': 8.68.0(eslint@10.9.1)(typescript@6.0.3)
'@typescript-eslint/typescript-estree': 8.68.0(typescript@6.0.3)
'@typescript-eslint/utils': 8.68.0(eslint@10.9.1)(typescript@6.0.3)
eslint: 10.9.1
typescript: 6.0.3
transitivePeerDependencies:
- supports-color
@ -1550,7 +1550,7 @@ snapshots:
dependencies:
punycode: 2.3.1
vite@8.2.1(@types/node@26.2.0):
vite@8.2.1(@types/node@26.4.0):
dependencies:
lightningcss: 1.33.0
picomatch: 4.0.5
@ -1558,18 +1558,18 @@ snapshots:
rolldown: 1.2.4
tinyglobby: 0.2.17
optionalDependencies:
'@types/node': 26.2.0
'@types/node': 26.4.0
fsevents: 2.3.3
vitest@4.1.10(@types/node@26.2.0)(@vitest/coverage-v8@4.1.10)(vite@8.2.1(@types/node@26.2.0)):
vitest@4.1.11(@types/node@26.4.0)(@vitest/coverage-v8@4.1.11)(vite@8.2.1(@types/node@26.4.0)):
dependencies:
'@vitest/expect': 4.1.10
'@vitest/mocker': 4.1.10(vite@8.2.1(@types/node@26.2.0))
'@vitest/pretty-format': 4.1.10
'@vitest/runner': 4.1.10
'@vitest/snapshot': 4.1.10
'@vitest/spy': 4.1.10
'@vitest/utils': 4.1.10
'@vitest/expect': 4.1.11
'@vitest/mocker': 4.1.11(vite@8.2.1(@types/node@26.4.0))
'@vitest/pretty-format': 4.1.11
'@vitest/runner': 4.1.11
'@vitest/snapshot': 4.1.11
'@vitest/spy': 4.1.11
'@vitest/utils': 4.1.11
es-module-lexer: 2.3.1
expect-type: 1.4.0
magic-string: 0.30.21
@ -1581,11 +1581,11 @@ snapshots:
tinyexec: 1.3.0
tinyglobby: 0.2.17
tinyrainbow: 3.1.1
vite: 8.2.1(@types/node@26.2.0)
vite: 8.2.1(@types/node@26.4.0)
why-is-node-running: 2.3.0
optionalDependencies:
'@types/node': 26.2.0
'@vitest/coverage-v8': 4.1.10(vitest@4.1.10)
'@types/node': 26.4.0
'@vitest/coverage-v8': 4.1.11(vitest@4.1.11)
transitivePeerDependencies:
- msw

View File

@ -9,7 +9,7 @@
"node": ">=24",
"pnpm": ">=10"
},
"packageManager": "pnpm@10.13.1",
"packageManager": "pnpm@11.24.0+sha512.bd27e345e976dcb0be0b7a1228217b049a817e21b1f355c90dbe7dc46671895a8bc1e6d06c24554505ea93ea0b45f489a27ec1bfbc8de6a9659fca0f16fa0000",
"files": [
"dist"
],
@ -33,20 +33,20 @@
"react": ">=19"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@testing-library/user-event": "^14.6.1",
"@types/react": "^19.2.17",
"@types/react-dom": "^19.2.3",
"@vitest/coverage-v8": "^4.1.10",
"eslint": "^10.7.0",
"jsdom": "^29.1.1",
"react": "^19.2.7",
"react-dom": "^19.2.7",
"typescript": "^6.0.3",
"typescript-eslint": "^8.64.0",
"vitest": "^4.1.10",
"@types/node": "^26.1.1"
"@eslint/js": "10.0.1",
"@testing-library/jest-dom": "7.0.1",
"@testing-library/react": "16.3.2",
"@testing-library/user-event": "14.6.6",
"@types/react": "19.2.18",
"@types/react-dom": "19.2.5",
"@vitest/coverage-v8": "4.1.11",
"eslint": "10.9.1",
"jsdom": "30.0.1",
"react": "19.2.8",
"react-dom": "19.2.8",
"typescript": "6.0.3",
"typescript-eslint": "8.68.0",
"vitest": "4.1.11",
"@types/node": "26.4.0"
}
}

File diff suppressed because it is too large Load Diff