bajo 2.8.0 → 2.9.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.
package/class/bajo.js CHANGED
@@ -225,6 +225,7 @@ class Bajo extends Plugin {
225
225
  * @returns {Object[]} The collection
226
226
  */
227
227
  buildCollections = async (options = {}) => {
228
+ const { parseObject } = this.app.lib
228
229
  let { ns, handler, dupChecks = [], container, useDefaultName = true, noDefault = true } = options
229
230
  if (!ns) ns = this.ns
230
231
  const cfg = this.app[ns].getConfig()
@@ -244,7 +245,7 @@ class Bajo extends Plugin {
244
245
  await this.runHook(`${ns}:beforeBuildCollection`, container)
245
246
  const deleted = []
246
247
  for (const index in items) {
247
- const item = items[index]
248
+ const item = parseObject(items[index])
248
249
  if (useDefaultName) {
249
250
  if (!has(item, 'name')) {
250
251
  if (find(items, { name: 'default' })) throw this.app[ns].error('collExists%s', 'default')
package/class/plugin.js CHANGED
@@ -176,6 +176,16 @@ class Plugin {
176
176
  }
177
177
  }
178
178
 
179
+ /**
180
+ * Alias to ```this.app.dump()```
181
+ *
182
+ * @param {...any} args
183
+ * @returns
184
+ */
185
+ dump = (...args) => {
186
+ this.app.dump(...args)
187
+ }
188
+
179
189
  /**
180
190
  * Dispose internal references
181
191
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bajo",
3
- "version": "2.8.0",
3
+ "version": "2.9.0",
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,10 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-03-25
4
+
5
+ - [2.9.0] Add ```dump()``` now available through out plugins
6
+ - [2.9.0] Bug fix in ```buildCollections()```, now items to be collected are parsed with ```aneka.parseObject()```
7
+
3
8
  ## 2026-03-22
4
9
 
5
10
  - [2.8.0] Add ```options.readFromFile``` in ```readConfig()```