bits-to-dead-trees 2.17.1 → 2.18.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.
@@ -47,8 +47,9 @@ jobs:
47
47
  sed -i 's|image: ghcr.io/rmehner/bits-to-dead-trees:v.*|image: ghcr.io/rmehner/bits-to-dead-trees:${{ env.TAG_NAME }}|' README.md
48
48
 
49
49
  - name: Create Pull Request
50
- uses: peter-evans/create-pull-request@v6
50
+ uses: peter-evans/create-pull-request@v7
51
51
  with:
52
+ sign-commits: true
52
53
  commit-message: "🤖 Update version of docker image in README to ${{ env.TAG_NAME }}"
53
54
  title: "🤖 Update version in README after release"
54
55
  base: main
package/.node-version CHANGED
@@ -1 +1 @@
1
- 20.16.0
1
+ 20.17.0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # bits-to-dead-trees
2
2
 
3
+ ## 2.18.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#386](https://github.com/rmehner/bits-to-dead-trees/pull/386) [`b6c3d78`](https://github.com/rmehner/bits-to-dead-trees/commit/b6c3d789ed6de2e79e3d93b168c77ca4909d13f4) Thanks [@depfu](https://github.com/apps/depfu)! - Update to Playwright 1.47.0
8
+
9
+ The new docker image runs on Ubuntu 24.04
10
+
3
11
  ## 2.17.1
4
12
 
5
13
  ### Patch Changes
package/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM mcr.microsoft.com/playwright:v1.46.1
1
+ FROM mcr.microsoft.com/playwright:v1.47.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.17.0
60
+ image: ghcr.io/rmehner/bits-to-dead-trees:v2.17.1
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.17.1",
4
+ "version": "2.18.0",
5
5
  "description": "Turn HTML into PDF files",
6
6
  "repository": "github:rmehner/bits-to-dead-trees",
7
7
  "license": "Apache-2.0",
@@ -31,11 +31,11 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "fastify": "^4.28.1",
34
- "playwright-core": "^1.46.1"
34
+ "playwright-core": "^1.47.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@changesets/changelog-github": "^0.5.0",
38
- "@changesets/cli": "^2.27.7",
38
+ "@changesets/cli": "^2.27.8",
39
39
  "@types/lodash": "^4.17.7",
40
40
  "@types/node": "20.11.22",
41
41
  "eslint": "^8.57.0",
