bits-to-dead-trees 2.33.1 → 2.35.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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://unpkg.com/@changesets/config@2.0.0/schema.json",
2
+ "$schema": "https://unpkg.com/@changesets/config@4.0.0/schema.json",
3
3
  "changelog": [
4
4
  "@changesets/changelog-github",
5
5
  { "repo": "rmehner/bits-to-dead-trees" }
@@ -8,7 +8,6 @@
8
8
  "fixed": [],
9
9
  "linked": [],
10
10
  "access": "public",
11
- "baseBranch": "main",
12
11
  "updateInternalDependencies": "patch",
13
12
  "ignore": []
14
13
  }
@@ -50,17 +50,17 @@ jobs:
50
50
  persist-credentials: false
51
51
 
52
52
  - name: Login to GitHub Container Registry
53
- uses: docker/login-action@371161bbe7024a29a25c5e19bfcbc0804fe9ad2c # v4.5.2
53
+ uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
54
54
  with:
55
55
  registry: ghcr.io
56
56
  username: ${{ github.repository_owner }}
57
57
  password: ${{ secrets.GITHUB_TOKEN }}
58
58
 
59
59
  - name: Set up Docker Buildx
60
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4.1.0
60
+ uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
61
61
 
62
62
  - name: Build and push builder image
63
- uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7.2.0
63
+ uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
64
64
  with:
65
65
  file: Dockerfile
66
66
  push: true
@@ -34,8 +34,6 @@ jobs:
34
34
  run: .github/bin/sync-node-version-from-playwright
35
35
 
36
36
  - name: Commit .node-version changes
37
- env:
38
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39
37
  run: |
40
38
  if [ -z "$(git status --porcelain)" ]; then
41
39
  exit 0
@@ -48,8 +46,6 @@ jobs:
48
46
  run: .github/bin/sync-playwright-version-to-dockerfile
49
47
 
50
48
  - name: Commit Dockerfile changes
51
- env:
52
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53
49
  run: |
54
50
  if [ -z "$(git status --porcelain)" ]; then
55
51
  exit 0
@@ -71,8 +67,6 @@ jobs:
71
67
  run: npm run update-schemas
72
68
 
73
69
  - name: Commit schema changes
74
- env:
75
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
76
70
  run: |
77
71
  if [ -z "$(git status --porcelain)" ]; then
78
72
  exit 0
@@ -82,5 +76,7 @@ jobs:
82
76
  git commit -m "🤖 Update schema to match Playwright version"
83
77
 
84
78
  - name: Push changes
79
+ env:
80
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
85
81
  run: |
86
82
  git push "https://x-access-token:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" "HEAD:${GITHUB_REF_NAME}"
@@ -39,9 +39,8 @@ jobs:
39
39
 
40
40
  - name: Create Release Pull Request or Publish to npm
41
41
  id: changesets
42
- uses: changesets/action@a45c4d594aa4e2c509dc14a9f2b3b67ba3780d0d # v1.9.0
42
+ uses: changesets/action@ae32849d5ba541f9ae29e40e22a623bc13562f51 # v2.1.2
43
43
  with:
44
- publish: npm run release
45
- title: Release new version 🚀
46
- env:
47
- GITHUB_TOKEN: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
44
+ publish-script: npm run release
45
+ pr-title: Release new version 🚀
46
+ github-token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
@@ -29,7 +29,7 @@ jobs:
29
29
  persist-credentials: false
30
30
 
31
31
  - name: Run zizmor
32
- uses: zizmorcore/zizmor-action@6fc4b006235f201fdab3722e17240ab420d580e5 # v0.6.1
32
+ uses: zizmorcore/zizmor-action@cc914d7f3750a2d13d75c7f184a1060aa0e9d482 # v0.6.4
33
33
  with:
34
34
  advanced-security: false
35
35
  annotations: true
package/.node-version CHANGED
@@ -1 +1 @@
1
- 24.18.1
1
+ 24.21.0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # bits-to-dead-trees
2
2
 
3
+ ## 2.35.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`9c2e300`](https://github.com/rmehner/bits-to-dead-trees/commit/9c2e3001db2aee2c792dcff83bf6279dcc705ddc) Thanks [@rmehner](https://github.com/rmehner)! - Upgrade to Playwright 1.64.0
8
+
9
+ ## 2.34.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#719](https://github.com/rmehner/bits-to-dead-trees/pull/719) [`345de3a`](https://github.com/rmehner/bits-to-dead-trees/commit/345de3a64cddb162e765c34f939a853d99b62a84) Thanks [@depfu](https://github.com/apps/depfu)! - Update to Playwright 1.63.0
14
+
3
15
  ## 2.33.1
4
16
 
5
17
  ### Patch Changes
package/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM mcr.microsoft.com/playwright:v1.62.1
1
+ FROM mcr.microsoft.com/playwright:v1.64.0
2
2
 
3
3
  ENV NODE_ENV=production
4
4
  ENV PORT=8000
