rip-lang 3.13.76 → 3.13.77

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/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
  </p>
10
10
 
11
11
  <p align="center">
12
- <a href="CHANGELOG.md"><img src="https://img.shields.io/badge/version-3.13.76-blue.svg" alt="Version"></a>
12
+ <a href="CHANGELOG.md"><img src="https://img.shields.io/badge/version-3.13.77-blue.svg" alt="Version"></a>
13
13
  <a href="#zero-dependencies"><img src="https://img.shields.io/badge/dependencies-ZERO-brightgreen.svg" alt="Dependencies"></a>
14
14
  <a href="#"><img src="https://img.shields.io/badge/tests-1%2C436%2F1%2C436-brightgreen.svg" alt="Tests"></a>
15
15
  <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-green.svg" alt="License"></a>
package/docs/dist/rip.js CHANGED
@@ -4880,11 +4880,14 @@ ${blockFactoriesCode}return ${lines.join(`
4880
4880
  }
4881
4881
  } else if (arg && !childrenVar) {
4882
4882
  const textVar = this.newTextVar();
4883
- const val = typeof arg === "string" ? arg.valueOf() : null;
4884
- if (val && (val.startsWith('"') || val.startsWith("'") || val.startsWith("`"))) {
4885
- this._createLines.push(`${textVar} = document.createTextNode(${val});`);
4883
+ const exprCode = this.generateInComponent(arg, "value");
4884
+ if (this.hasReactiveDeps(arg)) {
4885
+ this._createLines.push(`${textVar} = document.createTextNode('');`);
4886
+ const body = `${textVar}.data = ${exprCode};`;
4887
+ const effect = this._factoryMode ? `disposers.push(__effect(() => { ${body} }));` : `__effect(() => { ${body} });`;
4888
+ childrenSetupLines.push(effect);
4886
4889
  } else {
4887
- this._createLines.push(`${textVar} = document.createTextNode(${this.generateInComponent(arg, "value")});`);
4890
+ this._createLines.push(`${textVar} = document.createTextNode(${exprCode});`);
4888
4891
  }
4889
4892
  childrenVar = textVar;
4890
4893
  props.push(`children: ${childrenVar}`);
@@ -8752,8 +8755,8 @@ globalThis.zip ??= (...a) => a[0].map((_, i) => a.map(b => b[i]));
8752
8755
  return new CodeGenerator({}).getComponentRuntime();
8753
8756
  }
8754
8757
  // src/browser.js
8755
- var VERSION = "3.13.75";
8756
- var BUILD_DATE = "2026-03-03@00:02:43GMT";
8758
+ var VERSION = "3.13.77";
8759
+ var BUILD_DATE = "2026-03-03@05:01:25GMT";
8757
8760
  if (typeof globalThis !== "undefined") {
8758
8761
  if (!globalThis.__rip)
8759
8762
  new Function(getReactiveRuntime())();