Skip to content

Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.

chore(deps): in-range bumps, frontend and api

lodepavef471319c135
diff --git a/api/package-lock.json b/api/package-lock.json
index 98979422c..49d846d4c 100644
--- a/api/package-lock.json
+++ b/api/package-lock.json
@@ -9,32 +9,32 @@
"version": "1.4.2",
"license": "AGPL-3.0-or-later",
"dependencies": {
- "@simplewebauthn/server": "^13.1.1",
- "undici": "^7.29.0",
+ "@simplewebauthn/server": "^13.3.3",
+ "undici": "^7.30.1",
"web-push": "^3.6.7"
},
"optionalDependencies": {
- "@anthropic-ai/claude-agent-sdk": "^0.3.223"
+ "@anthropic-ai/claude-agent-sdk": "^0.3.302"
}
},
"node_modules/@anthropic-ai/claude-agent-sdk": {
- "version": "0.3.223",
- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk/-/claude-agent-sdk-0.3.223.tgz",
- "integrity": "sha512-r2BpOfxaEjPj0xpRQBukrBWG7n2QERVk10hstc+AXmm4JBii1OqH50sfewU8a8E7uhoJazA3WnZoZoaTFnV/2A==",
+ "version": "0.3.302",
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk/-/claude-agent-sdk-0.3.302.tgz",
+ "integrity": "sha512-VUxgraOIxnu4COhS9IkP3AF21kh9KOOF8oyU7pc6q0PfzMPlarbnhXvuhCNIPPYddhIev+17LLq1nZ700GdLBg==",
"license": "SEE LICENSE IN README.md",
"optional": true,
"engines": {
"node": ">=18.0.0"
},
"optionalDependencies": {
- "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.223",
- "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.223",
- "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.223",
- "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.223",
- "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.223",
- "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.223",
- "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.223",
- "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.223"
+ "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.302",
+ "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.302",
+ "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.302",
+ "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.302",
+ "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.302",
+ "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.302",
+ "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.302",
+ "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.302"
},
"peerDependencies": {
"@anthropic-ai/sdk": ">=0.93.0",
@@ -43,9 +43,9 @@
}
},
"node_modules/@anthropic-ai/claude-agent-sdk-darwin-arm64": {
- "version": "0.3.223",
- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-arm64/-/claude-agent-sdk-darwin-arm64-0.3.223.tgz",
- "integrity": "sha512-y9PcAkK7JHfzBC1yyLIhJwlF/x7XYLcFReiKkxm53mtBp+ASgpxNoBDvGqx7Q+IVB5xwlhnprcaXc2PxsLUKuA==",
+ "version": "0.3.302",
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-arm64/-/claude-agent-sdk-darwin-arm64-0.3.302.tgz",
+ "integrity": "sha512-RwuagoGPwd1i6zNeKhIlU3xLnlez/BGE4qEBSmymdNRQxyE5U2wmGtvi0+taWSg4T91oTMzHRuN8HapSk8swiQ==",
"cpu": [
"arm64"
],
@@ -56,9 +56,9 @@
]
},
"node_modules/@anthropic-ai/claude-agent-sdk-darwin-x64": {
- "version": "0.3.223",
- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-x64/-/claude-agent-sdk-darwin-x64-0.3.223.tgz",
- "integrity": "sha512-JAkGQCat4FroNdG9XQiKQ+M+R/mggt3fFVQR5KcsbOrGFNynCdnVhi9CPxU8AXDhiIbk+Y3254qHhKTZbcZtGw==",
+ "version": "0.3.302",
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-x64/-/claude-agent-sdk-darwin-x64-0.3.302.tgz",
+ "integrity": "sha512-92aWlLyKYf9L68mAe1s1UQLpHoWXXGH+lzUBGDD1ony9MrkvJk/HSSvn/yYpHvvG1NcOYDqW8ySAIKRzffj23Q==",
"cpu": [
"x64"
],
@@ -69,9 +69,9 @@
]
},
"node_modules/@anthropic-ai/claude-agent-sdk-linux-arm64": {
- "version": "0.3.223",
- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64/-/claude-agent-sdk-linux-arm64-0.3.223.tgz",
- "integrity": "sha512-mFPm66MIiFtb/XiHR39/ifzv0nlho1KNCjH+1cP6lJvVXm57kugxsKDndGXWEBI0Wh7DxKhTnjRxEKVhwwdYWw==",
+ "version": "0.3.302",
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64/-/claude-agent-sdk-linux-arm64-0.3.302.tgz",
+ "integrity": "sha512-TlPrant3tYgB763zY2/StpmRpZEMAi9+5gy9kiIIhp9h/NOD2bHvpnUoqaOEB/tcxzerIadxeZuCToVPocVJ3w==",
"cpu": [
"arm64"
],
@@ -82,9 +82,9 @@
]
},
"node_modules/@anthropic-ai/claude-agent-sdk-linux-arm64-musl": {
- "version": "0.3.223",
- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64-musl/-/claude-agent-sdk-linux-arm64-musl-0.3.223.tgz",
- "integrity": "sha512-HKpj+0quFtaH/fXQm56HipslOyhyTdB2vM4nvxmG3oube2KtB9FNJqqnTwSTeGbJc5dm4PjoAyN+oQV8Rh4RGw==",
+ "version": "0.3.302",
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64-musl/-/claude-agent-sdk-linux-arm64-musl-0.3.302.tgz",
+ "integrity": "sha512-lba7aywUy4wYI3avNoq5vHA+U7jPba7TaMnurEFkRnG6A51mJfLGwZ35AW8QGFXcMXZnA7UVZ/F65GznPt1Ypg==",
"cpu": [
"arm64"
],
@@ -95,9 +95,9 @@
]
},
"node_modules/@anthropic-ai/claude-agent-sdk-linux-x64": {
- "version": "0.3.223",
- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64/-/claude-agent-sdk-linux-x64-0.3.223.tgz",
- "integrity": "sha512-8x+BvnuNr8iTMqwBAf0KvklF/GRLXYiXMb+umo+N2bxOlE7wFYpFqVACeW44KsfRgdnbVnF9sJ00w1s01W/9eA==",
+ "version": "0.3.302",
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64/-/claude-agent-sdk-linux-x64-0.3.302.tgz",
+ "integrity": "sha512-HqD0+tnjJDldkZJPuTiMIZ1XbrVW8LH/3QKqCBgXLGwVFNgkLOM+Sfh14C0vqyZSIaLFgsFd4bIw1jg5V+td6w==",
"cpu": [
"x64"
],
@@ -108,9 +108,9 @@
]
},
"node_modules/@anthropic-ai/claude-agent-sdk-linux-x64-musl": {
- "version": "0.3.223",
- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64-musl/-/claude-agent-sdk-linux-x64-musl-0.3.223.tgz",
- "integrity": "sha512-ukw6GAneAsCc/Lp24cA4yk2/vPgDjooZGB/TTvLsyfy8yto3b/WpfaktubQE/tNigF+mWo6+VytUOeVil8HwnQ==",
+ "version": "0.3.302",
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64-musl/-/claude-agent-sdk-linux-x64-musl-0.3.302.tgz",
+ "integrity": "sha512-UCsqTcoUmV8qGdnmw0od2grDPgrkK6kclpo5Oyox15B9glHXhOIL0nifWcw2xS9VKV0VZ11I9FujPLIXfEpXtg==",
"cpu": [
"x64"
],
@@ -121,9 +121,9 @@
]
},
"node_modules/@anthropic-ai/claude-agent-sdk-win32-arm64": {
- "version": "0.3.223",
- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-arm64/-/claude-agent-sdk-win32-arm64-0.3.223.tgz",
- "integrity": "sha512-Am8q5al0BBIbxOlfLSjaXQqCOjOg/4XvCiSt8mxvocGy/6W60fV/RFrEs86RlN6DATUGxTSNTqye6cn8MTlgOA==",
+ "version": "0.3.302",
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-arm64/-/claude-agent-sdk-win32-arm64-0.3.302.tgz",
+ "integrity": "sha512-W0LhTtFWANn1PRXD84PjqtYrlldGglP+x+ea95JvPvkYyvgLK0dL8TJHBJ8+C0lcW0NJuY9VspFespy3hwmuSA==",
"cpu": [
"arm64"
],
@@ -134,9 +134,9 @@
]
},
"node_modules/@anthropic-ai/claude-agent-sdk-win32-x64": {
- "version": "0.3.223",
- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-x64/-/claude-agent-sdk-win32-x64-0.3.223.tgz",
- "integrity": "sha512-ZG53F8YtUTr97OGdnIbSqHuRHL1eja928M1xwbuAiM1cJ5I8VpFODVjHpM0ioKiurr9Tmjzns/nHcafc18VovA==",
+ "version": "0.3.302",
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-x64/-/claude-agent-sdk-win32-x64-0.3.302.tgz",
+ "integrity": "sha512-R2pgjSw60MNBNRxNewypqMnHUz8zlgrWWoQJY9UC+clFtp1NwnuauyCAsY3t63VzJ6mPq0+pDDN89dISfEJ5Ig==",
"cpu": [
"x64"
],
@@ -401,9 +401,10 @@
}
},
"node_modules/@simplewebauthn/server": {
- "version": "13.3.2",
- "resolved": "https://registry.npmjs.org/@simplewebauthn/server/-/server-13.3.2.tgz",
- "integrity": "sha512-KEDhfcGP1PAKRVSDjA3npTQFqS2b/srm+ipoNBNHdkzrHAlaRQUTE+a5f4ywsx6thxAw1NU2rYcLEY1949RGbQ==",
+ "version": "13.3.3",
+ "resolved": "https://registry.npmjs.org/@simplewebauthn/server/-/server-13.3.3.tgz",
+ "integrity": "sha512-LelX/lcy5cjc15A86i/aNxHhB5eU7dd20QsbP0VLAf9e38+SLlsnqCCyecx3xqfGofhmX05h1J9fKRYWxw+luA==",
+ "license": "MIT",
"dependencies": {
"@hexagon/base64": "^1.1.27",
"@levischuck/tiny-cbor": "^0.2.2",
@@ -1844,9 +1845,10 @@
}
},
"node_modules/undici": {
- "version": "7.30.0",
- "resolved": "https://registry.npmjs.org/undici/-/undici-7.30.0.tgz",
- "integrity": "sha512-dkrQXeHSaoamnItlYbmzG0wFYrM0ZwDxCIg0A7aKjTyyhh9svRzCNFEzV+Vm05/yehjCzjDZ31KXfGEjYSztDQ==",
+ "version": "7.30.1",
+ "resolved": "https://registry.npmjs.org/undici/-/undici-7.30.1.tgz",
+ "integrity": "sha512-03KrMbjIFDWQR5RNPrSw3bd1r12JpyFQl9/yxjUbJtqkjmllqC5lFjZh6ujeuJCKr8EOQvRW872Oy/az+nLYxg==",
+ "license": "MIT",
"engines": {
"node": ">=20.18.1"
}
diff --git a/api/package.json b/api/package.json
index 18834acfe..33f280b47 100644
--- a/api/package.json
+++ b/api/package.json
@@ -10,11 +10,11 @@
"test": "node --test test/*.test.js"
},
"dependencies": {
- "@simplewebauthn/server": "^13.1.1",
- "undici": "^7.29.0",
+ "@simplewebauthn/server": "^13.3.3",
+ "undici": "^7.30.1",
"web-push": "^3.6.7"
},
"optionalDependencies": {
- "@anthropic-ai/claude-agent-sdk": "^0.3.223"
+ "@anthropic-ai/claude-agent-sdk": "^0.3.302"
}
}
diff --git a/frontend/package-lock.json b/frontend/package-lock.json
index 2532e33b0..5987ed17a 100644
--- a/frontend/package-lock.json
+++ b/frontend/package-lock.json
@@ -13,28 +13,28 @@
"@capacitor-mlkit/barcode-scanning": "^8.2.1",
"@capacitor/app": "^8.0.0",
"@capacitor/core": "^8.5.3",
- "@capacitor/filesystem": "^8.1.4",
+ "@capacitor/filesystem": "^8.1.5",
"@capacitor/local-notifications": "^8.0.0",
"@capacitor/share": "^8.0.0",
"@capacitor/splash-screen": "^8.0.2",
"jsqr": "^1.4.0",
"leaflet": "^1.9.4",
- "lean-qr": "^2.7.3",
- "react": "^19.2.7",
- "react-dom": "^19.2.7",
- "react-router-dom": "^7.18.2",
- "zustand": "^5.0.14"
+ "lean-qr": "^2.7.4",
+ "react": "^19.3.1",
+ "react-dom": "^19.3.1",
+ "react-router-dom": "^7.18.4",
+ "zustand": "^5.0.15"
},
"devDependencies": {
"@capacitor/android": "^8.5.3",
"@capacitor/cli": "^8.5.3",
"@capacitor/ios": "^8.5.3",
- "@vitejs/plugin-react": "^6.0.3",
+ "@vitejs/plugin-react": "^6.1.2",
"@vitest/coverage-v8": "^4.1.12",
"fast-check": "^4.10.2",
- "happy-dom": "^20.11.2",
+ "happy-dom": "^20.14.6",
"linkedom": "^0.18.13",
- "vite": "^8.1.6",
+ "vite": "^8.3.4",
"vitest": "^4.1.12"
}
},
@@ -195,9 +195,9 @@
}
},
"node_modules/@capacitor/filesystem": {
- "version": "8.1.4",
- "resolved": "https://registry.npmjs.org/@capacitor/filesystem/-/filesystem-8.1.4.tgz",
- "integrity": "sha512-8MXmt10cb+dGWoh8jUeO8on0U6iETQCX5k+fmdB278PZ3MYDEVGQo08+hroaOtUbK3+5stiRk4/K6QBHKepv0A==",
+ "version": "8.1.5",
+ "resolved": "https://registry.npmjs.org/@capacitor/filesystem/-/filesystem-8.1.5.tgz",
+ "integrity": "sha512-m1RkI8L83NJeppEKyRWioK3MDp2vjlA+QfUQcF8/xRlcXNC2HYxqoyYJ+K4M0EcVovy+g+4F24S05+bhK4Vgdg==",
"license": "MIT",
"dependencies": {
"@capacitor/synapse": "^1.0.4"
@@ -767,10 +767,11 @@
}
},
"node_modules/@vitejs/plugin-react": {
- "version": "6.0.4",
- "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-6.0.4.tgz",
- "integrity": "sha512-XcCQz0TBpBgljhj0gMuuDj49i6Ytqh5q1osT/Gp5uAVJUCTWxyskk/l1jwYYiu2xcNHHipdMz40EGfM1VdamVg==",
+ "version": "6.1.2",
+ "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-6.1.2.tgz",
+ "integrity": "sha512-fhJNGUdscQa4HkI0xFxwonWyhnVReCPDbXI7FH7jmzpnVCrFQI7PRrhWecO263610vOrs9tr2Y4xcf8uAdFxbw==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"@rolldown/pluginutils": "^1.0.1"
},
@@ -780,6 +781,7 @@
"peerDependencies": {
"@rolldown/plugin-babel": "^0.1.7 || ^0.2.0",
"babel-plugin-react-compiler": "^1.0.0",
+ "oxc-transform-react": "^0.152.0",
"vite": "^8.0.0"
},
"peerDependenciesMeta": {
@@ -788,6 +790,9 @@
},
"babel-plugin-react-compiler": {
"optional": true
+ },
+ "oxc-transform-react": {
+ "optional": true
}
}
},
@@ -1409,9 +1414,9 @@
"dev": true
},
"node_modules/happy-dom": {
- "version": "20.11.2",
- "resolved": "https://registry.npmjs.org/happy-dom/-/happy-dom-20.11.2.tgz",
- "integrity": "sha512-7MB+bJLkxu3SowAfBJbjW+c55kNz5tkR45gu2qzrxznezhLeN5YIlJbwUgSzlGc+qWoZ8Ykg71H5ezz69xixrw==",
+ "version": "20.14.6",
+ "resolved": "https://registry.npmjs.org/happy-dom/-/happy-dom-20.14.6.tgz",
+ "integrity": "sha512-5DDsf4QmEIlRL6NkCv/fxSjYHHkZceL/IaYQdJc2h3G7DRTEai++VTjbfL0LB9geW2VrA3+vrjF3Efx+OTtX0Q==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -1691,9 +1696,10 @@
"license": "BSD-2-Clause"
},
"node_modules/lean-qr": {
- "version": "2.7.3",
- "resolved": "https://registry.npmjs.org/lean-qr/-/lean-qr-2.7.3.tgz",
- "integrity": "sha512-/eQryMvYyTL3dSMK/IlvSjUYG0ShQv62owXiFbGkSH+lFZzf4VOsPP+UInAgeUH/rPIyz59uQE9XHRbn9o8SyQ==",
+ "version": "2.7.4",
+ "resolved": "https://registry.npmjs.org/lean-qr/-/lean-qr-2.7.4.tgz",
+ "integrity": "sha512-tlMPFfqhAAZN7+j/djRSvl/2+AYT2+7RRuyq8bvcbV8gMiENiscquQ9WTfCSyeEdxsVaEB+tU7e9nFZC63BFnQ==",
+ "license": "MIT",
"bin": {
"lean-qr": "cli.mjs"
}
@@ -2436,30 +2442,32 @@
"license": "MIT"
},
"node_modules/react": {
- "version": "19.2.8",
- "resolved": "https://registry.npmjs.org/react/-/react-19.2.8.tgz",
- "integrity": "sha512-PWaYA1L/q9u2u7xYQi+Y3L3Yfnie7XyLeaJICV1MGD6LprsBxcAqGjYyr0eY3p+QdsA+x/Irkt4Qif8D63+Sbw==",
+ "version": "19.3.1",
+ "resolved": "https://registry.npmjs.org/react/-/react-19.3.1.tgz",
+ "integrity": "sha512-QNhWdt7nrgVWWQG58QuGsAR3jv3Hbe4mb4vz7w2csnHavciZJgda1CPNaldF6eVxv90ud3jUXpKlHL69gO38yw==",
+ "license": "MIT",
"peer": true,
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/react-dom": {
- "version": "19.2.8",
- "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.8.tgz",
- "integrity": "sha512-rVprimfGBG3DR+Tq0IQG2DT5PxKth1WIGDmj5yPmlzr4YBe7uyE+Du4oVqTDXZSHGGGXRtTJEGSSePyQCMBglQ==",
+ "version": "19.3.1",
+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.3.1.tgz",
+ "integrity": "sha512-Y0bARz53lhEC1NMCASs0/j+faB/zqt3R8hpvg1e8+61ZVJ4UL0UdC4cBbXfZMcIuhrfgeILTLe+ZeBCavQPtKQ==",
+ "license": "MIT",
"peer": true,
"dependencies": {
- "scheduler": "^0.27.0"
+ "scheduler": "^0.28.0"
},
"peerDependencies": {
- "react": "^19.2.8"
+ "react": "^19.3.1"
}
},
"node_modules/react-router": {
- "version": "7.18.2",
- "resolved": "https://registry.npmjs.org/react-router/-/react-router-7.18.2.tgz",
- "integrity": "sha512-aUVMjFm3GAPTTZL7oYr5E7ETiqfQCHRLH+B+5afnICvf0r7kkK4eR6SMuwbSTJw/7t+12khT/Kahij49fqOCIg==",
+ "version": "7.18.4",
+ "resolved": "https://registry.npmjs.org/react-router/-/react-router-7.18.4.tgz",
+ "integrity": "sha512-PUPQcMhMGRAslLcvtlPz/kmzBEWPhLdgLFrL7pLNepBL6dX0lWj4WD2cUYVgYCuT3jxvghYFg81cDTj44DhetQ==",
"license": "MIT",
"dependencies": {
"cookie": "^1.0.1",
@@ -2479,12 +2487,12 @@
}
},
"node_modules/react-router-dom": {
- "version": "7.18.2",
- "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-7.18.2.tgz",
- "integrity": "sha512-AIKJ/jgGlFb3EbfCXk5Gzshiwt+l3mqbCrNjmEWMMjqQxNJ3svBa6bgzFyCC2Sw3RA0VWF1kg3uQf2OFhxb8hw==",
+ "version": "7.18.4",
+ "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-7.18.4.tgz",
+ "integrity": "sha512-yrfmJHIpDG7taCpqKjT1G5B6q3O2K+RN8/fgNf0lTjCwiPbQ0ei6vXX9ZjQR+7ld8Tr7Z5xmyMnZ8YJrphWQUw==",
"license": "MIT",
"dependencies": {
- "react-router": "7.18.2"
+ "react-router": "7.18.4"
},
"engines": {
"node": ">=20.0.0"
@@ -2588,9 +2596,10 @@
"dev": true
},
"node_modules/scheduler": {
- "version": "0.27.0",
- "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz",
- "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q=="
+ "version": "0.28.0",
+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.28.0.tgz",
+ "integrity": "sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==",
+ "license": "MIT"
},
"node_modules/semver": {
"version": "7.8.5",
@@ -3209,9 +3218,10 @@
}
},
"node_modules/zustand": {
- "version": "5.0.14",
- "resolved": "https://registry.npmjs.org/zustand/-/zustand-5.0.14.tgz",
- "integrity": "sha512-/8tAspM5LMPr28b3fwLYrtdj77ECpfZviaP75CMTnwO8ISyaE4GDIG/9rDDYq/cH9D2Xw2A2RXglLInmVBQB/g==",
+ "version": "5.0.16",
+ "resolved": "https://registry.npmjs.org/zustand/-/zustand-5.0.16.tgz",
+ "integrity": "sha512-Uv7e327ihlCfayfja3hDc0M64Upev1LWBKpRobdK4NyovDDPeeX4imWXc/wzC1yc6fkYPoAY/ncKVPAs2jrtQw==",
+ "license": "MIT",
"engines": {
"node": ">=12.20.0"
},
diff --git a/frontend/package.json b/frontend/package.json
index 8b6998341..ac3141322 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -19,28 +19,28 @@
"@capacitor-mlkit/barcode-scanning": "^8.2.1",
"@capacitor/app": "^8.0.0",
"@capacitor/core": "^8.5.3",
- "@capacitor/filesystem": "^8.1.4",
+ "@capacitor/filesystem": "^8.1.5",
"@capacitor/local-notifications": "^8.0.0",
"@capacitor/share": "^8.0.0",
"@capacitor/splash-screen": "^8.0.2",
"jsqr": "^1.4.0",
"leaflet": "^1.9.4",
- "lean-qr": "^2.7.3",
- "react": "^19.2.7",
- "react-dom": "^19.2.7",
- "react-router-dom": "^7.18.2",
- "zustand": "^5.0.14"
+ "lean-qr": "^2.7.4",
+ "react": "^19.3.1",
+ "react-dom": "^19.3.1",
+ "react-router-dom": "^7.18.4",
+ "zustand": "^5.0.15"
},
"devDependencies": {
"@capacitor/android": "^8.5.3",
"@capacitor/cli": "^8.5.3",
"@capacitor/ios": "^8.5.3",
- "@vitejs/plugin-react": "^6.0.3",
+ "@vitejs/plugin-react": "^6.1.2",
"@vitest/coverage-v8": "^4.1.12",
"fast-check": "^4.10.2",
- "happy-dom": "^20.11.2",
+ "happy-dom": "^20.14.6",
"linkedom": "^0.18.13",
- "vite": "^8.1.6",
+ "vite": "^8.3.4",
"vitest": "^4.1.12"
}
}
diff --git a/frontend/src/views/Plan.swipe.test.jsx b/frontend/src/views/Plan.swipe.test.jsx
index 7c4d713c6..0ec30471b 100644
--- a/frontend/src/views/Plan.swipe.test.jsx
+++ b/frontend/src/views/Plan.swipe.test.jsx
@@ -57,8 +57,17 @@ function swipe(target, x0, x1) {
}
const undo = () => act(() => useUI.getState().runToastAction())
+// happy-dom 20.12+ runs Element.animate on its own clock, which fake timers do not move, so the
+// row's collapse never finished: end each animation on the faked clock instead.
+const fakeAnimate = () => vi.spyOn(Element.prototype, 'animate').mockImplementation(function (_, o) {
+ const a = { onfinish: null, cancel: () => clearTimeout(t) }
+ const t = setTimeout(() => a.onfinish?.(), o?.duration || 0)
+ return a
+})
+
beforeEach(() => {
vi.useFakeTimers()
+ fakeAnimate()
nav.mockClear(); confirmSheet.mockClear()
document.documentElement.dir = 'ltr'
useUI.setState({ sheets: [], toastMsg: '', toastAction: null })
@@ -71,6 +80,7 @@ afterEach(() => {
localStorage.removeItem('gym_plan_view')
widthSpy.mockRestore()
vi.clearAllTimers(); vi.useRealTimers()
+ vi.mocked(Element.prototype.animate).mockRestore?.()
})
describe('the routines list', () => {
diff --git a/frontend/src/views/RoutineEdit.swipe.test.jsx b/frontend/src/views/RoutineEdit.swipe.test.jsx
index bce267937..5677fef69 100644
--- a/frontend/src/views/RoutineEdit.swipe.test.jsx
+++ b/frontend/src/views/RoutineEdit.swipe.test.jsx
@@ -54,8 +54,17 @@ function swipe(target, x0, x1) {
}
const undo = () => act(() => useUI.getState().runToastAction())
+// happy-dom 20.12+ runs Element.animate on its own clock, which fake timers do not move, so the
+// row's collapse never finished: end each animation on the faked clock instead.
+const fakeAnimate = () => vi.spyOn(Element.prototype, 'animate').mockImplementation(function (_, o) {
+ const a = { onfinish: null, cancel: () => clearTimeout(t) }
+ const t = setTimeout(() => a.onfinish?.(), o?.duration || 0)
+ return a
+})
+
beforeEach(() => {
vi.useFakeTimers()
+ fakeAnimate()
Object.values(sheets).forEach(mock => mock.mockReset())
document.documentElement.dir = 'ltr'
useUI.setState({ sheets: [], toastMsg: '', toastAction: null })
@@ -66,6 +75,7 @@ afterEach(() => {
act(() => root.unmount()); host.remove()
widthSpy.mockRestore()
vi.clearAllTimers(); vi.useRealTimers()
+ vi.mocked(Element.prototype.animate).mockRestore?.()
})
describe('swiping an exercise out of a routine', () => {
diff --git a/frontend/src/views/Workout.swipe.test.jsx b/frontend/src/views/Workout.swipe.test.jsx
index 5c9a99555..a1b6df34b 100644
--- a/frontend/src/views/Workout.swipe.test.jsx
+++ b/frontend/src/views/Workout.swipe.test.jsx
@@ -59,9 +59,18 @@ function swipe(target, x0, x1, { dy = 0, pointerType = 'touch', clickAfter = tru
if (clickAfter) click(target)
}
+// happy-dom 20.12+ runs Element.animate on its own clock, which fake timers do not move, so the
+// row's collapse never finished: end each animation on the faked clock instead.
+const fakeAnimate = () => vi.spyOn(Element.prototype, 'animate').mockImplementation(function (_, o) {
+ const a = { onfinish: null, cancel: () => clearTimeout(t) }
+ const t = setTimeout(() => a.onfinish?.(), o?.duration || 0)
+ return a
+})
+
beforeEach(() => {
_resetHintQuiet()
vi.useFakeTimers()
+ fakeAnimate()
localStorage.clear()
document.documentElement.dir = 'ltr'
useUI.getState().stopRest()
@@ -80,6 +89,7 @@ afterEach(() => {
useUI.getState().stopWork()
vi.clearAllTimers()
vi.useRealTimers()
+ vi.mocked(Element.prototype.animate).mockRestore?.()
document.documentElement.dir = 'ltr'
})