waibu-mpa 2.9.2 → 2.10.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.
@@ -72,8 +72,8 @@ async function addRoutes ({ appPrefix, prefix, mods, appCtx, cfg }) {
72
72
  this.log.warn('rerouted%s%s', `${prefix}${fullPath}`, `${prefix}${rpath}`)
73
73
  mod.url = rpath
74
74
  mod.pathReroutedTo = rpath
75
- await this.webAppCtx.route(mod)
76
- } else await appCtx.route(mod)
75
+ this.webAppCtx.route(mod)
76
+ } else appCtx.route(mod)
77
77
  }
78
78
  }
79
79
 
@@ -223,7 +223,8 @@ async function componentFactory () {
223
223
  if (getMethod(input, false)) {
224
224
  input = await callHandler(input)
225
225
  } else {
226
- input = attrToArray(input, ';').map(item => {
226
+ const separator = isString(params.attr.optionsSeparator) ? params.attr.optionsSeparator : ';'
227
+ input = attrToArray(input, separator).map(item => {
227
228
  const [value, text] = item.split(':')
228
229
  return { value, text }
229
230
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waibu-mpa",
3
- "version": "2.9.2",
3
+ "version": "2.10.1",
4
4
  "description": "MPA support for Waibu Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-03-22
4
+
5
+ - [2.10.1] Bug fix in applying routes to ```webCtx```
6
+
7
+ ## 2026-03-19
8
+
9
+ - [2.10.0] Add ```options-separator``` to use different separator than the default one (```;```)
10
+
3
11
  ## 2026-03-15
4
12
 
5
13
  - [2.9.2] Bug fix in ```favicon``` handler