@balena/pinejs 19.7.3-build-renovate-postgres-17-x-2d03a162db08921d8a448438b1e1514c161bb75a-1 → 19.7.3-build-tests-cf6351dac10a89633624a5ebf3b1aad29f0ab8ec-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,15 @@
1
1
  - commits:
2
- - subject: Update postgres Docker tag to v17
3
- hash: 2d03a162db08921d8a448438b1e1514c161bb75a
4
- body: |
5
- Update postgres from 16 to 17
2
+ - subject: "Tests: run against compiled source rather than transpiling on the fly"
3
+ hash: cf6351dac10a89633624a5ebf3b1aad29f0ab8ec
4
+ body: ""
6
5
  footer:
7
6
  Change-type: patch
8
7
  change-type: patch
9
- author: balena-renovate[bot]
8
+ author: Pagan Gazzard
10
9
  nested: []
11
10
  version: 19.7.3
12
11
  title: ""
13
- date: 2025-01-02T16:58:15.649Z
12
+ date: 2025-01-03T18:36:42.708Z
14
13
  - commits:
15
14
  - subject: Update dependencies
16
15
  hash: a909ee054f395de407ec4e1275fd0f5b7514fe29
package/CHANGELOG.md CHANGED
@@ -5,9 +5,9 @@ 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-02)
8
+ ## (2025-01-03)
9
9
 
10
- * Update postgres Docker tag to v17 [balena-renovate[bot]]
10
+ * Tests: run against compiled source rather than transpiling on the fly [Pagan Gazzard]
11
11
 
12
12
  # v19.7.2
13
13
  ## (2025-01-02)
@@ -1,7 +1,7 @@
1
1
  version: "2.1"
2
2
  services:
3
3
  postgres:
4
- image: postgres:17-alpine
4
+ image: postgres:16-alpine
5
5
  environment:
6
6
  POSTGRES_USER: docker
7
7
  POSTGRES_PASSWORD: docker
@@ -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-renovate-postgres-17-x-2d03a162db08921d8a448438b1e1514c161bb75a-1",
3
+ "version": "19.7.3-build-tests-cf6351dac10a89633624a5ebf3b1aad29f0ab8ec-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 lint && npm run build && 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 npm run mocha",
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
  },
@@ -147,6 +146,6 @@
147
146
  "recursive": true
148
147
  },
149
148
  "versionist": {
150
- "publishedAt": "2025-01-02T16:58:16.673Z"
149
+ "publishedAt": "2025-01-03T18:36:43.660Z"
151
150
  }
152
151
  }
@@ -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 {}