dobo 2.9.2 → 2.9.3

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.
@@ -7,14 +7,14 @@ async function native (filter, options, dataOnly) {
7
7
  if (dataOnly) options.count = false
8
8
  let { noResultSanitizer, noCache } = options
9
9
  if (!this.cacheable) noCache = true
10
- await execHook.call(this, 'beforeFindAllRecord', filter, options)
11
- await execModelHook.call(this, 'beforeFindAllRecord', filter, options)
12
- await execDynHook.call(this, 'beforeFindAllRecord', filter, options)
10
+ await execHook.call(this, 'beforeFindRecord', filter, options)
11
+ await execModelHook.call(this, 'beforeFindRecord', filter, options)
12
+ await execDynHook.call(this, 'beforeFindRecord', filter, options)
13
13
  if (get && !noCache && !options.record) {
14
14
  const cachedResult = await get({ model: this.name, filter, options })
15
15
  if (cachedResult) {
16
16
  cachedResult.cached = true
17
- await execModelHook.call(this, 'afterFindAllRecord', filter, cachedResult, options)
17
+ await execModelHook.call(this, 'afterFindRecord', filter, cachedResult, options)
18
18
  return dataOnly ? cachedResult.data : cachedResult
19
19
  }
20
20
  }
@@ -25,9 +25,9 @@ async function native (filter, options, dataOnly) {
25
25
  }
26
26
  }
27
27
  if (isSet(options.refs)) await getMultiRefs.call(this, result.data, options)
28
- await execDynHook.call(this, 'beforeCreateRecord', filter, result, options)
29
- await execModelHook.call(this, 'afterFindAllRecord', filter, result, options)
30
- await execHook.call(this, 'afterFindAllRecord', filter, result, options)
28
+ await execDynHook.call(this, 'afterFindRecord', filter, result, options)
29
+ await execModelHook.call(this, 'afterFindRecord', filter, result, options)
30
+ await execHook.call(this, 'afterFindRecord', filter, result, options)
31
31
  if (set && !noCache) await set({ model: this.name, filter, options, result })
32
32
  return dataOnly ? result.data : result
33
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dobo",
3
- "version": "2.9.2",
3
+ "version": "2.9.3",
4
4
  "description": "DBMS for Bajo Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -1,13 +1,17 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-03-09
4
+
5
+ - [2.9.3] Bug fix in ```findAllRecord```
6
+
3
7
  ## 2026-03-07
4
8
 
5
- - [2.9.2] Bug fix on ```model.loadFixtures()```
6
- - [2.9.2] Bug fix on ```collect-connections.js```
9
+ - [2.9.2] Bug fix in ```model.loadFixtures()```
10
+ - [2.9.2] Bug fix in ```collect-connections.js```
7
11
 
8
12
  ## 2026-03-06
9
13
 
10
- - [2.9.1] Bug fix on ```model.sanitizeBody()```
14
+ - [2.9.1] Bug fix in ```model.sanitizeBody()```
11
15
 
12
16
  ## 2026-03-05
13
17
 
@@ -17,17 +21,17 @@
17
21
 
18
22
  ## 2026-02-25
19
23
 
20
- - [2.8.3] Bug fix on attachment route
24
+ - [2.8.3] Bug fix in attachment route
21
25
 
22
26
  ## 2026-02-24
23
27
 
24
- - [2.8.2] Bug fix on field type ```textType```
25
- - [2.8.2] Bug fix on ```collect-models.js``` when empty model is returned
28
+ - [2.8.2] Bug fix in field type ```textType```
29
+ - [2.8.2] Bug fix in ```collect-models.js``` when empty model is returned
26
30
 
27
31
  ## 2026-02-23
28
32
 
29
- - [2.8.1] Bug fix on ```memory._getCursor()```
30
- - [2.8.1] Bug fix on ```model.upsertRecord()```
33
+ - [2.8.1] Bug fix in ```memory._getCursor()```
34
+ - [2.8.1] Bug fix in ```model.upsertRecord()```
31
35
 
32
36
  ## 2026-02-22
33
37
 
@@ -42,21 +46,21 @@
42
46
 
43
47
  ## 2026-02-17
44
48
 
45
- - [2.6.5] Bug fix on model extender
46
- - [2.6.5] Bug fix on trace logging
47
- - [2.6.6] Bug fix on extender indexes
49
+ - [2.6.5] Bug fix in model extender
50
+ - [2.6.5] Bug fix in trace logging
51
+ - [2.6.6] Bug fix in extender indexes
48
52
 
49
53
  ## 2026-02-05
50
54
 
51
- - [2.6.4] Bug fix on driver options, ```noCheckUnique``` must be perform in ```create```, ```update``` and ```upsert```
55
+ - [2.6.4] Bug fix in driver options, ```noCheckUnique``` must be perform in ```create```, ```update``` and ```upsert```
52
56
 
53
57
  ## 2026-02-03
54
58
 
55
- - [2.6.3] Bug fix on ```model.sanitizeRecord()```
59
+ - [2.6.3] Bug fix in ```model.sanitizeRecord()```
56
60
 
57
61
  ## 2026-02-02
58
62
 
59
- - [2.6.2] Bug fix on query & search resolver: Do not remove old query/search, should always copied to oldQuery/oldSearch
63
+ - [2.6.2] Bug fix in query & search resolver: Do not remove old query/search, should always copied to oldQuery/oldSearch
60
64
 
61
65
  ## 2026-02-01
62
66
 
@@ -69,20 +73,20 @@
69
73
  - [2.5.0] Add feature to push custom ```options._data```. If provided, this will be used instead of auto generated one.
70
74
  - [2.5.0] Remove ```silent``` in ```options``` object
71
75
  - [2.5.1] Driver now support ```this.useUtc``` for database that store values in UTC string
72
- - [2.5.1] Bug fix on ```driver.sanitizeRecord()```
76
+ - [2.5.1] Bug fix in ```driver.sanitizeRecord()```
73
77
 
74
78
  ## 2026-01-29
75
79
 
76
80
  - [2.4.0] Add ```bulkCreateRecords()``` on model & driver
77
81
  - [2.4.0] Add ```execModelHook()```
78
- - [2.4.0] Bug fix on models collection
82
+ - [2.4.0] Bug fix in models collection
79
83
  - [2.4.0] Add ```DoboAction``` to the ```app.baseClass```
80
84
  - [2.4.0] ```findAllRecord()``` can't be called as action
81
85
 
82
86
  ## 2026-01-26
83
87
 
84
88
  - [2.3.1] Bug fix if reference model isn't loaded only yield warning
85
- - [2.3.1] Bug fix on fetching multi references
89
+ - [2.3.1] Bug fix in fetching multi references
86
90
 
87
91
  ## 2026-01-24
88
92
 
@@ -96,16 +100,16 @@
96
100
 
97
101
  ## 2026-01-19
98
102
 
99
- - [2.2.4] Bug fix on route ```dobo:/attachment/...```
103
+ - [2.2.4] Bug fix in route ```dobo:/attachment/...```
100
104
 
101
105
  ## 2026-01-18
102
106
 
103
107
  - [2.2.2] Revert back to ```mingo@6.5.1``` because of bugs in ```skip``` operation
104
- - [2.2.3] Bug fix on driver's ```sanitizeBody()```
108
+ - [2.2.3] Bug fix in driver's ```sanitizeBody()```
105
109
 
106
110
  ## 2026-01-16
107
111
 
108
- - [2.2.1] Bug fix on model references
112
+ - [2.2.1] Bug fix in model references
109
113
 
110
114
  ## 2026-01-11
111
115