dobo 2.34.0 → 2.34.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.
@@ -193,7 +193,7 @@ async function adapterFactory () {
193
193
  if (prop.type === 'datetime') {
194
194
  const dt = this.useUtc ? dayjs.utc(item[prop.name]) : dayjs(item[prop.name])
195
195
  item[prop.name] = dt.toDate()
196
- } else if (['object', 'array'].includes(prop.type)) item[prop.name] = JSON.parse(item[prop.name])
196
+ } else if (isString(item[prop.name]) && ['object', 'array'].includes(prop.type)) item[prop.name] = JSON.parse(item[prop.name])
197
197
  } catch (err) {
198
198
  item[prop.name] = null
199
199
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dobo",
3
- "version": "2.34.0",
3
+ "version": "2.34.1",
4
4
  "description": "DBMS 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-28
4
+
5
+ - [2.34.1] Bug fix in `adapter.sanitizeRecord()`
6
+
3
7
  ## 2026-07-26
4
8
 
5
9
  - [2.34.0] Add `options.i18n` to `model.sanitizeRecord()`