bajo 2.26.0 → 2.26.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.
package/class/bajo.js CHANGED
@@ -502,8 +502,8 @@ class Bajo extends Plugin {
502
502
  if (type === 'auto') {
503
503
  if (value instanceof Date) type = 'datetime'
504
504
  }
505
- if (['float', 'double'].includes(type) && this.anekaSpatial) {
506
- const { latToDms, lngToDms } = this.anekaSpatial
505
+ if (['float', 'double'].includes(type) && this.app.lib.anekaSpatial) {
506
+ const { latToDms, lngToDms } = this.app.lib.anekaSpatial
507
507
  if (options.latitude) return latToDms(value)
508
508
  if (options.longitude) return lngToDms(value)
509
509
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bajo",
3
- "version": "2.26.0",
3
+ "version": "2.26.1",
4
4
  "description": "The ultimate framework for whipping up massive apps in no time",
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-26
4
+
5
+ - [2.26.1] Bug fix in `format()`
6
+
3
7
  ## 2026-07-24
4
8
 
5
9
  - [2.25.0] Add `tools.bindThid()`
@@ -25,26 +29,26 @@
25
29
 
26
30
  ## 2026-07-02
27
31
 
28
- - [2.21.1] Bug fix in ```index.js```
32
+ - [2.21.1] Bug fix in `index.js`
29
33
 
30
34
  ## 2026-07-01
31
35
 
32
- - [2.21.0] Add ```.yml/.yaml``` to the configHandlers core
36
+ - [2.21.0] Add `.yml/.yaml` to the configHandlers core
33
37
  - [2.21.0] Remove obsolete packages
34
38
  - [2.21.0] Upgrade package dependencies to the latest version
35
- - [2.21.0] Remove ```emptyDir()```
36
- - [2.21.0] Remove ```getGlobalModuleDir()```
39
+ - [2.21.0] Remove `emptyDir()`
40
+ - [2.21.0] Remove `getGlobalModuleDir()`
37
41
 
38
42
  ## 2026-06-28
39
43
 
40
- - [2.20.1] Bug fix in ```readConfig()```
44
+ - [2.20.1] Bug fix in `readConfig()`
41
45
 
42
46
  ## 2026-06-26
43
47
 
44
- - [2.20.0] Add source ```ns``` to the config handlers
45
- - [2.20.0] Bug fix in ```bajo.readConfig()```
46
- - [2.20.0] Add ```bajo.readAsConfig()```
47
- - [2.20.0] Add ```params.noDot``` to the ```app.getConfigFormats()```
48
+ - [2.20.0] Add source `ns` to the config handlers
49
+ - [2.20.0] Bug fix in `bajo.readConfig()`
50
+ - [2.20.0] Add `bajo.readAsConfig()`
51
+ - [2.20.0] Add `params.noDot` to the `app.getConfigFormats()`
48
52
 
49
53
  ## 2026-06-26
50
54
 
@@ -53,93 +57,93 @@
53
57
 
54
58
  ## 2026-06-12
55
59
 
56
- - [2.18.0] Move plugin related methods to ```app```
57
- - [2.18.0] Last argument of ```app.dump()``` serves as options if it a plain object with certain keys
60
+ - [2.18.0] Move plugin related methods to `app`
61
+ - [2.18.0] Last argument of `app.dump()` serves as options if it a plain object with certain keys
58
62
 
59
63
  ## 2026-06-03
60
64
 
61
- - [2.17.0] Combine all helpers to ```_helper.js```
62
- - [2.17.0] ```callHandler()``` now can accept an instance of ```Tools``` as its scope too
63
- - [2.17.0] Bug fix in ```app.dump()```
65
+ - [2.17.0] Combine all helpers to `_helper.js`
66
+ - [2.17.0] `callHandler()` now can accept an instance of `Tools` as its scope too
67
+ - [2.17.0] Bug fix in `app.dump()`
64
68
 
65
69
  ## 2026-06-01
66
70
 
67
- - [2.16.0] Upgrade ```aneka@0.14.0```
68
- - [2.16.0] Adding caller filename to the ```app.dump()```
69
- - [2.16.0] Formatting ```app.dump()``` to be more catchy when ```bajoCli``` is loaded
71
+ - [2.16.0] Upgrade `aneka@0.14.0`
72
+ - [2.16.0] Adding caller filename to the `app.dump()`
73
+ - [2.16.0] Formatting `app.dump()` to be more catchy when `bajoCli` is loaded
70
74
 
71
75
  ## 2026-05-30
72
76
 
73
- - [2.15.1] Bug fix in ```app.boot()```
77
+ - [2.15.1] Bug fix in `app.boot()`
74
78
 
75
79
  ## 2026-05-28
76
80
 
77
- - [2.15.0] Add built-in cache feature through ```app.cache``` instance
78
- - [2.15.0] Bug fix in ```eachPlugins()```
79
- - [2.15.0] Add cache feature to ```readConfig()```
81
+ - [2.15.0] Add built-in cache feature through `app.cache` instance
82
+ - [2.15.0] Bug fix in `eachPlugins()`
83
+ - [2.15.0] Add cache feature to `readConfig()`
80
84
  - [2.15.0] Add feature to read many hooks as one file
81
85
 
82
86
  ## 2026-05-22
83
87
 
84
- - [2.14.1] Bug fix in ```helper.buildBaseConfig()```
85
- - [2.14.1] Bug fix in ```helper.collectHooks()```
88
+ - [2.14.1] Bug fix in `helper.buildBaseConfig()`
89
+ - [2.14.1] Bug fix in `helper.collectHooks()`
86
90
 
87
91
  ## 2026-05-16
88
92
 
89
- - [2.14.0] Add ```bajo:beforeReadConfig()``` hook
90
- - [2.14.0] Add ```bajo.override:beforeReadConfig()``` hook
91
- - [2.14.0] Add ```bajo.extend:beforeReadConfig()``` hook
92
- - [2.14.0] Add ```bajo:afterReadConfig()``` hook
93
- - [2.14.0] Add ```bajo.override:afterReadConfig()``` hook
94
- - [2.14.0] Add ```bajo.extend:afterReadConfig()``` hook
93
+ - [2.14.0] Add `bajo:beforeReadConfig()` hook
94
+ - [2.14.0] Add `bajo.override:beforeReadConfig()` hook
95
+ - [2.14.0] Add `bajo.extend:beforeReadConfig()` hook
96
+ - [2.14.0] Add `bajo:afterReadConfig()` hook
97
+ - [2.14.0] Add `bajo.override:afterReadConfig()` hook
98
+ - [2.14.0] Add `bajo.extend:afterReadConfig()` hook
95
99
 
96
100
  ## 2026-05-02
97
101
 
98
- - [2.13.1] Bug fix in ```app.t()```
99
- - [2.13.1] Bug fix in ```bajo.join()```
102
+ - [2.13.1] Bug fix in `app.t()`
103
+ - [2.13.1] Bug fix in `bajo.join()`
100
104
 
101
105
  ## 2026-04-28
102
106
 
103
- - [2.13.0] Add ```options.merge``` to ```readConfig()```
104
- - [2.13.0] Bug fix in ```err.js```
107
+ - [2.13.0] Add `options.merge` to `readConfig()`
108
+ - [2.13.0] Bug fix in `err.js`
105
109
 
106
110
  ## 2026-04-25
107
111
 
108
- - [2.12.1] Bug fix in ```readConfig()```
112
+ - [2.12.1] Bug fix in `readConfig()`
109
113
 
110
114
  ## 2026-04-23
111
115
 
112
- - [2.12.0] Remove ```breakNsPathFromFile()```
113
- - [2.12.0] Add feature to read in extended path ```readConfig()```
116
+ - [2.12.0] Remove `breakNsPathFromFile()`
117
+ - [2.12.0] Add feature to read in extended path `readConfig()`
114
118
 
115
119
  ## 2026-04-11
116
120
 
117
- - [2.11.1] Bug fix in ```join()```
118
- - [2.11.1] Bug fix in ```format()```
121
+ - [2.11.1] Bug fix in `join()`
122
+ - [2.11.1] Bug fix in `format()`
119
123
 
120
124
  ## 2026-04-07
121
125
 
122
- - [2.11.0] Change ```dispose()``` to be an async function
123
- - [2.11.0] Bug fix in ```_prepTrans()```
126
+ - [2.11.0] Change `dispose()` to be an async function
127
+ - [2.11.0] Bug fix in `_prepTrans()`
124
128
 
125
129
  ## 2026-03-30
126
130
 
127
- - [2.10.0] Add ability to pass options of ```configHandlers``` with type ```.js```
128
- - [2.10.0] Freezing config object now occurs ```{ns}:afterStart()```
129
- - [2.10.0] Bug fix in ```print.fatal()``` when argument is an Error object
130
- - [2.10.1] Bug fix in ```fromJs()```
131
+ - [2.10.0] Add ability to pass options of `configHandlers` with type `.js`
132
+ - [2.10.0] Freezing config object now occurs `{ns}:afterStart()`
133
+ - [2.10.0] Bug fix in `print.fatal()` when argument is an Error object
134
+ - [2.10.1] Bug fix in `fromJs()`
131
135
 
132
136
  ## 2026-03-25
133
137
 
134
- - [2.9.0] Add ```dump()``` now available through out plugins
135
- - [2.9.0] Bug fix in ```buildCollections()```, now items to be collected are parsed with ```aneka.parseObject()```
138
+ - [2.9.0] Add `dump()` now available through out plugins
139
+ - [2.9.0] Bug fix in `buildCollections()`, now items to be collected are parsed with `aneka.parseObject()`
136
140
 
137
141
  ## 2026-03-22
138
142
 
139
- - [2.8.0] Add ```options.readFromFile``` in ```readConfig()```
140
- - [2.8.0] Bug fix in ```readConfig()``` while reading ```json``` file
141
- - [2.8.0] Bug fix in ```fromJson()```
142
- - [2.8.0] Bug fix in ```toJson()```
143
+ - [2.8.0] Add `options.readFromFile` in `readConfig()`
144
+ - [2.8.0] Bug fix in `readConfig()` while reading `json` file
145
+ - [2.8.0] Bug fix in `fromJson()`
146
+ - [2.8.0] Bug fix in `toJson()`
143
147
 
144
148
  ## 2026-03-15
145
149
 
@@ -148,47 +152,47 @@
148
152
  ## 2026-03-11
149
153
 
150
154
  - [2.7.2] Bug fix in env dependent config building
151
- - [2.7.2] ```selfBind()``` now also accept string for single method
155
+ - [2.7.2] `selfBind()` now also accept string for single method
152
156
 
153
157
  ## 2026-03-10
154
158
 
155
- - [2.7.1] Using ```textToArray()``` from ```aneka``` instead of custom function to parse text into array
159
+ - [2.7.1] Using `textToArray()` from `aneka` instead of custom function to parse text into array
156
160
 
157
161
  ## 2026-03-02
158
162
 
159
- - [2.7.0] Add ```useDefaultName``` parameter to ```buildCollection()```
163
+ - [2.7.0] Add `useDefaultName` parameter to `buildCollection()`
160
164
  - [2.7.0] Add some translations
161
165
 
162
166
  ## 2026-02-26
163
167
 
164
- - [2.6.2] Bug fix in ```getMethod()```
168
+ - [2.6.2] Bug fix in `getMethod()`
165
169
 
166
170
  ## 2026-02-23
167
171
 
168
- - [2.6.1] Bug fix in ```readConfig()```
169
- - [2.6.1] Bug fix in ```base.loadConfig()```
172
+ - [2.6.1] Bug fix in `readConfig()`
173
+ - [2.6.1] Bug fix in `base.loadConfig()`
170
174
 
171
175
  ## 2026-02-20
172
176
 
173
- - [2.6.0] Upgrade to ```aneka@0.12.0```
174
- - [2.6.0] Add ```te()```
175
- - [2.6.0] Bug fix in ```formatErrorDetails()``` in ```Err``` class
177
+ - [2.6.0] Upgrade to `aneka@0.12.0`
178
+ - [2.6.0] Add `te()`
179
+ - [2.6.0] Bug fix in `formatErrorDetails()` in `Err` class
176
180
 
177
181
  ## 2026-02-08
178
182
 
179
- - [2.5.0] Bug fix in handling log for ```error``` level
180
- - [2.5.0] Add ```log.getErrorMessage()``` to get the right value of error message
181
- - [2.5.0] Add ```timeZone``` in config for datetime data type
183
+ - [2.5.0] Bug fix in handling log for `error` level
184
+ - [2.5.0] Add `log.getErrorMessage()` to get the right value of error message
185
+ - [2.5.0] Add `timeZone` in config for datetime data type
182
186
 
183
187
  ## 2026-01-29
184
188
 
185
- - [2.4.0] Hooks can now be added through ```config``` object. This is specially usefull if you provide a custom config object on app boot
186
- - [2.4.1] Bug fix in ```runHook()``` resolver. Source defaults to ```main``` if not provided. Scope defaults to ```bajo``` if not found/initialized yet
187
- - [2.4.2] Bug fix in getting wrongly parsed ```env``` value
189
+ - [2.4.0] Hooks can now be added through `config` object. This is specially usefull if you provide a custom config object on app boot
190
+ - [2.4.1] Bug fix in `runHook()` resolver. Source defaults to `main` if not provided. Scope defaults to `bajo` if not found/initialized yet
191
+ - [2.4.2] Bug fix in getting wrongly parsed `env` value
188
192
 
189
193
  ## 2026-01-24
190
194
 
191
- - [2.3.2] Hook now can be executed without waiting if property ```noWait``` is ```true```
195
+ - [2.3.2] Hook now can be executed without waiting if property `noWait` is `true`
192
196
 
193
197
  ## 2026-01-21
194
198
 
@@ -196,14 +200,14 @@
196
200
 
197
201
  ## 2026-01-18
198
202
 
199
- - [2.3.0] ```App``` constructor now accept an object as its parameter. For details, please see documentation
200
- - [2.3.0] Package upgrade to ```aneka@0.11.0```
201
- - [2.3.0] Bug fix in ```checkDependencies()```
203
+ - [2.3.0] `App` constructor now accept an object as its parameter. For details, please see documentation
204
+ - [2.3.0] Package upgrade to `aneka@0.11.0`
205
+ - [2.3.0] Bug fix in `checkDependencies()`
202
206
 
203
207
  ## 2026-01-16
204
208
 
205
209
  - [2.2.1] Bug fix in multiple appearance of loaded plugins info
206
- - [2.2.1] Bug fix in ```app.lib.parseObject()``` wrapper
210
+ - [2.2.1] Bug fix in `app.lib.parseObject()` wrapper
207
211
 
208
212
  ## 2026-01-11
209
213
 
@@ -211,7 +215,7 @@
211
215
 
212
216
  ## 2025-12-29
213
217
 
214
- - [2.2.0] Add ```this.selfBind()``` to class ```Plugin```
218
+ - [2.2.0] Add `this.selfBind()` to class `Plugin`
215
219
 
216
220
  ## 2025-12-27
217
221
 
@@ -219,20 +223,20 @@
219
223
 
220
224
  ## 2025-12-27
221
225
 
222
- - [2.2.0] Add config object ```this.config.runtime``` to adjust some runtime settings
226
+ - [2.2.0] Add config object `this.config.runtime` to adjust some runtime settings
223
227
 
224
228
  ## 2025-12-24
225
229
 
226
- - [2.2.0] Pass ```true``` to ```this.app.exit()``` to exit abruptly. Defaults to ```SIGINT```
227
- - [2.2.0] Add ```detailsMessage``` to ```Err``` class if error object has ```details``` in payload
228
- - [2.2.0] Upgrade ```aneka@0.10.0```
230
+ - [2.2.0] Pass `true` to `this.app.exit()` to exit abruptly. Defaults to `SIGINT`
231
+ - [2.2.0] Add `detailsMessage` to `Err` class if error object has `details` in payload
232
+ - [2.2.0] Upgrade `aneka@0.10.0`
229
233
  - [2.2.0] Bugfix: program arguments should not parsed as object
230
234
 
231
235
  ## 2025-12-21
232
236
 
233
- - [2.2.0] ```runHook()``` now accept both ```alias``` & ```ns``` prefixed name
234
- - [2.2.0] In case of unknown plugin or plugin isn't loaded, ```runHook``` simply exit silently
235
- - [2.2.0] ```this.app.pluginClass``` is now ```this.app.baseClass``` and all containing class definition keys are pascal cased to match with their constructor names
237
+ - [2.2.0] `runHook()` now accept both `alias` & `ns` prefixed name
238
+ - [2.2.0] In case of unknown plugin or plugin isn't loaded, `runHook` simply exit silently
239
+ - [2.2.0] `this.app.pluginClass` is now `this.app.baseClass` and all containing class definition keys are pascal cased to match with their constructor names
236
240
 
237
241
  ## 2025-12-20
238
242
 
@@ -240,29 +244,29 @@
240
244
 
241
245
  ## 2025-12-19
242
246
 
243
- - [2.2.0] Upgrade to ```aneka@0.9.0```
247
+ - [2.2.0] Upgrade to `aneka@0.9.0`
244
248
 
245
249
  ## 2025-12-13
246
250
 
247
- - [2.2.0] Add ```app.lib.formatText()```
251
+ - [2.2.0] Add `app.lib.formatText()`
248
252
  - [2.2.0] Move most bajo methods that doesn't relate to Bajo to app.lib functions
249
253
 
250
254
  ## 2025-12-11
251
255
 
252
- - [2.1.1] Upgrade to ```aneka@0.5.0```
256
+ - [2.1.1] Upgrade to `aneka@0.5.0`
253
257
 
254
258
  ## 2025-12-09
255
259
 
256
- - [2.1.1] Upgrade to ```aneka@0.2.3```
260
+ - [2.1.1] Upgrade to `aneka@0.2.3`
257
261
  - [2.1.1] Some organizatory file location changes
258
- - [2.1.1] Typo on class ```Tools```
262
+ - [2.1.1] Typo on class `Tools`
259
263
 
260
264
  ## 2025-12-05
261
265
 
262
- - [2.1.1] Upgrade to ```aneka@0.2.1```
263
- - [2.1.1] New class ```Tools```, serves as anchestor for ```Err``` & ```Print```
266
+ - [2.1.1] Upgrade to `aneka@0.2.1`
267
+ - [2.1.1] New class `Tools`, serves as anchestor for `Err` & `Print`
264
268
 
265
269
  ## 2025-12-03
266
270
 
267
- - [2.1.1] Add method ```getPkgInfo()``` to plugins main class.
268
- - [2.1.1] Now you can put your plugins either in ```{dataDir}/config/.plugins``` or directly as an array in your app ```package.json``` under the ```bajo.plugins``` tree. The later takes precedence.
271
+ - [2.1.1] Add method `getPkgInfo()` to plugins main class.
272
+ - [2.1.1] Now you can put your plugins either in `{dataDir}/config/.plugins` or directly as an array in your app `package.json` under the `bajo.plugins` tree. The later takes precedence.