bits-to-dead-trees 2.12.0 → 2.13.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.
@@ -6,7 +6,7 @@ PATH_TO_SCRIPT=$(dirname $(realpath $0))
6
6
 
7
7
  cd "${PATH_TO_SCRIPT}/../.." || exit 1
8
8
 
9
- if [[ $(git status --porcelain | grep pdf_request-body-json) ]]; then
9
+ if [[ $(git status --porcelain | grep pdf_request_body.json) ]]; then
10
10
  echo "🚨 Detected schema changes that haven't been committed, please run 'npm run update-schemas' and commit the changes."
11
11
  exit 2
12
12
  else
@@ -9,23 +9,35 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}
9
9
  jobs:
10
10
  build:
11
11
  runs-on: ubuntu-latest
12
+ permissions:
13
+ contents: write
12
14
  steps:
13
15
  - name: Checkout Repo
14
- uses: actions/checkout@v3
16
+ uses: actions/checkout@v4
15
17
  with:
16
18
  ref: ${{ github.ref_name }}
17
19
 
18
20
  - name: Login to GitHub Container Registry
19
- uses: docker/login-action@v2
21
+ uses: docker/login-action@v3
20
22
  with:
21
23
  registry: ghcr.io
22
24
  username: ${{ github.repository_owner }}
23
25
  password: ${{ secrets.GITHUB_TOKEN }}
24
26
 
25
27
  - name: Build and push builder image
26
- uses: docker/build-push-action@v4
28
+ uses: docker/build-push-action@v5
27
29
  with:
28
30
  file: Dockerfile
29
31
  push: true
30
32
  tags: |
31
33
  ghcr.io/${{ github.repository }}:${{ github.ref_name }}
34
+
35
+ - name: Update version in README
36
+ run: |
37
+ sed 's|image: ghcr.io/rmehner/bits-to-dead-trees:v.*|image: ghcr.io/rmehner/bits-to-dead-trees:${{ github.ref_name }}|' README.md
38
+
39
+ - name: Commit changes
40
+ uses: stefanzweifel/git-auto-commit-action@v5
41
+ with:
42
+ commit_message: "🤖 Update version in README after release"
43
+ branch: main
@@ -11,10 +11,10 @@ jobs:
11
11
  runs-on: ubuntu-latest
12
12
  steps:
13
13
  - name: Checkout Repo
14
- uses: actions/checkout@v3
14
+ uses: actions/checkout@v4
15
15
 
16
16
  - name: Set up Node
17
- uses: actions/setup-node@v3
17
+ uses: actions/setup-node@v4
18
18
  with:
19
19
  node-version-file: .tool-versions
20
20
  cache: npm
@@ -25,5 +25,5 @@ jobs:
25
25
  - name: Update schemas
26
26
  run: npm run update-schemas
27
27
 
28
- - name: Run prettier
28
+ - name: Commit schema changes
29
29
  run: .github/bin/check-for-schema-changes
@@ -11,10 +11,10 @@ jobs:
11
11
  runs-on: ubuntu-latest
12
12
  steps:
13
13
  - name: Checkout Repo
14
- uses: actions/checkout@v3
14
+ uses: actions/checkout@v4
15
15
 
16
16
  - name: Set up Node
17
- uses: actions/setup-node@v3
17
+ uses: actions/setup-node@v4
18
18
  with:
19
19
  node-version-file: .tool-versions
20
20
  cache: npm
@@ -13,13 +13,13 @@ jobs:
13
13
  runs-on: ubuntu-latest
14
14
  steps:
15
15
  - name: Checkout Repo
16
- uses: actions/checkout@v3
16
+ uses: actions/checkout@v4
17
17
  with:
18
18
  # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
19
19
  fetch-depth: 0
20
20
 
21
21
  - name: Set up Node
22
- uses: actions/setup-node@v3
22
+ uses: actions/setup-node@v4
23
23
  with:
24
24
  node-version-file: .tool-versions
25
25
  cache: npm
