@stamhoofd/backend-renderer 2.120.6 → 2.122.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stamhoofd/backend-renderer",
3
- "version": "2.120.6",
3
+ "version": "2.122.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "exports": {
@@ -8,35 +8,50 @@
8
8
  "require": "./dist/index.js"
9
9
  }
10
10
  },
11
- "license": "UNLICENCED",
12
11
  "scripts": {
13
- "dev": "wait-on ../../shared/middleware/dist/index.js && concurrently -r 'yarn -s build --watch --preserveWatchOutput' \"wait-on ./dist/index.js && nodemon --quiet --inspect=5858 --watch dist --watch '../../../shared/*/dist/' --watch '../../shared/*/dist/' --ext .ts,.json,.sql,.js --watch .env.json --delay 1000ms --exec 'node --enable-source-maps ./dist/index.js' --signal SIGTERM\"",
14
- "dev:build": "yarn -s build",
15
- "dev:full": "yarn -s dev",
16
12
  "build": "tsc --build tsconfig.build.json",
17
13
  "build:full": "yarn -s clear && yarn -s build",
18
14
  "clear": "rm -rf ./dist && rm -f *.tsbuildinfo",
19
- "start": "yarn -s build && node --enable-source-maps ./dist/index.js",
15
+ "dev": "wait-on ../../shared/middleware/dist/index.js && concurrently -r 'yarn -s build --watch --preserveWatchOutput' \"wait-on ./dist/index.js && nodemon --quiet --inspect=5858 --watch dist --watch '../../../shared/*/dist/' --watch '../../shared/*/dist/' --ext .ts,.json,.sql,.js --watch .env.json --delay 1000ms --exec 'node --enable-source-maps ./dist/index.js' --signal SIGTERM\"",
16
+ "dev:build": "yarn -s build",
17
+ "dev:full": "yarn -s dev",
20
18
  "lint": "eslint",
21
- "test": "vitest"
22
- },
23
- "devDependencies": {
24
- "@types/formidable": "3.4.5",
25
- "@types/luxon": "3.4.2",
26
- "@types/mysql": "^2.15.20",
27
- "@types/node": "^22"
19
+ "start": "yarn -s build && node --enable-source-maps ./dist/index.js",
20
+ "test": "vitest",
21
+ "test:coverage": "vitest --coverage"
28
22
  },
29
23
  "dependencies": {
24
+ "@simonbackx/simple-database": "1.37.1",
25
+ "@simonbackx/simple-encoding": "2.26.10",
30
26
  "@simonbackx/simple-endpoints": "1.21.1",
31
- "@simonbackx/simple-logging": "^1.0.1",
27
+ "@simonbackx/simple-errors": "1.5.0",
28
+ "@simonbackx/simple-logging": "1.0.1",
29
+ "@stamhoofd/backend-env": "2.122.0",
30
+ "@stamhoofd/backend-i18n": "2.122.0",
31
+ "@stamhoofd/backend-middleware": "2.122.0",
32
+ "@stamhoofd/logging": "2.122.0",
33
+ "@stamhoofd/queues": "2.122.0",
34
+ "@stamhoofd/structures": "2.122.0",
35
+ "@stamhoofd/types": "2.122.0",
36
+ "@stamhoofd/utility": "2.122.0",
32
37
  "formidable": "3.5.4",
33
- "luxon": "3.4.4",
34
- "mockdate": "^3.0.2",
35
- "mysql2": "^3.20.0",
36
- "puppeteer": "^24.11.0"
38
+ "luxon": "3.7.2",
39
+ "mockdate": "3.0.5",
40
+ "mysql2": "3.22.5",
41
+ "puppeteer": "25.1.0"
37
42
  },
43
+ "devDependencies": {
44
+ "@stamhoofd/test-utils": "2.122.0",
45
+ "@types/formidable": "3.5.1",
46
+ "@types/luxon": "3.7.1",
47
+ "@types/mysql": "2.15.27",
48
+ "@types/node": "22.15.34",
49
+ "nock": "14.0.15",
50
+ "vitest": "4.1.8"
51
+ },
52
+ "license": "UNLICENCED",
38
53
  "publishConfig": {
39
54
  "access": "public"
40
55
  },
41
- "gitHead": "0f41cc566739b9793910b67286a66be5745a163e"
56
+ "gitHead": "3c022b7d7801fb105acfaa401432a8d029abda61"
42
57
  }
package/stamhoofd.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import '../../../environment.d.ts';
1
+ import '@stamhoofd/types/global';
2
+ import type { RendererEnvironment } from '@stamhoofd/types/Environment';
2
3
 
3
4
  export {};
4
5
 
package/vitest.config.js CHANGED
@@ -9,5 +9,10 @@ export default defineConfig({
9
9
  root: import.meta.dirname,
10
10
  isolate: true,
11
11
  maxWorkers: 1, // For now we can't run parallel because all test files use the same database
12
+ coverage: {
13
+ provider: 'v8',
14
+ include: ['src/**'],
15
+ reporter: ['text', 'html', 'lcov'],
16
+ },
12
17
  },
13
18
  });