RSSHub/lib
Tony cfcdc34e1f
refactor: replace playwright with patchright (#21976)
* refactor: use patchwright

* refactor: migrate setRequestInterception and waitUntil

* fix: overwrite ua

* refactor: drop puppeteer cookie/requestfinished shims

Migrate page.cookies/setCookie and browser.cookies/setCookie call sites to the native context APIs (page.context().cookies/addCookies), rewrite requestfinished handlers to await request.response() instead of consuming the synchronous puppeteer-shaped payload, and remove the now-redundant browser.close context-cleanup wrapper. Playwright already handles all of these natively; the shims existed only for the puppeteer -> playwright migration.

* refactor: remove page.authenticate, page.setUserAgent,  browser.newPage(), browser.userAgent() shims

update cookie utility tests

* refactor: replace browser instance with context in Playwright usage across multiple routes

- Updated all instances of `browser` to `context` in Playwright-related functions for consistency and improved resource management.
- Ensured proper closure of context after operations to prevent memory leaks.
- Adjusted request interception methods to utilize the new context variable.

* fix: direct type import

* refactor: remove Puppeteer compatibility layers and unify page handling with Playwright

* fix: test case

* chore: bump patchright to v1.60.0

* chore: pin patchright to 1.59.1

nft can't resolve browser.json due to https://github.com/microsoft/playwright/pull/40093

* chore: pin to node 24.15 for playwright

browser install on node 24.16 stucks due to https://github.com/microsoft/playwright/issues/40724

* fix: update patchright and patchright-core to version 1.60.2 and adjust minify-docker.js for compatibility

* fix: import BrowserContext from patchright
2026-06-07 02:43:20 +08:00
..
api
assets
errors test: remove text "Not Found" from httperror 2026-05-06 03:12:57 +08:00
middleware chore: add eslint-plugin-regexp (#22189) 2026-06-05 20:04:39 +08:00
routes refactor: replace playwright with patchright (#21976) 2026-06-07 02:43:20 +08:00
routes-deprecated
shims chore(deps-dev): bump the oxc group across 1 directory with 4 updates (#22107) 2026-05-27 00:51:12 +08:00
utils refactor: replace playwright with patchright (#21976) 2026-06-07 02:43:20 +08:00
views
app-bootstrap.test.tsx
app-bootstrap.tsx
app.test.ts
app.ts
app.worker.tsx refactor: migrate browser automation to Playwright (#21901) 2026-05-04 21:16:18 +08:00
bilibili-video-route.test.ts refactor: replace playwright with patchright (#21976) 2026-06-07 02:43:20 +08:00
config.remote-error.test.ts
config.test.ts feat: add HTTP cache (#21814) 2026-04-24 11:35:51 +08:00
config.ts refactor: migrate browser automation to Playwright (#21901) 2026-05-04 21:16:18 +08:00
container.ts
entrypoints.test.ts
index.test.ts
index.ts feat: disable IPv6 (#21719) 2026-04-13 23:45:08 +08:00
obsidian-routes.test.ts fix: update obsidian community routes 2026-05-14 15:47:50 +08:00
pkg.test.ts
pkg.ts
registry.dynamic.test.ts
registry.test.ts style: auto format 2026-04-14 15:15:05 +00:00
registry.ts
route-paths.d.ts
router.js
routes.test.ts
server.ts
setup.test.ts style: auto format 2026-04-14 15:15:05 +00:00
techflowpost.test.ts test(route): move techflowpost test outside routes 2026-05-09 17:24:41 +08:00
types.ts refactor: migrate browser automation to Playwright (#21901) 2026-05-04 21:16:18 +08:00
worker.ts
worker.worker.test.ts