waibu-db 2.37.0 → 2.38.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.
@@ -17,6 +17,7 @@ function getCommons (action, schema, ext, options = {}) {
17
17
  const disabled = get(ext, `view.${action}.disabled`, get(ext, 'common.disabled', []))
18
18
  const x = defaultsDeep(get(ext, `view.${action}.x`), get(ext, 'common.x', {}))
19
19
  const aggregate = get(ext, `view.${action}.stat.aggregate`, get(ext, 'common.stat.aggregate', []))
20
+ const qs = get(ext, `view.${action}.qs`, get(ext, 'common.qs', {}))
20
21
  const hasXSite = get(options, 'args.0.req.routeOptions.config.xSite')
21
22
  const hasSiteId = schema.model.hasProperty('siteId')
22
23
  const hasImmutable = schema.model.hasProperty('_immutable')
@@ -37,6 +38,7 @@ function getCommons (action, schema, ext, options = {}) {
37
38
  set(schema, 'view.format', merge({}, defFormatter, format))
38
39
  set(schema, 'view.stat.aggregate', aggregate)
39
40
  set(schema, 'view.disabled', disabled)
41
+ set(schema, 'view.qs', qs)
40
42
  set(schema, 'view.control', control)
41
43
  set(schema, 'view.x', x)
42
44
  set(schema, 'view.page', page)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waibu-db",
3
- "version": "2.37.0",
3
+ "version": "2.38.0",
4
4
  "description": "DB Helper",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-11-23
4
+
5
+ - [2.38.0] Add `view.qs` to `getSchemaExt()`
6
+
3
7
  ## 2026-11-22
4
8
 
5
9
  - [2.37.0] `recs-info` widget now accept `data-key` option
@@ -13,7 +17,7 @@
13
17
  - [2.35.0] `attachment` options can now accept plain object too
14
18
  - [2.35.0] Bug fix in `attachment` handling
15
19
  - [2.35.0] Bug fix in `dataOnly` handling
16
- - [2.35.0] Submit button can be omitted in `query` widget
20
+ - [2.35.0] Submit button can be omitted in `query` widget
17
21
  - [2.36.0] Refactoring everything related to attachment handling
18
22
 
19
23
  ## 2026-11-08