bits-to-dead-trees 2.5.1 → 2.6.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.
@@ -3,11 +3,11 @@ name: Check JSON schema
3
3
  on: push
4
4
 
5
5
  concurrency:
6
- group: ${{ github.ref }}
6
+ group: ${{ github.workflow }}-${{ github.ref }}
7
7
  cancel-in-progress: true
8
8
 
9
9
  jobs:
10
- build:
10
+ check-json-schema:
11
11
  runs-on: ubuntu-latest
12
12
  steps:
13
13
  - name: Checkout Repo
@@ -3,11 +3,11 @@ name: CI
3
3
  on: push
4
4
 
5
5
  concurrency:
6
- group: ${{ github.ref }}
6
+ group: ${{ github.workflow }}-${{ github.ref }}
7
7
  cancel-in-progress: true
8
8
 
9
9
  jobs:
10
- build:
10
+ ci:
11
11
  runs-on: ubuntu-latest
12
12
  steps:
13
13
  - name: Checkout Repo
package/.tool-versions CHANGED
@@ -1 +1 @@
1
- nodejs 18.16.0
1
+ nodejs 18.16.1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # bits-to-dead-trees
2
2
 
3
+ ## 2.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#214](https://github.com/rmehner/bits-to-dead-trees/pull/214) [`3243cc1`](https://github.com/rmehner/bits-to-dead-trees/commit/3243cc18bf2e808544b29e05ef4c216455e43e1c) Thanks [@depfu](https://github.com/apps/depfu)! - Upgrade to Playwright 1.36.0
8
+
3
9
  ## 2.5.1
4
10
 
5
11
  ### Patch Changes
package/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM mcr.microsoft.com/playwright:v1.35.1
1
+ FROM mcr.microsoft.com/playwright:v1.36.0
2
2
 
3
3
  ENV NODE_ENV=production
4
4
  ENV SERVER_PORT=8000
package/app.js CHANGED
@@ -7,7 +7,7 @@ import { readFileSync } from "node:fs";
7
7
  // we'd love to do this, but eslint doesn't like import assertions yet
8
8
  // import PdfRequestBodySchema from "./pdf_request_body.json" assert { type: "json" };
9
9
  const PdfRequestBodySchema = JSON.parse(
10
- readFileSync("./pdf_request_body.json", { encoding: "utf-8" })
10
+ readFileSync("./pdf_request_body.json", { encoding: "utf-8" }),
11
11
  );
12
12
 
13
13
  /**
@@ -44,7 +44,7 @@ const createPDF = async (
44
44
  url,
45
45
  pdfOptions = {},
46
46
  browserContextOptions = {},
47
- gotoOptions = {}
47
+ gotoOptions = {},
48
48
  ) => {
49
49
  const browser = await chromium.launch();
50
50
 
@@ -127,7 +127,7 @@ function build(opts = {}) {
127
127
 
128
128
  return error;
129
129
  }
130
- }
130
+ },
131
131
  );
132
132
 
133
133
  app.get("/health", async (_, response) => response.code(200).send());
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.5.1",
4
+ "version": "2.6.0",
5
5
  "description": "Turn HTML into PDF files",
6
6
  "repository": "github:rmehner/bits-to-dead-trees",
7
7
  "license": "Apache-2.0",
@@ -16,9 +16,9 @@
16
16
  "main": "server.js",
17
17
  "type": "module",
18
18
  "scripts": {
19
- "check-format": "prettier --check **/*.{js,ts,json,md}",
19
+ "check-format": "prettier --check '**/*.{js,ts,json,md}'",
20
20
  "lint": "eslint *.js",
21
- "format": "prettier --write **/*.{js,ts,json,md}",
21
+ "format": "prettier --write '**/*.{js,ts,json,md}'",
22
22
  "start": "node server.js",
23
23
  "start:dev": "nodemon --inspect server.js",
24
24
  "dump-schemas": "typescript-json-schema --noExtraProps --required --strictNullChecks types/schemas.ts PdfRequestBody --out pdf_request_body.json",
@@ -30,19 +30,19 @@
30
30
  "ts-check": "npx tsc --noEmit"
31
31
  },
32
32
  "dependencies": {
33
- "fastify": "^4.18.0",
34
- "playwright-core": "^1.35.1"
33
+ "fastify": "^4.19.2",
34
+ "playwright-core": "^1.36.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@changesets/changelog-github": "^0.4.8",
38
- "@changesets/cli": "^2.26.1",
38
+ "@changesets/cli": "^2.26.2",
39
39
  "@types/lodash": "^4.14.195",
40
- "eslint": "^8.42.0",
40
+ "eslint": "^8.44.0",
41
41
  "eslint-config-prettier": "^8.8.0",
42
- "nodemon": "^2.0.22",
43
- "pino-pretty": "^10.0.0",
44
- "prettier": "^2.8.8",
45
- "typescript-json-schema": "^0.57.0",
46
- "vitest": "^0.32.0"
42
+ "nodemon": "^3.0.1",
43
+ "pino-pretty": "^10.0.1",
44
+ "prettier": "^3.0.0",
45
+ "typescript-json-schema": "^0.58.1",
46
+ "vitest": "^0.33.0"
47
47
  }
48
48
  }
@@ -36,5 +36,5 @@ describe(
36
36
  });
37
37
  });
38
38
  },
39
- { timeout: 10_000 }
39
+ { timeout: 10_000 },
40
40
  );