deps: newest stable (freshness gate); migrate web/ npm -> pnpm
Some checks are pending
dependency freshness / dependencies on newest stable (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (flutter, flutter-analyze, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (mypy, mypy, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (pylint, pylint, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (rest, , mypy,pylint,flutter-analyze) (push) Waiting to run
Tests / test (push) Waiting to run
Tests / lock-popup-safety (push) Waiting to run
Tests / flutter test (shard ${{ matrix.shard }}) (0) (push) Waiting to run
Tests / flutter test (shard ${{ matrix.shard }}) (1) (push) Waiting to run
Tests / flutter test (shard ${{ matrix.shard }}) (2) (push) Waiting to run
Tests / flutter test (shard ${{ matrix.shard }}) (3) (push) Waiting to run
Tests / flutter test (shard ${{ matrix.shard }}) (4) (push) Waiting to run
Tests / flutter test (shard ${{ matrix.shard }}) (5) (push) Waiting to run
Tests / flutter test (shard ${{ matrix.shard }}) (6) (push) Waiting to run
Tests / flutter test (shard ${{ matrix.shard }}) (7) (push) Waiting to run
Tests / flutter test (shard ${{ matrix.shard }}) (8) (push) Waiting to run
Tests / flutter test (shard ${{ matrix.shard }}) (9) (push) Waiting to run
Tests / flutter-coverage (push) Blocked by required conditions
Tests / web-coverage (push) Waiting to run
release-apk / release (APK) (push) Waiting to run
repo-contract / repo contract (push) Waiting to run

web: react/react-dom 19.3.1, vitest + coverage-v8 5.0.4, jsdom 30.1.3,
user-event 14.6.8, typescript-eslint 8.71.2. Lockfile is now
web/pnpm-lock.yaml (packageManager pnpm@12.14.0); hooks and CI use pnpm
with --frozen-lockfile. Node 24.22.0 in workflows; workout_app sqflite
2.4.4+2 / sqflite_common_ffi 2.4.4.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xfj1sxKH9VBPqpcAni8Jry
This commit is contained in:
Krzysztof Rudnicki 2026-10-16 14:16:56 +02:00
parent 7d8daca111
commit 0b0a18e81c
8 changed files with 2672 additions and 3940 deletions

View File

@ -69,20 +69,26 @@ jobs:
run: flutter pub get run: flutter pub get
working-directory: stronglift_replacement/workout_app working-directory: stronglift_replacement/workout_app
# The web-lint / web-typecheck hooks run npm inside web/. Without its # The web-lint / web-typecheck hooks run pnpm inside web/. Without its
# installed packages `tsc --build` cannot find the 'vite/client' and # installed packages `tsc --build` cannot find the 'vite/client' and
# 'node' type libraries and fails with TS2688 -- which is what this # 'node' type libraries and fails with TS2688 -- which is what this
# workflow had been doing on every run since the status UI landed in # workflow had been doing on every run since the status UI landed in
# 8f91158. # 8f91158.
# No `version:` -- pnpm/action-setup reads `packageManager` from
# web/package.json (it errors if both are given).
- uses: pnpm/action-setup@v4
if: matrix.group == 'rest'
with:
package_json_file: web/package.json
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
if: matrix.group == 'rest' if: matrix.group == 'rest'
with: with:
node-version: "24.21.0" node-version: "24.22.0"
cache: npm cache: pnpm
cache-dependency-path: web/package-lock.json cache-dependency-path: web/pnpm-lock.yaml
- name: Install status-UI packages - name: Install status-UI packages
if: matrix.group == 'rest' if: matrix.group == 'rest'
run: npm ci run: pnpm install --frozen-lockfile
working-directory: web working-directory: web
# Every hook brings its own environment except the language: system # Every hook brings its own environment except the language: system

View File

@ -131,13 +131,16 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
package_json_file: web/package.json
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
with: with:
node-version: 24.21.0 node-version: 24.22.0
cache: npm cache: pnpm
cache-dependency-path: web/package-lock.json cache-dependency-path: web/pnpm-lock.yaml
- name: vitest --coverage, 100% (status web UI) - name: vitest --coverage, 100% (status web UI)
run: | run: |
npm --prefix web ci pnpm --dir web install --frozen-lockfile
npm --prefix web run coverage pnpm --dir web run coverage

View File

@ -16,6 +16,8 @@ repos:
args: [--markdown-linebreak-ext=md] args: [--markdown-linebreak-ext=md]
- id: end-of-file-fixer - id: end-of-file-fixer
- id: check-yaml - id: check-yaml
# pnpm-lock.yaml is a two-document stream by design.
exclude: ^web/pnpm-lock\.yaml$
- id: check-json - id: check-json
- id: check-toml - id: check-toml
- id: check-added-large-files - id: check-added-large-files
@ -191,7 +193,7 @@ repos:
hooks: hooks:
- id: codespell - id: codespell
args: args:
- --skip=*.json,*.lock,.git,__pycache__,.venv - --skip=*.json,*.lock,*pnpm-lock.yaml,.git,__pycache__,.venv
- --ignore-words-list=als,ans,ect,nd,som,sur,te,nam,numer,lew,sie,wil,postion,clen,ther,folow,derrive,ony,tje,noe,theses,crate,doubleclick,wile,tabel,pary,blok,bloc,proces,serwer,parametr,adres,hart,dout,metod,tekst,synonim,grup,mosty,lokal,skalar,milion,nowe,tre,hel,alph - --ignore-words-list=als,ans,ect,nd,som,sur,te,nam,numer,lew,sie,wil,postion,clen,ther,folow,derrive,ony,tje,noe,theses,crate,doubleclick,wile,tabel,pary,blok,bloc,proces,serwer,parametr,adres,hart,dout,metod,tekst,synonim,grup,mosty,lokal,skalar,milion,nowe,tre,hel,alph
- repo: local - repo: local
@ -264,21 +266,21 @@ repos:
# can rot without anything failing. All three run here. # can rot without anything failing. All three run here.
- id: web-lint - id: web-lint
name: eslint (status web UI) name: eslint (status web UI)
entry: npm --prefix web run lint entry: pnpm --dir web run lint
language: system language: system
files: '^web/(src/.*\.(ts|tsx)|eslint\.config\.js|package\.json)$' files: '^web/(src/.*\.(ts|tsx)|eslint\.config\.js|package\.json)$'
pass_filenames: false pass_filenames: false
require_serial: true require_serial: true
- id: web-typecheck - id: web-typecheck
name: tsc --build (status web UI) name: tsc --build (status web UI)
entry: npm --prefix web run build entry: pnpm --dir web run build
language: system language: system
files: '^web/(src/.*\.(ts|tsx)|tsconfig.*\.json|vite\.config\.ts)$' files: '^web/(src/.*\.(ts|tsx)|tsconfig.*\.json|vite\.config\.ts)$'
pass_filenames: false pass_filenames: false
require_serial: true require_serial: true
- id: web-coverage - id: web-coverage
name: vitest --coverage 100% (status web UI) name: vitest --coverage 100% (status web UI)
entry: npm --prefix web run coverage entry: pnpm --dir web run coverage
language: system language: system
files: '^web/src/' files: '^web/src/'
pass_filenames: false pass_filenames: false

View File

@ -778,10 +778,10 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
name: sqflite name: sqflite
sha256: "7419d02d128023f38586481c81e14e5692167f75b7f411a914b1eb50d28c010e" sha256: "273218a1678360a3127fcf15e543381d9b813d413d783bc6e9a53eed4d2eb8fe"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.4.4+1" version: "2.4.4+2"
sqflite_android: sqflite_android:
dependency: transitive dependency: transitive
description: description:
@ -802,10 +802,10 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
name: sqflite_common_ffi name: sqflite_common_ffi
sha256: "4ec920a01788641fa1c9922e757c108427e7f8634cce3ce8a1073d573060f4a3" sha256: "4cb6179390549743fc1a5a2fb8f134e5ad87ce459f6f4e563531487dadd81710"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.4.3" version: "2.4.4"
sqflite_darwin: sqflite_darwin:
dependency: transitive dependency: transitive
description: description:

View File

@ -36,10 +36,10 @@ dependencies:
path_provider: 2.1.6 path_provider: 2.1.6
permission_handler: 13.0.2 permission_handler: 13.0.2
shared_preferences: 2.5.6 shared_preferences: 2.5.6
sqflite: 2.4.4+1 sqflite: 2.4.4+2
# Linux desktop has no sqflite plugin; the FFI factory drives the same # Linux desktop has no sqflite plugin; the FFI factory drives the same
# schema (and already backed the test suite before the desktop target). # schema (and already backed the test suite before the desktop target).
sqflite_common_ffi: 2.4.3 sqflite_common_ffi: 2.4.4
sync_settings_ui: sync_settings_ui:
git: git:
url: https://github.com/kuhyx/utils url: https://github.com/kuhyx/utils

3913
web/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -2,6 +2,7 @@
"name": "screen-locker-web", "name": "screen-locker-web",
"private": true, "private": true,
"version": "0.0.0", "version": "0.0.0",
"packageManager": "pnpm@12.14.0",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
@ -14,28 +15,28 @@
"coverage": "vitest run --coverage" "coverage": "vitest run --coverage"
}, },
"dependencies": { "dependencies": {
"react": "19.3.0", "react": "19.3.1",
"react-dom": "19.3.0" "react-dom": "19.3.1"
}, },
"devDependencies": { "devDependencies": {
"@eslint/js": "10.0.1", "@eslint/js": "10.0.1",
"@testing-library/dom": "10.4.2", "@testing-library/dom": "10.4.2",
"@testing-library/jest-dom": "7.0.1", "@testing-library/jest-dom": "7.0.1",
"@testing-library/react": "16.3.3", "@testing-library/react": "16.3.3",
"@testing-library/user-event": "14.6.7", "@testing-library/user-event": "14.6.8",
"@types/node": "26.6.5", "@types/node": "26.6.5",
"@types/react": "19.3.0", "@types/react": "19.3.0",
"@types/react-dom": "19.3.0", "@types/react-dom": "19.3.0",
"@vitejs/plugin-react": "6.1.2", "@vitejs/plugin-react": "6.1.2",
"@vitest/coverage-v8": "5.0.3", "@vitest/coverage-v8": "5.0.4",
"eslint": "10.12.0", "eslint": "10.12.0",
"eslint-plugin-react-hooks": "7.1.1", "eslint-plugin-react-hooks": "7.1.1",
"eslint-plugin-react-refresh": "0.5.7", "eslint-plugin-react-refresh": "0.5.7",
"globals": "17.13.0", "globals": "17.13.0",
"jsdom": "30.1.2", "jsdom": "30.1.3",
"typescript": "6.0.3", "typescript": "6.0.3",
"typescript-eslint": "8.71.1", "typescript-eslint": "8.71.2",
"vite": "8.3.4", "vite": "8.3.4",
"vitest": "5.0.3" "vitest": "5.0.4"
} }
} }

2633
web/pnpm-lock.yaml Normal file

File diff suppressed because it is too large Load Diff