@balena/pinejs 19.7.3-build-renovate-postgres-17-x-2d03a162db08921d8a448438b1e1514c161bb75a-1 → 19.7.3-build-tests-fc28f2efec230ea40150c14cbf7f062649f2fc40-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.
@@ -1,16 +1,31 @@
|
|
1
1
|
- commits:
|
2
|
-
- subject:
|
3
|
-
hash:
|
4
|
-
body:
|
5
|
-
|
2
|
+
- subject: "Tests: use `@balena/pinejs` for resolving to the runtime files"
|
3
|
+
hash: fc28f2efec230ea40150c14cbf7f062649f2fc40
|
4
|
+
body: ""
|
5
|
+
footer:
|
6
|
+
Change-type: patch
|
7
|
+
change-type: patch
|
8
|
+
author: Pagan Gazzard
|
9
|
+
nested: []
|
10
|
+
- subject: "Tests: avoid deep imports in favor of the standard module entrypoint"
|
11
|
+
hash: 8e26f0f37189809bfc517a580a37ff659a207ba6
|
12
|
+
body: ""
|
6
13
|
footer:
|
7
14
|
Change-type: patch
|
8
15
|
change-type: patch
|
9
|
-
author:
|
16
|
+
author: Pagan Gazzard
|
17
|
+
nested: []
|
18
|
+
- subject: "Tests: run against compiled source rather than transpiling on the fly"
|
19
|
+
hash: cf6351dac10a89633624a5ebf3b1aad29f0ab8ec
|
20
|
+
body: ""
|
21
|
+
footer:
|
22
|
+
Change-type: patch
|
23
|
+
change-type: patch
|
24
|
+
author: Pagan Gazzard
|
10
25
|
nested: []
|
11
26
|
version: 19.7.3
|
12
27
|
title: ""
|
13
|
-
date: 2025-01-
|
28
|
+
date: 2025-01-03T19:27:16.499Z
|
14
29
|
- commits:
|
15
30
|
- subject: Update dependencies
|
16
31
|
hash: a909ee054f395de407ec4e1275fd0f5b7514fe29
|
package/CHANGELOG.md
CHANGED
@@ -5,9 +5,11 @@ automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
|
|
5
5
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
6
6
|
|
7
7
|
# v19.7.3
|
8
|
-
## (2025-01-
|
8
|
+
## (2025-01-03)
|
9
9
|
|
10
|
-
*
|
10
|
+
* Tests: use `@balena/pinejs` for resolving to the runtime files [Pagan Gazzard]
|
11
|
+
* Tests: avoid deep imports in favor of the standard module entrypoint [Pagan Gazzard]
|
12
|
+
* Tests: run against compiled source rather than transpiling on the fly [Pagan Gazzard]
|
11
13
|
|
12
14
|
# v19.7.2
|
13
15
|
## (2025-01-02)
|
@@ -1,6 +1,6 @@
|
|
1
|
+
import type { User as PineUser } from './sbvr-utils';
|
1
2
|
declare global {
|
2
3
|
namespace Express {
|
3
|
-
type PineUser = import('./sbvr-utils').User;
|
4
4
|
interface User extends PineUser {
|
5
5
|
}
|
6
6
|
interface Request {
|
@@ -9,4 +9,3 @@ declare global {
|
|
9
9
|
}
|
10
10
|
}
|
11
11
|
}
|
12
|
-
export {};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@balena/pinejs",
|
3
|
-
"version": "19.7.3-build-
|
3
|
+
"version": "19.7.3-build-tests-fc28f2efec230ea40150c14cbf7f062649f2fc40-1",
|
4
4
|
"main": "out/server-glue/module",
|
5
5
|
"type": "commonjs",
|
6
6
|
"repository": "git@github.com:balena-io/pinejs.git",
|
@@ -19,10 +19,9 @@
|
|
19
19
|
"webpack-server": "grunt server",
|
20
20
|
"webpack-build": "npm run webpack-browser && npm run webpack-module && npm run webpack-server",
|
21
21
|
"lint": "balena-lint -t tsconfig.dev.json -e js -e ts src build typings Gruntfile.ts && npx tsc --project tsconfig.dev.json --noEmit",
|
22
|
-
"test": "npm run
|
23
|
-
"test:compose": "trap 'docker compose -f docker-compose.npm-test.yml down ; echo Stopped ; exit 0' INT; docker compose -f docker-compose.npm-test.yml up -d && sleep 2 && DATABASE_URL=postgres://docker:docker@localhost:5431/postgres PINEJS_WEBRESOURCE_MAXFILESIZE=1000000000 S3_ENDPOINT=http://localhost:43680 S3_ACCESS_KEY=USERNAME S3_SECRET_KEY=PASSWORD S3_STORAGE_ADAPTER_BUCKET=balena-pine-web-resources S3_REGION=us-east-1 PINEJS_QUEUE_CONCURRENCY=1 TZ=UTC
|
22
|
+
"test": "npm run build && npm run lint && npm run webpack-build && npm run test:compose && npm run test:generated-types",
|
23
|
+
"test:compose": "trap 'docker compose -f docker-compose.npm-test.yml down ; echo Stopped ; exit 0' INT; docker compose -f docker-compose.npm-test.yml up -d && sleep 2 && DATABASE_URL=postgres://docker:docker@localhost:5431/postgres PINEJS_WEBRESOURCE_MAXFILESIZE=1000000000 S3_ENDPOINT=http://localhost:43680 S3_ACCESS_KEY=USERNAME S3_SECRET_KEY=PASSWORD S3_STORAGE_ADAPTER_BUCKET=balena-pine-web-resources S3_REGION=us-east-1 PINEJS_QUEUE_CONCURRENCY=1 TZ=UTC npx mocha",
|
24
24
|
"test:generated-types": "npm run generate-types && git diff --exit-code ./src/sbvr-api/user.ts ./src/migrator/migrations.ts ./src/sbvr-api/dev.ts",
|
25
|
-
"mocha": "TS_NODE_FILES=true mocha",
|
26
25
|
"lint-fix": "balena-lint -t tsconfig.dev.json -e js -e ts --fix src test build typings Gruntfile.ts",
|
27
26
|
"generate-types": "node ./bin/sbvr-compiler.js generate-types ./src/sbvr-api/user.sbvr ./src/sbvr-api/user.ts && node ./bin/sbvr-compiler.js generate-types ./src/migrator/migrations.sbvr ./src/migrator/migrations.ts && node ./bin/sbvr-compiler.js generate-types ./src/sbvr-api/dev.sbvr ./src/sbvr-api/dev.ts && node ./bin/sbvr-compiler.js generate-types ./src/tasks/tasks.sbvr ./src/tasks/tasks.ts && balena-lint -t tsconfig.dev.json --fix ./src/sbvr-api/user.ts ./src/migrator/migrations.ts ./src/sbvr-api/dev.ts"
|
28
27
|
},
|
@@ -69,6 +68,7 @@
|
|
69
68
|
},
|
70
69
|
"devDependencies": {
|
71
70
|
"@balena/lint": "^8.2.8",
|
71
|
+
"@balena/pinejs": "file:./",
|
72
72
|
"@faker-js/faker": "^9.3.0",
|
73
73
|
"@types/busboy": "^1.5.4",
|
74
74
|
"@types/chai": "^4.3.20",
|
@@ -147,6 +147,6 @@
|
|
147
147
|
"recursive": true
|
148
148
|
},
|
149
149
|
"versionist": {
|
150
|
-
"publishedAt": "2025-01-
|
150
|
+
"publishedAt": "2025-01-03T19:27:17.467Z"
|
151
151
|
}
|
152
152
|
}
|
@@ -1,10 +1,9 @@
|
|
1
1
|
// Augment express.js with pinejs-specific attributes via declaration merging.
|
2
|
+
import type { User as PineUser } from './sbvr-utils';
|
2
3
|
|
3
4
|
declare global {
|
4
5
|
// eslint-disable-next-line @typescript-eslint/no-namespace
|
5
6
|
namespace Express {
|
6
|
-
type PineUser = import('./sbvr-utils').User;
|
7
|
-
|
8
7
|
// Augment Express.User to include the props of our PineUser.
|
9
8
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
10
9
|
interface User extends PineUser {}
|