apostrophe 4.3.0 → 4.3.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 4.3.1 (2024-05-17)
|
|
4
|
+
|
|
5
|
+
### Fixes
|
|
6
|
+
|
|
7
|
+
* Databases containing documents that no longer correspond to any module no longer cause the migration that adds missing mode properties
|
|
8
|
+
to fail (an issue introduced in version 4.2.0). Databases with no such "orphaned" documents were not affected.
|
|
9
|
+
|
|
3
10
|
## 4.3.0 (2024-05-15)
|
|
4
11
|
|
|
5
12
|
### Adds
|
|
@@ -27,7 +27,7 @@ module.exports = (self) => {
|
|
|
27
27
|
self.apos.migration.add('set-document-modes', async () => {
|
|
28
28
|
return self.apos.migration.eachDoc({}, 5, async (doc) => {
|
|
29
29
|
const manager = self.getManager(doc.type);
|
|
30
|
-
if (!manager
|
|
30
|
+
if (!manager?.isLocalized()) {
|
|
31
31
|
return;
|
|
32
32
|
}
|
|
33
33
|
const idMode = doc._id.split(':').pop(); ;
|