bits-to-dead-trees 2.18.2 → 2.19.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/.node-version CHANGED
@@ -1 +1 @@
1
- 20.17.0
1
+ 20.18.0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # bits-to-dead-trees
2
2
 
3
+ ## 2.19.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#404](https://github.com/rmehner/bits-to-dead-trees/pull/404) [`4c6a258`](https://github.com/rmehner/bits-to-dead-trees/commit/4c6a2581adcf9c914bea0a8f5fddd8a548ca7ecc) Thanks [@depfu](https://github.com/apps/depfu)! - Upgrade to Playwright 1.48.0
8
+
3
9
  ## 2.18.2
4
10
 
5
11
  ### Patch Changes
package/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM mcr.microsoft.com/playwright:v1.47.2
1
+ FROM mcr.microsoft.com/playwright:v1.48.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.18.1
60
+ image: ghcr.io/rmehner/bits-to-dead-trees:v2.18.2
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.18.2",
4
+ "version": "2.19.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,12 +31,12 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "fastify": "^4.28.1",
34
- "playwright-core": "^1.47.2"
34
+ "playwright-core": "^1.48.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@changesets/changelog-github": "^0.5.0",
38
- "@changesets/cli": "^2.27.8",
39
- "@types/lodash": "^4.17.7",
38
+ "@changesets/cli": "^2.27.9",
39
+ "@types/lodash": "^4.17.10",
40
40
  "@types/node": "20.11.22",
41
41
  "eslint": "^8.57.0",
42
42
  "eslint-config-prettier": "^9.1.0",
@@ -41,7 +41,7 @@
41
41
  "type": "boolean"
42
42
  },
43
43
  "clientCertificates": {
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`.",
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** When using WebKit on macOS, accessing `localhost` will not pick up client certificates. You can make it\nwork by replacing `localhost` with `local.playwright`.",
45
45
  "items": {
46
46
  "additionalProperties": false,
47
47
  "properties": {
@@ -320,7 +320,7 @@
320
320
  "type": "string"
321
321
  }
322
322
  ],
323
- "description": "A glob or regex pattern to filter requests that are stored in the HAR. When a `baseURL` via the context options was\nprovided and the passed URL is a path, it gets merged via the\n[`new URL()`](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL) constructor. Defaults to none."
323
+ "description": "A glob or regex pattern to filter requests that are stored in the HAR. When a\n[`baseURL`](https://playwright.dev/docs/api/class-browser#browser-new-context-option-base-url) via the context\noptions was provided and the passed URL is a path, it gets merged via the\n[`new URL()`](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL) constructor. Defaults to none."
324
324
  }
325
325
  },
326
326
  "required": ["path"],
@@ -368,7 +368,7 @@
368
368
  },
369
369
  "screen": {
370
370
  "additionalProperties": false,
371
- "description": "Emulates consistent window screen size available inside web page via `window.screen`. Is only used when the\n`viewport` is set.",
371
+ "description": "Emulates consistent window screen size available inside web page via `window.screen`. Is only used when the\n[`viewport`](https://playwright.dev/docs/api/class-browser#browser-new-context-option-viewport) is set.",
372
372
  "properties": {
373
373
  "height": {
374
374
  "description": "page height in pixels.",
@@ -482,7 +482,7 @@
482
482
  "description": "Learn more about [storage state and auth](https://playwright.dev/docs/auth).\n\nPopulates context with given storage state. This option can be used to initialize context with logged-in\ninformation obtained via\n[browserContext.storageState([options])](https://playwright.dev/docs/api/class-browsercontext#browser-context-storage-state)."
483
483
  },
484
484
  "strictSelectors": {
485
- "description": "If set to true, enables strict selectors mode for this context. In the strict selectors mode all operations on\nselectors that imply single target DOM element will throw when more than one element matches the selector. This\noption does not affect any Locator APIs (Locators are always strict). Defaults to `false`. See {@link Locator} to\nlearn more about the strict mode.",
485
+ "description": "If set to true, enables strict selectors mode for this context. In the strict selectors mode all operations on\nselectors that imply single target DOM element will throw when more than one element matches the selector. This\noption does not affect any Locator APIs (Locators are always strict). Defaults to `false`. See\n[Locator](https://playwright.dev/docs/api/class-locator) to learn more about the strict mode.",
486
486
  "type": "boolean"
487
487
  },
488
488
  "timezoneId": {
@@ -555,7 +555,7 @@
555
555
  "type": "string"
556
556
  },
557
557
  "send": {
558
- "description": "This option only applies to the requests sent from corresponding {@link APIRequestContext} and does not affect\nrequests sent from the browser. `'always'` - `Authorization` header with basic authentication credentials will be\nsent with the each API request. `'unauthorized` - the credentials are only sent when 401 (Unauthorized) response\nwith `WWW-Authenticate` header is received. Defaults to `'unauthorized'`.",
558
+ "description": "This option only applies to the requests sent from corresponding\n[APIRequestContext](https://playwright.dev/docs/api/class-apirequestcontext) and does not affect requests sent from\nthe browser. `'always'` - `Authorization` header with basic authentication credentials will be sent with the each\nAPI request. `'unauthorized` - the credentials are only sent when 401 (Unauthorized) response with\n`WWW-Authenticate` header is received. Defaults to `'unauthorized'`.",
559
559
  "enum": ["always", "unauthorized"],
560
560
  "type": "string"
561
561
  },
@@ -695,11 +695,11 @@
695
695
  "type": "boolean"
696
696
  },
697
697
  "footerTemplate": {
698
- "description": "HTML template for the print footer. Should use the same format as the `headerTemplate`.",
698
+ "description": "HTML template for the print footer. Should use the same format as the\n[`headerTemplate`](https://playwright.dev/docs/api/class-page#page-pdf-option-header-template).",
699
699
  "type": "string"
700
700
  },
701
701
  "format": {
702
- "description": "Paper format. If set, takes priority over `width` or `height` options. Defaults to 'Letter'.",
702
+ "description": "Paper format. If set, takes priority over\n[`width`](https://playwright.dev/docs/api/class-page#page-pdf-option-width) or\n[`height`](https://playwright.dev/docs/api/class-page#page-pdf-option-height) options. Defaults to 'Letter'.",
703
703
  "type": "string"
704
704
  },
705
705
  "headerTemplate": {
@@ -746,11 +746,11 @@
746
746
  "type": "string"
747
747
  },
748
748
  "path": {
749
- "description": "The file path to save the PDF to. If `path` is a relative path, then it is resolved relative to the current working\ndirectory. If no path is provided, the PDF won't be saved to the disk.",
749
+ "description": "The file path to save the PDF to. If [`path`](https://playwright.dev/docs/api/class-page#page-pdf-option-path) is a\nrelative path, then it is resolved relative to the current working directory. If no path is provided, the PDF won't\nbe saved to the disk.",
750
750
  "type": "string"
751
751
  },
752
752
  "preferCSSPageSize": {
753
- "description": "Give any CSS `@page` size declared in the page priority over what is declared in `width` and `height` or `format`\noptions. Defaults to `false`, which will scale the content to fit the paper size.",
753
+ "description": "Give any CSS `@page` size declared in the page priority over what is declared in\n[`width`](https://playwright.dev/docs/api/class-page#page-pdf-option-width) and\n[`height`](https://playwright.dev/docs/api/class-page#page-pdf-option-height) or\n[`format`](https://playwright.dev/docs/api/class-page#page-pdf-option-format) options. Defaults to `false`, which\nwill scale the content to fit the paper size.",
754
754
  "type": "boolean"
755
755
  },
756
756
  "printBackground": {