marko 5.33.12 → 5.33.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -592,8 +592,13 @@ function morphdom(fromNode, toNode, host, componentsContext) {
592
592
  if (curFromNodeValue !== curToNodeValue) {
593
593
  if (
594
594
  isHydrate &&
595
+ toNextSibling &&
595
596
  curFromNodeType === TEXT_NODE &&
596
- curFromNodeValue.startsWith(curToNodeValue))
597
+ toNextSibling.bW_ === TEXT_NODE &&
598
+ curFromNodeValue.startsWith(curToNodeValue) &&
599
+ toNextSibling.cm_.startsWith(
600
+ curFromNodeValue.slice(curToNodeValue.length)
601
+ ))
597
602
  {
598
603
  // In hydrate mode we can use splitText to more efficiently handle
599
604
  // adjacent text vdom nodes that were merged.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marko",
3
- "version": "5.33.12",
3
+ "version": "5.33.14",
4
4
  "description": "UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.",
5
5
  "keywords": [
6
6
  "front-end",
@@ -64,8 +64,8 @@
64
64
  "build": "babel ./src --out-dir ./dist --extensions .js --copy-files --config-file ../../babel.config.js --env-name=production"
65
65
  },
66
66
  "dependencies": {
67
- "@marko/compiler": "^5.35.10",
68
- "@marko/translator-default": "^5.32.11",
67
+ "@marko/compiler": "^5.35.11",
68
+ "@marko/translator-default": "^5.32.12",
69
69
  "app-module-path": "^2.2.0",
70
70
  "argly": "^1.2.0",
71
71
  "browser-refresh-client": "1.1.4",
@@ -73,7 +73,7 @@
73
73
  "csstype": "^3.1.3",
74
74
  "events-light": "^1.0.5",
75
75
  "listener-tracker": "^2.0.0",
76
- "minimatch": "^9.0.3",
76
+ "minimatch": "^9.0.4",
77
77
  "raptor-util": "^3.2.0",
78
78
  "resolve-from": "^5.0.0",
79
79
  "self-closing-tags": "^1.0.1",
@@ -592,8 +592,13 @@ function morphdom(fromNode, toNode, host, componentsContext) {
592
592
  if (curFromNodeValue !== curToNodeValue) {
593
593
  if (
594
594
  isHydrate &&
595
+ toNextSibling &&
595
596
  curFromNodeType === TEXT_NODE &&
596
- curFromNodeValue.startsWith(curToNodeValue)
597
+ toNextSibling.___nodeType === TEXT_NODE &&
598
+ curFromNodeValue.startsWith(curToNodeValue) &&
599
+ toNextSibling.___nodeValue.startsWith(
600
+ curFromNodeValue.slice(curToNodeValue.length),
601
+ )
597
602
  ) {
598
603
  // In hydrate mode we can use splitText to more efficiently handle
599
604
  // adjacent text vdom nodes that were merged.