@constructive-io/knative-job-worker 0.5.16 → 0.5.18
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/CHANGELOG.md +8 -0
- package/package.json +5 -5
- package/dist/env.d.ts +0 -20
- package/dist/env.js +0 -28
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.5.18](https://github.com/constructive-io/jobs/compare/@constructive-io/knative-job-worker@0.5.17...@constructive-io/knative-job-worker@0.5.18) (2025-12-24)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @constructive-io/knative-job-worker
|
|
9
|
+
|
|
10
|
+
## [0.5.17](https://github.com/constructive-io/jobs/compare/@constructive-io/knative-job-worker@0.5.16...@constructive-io/knative-job-worker@0.5.17) (2025-12-24)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @constructive-io/knative-job-worker
|
|
13
|
+
|
|
6
14
|
## [0.5.16](https://github.com/constructive-io/jobs/compare/@constructive-io/knative-job-worker@0.5.15...@constructive-io/knative-job-worker@0.5.16) (2025-12-23)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @constructive-io/knative-job-worker
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructive-io/knative-job-worker",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.18",
|
|
4
4
|
"description": "knative job worker",
|
|
5
5
|
"author": "Constructive <developers@constructive.io>",
|
|
6
6
|
"homepage": "https://github.com/constructive-io/jobs/tree/master/packages/knative-job-worker#readme",
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"url": "https://github.com/constructive-io/jobs/issues"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@constructive-io/job-pg": "^0.3.
|
|
36
|
-
"@constructive-io/job-utils": "^0.5.
|
|
35
|
+
"@constructive-io/job-pg": "^0.3.11",
|
|
36
|
+
"@constructive-io/job-utils": "^0.5.6",
|
|
37
37
|
"@pgpmjs/logger": "^1.3.5",
|
|
38
38
|
"pg": "8.16.3",
|
|
39
39
|
"request": "2.88.2"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"pgsql-test": "^2.18.
|
|
42
|
+
"pgsql-test": "^2.18.4"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "fc182ff9e4c4745a3e86eda6d58e3b0061f36564"
|
|
45
45
|
}
|
package/dist/env.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
KNATIVE_SERVICE_URL: string;
|
|
3
|
-
INTERNAL_GATEWAY_DEVELOPMENT_MAP: string;
|
|
4
|
-
PGUSER: string;
|
|
5
|
-
PGHOST: string;
|
|
6
|
-
PGPASSWORD: string;
|
|
7
|
-
PGPORT: number;
|
|
8
|
-
PGDATABASE: string;
|
|
9
|
-
JOBS_SCHEMA: string;
|
|
10
|
-
JOBS_SUPPORT_ANY: boolean;
|
|
11
|
-
JOBS_SUPPORTED: string[];
|
|
12
|
-
HOSTNAME: string;
|
|
13
|
-
INTERNAL_JOBS_CALLBACK_URL: string;
|
|
14
|
-
isDevelopment: boolean;
|
|
15
|
-
isDev: boolean;
|
|
16
|
-
isTest: boolean;
|
|
17
|
-
isProduction: boolean;
|
|
18
|
-
isProd: boolean;
|
|
19
|
-
};
|
|
20
|
-
export default _default;
|
package/dist/env.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const envalid_1 = require("envalid");
|
|
4
|
-
const array = (0, envalid_1.makeValidator)((x) => x.split(',').filter((i) => i), '');
|
|
5
|
-
const baseEnv = (0, envalid_1.cleanEnv)(process.env, {
|
|
6
|
-
PGUSER: (0, envalid_1.str)({ default: 'postgres' }),
|
|
7
|
-
PGHOST: (0, envalid_1.str)({ default: 'localhost' }),
|
|
8
|
-
PGPASSWORD: (0, envalid_1.str)({ default: 'password' }),
|
|
9
|
-
PGPORT: (0, envalid_1.port)({ default: 5432 }),
|
|
10
|
-
PGDATABASE: (0, envalid_1.str)({ default: 'jobs' }),
|
|
11
|
-
JOBS_SCHEMA: (0, envalid_1.str)({ default: 'app_jobs' }),
|
|
12
|
-
JOBS_SUPPORT_ANY: (0, envalid_1.bool)({ default: true }),
|
|
13
|
-
JOBS_SUPPORTED: array({ default: '' }),
|
|
14
|
-
HOSTNAME: (0, envalid_1.str)({
|
|
15
|
-
default: 'worker-0'
|
|
16
|
-
}),
|
|
17
|
-
INTERNAL_JOBS_CALLBACK_URL: (0, envalid_1.url)()
|
|
18
|
-
}, { dotEnvPath: null });
|
|
19
|
-
const KNATIVE_SERVICE_URL = process.env.KNATIVE_SERVICE_URL;
|
|
20
|
-
if (!KNATIVE_SERVICE_URL) {
|
|
21
|
-
throw new Error('KNATIVE_SERVICE_URL (or INTERNAL_GATEWAY_URL as fallback) is required for @launchql/knative-job-worker');
|
|
22
|
-
}
|
|
23
|
-
const INTERNAL_GATEWAY_DEVELOPMENT_MAP = process.env.INTERNAL_GATEWAY_DEVELOPMENT_MAP;
|
|
24
|
-
exports.default = {
|
|
25
|
-
...baseEnv,
|
|
26
|
-
KNATIVE_SERVICE_URL,
|
|
27
|
-
INTERNAL_GATEWAY_DEVELOPMENT_MAP
|
|
28
|
-
};
|