@balena/pinejs 15.0.0 → 15.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,15 @@
1
+ - commits:
2
+ - subject: "Migrations.md: Add marking the sbvr field as optional on the 2nd deploy"
3
+ hash: d6d0ded8eccc6eadb2492f4697918cf0afd00215
4
+ body: ""
5
+ footer:
6
+ Change-type: patch
7
+ change-type: patch
8
+ author: Thodoris Greasidis
9
+ nested: []
10
+ version: 15.0.1
11
+ title: ""
12
+ date: 2023-05-18T16:00:09.061Z
1
13
  - commits:
2
14
  - subject: Stop re-exporting `ODataRequest` as `HookRequest`
3
15
  hash: 8df1d5c94bd19f5f347c1bf3e91cb5c8ac95f5f0
@@ -1160,7 +1172,7 @@
1160
1172
  date: 2023-04-26T15:00:16.169Z
1161
1173
  version: 15.0.0
1162
1174
  title: ""
1163
- date: 2023-05-17T09:05:25.246Z
1175
+ date: 2023-05-17T11:20:05.997Z
1164
1176
  - commits:
1165
1177
  - subject: Update async migration function typing to also accept `Promise<number>`
1166
1178
  hash: dc2bd3ac16550009cf9732913ad0cfbb64ad92f2
package/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@ 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
+ # v15.0.1
8
+ ## (2023-05-18)
9
+
10
+ * Migrations.md: Add marking the sbvr field as optional on the 2nd deploy [Thodoris Greasidis]
11
+
7
12
  # v15.0.0
8
13
  ## (2023-05-17)
9
14
 
package/VERSION CHANGED
@@ -1 +1 @@
1
- 15.0.0
1
+ 15.0.1
@@ -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
- - 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.
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
- - 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.
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
- - Update the service's implementation to stop settings the old column and remove it from the sbvr.
80
- - Make the old field NULLable if it isn't.
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
- - Delete the old column with a sync migration.
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": "15.0.0",
3
+ "version": "15.0.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-17T09:05:27.152Z"
137
+ "publishedAt": "2023-05-18T16:00:09.855Z"
138
138
  }
139
139
  }