dobo 2.32.0 → 2.33.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.
@@ -234,5 +234,3 @@
234
234
  * @param {DoboModel.TResultGetRecord} result - The result of the get operation
235
235
  * @param {DoboModel.TOptions} options - The options object
236
236
  */
237
-
238
- export default {}
@@ -252,6 +252,54 @@ async function modelFactory () {
252
252
  * @type {string}
253
253
  */
254
254
  this.adapter = this.connection.adapter
255
+
256
+ this.bindThis(
257
+ build,
258
+ exists,
259
+ drop,
260
+
261
+ createRecord,
262
+ getRecord,
263
+ updateRecord,
264
+ upsertRecord,
265
+ removeRecord,
266
+ clearRecord,
267
+ findRecord,
268
+ findOneRecord,
269
+ findAllRecord,
270
+
271
+ transaction,
272
+ bulkCreateRecord,
273
+
274
+ createAggregate,
275
+ createHistogram,
276
+ countRecord,
277
+
278
+ createAttachment,
279
+ getAttachment,
280
+ updateAttachment,
281
+ removeAttachment,
282
+ findAttachment,
283
+ listAttachment,
284
+
285
+ loadFixtures,
286
+ sanitizeRecord,
287
+ sanitizeBody,
288
+ sanitizeFixture,
289
+ validate
290
+ )
291
+
292
+ // aliases
293
+ this.deleteRecord = this.removeRecord
294
+ this.clearRecords = this.clearRecord
295
+ this.countRecords = this.countRecord
296
+ this.findRecords = this.findRecord
297
+ this.findAllRecords = this.findAllRecord
298
+ this.listAttachments = this.listAttachment
299
+ this.bulkCreateRecords = this.bulkCreateRecord
300
+
301
+ this.getField = this.getProperty
302
+ this.hasField = this.hasProperty
255
303
  }
256
304
 
257
305
  /**
@@ -441,52 +489,6 @@ async function modelFactory () {
441
489
  })
442
490
  }
443
491
 
444
- build = build
445
- exists = exists
446
- drop = drop
447
-
448
- createRecord = createRecord
449
- getRecord = getRecord
450
- updateRecord = updateRecord
451
- upsertRecord = upsertRecord
452
- removeRecord = removeRecord
453
- clearRecord = clearRecord
454
- findRecord = findRecord
455
- findOneRecord = findOneRecord
456
- findAllRecord = findAllRecord
457
-
458
- transaction = transaction
459
- bulkCreateRecord = bulkCreateRecord
460
-
461
- createAggregate = createAggregate
462
- createHistogram = createHistogram
463
- countRecord = countRecord
464
-
465
- createAttachment = createAttachment
466
- getAttachment = getAttachment
467
- updateAttachment = updateAttachment
468
- removeAttachment = removeAttachment
469
- findAttachment = findAttachment
470
- listAttachment = listAttachment
471
-
472
- loadFixtures = loadFixtures
473
- sanitizeRecord = sanitizeRecord
474
- sanitizeBody = sanitizeBody
475
- sanitizeFixture = sanitizeFixture
476
- validate = validate
477
-
478
- // aliases
479
- deleteRecord = removeRecord
480
- clearRecords = clearRecord
481
- countRecords = countRecord
482
- findRecords = findRecord
483
- findAllRecords = findAllRecord
484
- listAttachments = listAttachment
485
- bulkCreateRecords = bulkCreateRecord
486
-
487
- getField = (name) => this.getProperty(name)
488
- hasField = (name) => this.hasProperty(name)
489
-
490
492
  dispose = async () => {
491
493
  await super.dispose()
492
494
  this.connection = null
package/lib/helper.js CHANGED
@@ -329,7 +329,7 @@ export async function collectModels () {
329
329
  const { pascalCase } = this.app.lib.aneka
330
330
  const { isPlainObject, isEmpty, isArray } = this.app.lib._
331
331
 
332
- let items = await readConfig(file, { ns: this.ns, baseNs: me.ns, merge: true })
332
+ let items = await readConfig(file, { ns: this.ns, baseNs: me.ns, merge: 'concat' })
333
333
  if (isEmpty(items)) return undefined
334
334
  if (isPlainObject(items)) {
335
335
  items.baseName = items.baseName ?? path.basename(file, path.extname(file))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dobo",
3
- "version": "2.32.0",
3
+ "version": "2.33.0",
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-24
4
+
5
+ - [2.33.0] Change `selfBind` to `bindThis`
6
+
3
7
  ## 2026-07-12
4
8
 
5
9
  - [2.32.0] Change `driver` to `adapter`