@@ -2,6 +2,29 @@
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "additionalProperties": false,
4
4
  "definitions": {
5
+ "ArrayBuffer": {
6
+ "additionalProperties": false,
7
+ "properties": {
8
+ "__@toStringTag@25": {
9
+ "type": "string"
10
+ },
11
+ "byteLength": {
12
+ "type": "number"
13
+ }
14
+ },
15
+ "required": ["__@toStringTag@25", "byteLength"],
16
+ "type": "object"
17
+ },
18
+ "ArrayBufferLike": {
19
+ "anyOf": [
20
+ {
21
+ "$ref": "#/definitions/ArrayBuffer"
22
+ },
23
+ {
24
+ "$ref": "#/definitions/SharedArrayBuffer"
25
+ }
26
+ ]
27
+ },
5
28
  "BrowserContextOptions": {
6
29
  "additionalProperties": false,
7
30
  "properties": {
@@ -18,14 +41,92 @@
18
41
  "type": "boolean"
19
42
  },
20
43
  "clientCertificates": {
21
- "description": "TLS Client Authentication allows the server to request a client certificate and verify it.\n\n**Details**\n\nAn array of client certificates to be used. Each certificate object must have both `certPath` and `keyPath` or a\nsingle `pfxPath` to load the client certificate. Optionally, `passphrase` property should be provided if the\ncertficiate is encrypted. The `origin` property should be provided with an exact match to the request origin that\nthe certificate is valid for.\n\n**NOTE** Using Client Certificates in combination with Proxy Servers is not supported.\n\n**NOTE** When using WebKit on macOS, accessing `localhost` will not pick up client certificates. You can make it\nwork by replacing `localhost` with `local.playwright`.",
44
+ "description": "TLS Client Authentication allows the server to request a client certificate and verify it.\n\n**Details**\n\nAn array of client certificates to be used. Each certificate object must have either both `certPath` and `keyPath`,\na single `pfxPath`, or their corresponding direct value equivalents (`cert` and `key`, or `pfx`). Optionally,\n`passphrase` property should be provided if the certificate is encrypted. The `origin` property should be provided\nwith an exact match to the request origin that the certificate is valid for.\n\n**NOTE** Using Client Certificates in combination with Proxy Servers is not supported.\n\n**NOTE** When using WebKit on macOS, accessing `localhost` will not pick up client certificates. You can make it\nwork by replacing `localhost` with `local.playwright`.",
22
45
  "items": {
23
46
  "additionalProperties": false,
24
47
  "properties": {
48
+ "cert": {
49
+ "additionalProperties": false,
50
+ "description": "Direct value of the certificate in PEM format.",
51
+ "patternProperties": {
52
+ "^[0-9]+$": {
53
+ "type": "number"
54
+ }
55
+ },
56
+ "properties": {
57
+ "BYTES_PER_ELEMENT": {
58
+ "type": "number"
59
+ },
60
+ "__@toStringTag@25": {
61
+ "const": "Uint8Array",
62
+ "type": "string"
63
+ },
64
+ "buffer": {
65
+ "$ref": "#/definitions/ArrayBufferLike"
66
+ },
67
+ "byteLength": {
68
+ "type": "number"
69
+ },
70
+ "byteOffset": {
71
+ "type": "number"
72
+ },
73
+ "length": {
74
+ "type": "number"
75
+ }
76
+ },
77
+ "required": [
78
+ "BYTES_PER_ELEMENT",
79
+ "__@toStringTag@25",
80
+ "buffer",
81
+ "byteLength",
82
+ "byteOffset",
83
+ "length"
84
+ ],
85
+ "type": "object"
86
+ },
25
87
  "certPath": {
26
88
  "description": "Path to the file with the certificate in PEM format.",
27
89
  "type": "string"
28
90
  },
91
+ "key": {
92
+ "additionalProperties": false,
93
+ "description": "Direct value of the private key in PEM format.",
94
+ "patternProperties": {
95
+ "^[0-9]+$": {
96
+ "type": "number"
97
+ }
98
+ },
99
+ "properties": {
100
+ "BYTES_PER_ELEMENT": {
101
+ "type": "number"
102
+ },
103
+ "__@toStringTag@25": {
104
+ "const": "Uint8Array",
105
+ "type": "string"
106
+ },
107
+ "buffer": {
108
+ "$ref": "#/definitions/ArrayBufferLike"
109
+ },
110
+ "byteLength": {
111
+ "type": "number"
112
+ },
113
+ "byteOffset": {
114
+ "type": "number"
115
+ },
116
+ "length": {
117
+ "type": "number"
118
+ }
119
+ },
120
+ "required": [
121
+ "BYTES_PER_ELEMENT",
122
+ "__@toStringTag@25",
123
+ "buffer",
124
+ "byteLength",
125
+ "byteOffset",
126
+ "length"
127
+ ],
128
+ "type": "object"
129
+ },
29
130
  "keyPath": {
30
131
  "description": "Path to the file with the private key in PEM format.",
31
132
  "type": "string"
@@ -38,6 +139,45 @@
38
139
  "description": "Passphrase for the private key (PEM or PFX).",
39
140
  "type": "string"
40
141
  },
142
+ "pfx": {
143
+ "additionalProperties": false,
144
+ "description": "Direct value of the PFX or PKCS12 encoded private key and certificate chain.",
145
+ "patternProperties": {
146
+ "^[0-9]+$": {
147
+ "type": "number"
148
+ }
149
+ },
150
+ "properties": {
151
+ "BYTES_PER_ELEMENT": {
152
+ "type": "number"
153
+ },
154
+ "__@toStringTag@25": {
155
+ "const": "Uint8Array",
156
+ "type": "string"
157
+ },
158
+ "buffer": {
159
+ "$ref": "#/definitions/ArrayBufferLike"
160
+ },
161
+ "byteLength": {
162
+ "type": "number"
163
+ },
164
+ "byteOffset": {
165
+ "type": "number"
166
+ },
167
+ "length": {
168
+ "type": "number"
169
+ }
170
+ },
171
+ "required": [
172
+ "BYTES_PER_ELEMENT",
173
+ "__@toStringTag@25",
174
+ "buffer",
175
+ "byteLength",
176
+ "byteOffset",
177
+ "length"
178
+ ],
179
+ "type": "object"
180
+ },
41
181
  "pfxPath": {
42
182
  "description": "Path to the PFX or PKCS12 encoded private key and certificate chain.",
43
183
  "type": "string"
@@ -127,7 +267,7 @@
127
267
  },
128
268
  "proxy": {
129
269
  "additionalProperties": false,
130
- "description": "Network proxy settings to use with this context. Defaults to none.\n\n**NOTE** For Chromium on Windows the browser needs to be launched with the global proxy for this option to work. If\nall contexts override the proxy, global proxy will be never used and can be any string, for example `launch({\nproxy: { server: 'http://per-context' } })`.",
270
+ "description": "Network proxy settings to use with this context. Defaults to none.",
131
271
  "properties": {
132
272
  "bypass": {
133
273
  "description": "Optional comma-separated domains to bypass proxy, for example `\".com, chromium.org, .domain.com\"`.",
@@ -475,6 +615,23 @@
475
615
  ],
476
616
  "type": "object"
477
617
  },
618
+ "SharedArrayBuffer": {
619
+ "additionalProperties": false,
620
+ "properties": {
621
+ "__@species@474": {
622
+ "$ref": "#/definitions/SharedArrayBuffer"
623
+ },
624
+ "__@toStringTag@25": {
625
+ "const": "SharedArrayBuffer",
626
+ "type": "string"
627
+ },
628
+ "byteLength": {
629
+ "type": "number"
630
+ }
631
+ },
632
+ "required": ["__@species@474", "__@toStringTag@25", "byteLength"],
633
+ "type": "object"
634
+ },
478
635
  "ViewportSize": {
479
636
  "additionalProperties": false,
480
637
  "properties": {