bajo-common-db 2.2.2 → 2.4.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.
@@ -12,5 +12,8 @@
12
12
  "bbox,array"
13
13
  ],
14
14
  "disabled": "readonly",
15
- "attachment": false
15
+ "options": {
16
+ "attachment": false,
17
+ "persistence": false
18
+ }
16
19
  }
package/index.js CHANGED
@@ -26,7 +26,7 @@ async function factory (pkgName) {
26
26
  const head = parseInt(mmsi.slice(0, 3))
27
27
  const instance = this.app.dobo.getModel('CdbCountry', true)
28
28
  if (!instance) return
29
- const country = instance.driver.storage.CdbCountry.find(item => (item.mmsi ?? []).includes(head))
29
+ const country = instance.adapter.storage.CdbCountry.find(item => (item.mmsi ?? []).includes(head))
30
30
  if (returnRec) return country
31
31
  return country ? country._id : undefined
32
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bajo-common-db",
3
- "version": "2.2.2",
3
+ "version": "2.4.0",
4
4
  "description": "Common Database for Bajo Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-07-12
4
+
5
+ - [2.4.0] Update `driver` to `adapter`
6
+
7
+ ## 2026-05-11
8
+
9
+ - [2.3.0] Change model ```country.json``` to use the new ```options``` key
10
+
3
11
  ## 2026-01-19
4
12
 
5
13
  - [2.2.2] Add some missing translations