bits-to-dead-trees 1.0.0 → 1.0.1

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.
@@ -16,14 +16,14 @@ jobs:
16
16
  ref: ${{ github.ref_name }}
17
17
 
18
18
  - name: Login to GitHub Container Registry
19
- uses: docker/login-action@v1
19
+ uses: docker/login-action@v2
20
20
  with:
21
21
  registry: ghcr.io
22
22
  username: ${{ github.repository_owner }}
23
23
  password: ${{ secrets.GITHUB_TOKEN }}
24
24
 
25
25
  - name: Build and push builder image
26
- uses: docker/build-push-action@v2
26
+ uses: docker/build-push-action@v3
27
27
  with:
28
28
  file: Dockerfile
29
29
  push: true
package/.tool-versions CHANGED
@@ -1 +1 @@
1
- nodejs 16.14.2
1
+ nodejs 16.15.1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # bits-to-dead-trees
2
2
 
3
+ ## 1.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - cd71c2f: Update playwright to 1.23.2 (new browser versions)
8
+
3
9
  ## 1.0.0
4
10
 
5
11
  ### Major Changes
package/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM mcr.microsoft.com/playwright:v1.21.1-focal
1
+ FROM mcr.microsoft.com/playwright:v1.23.2-focal
2
2
 
3
3
  ENV NODE_ENV=production
4
4
  ENV SERVER_PORT=8000
package/README.md CHANGED
@@ -41,3 +41,17 @@ The server exposes the `/pdf` endpoint that listens to a POST request and expect
41
41
  `options` are the options Playwright knows about PDF: https://playwright.dev/docs/api/class-page#page-pdf. We pass them to Playwright directly, so please refer to their docs.
42
42
 
43
43
  The response is the PDF file.
44
+
45
+ ## Docker
46
+
47
+ Versions are automatically build as Docker images and are available on [GitHub's package registry](https://github.com/rmehner/bits-to-dead-trees/pkgs/container/bits-to-dead-trees)
48
+
49
+ If you want to use it internally with docker-compose, this should give you a good idea to start:
50
+
51
+ ```yml
52
+ services:
53
+ pdf:
54
+ image: ghcr.io/rmehner/bits-to-dead-trees:v1.0.0
55
+ ports:
56
+ - 8000:8000
57
+ ```
package/index.js CHANGED
@@ -82,7 +82,7 @@ server.get("/health", async (_, response) => response.code(200).send());
82
82
 
83
83
  const startServer = async () => {
84
84
  try {
85
- await server.listen(+SERVER_PORT, SERVER_ADDRESS);
85
+ await server.listen({ port: +SERVER_PORT, host: SERVER_ADDRESS });
86
86
  } catch (error) {
87
87
  console.error(error);
88
88
  process.exit(1);
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": "1.0.0",
4
+ "version": "1.0.1",
5
5
  "description": "Turn HTML into PDF files",
6
6
  "repository": "github:rmehner/bits-to-dead-trees",
7
7
  "license": "Apache-2.0",
@@ -28,16 +28,17 @@
28
28
  "ts-check": "npx tsc --noEmit"
29
29
  },
30
30
  "dependencies": {
31
- "fastify": "^3.28.0",
32
- "playwright-core": "^1.21.1"
31
+ "fastify": "^4.2.0",
32
+ "playwright-core": "^1.23.2"
33
33
  },
34
34
  "devDependencies": {
35
- "@changesets/cli": "^2.22.0",
36
- "eslint": "^8.13.0",
35
+ "@changesets/cli": "^2.23.1",
36
+ "eslint": "^8.19.0",
37
37
  "eslint-config-prettier": "^8.5.0",
38
- "nodemon": "^2.0.15",
39
- "pino-pretty": "^7.6.1",
40
- "prettier": "^2.6.2",
41
- "typescript-json-schema": "^0.53.0"
38
+ "nodemon": "^2.0.19",
39
+ "pino-pretty": "^8.1.0",
40
+ "prettier": "^2.7.1",
41
+ "tslib": "^2.4.0",
42
+ "typescript-json-schema": "^0.54.0"
42
43
  }
43
44
  }