bits-to-dead-trees 2.1.0 → 2.2.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/.tool-versions CHANGED
@@ -1 +1 @@
1
- nodejs 18.14.2
1
+ nodejs 18.15.0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # bits-to-dead-trees
2
2
 
3
+ ## 2.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`f9f42da`](https://github.com/rmehner/bits-to-dead-trees/commit/f9f42dacb00b9329c5aea56fd62a64fd5517b786) Thanks [@rmehner](https://github.com/rmehner)! - Upgrade Playwright to 1.32.1
8
+
9
+ ## 2.1.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`9596b32`](https://github.com/rmehner/bits-to-dead-trees/commit/9596b320b61c4be925edc7477e024689986144fe) Thanks [@rmehner](https://github.com/rmehner)! - Update Playwright to 1.31.2
14
+
3
15
  ## 2.1.0
4
16
 
5
17
  ### Minor Changes
package/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM mcr.microsoft.com/playwright:v1.31.1-jammy
1
+ FROM mcr.microsoft.com/playwright:v1.32.1-jammy
2
2
 
3
3
  ENV NODE_ENV=production
4
4
  ENV SERVER_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.1.0",
4
+ "version": "2.2.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.13.0",
34
- "playwright-core": "^1.31.1"
33
+ "fastify": "^4.15.0",
34
+ "playwright-core": "^1.32.1"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@changesets/changelog-github": "^0.4.8",
38
- "@changesets/cli": "^2.26.0",
38
+ "@changesets/cli": "^2.26.1",
39
39
  "@types/lodash": "^4.14.191",
40
- "eslint": "^8.34.0",
41
- "eslint-config-prettier": "^8.6.0",
42
- "nodemon": "^2.0.20",
43
- "pino-pretty": "^9.3.0",
44
- "prettier": "^2.8.4",
40
+ "eslint": "^8.36.0",
41
+ "eslint-config-prettier": "^8.8.0",
42
+ "nodemon": "^2.0.22",
43
+ "pino-pretty": "^10.0.0",
44
+ "prettier": "^2.8.7",
45
45
  "tslib": "^2.5.0",
46
46
  "typescript-json-schema": "^0.55.0",
47
- "vitest": "^0.28.5"
47
+ "vitest": "^0.29.7"
48
48
  }
49
49
  }
@@ -3,34 +3,38 @@ import { describe, expect, it } from "vitest";
3
3
  import build from "../app";
4
4
  const app = build();
5
5
 
6
- describe("Smoke tests", () => {
7
- it("sends the PDF on the success case", async () => {
8
- const response = await app.inject({
9
- method: "POST",
10
- url: "/pdf",
11
- payload: { url: "https://coding-robin.de" },
12
- });
13
-
14
- expect(response.payload.startsWith("%PDF")).toBeTruthy();
15
- });
6
+ describe(
7
+ "Smoke tests",
8
+ () => {
9
+ it("sends the PDF on the success case", async () => {
10
+ const response = await app.inject({
11
+ method: "POST",
12
+ url: "/pdf",
13
+ payload: { url: "https://coding-robin.de" },
14
+ });
16
15
 
17
- it("returns an error object when the page could not be loaded", async () => {
18
- const response = await app.inject({
19
- method: "POST",
20
- url: "/pdf",
21
- payload: {
22
- url: "http://httpbin.org/status/404",
23
- },
16
+ expect(response.payload.startsWith("%PDF")).toBeTruthy();
24
17
  });
25
18
 
26
- expect(response.statusCode).toEqual(404);
27
- const error = JSON.parse(response.body);
19
+ it("returns an error object when the page could not be loaded", async () => {
20
+ const response = await app.inject({
21
+ method: "POST",
22
+ url: "/pdf",
23
+ payload: {
24
+ url: "http://httpbin.org/status/404",
25
+ },
26
+ });
27
+
28
+ expect(response.statusCode).toEqual(404);
29
+ const error = JSON.parse(response.body);
28
30
 
29
- expect(error).toMatchObject({
30
- error: true,
31
- status: 404,
32
- statusText: "NOT FOUND",
33
- message: "",
31
+ expect(error).toMatchObject({
32
+ error: true,
33
+ status: 404,
34
+ statusText: "NOT FOUND",
35
+ message: "",
36
+ });
34
37
  });
35
- });
36
- });
38
+ },
39
+ { timeout: 10_000 }
40
+ );