waibu-rest-api 2.10.0 → 2.11.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.
@@ -11,8 +11,7 @@ export function extractHeaders (req, options) {
11
11
  if (isSet(headers['x-refs'])) options.refs = headers['x-refs']
12
12
  if (typeof options.refs === 'string' && !['*', 'all'].includes(options.refs)) options.refs = [options.refs]
13
13
  if (headers['x-warnings']) options.showWarnings = true
14
- if (headers['x-format-value']) options.formatValue = true
15
- if (headers['x-retain-original']) options.retainOriginalValue = true
14
+ if (headers['x-formatted'] || headers['x-fmt']) options.fmt = true
16
15
  }
17
16
 
18
17
  async function routeByModelBuilder ({ file, dir, pathPrefix, ns, parent }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waibu-rest-api",
3
- "version": "2.10.0",
3
+ "version": "2.11.0",
4
4
  "description": "REST API for Waibu",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-04-25
4
+
5
+ - [2.11.0] Change options to format value using the new key set by dobo
6
+ - [2.11.0] Remove ```options.retainOriginalValue``` since it is not needed anymore
7
+ - [2.11.0] Change related header to ```X-Fmt```
8
+
3
9
  ## 2026-04-11
4
10
 
5
11
  - [2.10.0] Add support to format output values using header ```X-Format-Value```