dobo 2.8.1 → 2.8.2

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
@@ -46,7 +46,7 @@ const propertyType = {
46
46
  text: {
47
47
  validator: 'string',
48
48
  textType: 'text',
49
- values: ['text', 'mediumtext', 'longtext'],
49
+ // values: ['text', 'mediumtext', 'longtext'], TODO: should check against textType, NOT value
50
50
  rules: []
51
51
  },
52
52
  string: {
@@ -302,11 +302,12 @@ async function collectModels () {
302
302
  await eachPlugins(async function ({ file }) {
303
303
  const { readConfig } = this.app.bajo
304
304
  const { pascalCase } = this.app.lib.aneka
305
- const { isPlainObject } = this.app.lib._
305
+ const { isPlainObject, isEmpty } = this.app.lib._
306
306
 
307
307
  const base = path.basename(file, path.extname(file))
308
308
  const defName = pascalCase(`${this.alias} ${base}`)
309
309
  const item = await readConfig(file, { ns: this.ns, ignoreError: true })
310
+ if (isEmpty(item)) return undefined
310
311
  if (!isPlainObject(item)) me.fatal('invalidModel%s', defName)
311
312
  item.name = item.name ?? defName
312
313
  item.collName = item.collName ?? item.name
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dobo",
3
- "version": "2.8.1",
3
+ "version": "2.8.2",
4
4
  "description": "DBMS for Bajo Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-02-24
4
+
5
+ - [2.8.2] Bug fix on field type ```textType```
6
+ - [2.8.2] Bug fix on ```collect-models.js``` when empty model is returned
7
+
3
8
  ## 2026-02-23
4
9
 
5
10
  - [2.8.1] Bug fix on ```memory._getCursor()```