bits-to-dead-trees 2.33.0 → 2.34.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,14 +50,14 @@ 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@37fe631027851001ddb9b187196cc803df7f5f0e # v4.3.0
61
61
 
62
62
  - name: Build and push builder image
63
63
  uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7.2.0
@@ -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@70fb788f84895a7701f5643d103d587e460b5c99 # v0.6.3
33
33
  with:
34
34
  advanced-security: false
35
35
  annotations: true
package/.node-version CHANGED
@@ -1 +1 @@
1
- 24.18.1
1
+ 24.20.0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # bits-to-dead-trees
2
2
 
3
+ ## 2.34.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#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
8
+
9
+ ## 2.33.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`0655505`](https://github.com/rmehner/bits-to-dead-trees/commit/06555054682f7e148b2dc3ed6667078ff56081c0) Thanks [@rmehner](https://github.com/rmehner)! - Harden & Stabilize Dockerfile by using npm ci
14
+
3
15
  ## 2.33.0
4
16
 
5
17
  ### Minor Changes
package/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM mcr.microsoft.com/playwright:v1.62.1
1
+ FROM mcr.microsoft.com/playwright:v1.63.0
2
2
 
3
3
  ENV NODE_ENV=production
4
4
  ENV PORT=8000
@@ -6,9 +6,9 @@ ENV SERVER_ADDRESS=0.0.0.0
6
6
 
7
7
  WORKDIR /app
8
8
 
9
- COPY ["package.json", "package-lock.json*", "./"]
9
+ COPY ["package.json", "package-lock.json", "./"]
10
10
 
11
- RUN npm install --omit=dev --ignore-scripts
11
+ RUN npm ci --omit=dev --ignore-scripts
12
12
 
13
13
  COPY ["server.js", "app.js", "pdf_request_body.json", "./"]
14
14
 
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.32.1
60
+ image: ghcr.io/rmehner/bits-to-dead-trees:v2.33.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.33.0",
4
+ "version": "2.34.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.3",
37
+ "playwright-core": "^1.63.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@changesets/changelog-github": "^0.7.0",
41
- "@changesets/cli": "^2.31.1",
41
+ "@changesets/cli": "^3.0.2",
42
42
  "@eslint/js": "^10.0.1",
43
- "@tsconfig/node24": "^24.0.4",
44
- "@types/lodash": "^4.17.24",
43
+ "@tsconfig/node24": "^24.0.5",
44
+ "@types/lodash": "^4.17.25",
45
45
  "@types/node": "24.12.0",
46
- "eslint": "^10.8.0",
46
+ "eslint": "^10.9.1",
47
47
  "eslint-config-prettier": "^10.1.8",
48
- "eslint-plugin-n": "^18.2.2",
48
+ "eslint-plugin-n": "^18.3.0",
49
49
  "eslint-plugin-promise": "^7.3.0",
50
- "globals": "^17.7.0",
50
+ "globals": "^17.12.0",
51
51
  "pino-pretty": "^13.1.3",
52
52
  "prettier": "^3.9.6",
53
53
  "typescript-json-schema": "^0.68.0",
54
- "vitest": "^4.1.10"
54
+ "vitest": "^4.1.11"
55
55
  }
56
56
  }
@@ -146,8 +146,18 @@
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`.",