dobo 2.30.7 → 2.31.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.
@@ -128,8 +128,11 @@ async function driverFactory () {
128
128
 
129
129
  async _attachHook (name, model, ...args) {
130
130
  const { ns } = this.app.dobo
131
+ const { kebabCase } = this.app.lib._
131
132
  const options = last(args)
132
133
  if (!options.noDriverHook) {
134
+ const prefix = kebabCase(name).split('-')[0]
135
+ await runHook(`${ns}.driver:${prefix}Any`, model, options)
133
136
  await runHook(`${ns}.driver:${name}`, model, ...args)
134
137
  await runHook(`${ns}.driver.${camelCase(model.name)}:${name}`, model, ...args)
135
138
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dobo",
3
- "version": "2.30.7",
3
+ "version": "2.31.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-06-29
4
+
5
+ - [2.31.0] Add ```dobo.driver:{before|after}Any```
6
+
3
7
  ## 2026-06-24
4
8
 
5
9
  - [2.30.5] Bug fix in ```model.sanitizeBody()```