bits-to-dead-trees 2.12.1 → 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.
- package/.github/bin/check-for-schema-changes +1 -1
- package/.github/workflows/build-docker-image-of-release.yml +12 -0
- package/.github/workflows/check-json-schema.yml +1 -1
- package/.github/workflows/run-prettier-on-prettier-updates.yml +34 -0
- package/.tool-versions +1 -1
- package/CHANGELOG.md +6 -0
- package/Dockerfile +1 -1
- package/package.json +9 -9
- package/pdf_request_body.json +8 -0
- package/tsconfig.json +2 -2
|
@@ -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
|
|
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,6 +9,8 @@ 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
16
|
uses: actions/checkout@v4
|
|
@@ -29,3 +31,13 @@ jobs:
|
|
|
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
|
|
@@ -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.
|
|
1
|
+
nodejs 20.11.1
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
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
|
+
|
|
3
9
|
## 2.12.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/Dockerfile
CHANGED
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.
|
|
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.26.
|
|
34
|
-
"playwright-core": "^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.
|
|
41
|
-
"eslint": "^8.
|
|
40
|
+
"@types/node": "20.11.22",
|
|
41
|
+
"eslint": "^8.57.0",
|
|
42
42
|
"eslint-config-prettier": "^9.1.0",
|
|
43
|
-
"nodemon": "^3.0
|
|
43
|
+
"nodemon": "^3.1.0",
|
|
44
44
|
"pino-pretty": "^10.3.1",
|
|
45
|
-
"prettier": "^3.2.
|
|
46
|
-
"typescript-json-schema": "^0.
|
|
47
|
-
"vitest": "^1.
|
|
45
|
+
"prettier": "^3.2.5",
|
|
46
|
+
"typescript-json-schema": "^0.63.0",
|
|
47
|
+
"vitest": "^1.3.1"
|
|
48
48
|
}
|
|
49
49
|
}
|
package/pdf_request_body.json
CHANGED
|
@@ -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