dom-expressions 0.32.6 → 0.32.9

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dom-expressions",
3
3
  "description": "A Fine-Grained Runtime for Performant DOM Rendering",
4
- "version": "0.32.6",
4
+ "version": "0.32.9",
5
5
  "author": "Ryan Carniato",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -20,7 +20,7 @@
20
20
  "devalue": "^2.0.1"
21
21
  },
22
22
  "devDependencies": {
23
- "babel-plugin-jsx-dom-expressions": "^0.32.0"
23
+ "babel-plugin-jsx-dom-expressions": "^0.32.9"
24
24
  },
25
- "gitHead": "0aa581d0125d5e81970b99764ad132e329d60bc4"
25
+ "gitHead": "8a9b236619e0d18abee5da391cae33e25e82f92a"
26
26
  }
package/src/client.js CHANGED
@@ -338,6 +338,7 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
338
338
  parent = (multi && current[0] && current[0].parentNode) || parent;
339
339
 
340
340
  if (t === "string" || t === "number") {
341
+ if (sharedConfig.context) return current;
341
342
  if (t === "number") value = value.toString();
342
343
  if (multi) {
343
344
  let node = current[0];
package/src/server.js CHANGED
@@ -4,7 +4,7 @@ import devalue from "devalue";
4
4
  export { createComponent } from "rxcore";
5
5
 
6
6
  const REPLACE_SCRIPT = `function $df(e,y,t,g){t=document.getElementById(e),g=document.getElementById("pl"+e),g&&g.replaceWith(...t.childNodes),_$HY.set(e,y||null)}`;
7
- const FRAGMENT_REPLACE = /<!\[([\d.]+)\]>/;
7
+ const FRAGMENT_REPLACE = /<!\[([\d-]+)\]>/;
8
8
 
9
9
  export function renderToString(code, options = {}) {
10
10
  let scripts = "";