create-platformatic 0.40.0 → 0.41.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 +4 -4
- package/src/composer/README.md +1 -1
- package/src/create-package-json.mjs +1 -1
- package/src/db/README.md +1 -1
- package/src/runtime/README.md +1 -1
- package/src/service/README.md +1 -1
- package/src/utils.mjs +1 -1
- package/test/utils.test.mjs +22 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-platformatic",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.41.0",
|
|
4
4
|
"description": "Create platformatic-db interactive tool",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"semver": "^7.5.1",
|
|
35
35
|
"undici": "^5.22.1",
|
|
36
36
|
"which": "^3.0.1",
|
|
37
|
-
"@platformatic/config": "0.
|
|
37
|
+
"@platformatic/config": "0.41.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"ajv": "^8.12.0",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"tap": "^16.3.6",
|
|
48
48
|
"typescript": "~5.2.0",
|
|
49
49
|
"yaml": "^2.3.1",
|
|
50
|
-
"@platformatic/db": "0.
|
|
51
|
-
"@platformatic/service": "0.
|
|
50
|
+
"@platformatic/db": "0.41.0",
|
|
51
|
+
"@platformatic/service": "0.41.0"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"test": "standard | snazzy && cross-env NODE_OPTIONS=\"--loader=esmock --no-warnings\" c8 tap --no-coverage test/*test.mjs test/*/*test.mjs",
|
package/src/composer/README.md
CHANGED
|
@@ -5,7 +5,7 @@ This is a generated [Platformatic Composer](https://docs.platformatic.dev/docs/r
|
|
|
5
5
|
## Requirements
|
|
6
6
|
|
|
7
7
|
Platformatic supports macOS, Linux and Windows ([WSL](https://docs.microsoft.com/windows/wsl/) recommended).
|
|
8
|
-
You'll need to have [Node.js](https://nodejs.org/) >= v18.8.0
|
|
8
|
+
You'll need to have [Node.js](https://nodejs.org/) >= v18.8.0 or >= v20.6.0
|
|
9
9
|
|
|
10
10
|
## Setup
|
|
11
11
|
|
package/src/db/README.md
CHANGED
|
@@ -5,7 +5,7 @@ This is a generated [Platformatic DB](https://docs.platformatic.dev/docs/referen
|
|
|
5
5
|
## Requirements
|
|
6
6
|
|
|
7
7
|
Platformatic supports macOS, Linux and Windows ([WSL](https://docs.microsoft.com/windows/wsl/) recommended).
|
|
8
|
-
You'll need to have [Node.js](https://nodejs.org/) >= v18.8.0
|
|
8
|
+
You'll need to have [Node.js](https://nodejs.org/) >= v18.8.0 or >= v20.6.0
|
|
9
9
|
|
|
10
10
|
## Setup
|
|
11
11
|
|
package/src/runtime/README.md
CHANGED
|
@@ -5,7 +5,7 @@ This is a generated [Platformatic Runtime](https://docs.platformatic.dev/docs/re
|
|
|
5
5
|
## Requirements
|
|
6
6
|
|
|
7
7
|
Platformatic supports macOS, Linux and Windows ([WSL](https://docs.microsoft.com/windows/wsl/) recommended).
|
|
8
|
-
You'll need to have [Node.js](https://nodejs.org/) >= v18.8.0
|
|
8
|
+
You'll need to have [Node.js](https://nodejs.org/) >= v18.8.0 or >= v20.6.0
|
|
9
9
|
|
|
10
10
|
## Setup
|
|
11
11
|
|
package/src/service/README.md
CHANGED
|
@@ -5,7 +5,7 @@ This is a generated [Platformatic Service](https://docs.platformatic.dev/docs/re
|
|
|
5
5
|
## Requirements
|
|
6
6
|
|
|
7
7
|
Platformatic supports macOS, Linux and Windows ([WSL](https://docs.microsoft.com/windows/wsl/) recommended).
|
|
8
|
-
You'll need to have [Node.js](https://nodejs.org/) >= v18.8.0
|
|
8
|
+
You'll need to have [Node.js](https://nodejs.org/) >= v18.8.0 or >= v20.6.0
|
|
9
9
|
|
|
10
10
|
## Setup
|
|
11
11
|
|
package/src/utils.mjs
CHANGED
|
@@ -92,7 +92,7 @@ export const getDependencyVersion = async (dependencyName) => {
|
|
|
92
92
|
return packageJson.version
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
export const minimumSupportedNodeVersions = ['18.8.0', '
|
|
95
|
+
export const minimumSupportedNodeVersions = ['18.8.0', '20.6.0']
|
|
96
96
|
|
|
97
97
|
export const isCurrentVersionSupported = (currentVersion) => {
|
|
98
98
|
// TODO: add try/catch if some unsupported node version is passed
|
package/test/utils.test.mjs
CHANGED
|
@@ -220,25 +220,40 @@ test('isCurrentVersionSupported', async ({ equal }) => {
|
|
|
220
220
|
equal(supported, true)
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
-
// node version
|
|
224
|
-
const { major: major19, minor: minor19, patch: patch19 } = semver.minVersion(minimumSupportedNodeVersions[1])
|
|
223
|
+
// node version 20 test, to check greater and lesser major version
|
|
225
224
|
{
|
|
226
225
|
// v18.0.0 is not supported
|
|
227
|
-
const nodeVersion =
|
|
226
|
+
const nodeVersion = '18.0.0'
|
|
228
227
|
const supported = isCurrentVersionSupported(nodeVersion)
|
|
229
228
|
equal(supported, false)
|
|
230
229
|
}
|
|
231
230
|
{
|
|
232
|
-
//
|
|
233
|
-
const nodeVersion =
|
|
231
|
+
// v18.8.0 is supported
|
|
232
|
+
const nodeVersion = '18.8.0'
|
|
234
233
|
const supported = isCurrentVersionSupported(nodeVersion)
|
|
234
|
+
equal(supported, true)
|
|
235
|
+
}
|
|
236
|
+
{
|
|
237
|
+
// v20.5.1 is not supported
|
|
238
|
+
const supported = isCurrentVersionSupported('20.5.1')
|
|
235
239
|
equal(supported, false)
|
|
236
240
|
}
|
|
237
241
|
{
|
|
238
|
-
//
|
|
239
|
-
const
|
|
242
|
+
// v20.6.0 is supported
|
|
243
|
+
const nodeVersion = '20.6.0'
|
|
244
|
+
const supported = isCurrentVersionSupported(nodeVersion)
|
|
240
245
|
equal(supported, true)
|
|
241
246
|
}
|
|
247
|
+
{
|
|
248
|
+
// v19.0.0 is not supported
|
|
249
|
+
const supported = isCurrentVersionSupported('19.0.0')
|
|
250
|
+
equal(supported, false)
|
|
251
|
+
}
|
|
252
|
+
{
|
|
253
|
+
// v19.9.0 is not supported
|
|
254
|
+
const supported = isCurrentVersionSupported('19.9.0')
|
|
255
|
+
equal(supported, false)
|
|
256
|
+
}
|
|
242
257
|
for (const version of minimumSupportedNodeVersions) {
|
|
243
258
|
const supported = isCurrentVersionSupported(version)
|
|
244
259
|
equal(supported, true)
|