@balena/pinejs 16.0.0-build-renovate-node-20-x-ba5db999df6267900e19cbd213447cb7db83dbe8-1 → 16.0.0-build-renovate-node-20-x-d79b2b45bb292dd4060d5da181ca5406957e13e7-1
Sign up to get free protection for your applications and to get access to all the features.
- package/.versionbot/CHANGELOG.yml +15 -3
- package/CHANGELOG.md +7 -2
- package/docs/Migrations.md +13 -13
- package/package.json +2 -2
@@ -1,16 +1,28 @@
|
|
1
1
|
- commits:
|
2
2
|
- subject: Update Node.js to v20
|
3
|
-
hash:
|
3
|
+
hash: d79b2b45bb292dd4060d5da181ca5406957e13e7
|
4
4
|
body: |
|
5
5
|
Update node from 16 to 20
|
6
6
|
footer:
|
7
7
|
Change-type: major
|
8
8
|
change-type: major
|
9
|
-
author: Renovate Bot
|
9
|
+
author: Self-hosted Renovate Bot
|
10
10
|
nested: []
|
11
11
|
version: 16.0.0
|
12
12
|
title: ""
|
13
|
-
date: 2023-05-
|
13
|
+
date: 2023-05-30T16:05:31.921Z
|
14
|
+
- commits:
|
15
|
+
- subject: "Migrations.md: Add marking the sbvr field as optional on the 2nd deploy"
|
16
|
+
hash: d6d0ded8eccc6eadb2492f4697918cf0afd00215
|
17
|
+
body: ""
|
18
|
+
footer:
|
19
|
+
Change-type: patch
|
20
|
+
change-type: patch
|
21
|
+
author: Thodoris Greasidis
|
22
|
+
nested: []
|
23
|
+
version: 15.0.1
|
24
|
+
title: ""
|
25
|
+
date: 2023-05-23T09:41:23.575Z
|
14
26
|
- commits:
|
15
27
|
- subject: Stop re-exporting `ODataRequest` as `HookRequest`
|
16
28
|
hash: 8df1d5c94bd19f5f347c1bf3e91cb5c8ac95f5f0
|
package/CHANGELOG.md
CHANGED
@@ -5,9 +5,14 @@ automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
|
|
5
5
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
6
6
|
|
7
7
|
# v16.0.0
|
8
|
-
## (2023-05-
|
8
|
+
## (2023-05-30)
|
9
|
+
|
10
|
+
* Update Node.js to v20 [Self-hosted Renovate Bot]
|
11
|
+
|
12
|
+
# v15.0.1
|
13
|
+
## (2023-05-23)
|
9
14
|
|
10
|
-
*
|
15
|
+
* Migrations.md: Add marking the sbvr field as optional on the 2nd deploy [Thodoris Greasidis]
|
11
16
|
|
12
17
|
# v15.0.0
|
13
18
|
## (2023-05-17)
|
package/docs/Migrations.md
CHANGED
@@ -67,20 +67,20 @@ The async migration query must have a `LIMIT` statement to limit the maximum num
|
|
67
67
|
|
68
68
|
### Async migration procedure
|
69
69
|
* Deployment 1
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
70
|
+
- Add new column (with independent sync migration) to contain new data and add code accessing the new column.
|
71
|
+
- Update the service's implementation to set both the old & new column on each write.
|
72
|
+
- The service's implementation should only read the old column since the async migration still migrates data from old column to new column.
|
73
|
+
- Async migrator runs forever.
|
74
74
|
* Deployment 2
|
75
|
-
|
76
|
-
|
77
|
-
|
75
|
+
- Finalize async migration => only sync migration part gets executed.
|
76
|
+
- Sync migration migrates all left over data from old column to new column.
|
77
|
+
- Update the service's implementation to only read the new column, but still write the old one as well.
|
78
|
+
- Mark the old field as optional in the sbvr if it isn't, or set a default value for it.
|
78
79
|
* Deployment 3
|
79
|
-
|
80
|
-
|
80
|
+
- Update the service's implementation to stop settings the old column and remove it from the sbvr.
|
81
|
+
- Make the old field NULLable if it isn't.
|
81
82
|
* Deployment 4
|
82
|
-
|
83
|
-
-
|
83
|
+
- Delete the old column with a sync migration.
|
84
84
|
|
85
85
|
### TS migration file format with SQL query string
|
86
86
|
|
@@ -125,7 +125,7 @@ export = {
|
|
125
125
|
WHERE "device"."name" <> "device"."note" OR "device"."note" IS NULL
|
126
126
|
LIMIT ${options.batchSize}
|
127
127
|
);
|
128
|
-
|
128
|
+
`;
|
129
129
|
|
130
130
|
return await tx.executeSql(staticSql);
|
131
131
|
},
|
@@ -134,7 +134,7 @@ export = {
|
|
134
134
|
UPDATE "device"
|
135
135
|
SET "note" = "device"."name"
|
136
136
|
WHERE "device"."name" <> "device"."note" OR "device"."note" IS NULL;
|
137
|
-
|
137
|
+
`;
|
138
138
|
|
139
139
|
await tx.executeSql(staticSql);
|
140
140
|
},
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@balena/pinejs",
|
3
|
-
"version": "16.0.0-build-renovate-node-20-x-
|
3
|
+
"version": "16.0.0-build-renovate-node-20-x-d79b2b45bb292dd4060d5da181ca5406957e13e7-1",
|
4
4
|
"main": "out/server-glue/module",
|
5
5
|
"repository": "git@github.com:balena-io/pinejs.git",
|
6
6
|
"license": "Apache-2.0",
|
@@ -134,6 +134,6 @@
|
|
134
134
|
"recursive": true
|
135
135
|
},
|
136
136
|
"versionist": {
|
137
|
-
"publishedAt": "2023-05-
|
137
|
+
"publishedAt": "2023-05-30T16:05:32.730Z"
|
138
138
|
}
|
139
139
|
}
|