From cfc316332207d10d0bd50d4481081a1e3cdc22df Mon Sep 17 00:00:00 2001 From: daiwei Date: Tue, 14 Jan 2025 10:06:03 +0800 Subject: [PATCH] chore(deps): manually update puppeteer + @vitest/eslint-plugin --- package.json | 4 +- packages/vue/__tests__/e2e/todomvc.spec.ts | 5 + pnpm-lock.yaml | 123 +++++++++++---------- 3 files changed, 74 insertions(+), 58 deletions(-) diff --git a/package.json b/package.json index 872906ebb37..bc17b9c97f5 100644 --- a/package.json +++ b/package.json @@ -82,7 +82,7 @@ "esbuild-plugin-polyfill-node": "^0.3.0", "eslint": "^9.18.0", "eslint-plugin-import-x": "^4.6.1", - "@vitest/eslint-plugin": "^1.1.20", + "@vitest/eslint-plugin": "^1.1.25", "estree-walker": "catalog:", "jsdom": "^25.0.1", "lint-staged": "^15.3.0", @@ -95,7 +95,7 @@ "prettier": "^3.4.2", "pretty-bytes": "^6.1.1", "pug": "^3.0.3", - "puppeteer": "~23.3.0", + "puppeteer": "~23.11.1", "rimraf": "^6.0.1", "rollup": "^4.30.1", "rollup-plugin-dts": "^6.1.1", diff --git a/packages/vue/__tests__/e2e/todomvc.spec.ts b/packages/vue/__tests__/e2e/todomvc.spec.ts index bd3836282d2..6283172c396 100644 --- a/packages/vue/__tests__/e2e/todomvc.spec.ts +++ b/packages/vue/__tests__/e2e/todomvc.spec.ts @@ -14,6 +14,7 @@ describe('e2e: todomvc', () => { classList, enterValue, clearValue, + timeout, } = setupPuppeteer() async function removeItemAt(n: number) { @@ -101,6 +102,7 @@ describe('e2e: todomvc', () => { // active filter await click('.filters li:nth-child(2) a') + await timeout(1) expect(await count('.todo')).toBe(1) expect(await count('.todo.completed')).toBe(0) // add item with filter active @@ -109,6 +111,7 @@ describe('e2e: todomvc', () => { // completed filter await click('.filters li:nth-child(3) a') + await timeout(1) expect(await count('.todo')).toBe(2) expect(await count('.todo.completed')).toBe(2) @@ -128,12 +131,14 @@ describe('e2e: todomvc', () => { await click('.todo .toggle') expect(await count('.todo')).toBe(1) await click('.filters li:nth-child(2) a') + await timeout(1) expect(await count('.todo')).toBe(3) await click('.todo .toggle') expect(await count('.todo')).toBe(2) // editing triggered by blur await click('.filters li:nth-child(1) a') + await timeout(1) await click('.todo:nth-child(1) label', { clickCount: 2 }) expect(await count('.todo.editing')).toBe(1) expect(await isFocused('.todo:nth-child(1) .edit')).toBe(true) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1e1fdf7cc44..a6a0a3a08ff 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -72,8 +72,8 @@ importers: specifier: ^2.1.8 version: 2.1.8(vitest@2.1.8(@types/node@22.10.5)(jsdom@25.0.1)(sass@1.83.1)) '@vitest/eslint-plugin': - specifier: ^1.1.20 - version: 1.1.20(@typescript-eslint/utils@8.19.1(eslint@9.18.0)(typescript@5.6.2))(eslint@9.18.0)(typescript@5.6.2)(vitest@2.1.8(@types/node@22.10.5)(jsdom@25.0.1)(sass@1.83.1)) + specifier: ^1.1.25 + version: 1.1.25(@typescript-eslint/utils@8.19.1(eslint@9.18.0)(typescript@5.6.2))(eslint@9.18.0)(typescript@5.6.2)(vitest@2.1.8(@types/node@22.10.5)(jsdom@25.0.1)(sass@1.83.1)) '@vue/consolidate': specifier: 1.0.0 version: 1.0.0 @@ -132,8 +132,8 @@ importers: specifier: ^3.0.3 version: 3.0.3 puppeteer: - specifier: ~23.3.0 - version: 23.3.1(typescript@5.6.2) + specifier: ~23.11.1 + version: 23.11.1(typescript@5.6.2) rimraf: specifier: ^6.0.1 version: 6.0.1 @@ -968,8 +968,8 @@ packages: resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} engines: {node: '>=14'} - '@puppeteer/browsers@2.4.0': - resolution: {integrity: sha512-x8J1csfIygOwf6D6qUAZ0ASk3z63zPb7wkNeHRerCMh82qWKUrOgkuP005AJC8lDL6/evtXETGEJVcwykKT4/g==} + '@puppeteer/browsers@2.6.1': + resolution: {integrity: sha512-aBSREisdsGH890S2rQqK82qmQYU3uFpSH8wcZWHgHzl3LfzsxAKbLNiAG9mO8v1Y0UICBeClICxPJvyr0rcuxg==} engines: {node: '>=18'} hasBin: true @@ -1413,8 +1413,8 @@ packages: '@vitest/browser': optional: true - '@vitest/eslint-plugin@1.1.20': - resolution: {integrity: sha512-2eLsgUm+GVOpDfNyH2do//MiNO/WZkXrPi+EjDmXEdUt6Jwnziq4H221L8vJE0aJys+l1FRfSkm4QbaIyDCfBg==} + '@vitest/eslint-plugin@1.1.25': + resolution: {integrity: sha512-u8DpDnMbPcqBmJOB4PeEtn6q7vKmLVTLFMpzoxSAo0hjYdl4iYSHRleqwPQo0ywc7UV0S6RKIahYRQ3BnZdMVw==} peerDependencies: '@typescript-eslint/utils': '>= 8.0' eslint: '>= 8.57.0' @@ -1491,6 +1491,10 @@ packages: resolution: {integrity: sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA==} engines: {node: '>= 14'} + agent-base@7.1.3: + resolution: {integrity: sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw==} + engines: {node: '>= 14'} + ajv@6.12.6: resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==} @@ -1668,8 +1672,8 @@ packages: resolution: {integrity: sha512-n8enUVCED/KVRQlab1hr3MVpcVMvxtZjmEa956u+4YijlmQED223XMSYj2tLuKvr4jcCTzNNMpQDUer72MMmzA==} engines: {node: '>= 14.16.0'} - chromium-bidi@0.6.5: - resolution: {integrity: sha512-RuLrmzYrxSb0s9SgpB+QN5jJucPduZQ/9SIe76MDxYJuecPW5mxMdacJ1f4EtgiV+R0p3sCkznTMvH0MPGFqjA==} + chromium-bidi@0.11.0: + resolution: {integrity: sha512-6CJWHkNRoyZyjV9Rwv2lYONZf1Xm0IuDyNq97nwSsxxP3wf5Bwy15K5rOvVKMtJ127jJBmxFUanSAOjgFRxgrA==} peerDependencies: devtools-protocol: '*' @@ -1922,8 +1926,8 @@ packages: engines: {node: '>=0.10'} hasBin: true - devtools-protocol@0.0.1330662: - resolution: {integrity: sha512-pzh6YQ8zZfz3iKlCvgzVCu22NdpZ8hNmwU6WnQjNVquh0A9iVosPtNLWDwaWVGyrntQlltPFztTMK5Cg6lfCuw==} + devtools-protocol@0.0.1367902: + resolution: {integrity: sha512-XxtPuC3PGakY6PD7dG66/o8KwJ/LkH2/EKe19Dcw58w53dv4/vSQEkn/SzuyhHE2q4zPgCkxQBxus3VV4ql+Pg==} doctrine@3.0.0: resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==} @@ -2303,6 +2307,10 @@ packages: resolution: {integrity: sha512-1e4Wqeblerz+tMKPIq2EMGiiWW1dIjZOksyHWSUm1rmuvw/how9hBHZ38lAGj5ID4Ik6EdkOw7NmWPy6LAwalw==} engines: {node: '>= 14'} + https-proxy-agent@7.0.6: + resolution: {integrity: sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==} + engines: {node: '>= 14'} + human-signals@2.1.0: resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==} engines: {node: '>=10.17.0'} @@ -2771,8 +2779,8 @@ packages: resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} engines: {node: '>=10'} - pac-proxy-agent@7.0.2: - resolution: {integrity: sha512-BFi3vZnO9X5Qt6NRz7ZOaPja3ic0PhlsmCRYLOpN11+mWBCR6XJDqW5RF3j8jm4WGGQZtBA+bTfxYzeKW73eHg==} + pac-proxy-agent@7.1.0: + resolution: {integrity: sha512-Z5FnLVVZSnX7WjBg0mhDtydeRZ1xMcATZThjySQUHqr+0ksP8kqaw23fNKkaaN/Z8gwLUs/W7xdl0I75eP2Xyw==} engines: {node: '>= 14'} pac-resolver@7.0.1: @@ -2926,8 +2934,8 @@ packages: promise@7.3.1: resolution: {integrity: sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==} - proxy-agent@6.4.0: - resolution: {integrity: sha512-u0piLU+nCOHMgGjRbimiXmA9kM/L9EHh3zL81xCdp7m+Y2pHIsnmbdDoEDoAz5geaonNR6q6+yOPQs6n4T6sBQ==} + proxy-agent@6.5.0: + resolution: {integrity: sha512-TmatMXdr2KlRiA2CyDu8GqR8EjahTG3aY3nXjdzFyoZbmB8hrBsTyMezhULIXKnC0jpfjlmiZ3+EaCzoInSu/A==} engines: {node: '>= 14'} proxy-from-env@1.1.0: @@ -2976,12 +2984,12 @@ packages: resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} engines: {node: '>=6'} - puppeteer-core@23.3.1: - resolution: {integrity: sha512-m5gTpITEqqpSgAvPUI/Ch9igh5sNJV+BVVbqQMzqirRDVHDCkLGHaydEQZx2NZvSXdwCFrIV///cpSlX/uD0Sg==} + puppeteer-core@23.11.1: + resolution: {integrity: sha512-3HZ2/7hdDKZvZQ7dhhITOUg4/wOrDRjyK2ZBllRB0ZCOi9u0cwq1ACHDjBB+nX+7+kltHjQvBRdeY7+W0T+7Gg==} engines: {node: '>=18'} - puppeteer@23.3.1: - resolution: {integrity: sha512-BxkuJyCv46ZKW8KEHiVMHgHEC89jKK9FffReWjbw1IfBUmNx+6JIZyqOtaJeSwyolTdVqqb5fiPiXflKeH3dKQ==} + puppeteer@23.11.1: + resolution: {integrity: sha512-53uIX3KR5en8l7Vd8n5DUv90Ae9QDQsyIthaUFVzwV6yU750RjqRznEtNMBT20VthqAdemnJN+hxVdmMHKt7Zw==} engines: {node: '>=18'} hasBin: true @@ -3170,8 +3178,8 @@ packages: resolution: {integrity: sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==} engines: {node: '>= 6.0.0', npm: '>= 3.0.0'} - socks-proxy-agent@8.0.4: - resolution: {integrity: sha512-GNAq/eg8Udq2x0eNiFkr9gRg5bA7PXEWagQdeRX4cPSG+X/8V38v637gim9bjFptMk1QWsCTr0ttrJEiXbNnRw==} + socks-proxy-agent@8.0.5: + resolution: {integrity: sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw==} engines: {node: '>= 14'} socks@2.8.3: @@ -3426,9 +3434,6 @@ packages: uri-js@4.4.1: resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} - urlpattern-polyfill@10.0.0: - resolution: {integrity: sha512-H/A06tKD7sS1O1X2SshBVeA5FLycRpjqiBeqGKmBwBDBy28EnRjORxTNe269KSSr5un5qyWi1iL61wLxpd+ZOg==} - util-deprecate@1.0.2: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} @@ -4005,12 +4010,12 @@ snapshots: '@pkgjs/parseargs@0.11.0': optional: true - '@puppeteer/browsers@2.4.0': + '@puppeteer/browsers@2.6.1': dependencies: - debug: 4.3.7 + debug: 4.4.0 extract-zip: 2.0.1 progress: 2.0.3 - proxy-agent: 6.4.0 + proxy-agent: 6.5.0 semver: 7.6.3 tar-fs: 3.0.6 unbzip2-stream: 1.4.3 @@ -4400,7 +4405,7 @@ snapshots: transitivePeerDependencies: - supports-color - '@vitest/eslint-plugin@1.1.20(@typescript-eslint/utils@8.19.1(eslint@9.18.0)(typescript@5.6.2))(eslint@9.18.0)(typescript@5.6.2)(vitest@2.1.8(@types/node@22.10.5)(jsdom@25.0.1)(sass@1.83.1))': + '@vitest/eslint-plugin@1.1.25(@typescript-eslint/utils@8.19.1(eslint@9.18.0)(typescript@5.6.2))(eslint@9.18.0)(typescript@5.6.2)(vitest@2.1.8(@types/node@22.10.5)(jsdom@25.0.1)(sass@1.83.1))': dependencies: '@typescript-eslint/utils': 8.19.1(eslint@9.18.0)(typescript@5.6.2) eslint: 9.18.0 @@ -4475,6 +4480,8 @@ snapshots: transitivePeerDependencies: - supports-color + agent-base@7.1.3: {} + ajv@6.12.6: dependencies: fast-deep-equal: 3.1.3 @@ -4654,11 +4661,10 @@ snapshots: dependencies: readdirp: 4.0.1 - chromium-bidi@0.6.5(devtools-protocol@0.0.1330662): + chromium-bidi@0.11.0(devtools-protocol@0.0.1367902): dependencies: - devtools-protocol: 0.0.1330662 + devtools-protocol: 0.0.1367902 mitt: 3.0.1 - urlpattern-polyfill: 10.0.0 zod: 3.23.8 cli-boxes@3.0.0: {} @@ -4895,7 +4901,7 @@ snapshots: detect-libc@1.0.3: optional: true - devtools-protocol@0.0.1330662: {} + devtools-protocol@0.0.1367902: {} doctrine@3.0.0: dependencies: @@ -5379,6 +5385,13 @@ snapshots: transitivePeerDependencies: - supports-color + https-proxy-agent@7.0.6: + dependencies: + agent-base: 7.1.3 + debug: 4.4.0 + transitivePeerDependencies: + - supports-color + human-signals@2.1.0: {} human-signals@5.0.0: {} @@ -5817,16 +5830,16 @@ snapshots: dependencies: p-limit: 3.1.0 - pac-proxy-agent@7.0.2: + pac-proxy-agent@7.1.0: dependencies: '@tootallnate/quickjs-emscripten': 0.23.0 - agent-base: 7.1.1 + agent-base: 7.1.3 debug: 4.4.0 get-uri: 6.0.3 http-proxy-agent: 7.0.2 - https-proxy-agent: 7.0.5 + https-proxy-agent: 7.0.6 pac-resolver: 7.0.1 - socks-proxy-agent: 8.0.4 + socks-proxy-agent: 8.0.5 transitivePeerDependencies: - supports-color @@ -5967,16 +5980,16 @@ snapshots: dependencies: asap: 2.0.6 - proxy-agent@6.4.0: + proxy-agent@6.5.0: dependencies: - agent-base: 7.1.1 + agent-base: 7.1.3 debug: 4.4.0 http-proxy-agent: 7.0.2 - https-proxy-agent: 7.0.5 + https-proxy-agent: 7.0.6 lru-cache: 7.18.3 - pac-proxy-agent: 7.0.2 + pac-proxy-agent: 7.1.0 proxy-from-env: 1.1.0 - socks-proxy-agent: 8.0.4 + socks-proxy-agent: 8.0.5 transitivePeerDependencies: - supports-color @@ -6056,12 +6069,12 @@ snapshots: punycode@2.3.1: {} - puppeteer-core@23.3.1: + puppeteer-core@23.11.1: dependencies: - '@puppeteer/browsers': 2.4.0 - chromium-bidi: 0.6.5(devtools-protocol@0.0.1330662) - debug: 4.3.7 - devtools-protocol: 0.0.1330662 + '@puppeteer/browsers': 2.6.1 + chromium-bidi: 0.11.0(devtools-protocol@0.0.1367902) + debug: 4.4.0 + devtools-protocol: 0.0.1367902 typed-query-selector: 2.12.0 ws: 8.18.0 transitivePeerDependencies: @@ -6069,13 +6082,13 @@ snapshots: - supports-color - utf-8-validate - puppeteer@23.3.1(typescript@5.6.2): + puppeteer@23.11.1(typescript@5.6.2): dependencies: - '@puppeteer/browsers': 2.4.0 - chromium-bidi: 0.6.5(devtools-protocol@0.0.1330662) + '@puppeteer/browsers': 2.6.1 + chromium-bidi: 0.11.0(devtools-protocol@0.0.1367902) cosmiconfig: 9.0.0(typescript@5.6.2) - devtools-protocol: 0.0.1330662 - puppeteer-core: 23.3.1 + devtools-protocol: 0.0.1367902 + puppeteer-core: 23.11.1 typed-query-selector: 2.12.0 transitivePeerDependencies: - bufferutil @@ -6326,9 +6339,9 @@ snapshots: smart-buffer@4.2.0: {} - socks-proxy-agent@8.0.4: + socks-proxy-agent@8.0.5: dependencies: - agent-base: 7.1.1 + agent-base: 7.1.3 debug: 4.4.0 socks: 2.8.3 transitivePeerDependencies: @@ -6554,8 +6567,6 @@ snapshots: dependencies: punycode: 2.3.1 - urlpattern-polyfill@10.0.0: {} - util-deprecate@1.0.2: {} validate-npm-package-license@3.0.4: