@balena/pinejs 18.2.5 → 18.2.6-build-bump-ts-5-6-2-b9b80e9eafc9a7becf6d33b0eba760ec0cf06665-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.
- package/.pinejs-cache.json +1 -1
- package/.versionbot/CHANGELOG.yml +21 -1
- package/CHANGELOG.md +7 -1
- package/VERSION +1 -1
- package/build/browser.ts +31 -18
- package/build/config.ts +11 -8
- package/build/module.ts +18 -14
- package/build/server.ts +13 -9
- package/package.json +3 -3
@@ -1,3 +1,23 @@
|
|
1
|
+
- commits:
|
2
|
+
- subject: Fix linting issues with latest dependencies
|
3
|
+
hash: b9b80e9eafc9a7becf6d33b0eba760ec0cf06665
|
4
|
+
body: ""
|
5
|
+
footer:
|
6
|
+
Change-type: patch
|
7
|
+
change-type: patch
|
8
|
+
author: Thodoris Greasidis
|
9
|
+
nested: []
|
10
|
+
- subject: Update TypeScript to 5.6.2
|
11
|
+
hash: a96107141315d64f6d3fa4fe227243c80351af1a
|
12
|
+
body: ""
|
13
|
+
footer:
|
14
|
+
Change-type: patch
|
15
|
+
change-type: patch
|
16
|
+
author: Thodoris Greasidis
|
17
|
+
nested: []
|
18
|
+
version: 18.2.6
|
19
|
+
title: ""
|
20
|
+
date: 2024-09-10T14:22:36.135Z
|
1
21
|
- commits:
|
2
22
|
- subject: Update dependency commander to v12
|
3
23
|
hash: eb10dbdcd80ce05ad65f9b7c47542d3ee8f3fe38
|
@@ -10,7 +30,7 @@
|
|
10
30
|
nested: []
|
11
31
|
version: 18.2.5
|
12
32
|
title: ""
|
13
|
-
date: 2024-09-
|
33
|
+
date: 2024-09-10T09:37:14.400Z
|
14
34
|
- commits:
|
15
35
|
- subject: "Tests: update nodejs to 20.x matching the minimum supported version"
|
16
36
|
hash: 0ae61c069bd857428a7be988b780f6e838faec35
|
package/CHANGELOG.md
CHANGED
@@ -4,8 +4,14 @@ All notable changes to this project will be documented in this file
|
|
4
4
|
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
|
5
5
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
6
6
|
|
7
|
+
# v18.2.6
|
8
|
+
## (2024-09-10)
|
9
|
+
|
10
|
+
* Fix linting issues with latest dependencies [Thodoris Greasidis]
|
11
|
+
* Update TypeScript to 5.6.2 [Thodoris Greasidis]
|
12
|
+
|
7
13
|
# v18.2.5
|
8
|
-
## (2024-09-
|
14
|
+
## (2024-09-10)
|
9
15
|
|
10
16
|
* Update dependency commander to v12 [Self-hosted Renovate Bot]
|
11
17
|
|
package/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
18.2.
|
1
|
+
18.2.6
|
package/build/browser.ts
CHANGED
@@ -1,26 +1,39 @@
|
|
1
1
|
import * as webpack from 'webpack';
|
2
|
+
import type { Configuration } from 'webpack';
|
2
3
|
import sharedConfig from './config';
|
3
|
-
const config = { ...sharedConfig };
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
config.externals['express'] = false;
|
10
|
-
config.resolve.alias ??= {};
|
11
|
-
const resolveAlias = config.resolve.alias;
|
12
|
-
if (Array.isArray(resolveAlias)) {
|
5
|
+
if (typeof sharedConfig.externals !== 'object') {
|
6
|
+
throw new Error('Expected externals to be an object');
|
7
|
+
}
|
8
|
+
if (Array.isArray(sharedConfig.resolve.alias)) {
|
13
9
|
throw new Error('Expected resolve.alias to be an object');
|
14
10
|
}
|
15
|
-
resolveAlias.express = `${root}/src/express-emulator/express`;
|
16
11
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
12
|
+
const root = sharedConfig.entry;
|
13
|
+
const config: Configuration = {
|
14
|
+
...sharedConfig,
|
15
|
+
entry: `${root}/src/server-glue/server`,
|
16
|
+
externals: {
|
17
|
+
...sharedConfig.externals,
|
18
|
+
// Disable node express and load express-emulator instead
|
19
|
+
express: false,
|
20
|
+
},
|
21
|
+
resolve: {
|
22
|
+
...sharedConfig.resolve,
|
23
|
+
alias: {
|
24
|
+
...sharedConfig.resolve.alias,
|
25
|
+
express: `${root}/src/express-emulator/express`,
|
26
|
+
},
|
27
|
+
},
|
28
|
+
plugins: [
|
29
|
+
...sharedConfig.plugins,
|
30
|
+
new webpack.DefinePlugin({
|
31
|
+
'process.browser': true,
|
32
|
+
'process.env.CONFIG_LOADER_DISABLED': true,
|
33
|
+
'process.env.PINEJS_DEBUG': true,
|
34
|
+
'process.env.SBVR_SERVER_ENABLED': true,
|
35
|
+
}),
|
36
|
+
],
|
37
|
+
};
|
25
38
|
|
26
39
|
export default config;
|
package/build/config.ts
CHANGED
@@ -2,9 +2,17 @@ import type { RequiredField } from '../src/sbvr-api/common-types';
|
|
2
2
|
|
3
3
|
import * as path from 'path';
|
4
4
|
import * as webpack from 'webpack';
|
5
|
+
import type { Configuration } from 'webpack';
|
5
6
|
const root = path.dirname(__dirname);
|
6
7
|
|
7
|
-
|
8
|
+
const config: RequiredField<
|
9
|
+
Configuration,
|
10
|
+
'plugins' | 'resolve' | 'externals'
|
11
|
+
> & {
|
12
|
+
externals: {
|
13
|
+
[index: string]: string | boolean | string[] | { [index: string]: any };
|
14
|
+
};
|
15
|
+
} = {
|
8
16
|
mode: 'production',
|
9
17
|
devtool: 'source-map',
|
10
18
|
entry: root,
|
@@ -58,11 +66,6 @@ export default {
|
|
58
66
|
},
|
59
67
|
],
|
60
68
|
},
|
61
|
-
} as RequiredField<
|
62
|
-
webpack.Configuration,
|
63
|
-
'plugins' | 'resolve' | 'externals'
|
64
|
-
> & {
|
65
|
-
externals: {
|
66
|
-
[index: string]: string | boolean | string[] | { [index: string]: any };
|
67
|
-
};
|
68
69
|
};
|
70
|
+
|
71
|
+
export default config;
|
package/build/module.ts
CHANGED
@@ -1,20 +1,24 @@
|
|
1
1
|
import * as webpack from 'webpack';
|
2
|
+
import type { Configuration } from 'webpack';
|
2
3
|
import sharedConfig from './config';
|
3
|
-
const config = { ...sharedConfig };
|
4
4
|
|
5
|
-
config
|
6
|
-
|
7
|
-
|
8
|
-
|
5
|
+
const config: Configuration = {
|
6
|
+
...sharedConfig,
|
7
|
+
entry: `${sharedConfig.entry}/src/server-glue/module`,
|
8
|
+
plugins: [
|
9
|
+
...sharedConfig.plugins,
|
10
|
+
new webpack.DefinePlugin({
|
11
|
+
'process.browser': false,
|
9
12
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
13
|
+
'process.env.CONFIG_LOADER_DISABLED': false,
|
14
|
+
'process.env.SBVR_SERVER_ENABLED': false,
|
15
|
+
}),
|
16
|
+
// When we're compiling the module build we want to always ignore the server build file
|
17
|
+
new webpack.IgnorePlugin({
|
18
|
+
resourceRegExp: /server/,
|
19
|
+
contextRegExp: /server-glue/,
|
20
|
+
}),
|
21
|
+
],
|
22
|
+
};
|
19
23
|
|
20
24
|
export default config;
|
package/build/server.ts
CHANGED
@@ -1,15 +1,19 @@
|
|
1
1
|
import * as webpack from 'webpack';
|
2
|
+
import type { Configuration } from 'webpack';
|
2
3
|
import sharedConfig from './config';
|
3
|
-
const config = { ...sharedConfig };
|
4
4
|
|
5
|
-
config
|
6
|
-
|
7
|
-
|
8
|
-
|
5
|
+
const config: Configuration = {
|
6
|
+
...sharedConfig,
|
7
|
+
entry: `${sharedConfig.entry}/src/server-glue/server`,
|
8
|
+
plugins: [
|
9
|
+
...sharedConfig.plugins,
|
10
|
+
new webpack.DefinePlugin({
|
11
|
+
'process.browser': false,
|
9
12
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
13
|
+
'process.env.CONFIG_LOADER_DISABLED': false,
|
14
|
+
'process.env.SBVR_SERVER_ENABLED': false,
|
15
|
+
}),
|
16
|
+
],
|
17
|
+
};
|
14
18
|
|
15
19
|
export default config;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@balena/pinejs",
|
3
|
-
"version": "18.2.5",
|
3
|
+
"version": "18.2.6-build-bump-ts-5-6-2-b9b80e9eafc9a7becf6d33b0eba760ec0cf06665-1",
|
4
4
|
"main": "out/server-glue/module",
|
5
5
|
"type": "commonjs",
|
6
6
|
"repository": "git@github.com:balena-io/pinejs.git",
|
@@ -104,7 +104,7 @@
|
|
104
104
|
"terser-webpack-plugin": "^5.3.10",
|
105
105
|
"ts-loader": "^9.5.1",
|
106
106
|
"ts-node": "^10.9.2",
|
107
|
-
"typescript": "^5.
|
107
|
+
"typescript": "^5.6.2",
|
108
108
|
"webpack": "^5.94.0",
|
109
109
|
"webpack-dev-server": "^4.15.2"
|
110
110
|
},
|
@@ -147,6 +147,6 @@
|
|
147
147
|
"recursive": true
|
148
148
|
},
|
149
149
|
"versionist": {
|
150
|
-
"publishedAt": "2024-09-
|
150
|
+
"publishedAt": "2024-09-10T14:22:36.970Z"
|
151
151
|
}
|
152
152
|
}
|