dependency update + adjust Playwright setup + fix linter issue (#3994)

update dependencies before next release

---------

Co-authored-by: Kristjan ESPERANTO <35647502+KristjanESPERANTO@users.noreply.github.com>
This commit is contained in:
Karsten Hassel
2025-12-28 12:14:31 +01:00
committed by GitHub
parent 49620781c2
commit 0fb6fcbb12
4 changed files with 503 additions and 626 deletions

View File

@@ -15,7 +15,7 @@
MagicMirror² focuses on a modular plugin system and uses [Electron](https://www.electronjs.org/) as an application wrapper. So no more web server or browser installs necessary!
![](https://magicmirror.builders/img/demo.gif)
![Animated demonstration of MagicMirror²](https://magicmirror.builders/img/demo.gif)
## Documentation

1096
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -83,28 +83,28 @@
"console-stamp": "^3.1.2",
"croner": "^9.1.0",
"envsub": "^4.1.0",
"eslint": "^9.39.1",
"eslint": "^9.39.2",
"express": "^5.2.1",
"feedme": "^2.0.2",
"helmet": "^8.1.0",
"html-to-text": "^9.0.5",
"iconv-lite": "^0.7.0",
"iconv-lite": "^0.7.1",
"ipaddr.js": "^2.3.0",
"moment": "^2.30.1",
"moment-timezone": "^0.6.0",
"node-ical": "^0.22.1",
"nunjucks": "^3.2.4",
"pm2": "^6.0.14",
"socket.io": "^4.8.1",
"socket.io": "^4.8.3",
"suncalc": "^1.9.0",
"systeminformation": "^5.27.13",
"systeminformation": "^5.28.2",
"undici": "^7.16.0",
"weathericons": "^2.1.0"
},
"devDependencies": {
"@stylistic/eslint-plugin": "^5.6.1",
"@vitest/coverage-v8": "^4.0.15",
"@vitest/ui": "^4.0.15",
"@vitest/coverage-v8": "^4.0.16",
"@vitest/ui": "^4.0.16",
"cspell": "^9.4.0",
"eslint-plugin-import-x": "^4.16.1",
"eslint-plugin-jsdoc": "^61.5.0",
@@ -113,7 +113,7 @@
"eslint-plugin-vitest": "^0.5.4",
"express-basic-auth": "^1.2.1",
"husky": "^9.1.7",
"jsdom": "^27.3.0",
"jsdom": "^27.4.0",
"lint-staged": "^16.2.7",
"markdownlint-cli2": "^0.20.0",
"playwright": "^1.57.0",
@@ -122,10 +122,10 @@
"stylelint": "^16.26.1",
"stylelint-config-standard": "^39.0.1",
"stylelint-prettier": "^5.0.3",
"vitest": "^4.0.15"
"vitest": "^4.0.16"
},
"optionalDependencies": {
"electron": "^39.2.6"
"electron": "^39.2.7"
},
"engines": {
"node": ">=22.21.1 <23 || >=24"

View File

@@ -29,7 +29,18 @@ let page;
*/
async function ensureContext () {
if (!browser) {
browser = await chromium.launch({ headless: true });
// Additional args for CI stability to prevent crashes
const launchOptions = {
headless: true,
args: [
"--disable-dev-shm-usage", // Overcome limited resource problems in Docker/CI
"--disable-gpu", // Disable GPU hardware acceleration
"--no-sandbox", // Required for running as root in some CI environments
"--disable-setuid-sandbox",
"--single-process" // Run in single process mode for better stability in CI
]
};
browser = await chromium.launch(launchOptions);
}
if (!context) {
context = await browser.newContext();