@@ -0,0 +1,34 @@
1
+ name: Prettier
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - "depfu/update/npm/prettier-**"
7
+
8
+ jobs:
9
+ run-prettier:
10
+ runs-on: ubuntu-latest
11
+ permissions:
12
+ contents: write
13
+ steps:
14
+ - name: Checkout Repo
15
+ uses: actions/checkout@v4
16
+ with:
17
+ ref: ${{ github.head_ref }}
18
+
19
+ - name: Set up Node
20
+ uses: actions/setup-node@v4
21
+ with:
22
+ node-version-file: .tool-versions
23
+ cache: npm
24
+
25
+ - name: Install npm dependencies
26
+ run: npm ci
27
+
28
+ - name: Run prettier format
29
+ run: npm run format
30
+
31
+ - name: Commit changes
32
+ uses: stefanzweifel/git-auto-commit-action@v5
33
+ with:
34
+ commit_message: "🤖 Ran prettier after prettier update"
package/.tool-versions CHANGED
@@ -1 +1 @@
1
- nodejs 20.11.0
1
+ nodejs 20.11.1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # bits-to-dead-trees
2
2
 
3
+ ## 2.13.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#316](https://github.com/rmehner/bits-to-dead-trees/pull/316) [`b70bf78`](https://github.com/rmehner/bits-to-dead-trees/commit/b70bf7890426df0e4f32df13496322c60abfc5d5) Thanks [@depfu](https://github.com/apps/depfu)! - Upgrade to playwright 1.42.0
8
+
9
+ ## 2.12.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#303](https://github.com/rmehner/bits-to-dead-trees/pull/303) [`73807a8`](https://github.com/rmehner/bits-to-dead-trees/commit/73807a815f298fd42f1a7f1063c90cdcf6bfd8d5) Thanks [@depfu](https://github.com/apps/depfu)! - Update to Playwright 1.41.2
14
+
3
15
  ## 2.12.0
4
16
 
5
17
  ### Minor Changes
package/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM mcr.microsoft.com/playwright:v1.41.1
1
+ FROM mcr.microsoft.com/playwright:v1.42.0
2
2
 
3
3
  ENV NODE_ENV=production
4
4
  ENV PORT=8000
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.12.0",
4
+ "version": "2.13.0",
5
5
  "description": "Turn HTML into PDF files",
6
6
  "repository": "github:rmehner/bits-to-dead-trees",
7
7
  "license": "Apache-2.0",
@@ -30,20 +30,20 @@
30
30
  "ts-check": "npx tsc --noEmit"
31
31
  },
32
32
  "dependencies": {
33
- "fastify": "^4.25.2",
34
- "playwright-core": "^1.41.1"
33
+ "fastify": "^4.26.1",
34
+ "playwright-core": "^1.42.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@changesets/changelog-github": "^0.5.0",
38
38
  "@changesets/cli": "^2.27.1",
39
39
  "@types/lodash": "^4.14.202",
40
- "@types/node": "20.10.4",
41
- "eslint": "^8.56.0",
40
+ "@types/node": "20.11.22",
41
+ "eslint": "^8.57.0",
42
42
  "eslint-config-prettier": "^9.1.0",
43
- "nodemon": "^3.0.3",
43
+ "nodemon": "^3.1.0",
44
44
  "pino-pretty": "^10.3.1",
45
- "prettier": "^3.2.4",
46
- "typescript-json-schema": "^0.62.0",
47
- "vitest": "^1.2.1"
45
+ "prettier": "^3.2.5",
46
+ "typescript-json-schema": "^0.63.0",
47
+ "vitest": "^1.3.1"
48
48
  }
49
49
  }
@@ -544,6 +544,10 @@
544
544
  },
545
545
  "type": "object"
546
546
  },
547
+ "outline": {
548
+ "description": "Whether or not to embed the document outline into the PDF. Defaults to `false`.",
549
+ "type": "boolean"
550
+ },
547
551
  "pageRanges": {
548
552
  "description": "Paper ranges to print, e.g., '1-5, 8, 11-13'. Defaults to the empty string, which means print all pages.",
549
553
  "type": "string"
@@ -564,6 +568,10 @@
564
568
  "description": "Scale of the webpage rendering. Defaults to `1`. Scale amount must be between 0.1 and 2.",
565
569
  "type": "number"
566
570
  },
571
+ "tagged": {
572
+ "description": "Whether or not to generate tagged (accessible) PDF. Defaults to `false`.",
573
+ "type": "boolean"
574
+ },
567
575
  "width": {
568
576
  "description": "Paper width, accepts values labeled with units.",
569
577
  "type": ["string", "number"]
package/tsconfig.json CHANGED
@@ -10,6 +10,6 @@
10
10
  "esModuleInterop": true,
11
11
  "module": "ESNext",
12
12
 
13
- "checkJs": true,
14
- },
13
+ "checkJs": true
14
+ }
15
15
  }