bajo-common-db 2.3.0 → 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.
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.3.0",
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,9 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-07-12
4
+
5
+ - [2.4.0] Update `driver` to `adapter`
6
+
3
7
  ## 2026-05-11
4
8
 
5
9
  - [2.3.0] Change model ```country.json``` to use the new ```options``` key