@aomex-contrib/playwright 0.0.0-next-20261126082202 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @aomex-contrib/playwright
2
2
 
3
- ## 0.0.0-next-20261126082202
3
+ ## 0.3.0
4
4
 
5
5
  ### Minor Changes
6
6
 
package/README.md CHANGED
@@ -23,7 +23,7 @@
23
23
 
24
24
  `install:browser:deps` 还会走 apt 安装系统库,需要 root,只在 Docker 镜像构建时执行。
25
25
 
26
- 本包运行时要求 **Node >= 24**。`playwright` 版本必须和项目依赖一致,否则找不到浏览器可执行文件。
26
+ 本包运行时要求 **Node >= 26.13.0**。`playwright` 版本必须和项目依赖一致,否则找不到浏览器可执行文件。
27
27
 
28
28
  ### 本地
29
29
 
@@ -33,12 +33,12 @@ pnpm add @aomex-contrib/playwright playwright
33
33
 
34
34
  ### Docker:官方 Node 镜像
35
35
 
36
- 生产 / CI 用 Docker Hub 官方 [`node`](https://hub.docker.com/_/node) 镜像(`node:24`),在**镜像构建**时安装 Chromium 和系统库。Playwright 文档也支持这种做法(见 [Build your own image](https://playwright.dev/docs/docker#build-your-own-image))。
36
+ 生产 / CI 用 Docker Hub 官方 [`node`](https://hub.docker.com/_/node) 镜像(`node:26`),在**镜像构建**时安装 Chromium 和系统库。Playwright 文档也支持这种做法(见 [Build your own image](https://playwright.dev/docs/docker#build-your-own-image))。
37
37
 
38
38
  镜像里的 `pnpm install` 会跑 `postinstall`,只下载浏览器。系统库用 `pnpm install:browser:deps` 补上。
39
39
 
40
40
  ```dockerfile
41
- FROM node:24
41
+ FROM node:26
42
42
 
43
43
  WORKDIR /app
44
44
 
@@ -49,7 +49,7 @@ CMD ["node", "dist/index.js"]
49
49
 
50
50
  要点:
51
51
 
52
- - 基础镜像用官方默认 tag `node:24`(当前是 Debian);Alpine / musl **不支持** Playwright 的 Firefox/WebKit 构建,本包默认 Chromium 也请避开 Alpine
52
+ - 基础镜像用官方默认 tag `node:26`(当前是 Debian);Alpine / musl **不支持** Playwright 的 Firefox/WebKit 构建,本包默认 Chromium 也请避开 Alpine
53
53
  - 镜像内以 `root` 跑时 Chromium sandbox 常被关掉;爬不受信站点时建议另建非 root 用户,并参考 Playwright 的 [seccomp](https://playwright.dev/docs/docker) 说明
54
54
  - 也可用 Microsoft 预装镜像 `mcr.microsoft.com/playwright:v<与依赖相同的版本>-jammy`(或 `-noble`),但仍需自行安装 `playwright` npm 包,且 tag 版本必须对齐
55
55
 
@@ -72,7 +72,7 @@ services:
72
72
  默认 `headless: true` 即可。若必须有头模式,在 **Linux 无 `DISPLAY`** 时本会自动拉起 `Xvfb :99`,但镜像里要先有 `Xvfb` 命令:
73
73
 
74
74
  ```dockerfile
75
- FROM node:24
75
+ FROM node:26
76
76
 
77
77
  RUN apt-get update \
78
78
  && apt-get install -y --no-install-recommends xvfb \
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aomex-contrib/playwright",
3
- "version": "0.0.0-next-20261126082202",
3
+ "version": "0.3.0",
4
4
  "description": "基于 Playwright 的浏览器服务",
5
5
  "repository": {
6
6
  "type": "git",