bits-to-dead-trees 2.16.2 → 2.17.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/.dockerignore CHANGED
@@ -4,6 +4,6 @@ node_modules/
4
4
  test
5
5
  .eslintrc.json
6
6
  .prettierrc.json
7
- .tool-versions
7
+ .node-version
8
8
  nodemon.json
9
9
  tsconfig.json
@@ -16,7 +16,7 @@ jobs:
16
16
  - name: Set up Node
17
17
  uses: actions/setup-node@v4
18
18
  with:
19
- node-version-file: .tool-versions
19
+ node-version-file: .node-version
20
20
  cache: npm
21
21
 
22
22
  - name: Install npm dependencies
@@ -16,7 +16,7 @@ jobs:
16
16
  - name: Set up Node
17
17
  uses: actions/setup-node@v4
18
18
  with:
19
- node-version-file: .tool-versions
19
+ node-version-file: .node-version
20
20
  cache: npm
21
21
 
22
22
  - name: Install npm dependencies
@@ -21,7 +21,7 @@ jobs:
21
21
  - name: Set up Node
22
22
  uses: actions/setup-node@v4
23
23
  with:
24
- node-version-file: .tool-versions
24
+ node-version-file: .node-version
25
25
  cache: npm
26
26
 
27
27
  - name: Install Dependencies
@@ -19,7 +19,7 @@ jobs:
19
19
  - name: Set up Node
20
20
  uses: actions/setup-node@v4
21
21
  with:
22
- node-version-file: .tool-versions
22
+ node-version-file: .node-version
23
23
  cache: npm
24
24
 
25
25
  - name: Install npm dependencies
package/.node-version ADDED
@@ -0,0 +1 @@
1
+ 20.16.0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # bits-to-dead-trees
2
2
 
3
+ ## 2.17.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#378](https://github.com/rmehner/bits-to-dead-trees/pull/378) [`8bff11b`](https://github.com/rmehner/bits-to-dead-trees/commit/8bff11bc44b31e5484b895441c3505ddfd487c67) Thanks [@depfu](https://github.com/apps/depfu)! - Upgrade to Playwright 1.46.0
8
+
9
+ ### Patch Changes
10
+
11
+ - [#378](https://github.com/rmehner/bits-to-dead-trees/pull/378) [`e898d44`](https://github.com/rmehner/bits-to-dead-trees/commit/e898d4499d40d65ea97b947e37324c5b1a6ca31c) Thanks [@depfu](https://github.com/apps/depfu)! - Update to Node 20.16.0 to match the one that the Playwright Docker image has
12
+
13
+ ## 2.16.3
14
+
15
+ ### Patch Changes
16
+
17
+ - [#375](https://github.com/rmehner/bits-to-dead-trees/pull/375) [`dd20620`](https://github.com/rmehner/bits-to-dead-trees/commit/dd206200ffc5a8b45cf9ffc4a5f46153240cf0d1) Thanks [@depfu](https://github.com/apps/depfu)! - Upgrade to Playwright 1.45.3
18
+
3
19
  ## 2.16.2
4
20
 
5
21
  ### Patch Changes
package/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM mcr.microsoft.com/playwright:v1.45.2
1
+ FROM mcr.microsoft.com/playwright:v1.46.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.16.1
60
+ image: ghcr.io/rmehner/bits-to-dead-trees:v2.16.3
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.16.2",
4
+ "version": "2.17.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,7 +31,7 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "fastify": "^4.28.1",
34
- "playwright-core": "^1.45.2"
34
+ "playwright-core": "^1.46.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@changesets/changelog-github": "^0.5.0",
@@ -17,6 +17,37 @@
17
17
  "description": "Toggles bypassing page's Content-Security-Policy. Defaults to `false`.",
18
18
  "type": "boolean"
19
19
  },
20
+ "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`.",
22
+ "items": {
23
+ "additionalProperties": false,
24
+ "properties": {
25
+ "certPath": {
26
+ "description": "Path to the file with the certificate in PEM format.",
27
+ "type": "string"
28
+ },
29
+ "keyPath": {
30
+ "description": "Path to the file with the private key in PEM format.",
31
+ "type": "string"
32
+ },
33
+ "origin": {
34
+ "description": "Exact origin that the certificate is valid for. Origin includes `https` protocol, a hostname and optionally a port.",
35
+ "type": "string"
36
+ },
37
+ "passphrase": {
38
+ "description": "Passphrase for the private key (PEM or PFX).",
39
+ "type": "string"
40
+ },
41
+ "pfxPath": {
42
+ "description": "Path to the PFX or PKCS12 encoded private key and certificate chain.",
43
+ "type": "string"
44
+ }
45
+ },
46
+ "required": ["origin"],
47
+ "type": "object"
48
+ },
49
+ "type": "array"
50
+ },
20
51
  "colorScheme": {
21
52
  "anyOf": [
22
53
  {
package/.tool-versions DELETED
@@ -1 +0,0 @@
1
- nodejs 20.15.0