diff --git a/package-lock.json b/package-lock.json index 3785880755c..189e2a83a75 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,28 +19,14 @@ "@actions/core": "1.10.1", "@microsoft/api-extractor": "7.38.2", "@pptr/testserver": "file:packages/testserver", - "@prettier/sync": "0.3.0", "@puppeteer/docgen": "file:tools/docgen", - "@types/debug": "4.1.10", - "@types/diff": "5.0.7", - "@types/mime": "3.0.3", "@types/mocha": "10.0.3", "@types/node": "20.8.4", - "@types/pixelmatch": "5.2.5", - "@types/pngjs": "6.0.3", - "@types/progress": "2.0.6", "@types/semver": "7.5.4", "@types/sinon": "17.0.0", - "@types/tar-fs": "2.0.3", - "@types/unbzip2-stream": "1.4.2", - "@types/ws": "8.5.8", - "@types/yargs": "17.0.29", "@typescript-eslint/eslint-plugin": "6.9.1", "@typescript-eslint/parser": "6.9.1", - "c8": "8.0.1", - "commonmark": "0.30.0", "cross-env": "7.0.3", - "diff": "5.1.0", "esbuild": "0.19.5", "eslint": "8.53.0", "eslint-config-prettier": "9.0.0", @@ -52,33 +38,23 @@ "eslint-plugin-rulesdir": "0.2.2", "eslint-plugin-tsdoc": "0.2.17", "eslint-plugin-unused-imports": "3.0.0", - "esprima": "4.0.1", "execa": "8.0.1", "expect": "29.7.0", - "glob": "10.3.10", "gts": "5.2.0", "hereby": "1.8.8", - "jpeg-js": "0.4.4", "license-checker": "25.0.1", - "mime": "3.0.0", - "minimist": "1.2.8", "mocha": "10.2.0", - "ncp": "2.0.0", "npm-run-all": "4.1.5", - "pixelmatch": "5.3.0", - "pngjs": "7.0.0", "prettier": "3.0.3", "puppeteer": "file:packages/puppeteer", "semver": "7.5.4", "sinon": "17.0.1", "source-map-support": "0.5.21", "spdx-satisfies": "5.0.1", - "text-diff": "1.0.1", "tsd": "0.29.0", "tsx": "3.14.0", "typescript": "5.2.2", - "wireit": "0.14.1", - "zod": "3.22.4" + "wireit": "0.14.1" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -297,8 +273,7 @@ "node_modules/@bcoe/v8-coverage": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", - "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", - "dev": true + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==" }, "node_modules/@esbuild/android-arm": { "version": "0.19.5", @@ -871,7 +846,6 @@ "version": "0.1.3", "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", - "dev": true, "engines": { "node": ">=8" } @@ -921,7 +895,6 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", - "dev": true, "engines": { "node": ">=6.0.0" } @@ -935,7 +908,6 @@ "version": "0.3.20", "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.20.tgz", "integrity": "sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==", - "dev": true, "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" @@ -1326,7 +1298,6 @@ "version": "0.3.0", "resolved": "https://registry.npmjs.org/@prettier/sync/-/sync-0.3.0.tgz", "integrity": "sha512-3dcmCyAxIcxy036h1I7MQU/uEEBq8oLwf1CE3xeze+MPlgkdlb/+w6rGR/1dhp6Hqi17fRS6nvwnOzkESxEkOw==", - "dev": true, "funding": { "url": "https://github.com/prettier/prettier-synchronized?sponsor=1" }, @@ -1906,8 +1877,7 @@ "node_modules/@types/istanbul-lib-coverage": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.5.tgz", - "integrity": "sha512-zONci81DZYCZjiLe0r6equvZut0b+dBRPBN5kBDjsONnutYNtJMoWQ9uR2RkL1gLG9NMTzvf+29e5RFfPbeKhQ==", - "dev": true + "integrity": "sha512-zONci81DZYCZjiLe0r6equvZut0b+dBRPBN5kBDjsONnutYNtJMoWQ9uR2RkL1gLG9NMTzvf+29e5RFfPbeKhQ==" }, "node_modules/@types/istanbul-lib-report": { "version": "3.0.2", @@ -2850,7 +2820,6 @@ "version": "8.0.1", "resolved": "https://registry.npmjs.org/c8/-/c8-8.0.1.tgz", "integrity": "sha512-EINpopxZNH1mETuI0DzRA4MZpAUH+IFiRhnmFD3vFr3vdrgxqi3VfE3KL0AIL+zDq8rC9bZqwM/VDmmoe04y7w==", - "dev": true, "dependencies": { "@bcoe/v8-coverage": "^0.2.3", "@istanbuljs/schema": "^0.1.3", @@ -3235,24 +3204,6 @@ "node": "^12.20.0 || >=14" } }, - "node_modules/commonmark": { - "version": "0.30.0", - "resolved": "https://registry.npmjs.org/commonmark/-/commonmark-0.30.0.tgz", - "integrity": "sha512-j1yoUo4gxPND1JWV9xj5ELih0yMv1iCWDG6eEQIPLSWLxzCXiFoyS7kvB+WwU+tZMf4snwJMMtaubV0laFpiBA==", - "dev": true, - "dependencies": { - "entities": "~2.0", - "mdurl": "~1.0.1", - "minimist": ">=1.2.2", - "string.prototype.repeat": "^0.2.0" - }, - "bin": { - "commonmark": "bin/commonmark" - }, - "engines": { - "node": "*" - } - }, "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", @@ -3267,8 +3218,7 @@ "node_modules/convert-source-map": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", - "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "dev": true + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==" }, "node_modules/cosmiconfig": { "version": "8.3.6", @@ -3590,7 +3540,6 @@ "version": "5.1.0", "resolved": "https://registry.npmjs.org/diff/-/diff-5.1.0.tgz", "integrity": "sha512-D+mk+qE8VC/PAUrlAU34N+VfXev0ghe5ywmpqrawphmVZc1bEfn56uo9qpyGp1p4xpzOHkSW4ztBd6L7Xx4ACw==", - "dev": true, "engines": { "node": ">=0.3.1" } @@ -3679,12 +3628,6 @@ "node": ">=10.13.0" } }, - "node_modules/entities": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/entities/-/entities-2.0.3.tgz", - "integrity": "sha512-MyoZ0jgnLvB2X3Lg5HqpFmn1kybDiIfEQmKzTb5apr51Rb+T3KdmMiqa70T+bhGnyv7bQ6WMj2QMHpGMmlrUYQ==", - "dev": true - }, "node_modules/env-paths": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", @@ -4765,7 +4708,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-2.0.0.tgz", "integrity": "sha512-dCIq9FpEcyQyXKCkyzmlPTFNgrCzPudOe+mhvJU5zAtlBnGVy2yKxtfsxK2tQBThwq225jcvBjpw1Gr40uzZCA==", - "dev": true, "dependencies": { "cross-spawn": "^7.0.0", "signal-exit": "^3.0.2" @@ -4777,8 +4719,7 @@ "node_modules/foreground-child/node_modules/signal-exit": { "version": "3.0.7", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", - "dev": true + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" }, "node_modules/fs-extra": { "version": "7.0.1", @@ -5758,8 +5699,7 @@ "node_modules/html-escaper": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", - "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", - "dev": true + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==" }, "node_modules/http-cache-semantics": { "version": "4.1.1", @@ -6395,7 +6335,6 @@ "version": "3.2.0", "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", - "dev": true, "engines": { "node": ">=8" } @@ -6404,7 +6343,6 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", - "dev": true, "dependencies": { "istanbul-lib-coverage": "^3.0.0", "make-dir": "^4.0.0", @@ -6418,7 +6356,6 @@ "version": "3.1.6", "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.6.tgz", "integrity": "sha512-TLgnMkKg3iTDsQ9PbPTdpfAK2DzjF9mqUG7RMgcQl8oFjad8ob4laGxv5XV5U9MAfx8D6tSJiUyuAwzLicaxlg==", - "dev": true, "dependencies": { "html-escaper": "^2.0.0", "istanbul-lib-report": "^3.0.0" @@ -6612,8 +6549,7 @@ "node_modules/jpeg-js": { "version": "0.4.4", "resolved": "https://registry.npmjs.org/jpeg-js/-/jpeg-js-0.4.4.tgz", - "integrity": "sha512-WZzeDOEtTOBK4Mdsar0IqEU5sMr3vSV2RqkAIzUEV2BHnUfKGyswWFPFwK5EeDo93K3FohSHbLAjj0s1Wzd+dg==", - "dev": true + "integrity": "sha512-WZzeDOEtTOBK4Mdsar0IqEU5sMr3vSV2RqkAIzUEV2BHnUfKGyswWFPFwK5EeDo93K3FohSHbLAjj0s1Wzd+dg==" }, "node_modules/js-tokens": { "version": "4.0.0", @@ -6966,7 +6902,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", - "dev": true, "dependencies": { "semver": "^7.5.3" }, @@ -7179,12 +7114,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/mdurl": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz", - "integrity": "sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==", - "dev": true - }, "node_modules/memorystream": { "version": "0.3.1", "resolved": "https://registry.npmjs.org/memorystream/-/memorystream-0.3.1.tgz", @@ -7305,7 +7234,6 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, "dependencies": { "brace-expansion": "^1.1.7" }, @@ -8840,7 +8768,6 @@ "version": "5.3.0", "resolved": "https://registry.npmjs.org/pixelmatch/-/pixelmatch-5.3.0.tgz", "integrity": "sha512-o8mkY4E/+LNUf6LzX96ht6k6CEDi65k9G2rjMtBe9Oo+VPKSvl+0GKHuH/AlG+GA5LPG/i5hrekkxUc3s2HU+Q==", - "dev": true, "dependencies": { "pngjs": "^6.0.0" }, @@ -8852,7 +8779,6 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/pngjs/-/pngjs-6.0.0.tgz", "integrity": "sha512-TRzzuFRRmEoSW/p1KVAmiOgPco2Irlah+bGFCeNfJXxxYGwSw7YwAOAcd7X28K/m5bjBWKsC29KyoMfHbypayg==", - "dev": true, "engines": { "node": ">=12.13.0" } @@ -8966,7 +8892,6 @@ "version": "7.0.0", "resolved": "https://registry.npmjs.org/pngjs/-/pngjs-7.0.0.tgz", "integrity": "sha512-LKWqWJRhstyYo9pGvgor/ivk2w94eSjE3RGVuzLGlr3NmD8bf7RcYGze1mNdEHRP6TRP6rMuDHk5t44hnTRyow==", - "dev": true, "engines": { "node": ">=14.19.0" } @@ -8984,7 +8909,6 @@ "version": "3.0.3", "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.3.tgz", "integrity": "sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==", - "dev": true, "bin": { "prettier": "bin/prettier.cjs" }, @@ -9804,7 +9728,6 @@ "version": "3.0.2", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, "dependencies": { "glob": "^7.1.3" }, @@ -9819,7 +9742,6 @@ "version": "7.2.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "dev": true, "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -10517,12 +10439,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/string.prototype.repeat": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/string.prototype.repeat/-/string.prototype.repeat-0.2.0.tgz", - "integrity": "sha512-1BH+X+1hSthZFW+X+JaUkjkkUPwIlLEMJBLANN3hOob3RhEk5snLWNECDnYbgn/m5c5JV7Ersu1Yubaf+05cIA==", - "dev": true - }, "node_modules/string.prototype.trim": { "version": "1.2.8", "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.8.tgz", @@ -10805,7 +10721,6 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", - "dev": true, "dependencies": { "@istanbuljs/schema": "^0.1.2", "glob": "^7.1.4", @@ -10819,7 +10734,6 @@ "version": "7.2.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "dev": true, "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -10835,12 +10749,6 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/text-diff": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/text-diff/-/text-diff-1.0.1.tgz", - "integrity": "sha512-jAnlP3ggZk7FeLX1awaMR8Y2sMyil9P9FXvNjaIJIQBAom1zvpKGGH31htOVrUFp0vlyygmJJpNrbJ4rfjsxrA==", - "dev": true - }, "node_modules/text-table": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", @@ -11732,7 +11640,6 @@ "version": "9.1.3", "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.1.3.tgz", "integrity": "sha512-9lDD+EVI2fjFsMWXc6dy5JJzBsVTcQ2fVkfBvncZ6xJWG9wtBhOldG+mHkSL0+V1K/xgZz0JDO5UT5hFwHUghg==", - "dev": true, "dependencies": { "@jridgewell/trace-mapping": "^0.3.12", "@types/istanbul-lib-coverage": "^2.0.1", @@ -12091,7 +11998,6 @@ "version": "3.22.4", "resolved": "https://registry.npmjs.org/zod/-/zod-3.22.4.tgz", "integrity": "sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==", - "dev": true, "funding": { "url": "https://github.com/sponsors/colinhacks" } @@ -12112,6 +12018,13 @@ "bin": { "browsers": "lib/cjs/main-cli.js" }, + "devDependencies": { + "@types/debug": "4.1.10", + "@types/progress": "2.0.6", + "@types/tar-fs": "2.0.3", + "@types/unbzip2-stream": "1.4.2", + "@types/yargs": "17.0.29" + }, "engines": { "node": ">=16.3.0" } @@ -12169,7 +12082,9 @@ "ws": "8.14.2" }, "devDependencies": { + "@types/debug": "4.1.10", "@types/node": "18.17.15", + "@types/ws": "8.5.8", "mitt": "3.0.1", "parsel-js": "1.1.2", "rxjs": "7.8.1" @@ -12197,14 +12112,27 @@ "dependencies": { "mime": "3.0.0", "ws": "8.14.2" + }, + "devDependencies": { + "@types/mime": "3.0.3" } }, "test": { "name": "@puppeteer-test/test", "version": "latest", "dependencies": { + "@pptr/testserver": "file:../packages/testserver", + "diff": "5.1.0", + "jpeg-js": "0.4.4", + "pixelmatch": "5.3.0", + "pngjs": "7.0.0", "puppeteer": "file:../packages/puppeteer", "puppeteer-core": "file:../packages/puppeteer-core" + }, + "devDependencies": { + "@types/diff": "5.0.7", + "@types/pixelmatch": "5.2.5", + "@types/pngjs": "6.0.3" } }, "test/installation": { @@ -12245,20 +12173,27 @@ }, "devDependencies": { "@types/doctrine": "0.0.8", - "@types/source-map-support": "0.5.9" + "@types/source-map-support": "0.5.9", + "@types/yargs": "17.0.29" } }, "tools/eslint": { "name": "@puppeteer/eslint", "version": "0.1.0", - "license": "Apache-2.0" + "license": "Apache-2.0", + "dependencies": { + "@prettier/sync": "0.3.0" + } }, "tools/mocha-runner": { "name": "@puppeteer/mocha-runner", "version": "0.1.0", "license": "Apache-2.0", "dependencies": { - "puppeteer-core": "file:../../packages/puppeteer-core" + "c8": "8.0.1", + "glob": "10.3.10", + "puppeteer-core": "file:../../packages/puppeteer-core", + "zod": "3.22.4" }, "bin": { "mocha-runner": "bin/mocha-runner.js" diff --git a/package.json b/package.json index 70b6ffe949d..90a7c338bbf 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,6 @@ "format:eslint": "eslint --ext js --ext ts --fix .", "format:expectations": "node tools/sort-test-expectations.js", "format:prettier": "prettier --write .", - "generate:markdown": "tsx tools/generate_docs.ts", "lint": "run-s lint:*", "lint:eslint": "([ \"$CI\" = true ] && eslint --ext js --ext ts --quiet -f codeframe . || eslint --ext js --ext ts .)", "lint:prettier": "prettier --check .", @@ -119,27 +118,13 @@ "@microsoft/api-extractor": "7.38.2", "@pptr/testserver": "file:packages/testserver", "@puppeteer/docgen": "file:tools/docgen", - "@prettier/sync": "0.3.0", - "@types/debug": "4.1.10", - "@types/diff": "5.0.7", - "@types/mime": "3.0.3", "@types/mocha": "10.0.3", "@types/node": "20.8.4", - "@types/pixelmatch": "5.2.5", - "@types/pngjs": "6.0.3", - "@types/progress": "2.0.6", "@types/semver": "7.5.4", "@types/sinon": "17.0.0", - "@types/tar-fs": "2.0.3", - "@types/unbzip2-stream": "1.4.2", - "@types/ws": "8.5.8", - "@types/yargs": "17.0.29", "@typescript-eslint/eslint-plugin": "6.9.1", "@typescript-eslint/parser": "6.9.1", - "c8": "8.0.1", - "commonmark": "0.30.0", "cross-env": "7.0.3", - "diff": "5.1.0", "esbuild": "0.19.5", "eslint": "8.53.0", "eslint-config-prettier": "9.0.0", @@ -153,31 +138,21 @@ "eslint-plugin-rulesdir": "0.2.2", "eslint-plugin-tsdoc": "0.2.17", "eslint-plugin-unused-imports": "3.0.0", - "esprima": "4.0.1", "expect": "29.7.0", - "glob": "10.3.10", "gts": "5.2.0", - "jpeg-js": "0.4.4", "license-checker": "25.0.1", - "mime": "3.0.0", - "minimist": "1.2.8", "mocha": "10.2.0", - "ncp": "2.0.0", "npm-run-all": "4.1.5", - "pixelmatch": "5.3.0", - "pngjs": "7.0.0", "prettier": "3.0.3", "puppeteer": "file:packages/puppeteer", "semver": "7.5.4", "sinon": "17.0.1", "source-map-support": "0.5.21", "spdx-satisfies": "5.0.1", - "text-diff": "1.0.1", "tsd": "0.29.0", "tsx": "3.14.0", "typescript": "5.2.2", - "wireit": "0.14.1", - "zod": "3.22.4" + "wireit": "0.14.1" }, "overrides": { "@microsoft/api-extractor": { diff --git a/packages/browsers/package.json b/packages/browsers/package.json index c28a94014fb..8442ba4b05f 100644 --- a/packages/browsers/package.json +++ b/packages/browsers/package.json @@ -101,5 +101,12 @@ "tar-fs": "3.0.4", "unbzip2-stream": "1.4.3", "yargs": "17.7.2" + }, + "devDependencies": { + "@types/debug": "4.1.10", + "@types/progress": "2.0.6", + "@types/tar-fs": "2.0.3", + "@types/unbzip2-stream": "1.4.2", + "@types/yargs": "17.0.29" } } diff --git a/packages/browsers/test/src/versions.ts b/packages/browsers/test/src/versions.ts index 37d9340d1b9..212ec95bd40 100644 --- a/packages/browsers/test/src/versions.ts +++ b/packages/browsers/test/src/versions.ts @@ -16,6 +16,6 @@ export const testChromeBuildId = '113.0.5672.0'; export const testChromiumBuildId = '1083080'; -export const testFirefoxBuildId = '120.0a1'; +export const testFirefoxBuildId = '121.0a1'; export const testChromeDriverBuildId = '115.0.5763.0'; export const testChromeHeadlessShellBuildId = '118.0.5950.0'; diff --git a/packages/puppeteer-core/package.json b/packages/puppeteer-core/package.json index 8d053a80432..c01f14dcd65 100644 --- a/packages/puppeteer-core/package.json +++ b/packages/puppeteer-core/package.json @@ -126,7 +126,9 @@ "ws": "8.14.2" }, "devDependencies": { + "@types/debug": "4.1.10", "@types/node": "18.17.15", + "@types/ws": "8.5.8", "mitt": "3.0.1", "parsel-js": "1.1.2", "rxjs": "7.8.1" diff --git a/packages/testserver/package.json b/packages/testserver/package.json index c24da3aa29f..b6b2cccb0db 100644 --- a/packages/testserver/package.json +++ b/packages/testserver/package.json @@ -29,5 +29,8 @@ "dependencies": { "mime": "3.0.0", "ws": "8.14.2" + }, + "devDependencies": { + "@types/mime": "3.0.3" } } diff --git a/test/package.json b/test/package.json index 16053d03067..c253cff16bd 100644 --- a/test/package.json +++ b/test/package.json @@ -24,7 +24,17 @@ } }, "dependencies": { + "@pptr/testserver": "file:../packages/testserver", + "diff": "5.1.0", + "jpeg-js": "0.4.4", + "pixelmatch": "5.3.0", + "pngjs": "7.0.0", "puppeteer-core": "file:../packages/puppeteer-core", "puppeteer": "file:../packages/puppeteer" + }, + "devDependencies": { + "@types/diff": "5.0.7", + "@types/pixelmatch": "5.2.5", + "@types/pngjs": "6.0.3" } } diff --git a/tools/doctest/package.json b/tools/doctest/package.json index e22ded4e03d..e30b0e3f132 100644 --- a/tools/doctest/package.json +++ b/tools/doctest/package.json @@ -35,6 +35,7 @@ }, "devDependencies": { "@types/doctrine": "0.0.8", - "@types/source-map-support": "0.5.9" + "@types/source-map-support": "0.5.9", + "@types/yargs": "17.0.29" } } diff --git a/tools/eslint/package.json b/tools/eslint/package.json index 89b7bfae856..c4f68bd7e8f 100644 --- a/tools/eslint/package.json +++ b/tools/eslint/package.json @@ -30,5 +30,8 @@ } }, "author": "The Chromium Authors", - "license": "Apache-2.0" + "license": "Apache-2.0", + "dependencies": { + "@prettier/sync": "0.3.0" + } } diff --git a/tools/generate-matrix.js b/tools/generate-matrix.js deleted file mode 100644 index 1cb65d34914..00000000000 --- a/tools/generate-matrix.js +++ /dev/null @@ -1,43 +0,0 @@ -const fs = require('fs'); - -const data = JSON.parse(fs.readFileSync('./test/TestSuites.json', 'utf-8')); - -/** - * @param {string} platform - * @returns {string} - */ -function mapPlatform(platform) { - switch (platform) { - case 'linux': - return 'ubuntu-latest'; - case 'win32': - return 'windows-latest'; - case 'darwin': - return 'macos-latest'; - default: - throw new Error('Unsupported platform'); - } -} - -const result = []; -for (const suite of data.testSuites) { - for (const platform of suite.platforms) { - if (platform === 'linux' && suite.id !== 'firefox-bidi') { - for (const node of [14, 16, 18]) { - result.push(`- name: ${suite.id} - machine: ${mapPlatform(platform)} - xvfb: true - node: ${node} - suite: ${suite.id}`); - } - } else { - result.push(`- name: ${suite.id} - machine: ${mapPlatform(platform)} - xvfb: ${platform === 'linux'} - node: 18 - suite: ${suite.id}`); - } - } -} - -console.log(result.join('\n')); diff --git a/tools/mocha-runner/package.json b/tools/mocha-runner/package.json index 30037868085..2456a14fbc5 100644 --- a/tools/mocha-runner/package.json +++ b/tools/mocha-runner/package.json @@ -34,6 +34,9 @@ } }, "dependencies": { - "puppeteer-core": "file:../../packages/puppeteer-core" + "c8": "8.0.1", + "glob": "10.3.10", + "puppeteer-core": "file:../../packages/puppeteer-core", + "zod": "3.22.4" } } diff --git a/tools/remove_version_suffix.js b/tools/remove_version_suffix.js deleted file mode 100644 index 091a35ec9b0..00000000000 --- a/tools/remove_version_suffix.js +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Copyright 2020 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -const fs = require('fs'); -const json = fs.readFileSync('./package.json', 'utf8').toString(); -const pkg = JSON.parse(json); -const oldVersion = pkg.version; -const version = oldVersion.replace(/-post$/, ''); -const updated = json.replace( - `"version": "${oldVersion}"`, - `"version": "${version}"` -); -fs.writeFileSync('./package.json', updated);