package/README.md CHANGED
@@ -57,7 +57,7 @@ If you want to use it internally with docker-compose, this should give you a goo
57
57
  ```yml
58
58
  services:
59
59
  pdf:
60
- image: ghcr.io/rmehner/bits-to-dead-trees:v2.33.0
60
+ image: ghcr.io/rmehner/bits-to-dead-trees:v2.34.0
61
61
  ports:
62
62
  - 8000:8000
63
63
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bits-to-dead-trees",
3
3
  "author": "Robin Mehner <robin@coding-robin.de>",
4
- "version": "2.33.1",
4
+ "version": "2.35.0",
5
5
  "description": "Turn HTML into PDF files",
6
6
  "repository": {
7
7
  "type": "git",
@@ -33,24 +33,24 @@
33
33
  "ts-check": "npx tsc --noEmit"
34
34
  },
35
35
  "dependencies": {
36
- "fastify": "^5.10.0",
37
- "playwright-core": "^1.62.1"
36
+ "fastify": "^5.12.5",
37
+ "playwright-core": "^1.64.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@changesets/changelog-github": "^0.7.0",
41
- "@changesets/cli": "^2.31.1",
40
+ "@changesets/changelog-github": "^1.0.1",
41
+ "@changesets/cli": "^3.0.3",
42
42
  "@eslint/js": "^10.0.1",
43
- "@tsconfig/node24": "^24.0.4",
44
- "@types/lodash": "^4.17.24",
45
- "@types/node": "24.12.0",
46
- "eslint": "^10.8.0",
43
+ "@tsconfig/node24": "^24.0.5",
44
+ "@types/lodash": "^4.17.26",
45
+ "@types/node": "24.19.2",
46
+ "eslint": "^10.12.0",
47
47
  "eslint-config-prettier": "^10.1.8",
48
- "eslint-plugin-n": "^18.2.2",
48
+ "eslint-plugin-n": "^18.4.1",
49
49
  "eslint-plugin-promise": "^7.3.0",
50
- "globals": "^17.9.0",
51
- "pino-pretty": "^13.1.3",
52
- "prettier": "^3.9.6",
50
+ "globals": "^17.13.0",
51
+ "pino-pretty": "^13.2.0",
52
+ "prettier": "^3.9.10",
53
53
  "typescript-json-schema": "^0.68.0",
54
- "vitest": "^4.1.10"
54
+ "vitest": "^5.0.3"
55
55
  }
56
56
  }
@@ -146,15 +146,25 @@
146
146
  "type": "boolean"
147
147
  },
148
148
  "httpCredentials": {
149
- "$ref": "#/definitions/HTTPCredentials",
150
- "description": "Credentials for [HTTP authentication](https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication). If no\norigin is specified, the username and password are sent to any servers upon unauthorized responses."
149
+ "anyOf": [
150
+ {
151
+ "$ref": "#/definitions/HTTPCredentials"
152
+ },
153
+ {
154
+ "items": {
155
+ "$ref": "#/definitions/HTTPCredentials"
156
+ },
157
+ "type": "array"
158
+ }
159
+ ],
160
+ "description": "Credentials for [HTTP authentication](https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication). If no\norigin is specified, the username and password are sent to any servers upon unauthorized responses.\n\nPass an array to use different credentials for different origins. The first entry that matches the request origin\nis used, and entries with no origin match any request."
151
161
  },
152
162
  "ignoreHTTPSErrors": {
153
163
  "description": "Whether to ignore HTTPS errors when sending network requests. Defaults to `false`.",
154
164
  "type": "boolean"
155
165
  },
156
166
  "isMobile": {
157
- "description": "Whether the `meta viewport` tag is taken into account and touch events are enabled. isMobile is a part of device,\nso you don't actually need to set it manually. Defaults to `false` and is not supported in Firefox. Learn more\nabout [mobile emulation](https://playwright.dev/docs/emulation#ismobile).",
167
+ "description": "Whether the `meta viewport` tag is taken into account and touch events are enabled. isMobile is a part of device,\nso you don't actually need to set it manually. Defaults to `false`. Learn more about\n[mobile emulation](https://playwright.dev/docs/emulation#ismobile).",
158
168
  "type": "boolean"
159
169
  },
160
170
  "javaScriptEnabled": {
@@ -249,6 +259,10 @@
249
259
  "description": "Path to the directory to put videos into. If not specified, the videos will be stored in `artifactsDir` (see\n[browserType.launch([options])](https://playwright.dev/docs/api/class-browsertype#browser-type-launch) options).",
250
260
  "type": "string"
251
261
  },
262
+ "fps": {
263
+ "description": "Frame rate of the recorded videos in frames per second. Defaults to `25`. Firefox and WebKit currently capture up\nto 25 frames per second.",
264
+ "type": "number"
265
+ },
252
266
  "showActions": {
253
267
  "additionalProperties": false,
254
268
  "description": "If specified, enables visual annotations on interacted elements during video recording.",
@@ -263,7 +277,7 @@
263
277
  "type": "number"
264
278
  },
265
279
  "fontSize": {
266
- "description": "Font size of the action title in pixels. Defaults to `24`.",
280
+ "description": "Font size of the action title in pixels. Defaults to `24`. Deprecated, use `style.title` instead.",
267
281
  "type": "number"
268
282
  },
269
283
  "position": {
@@ -277,6 +291,25 @@
277
291
  "top-right"
278
292
  ],
279
293
  "type": "string"
294
+ },
295
+ "style": {
296
+ "additionalProperties": false,
297
+ "description": "Styles of the action decorations.",
298
+ "properties": {
299
+ "highlight": {
300
+ "description": "CSS declarations for the box that covers the target element. Not shown when omitted.",
301
+ "type": "string"
302
+ },
303
+ "point": {
304
+ "description": "CSS declarations for the zero-sized marker centered on the action point. Not shown when omitted.",
305
+ "type": "string"
306
+ },
307
+ "title": {
308
+ "description": "CSS declarations for the action title.",
309
+ "type": "string"
310
+ }
311
+ },
312
+ "type": "object"
280
313
  }
281
314
  },
282
315
  "type": "object"