rip-lang 3.13.22 → 3.13.23

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.22-blue.svg" alt="Version"></a>
12
+ <a href="CHANGELOG.md"><img src="https://img.shields.io/badge/version-3.13.23-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%2C265%2F1%2C265-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
@@ -4558,6 +4558,8 @@ ${blockFactoriesCode}return ${lines.join(`
4558
4558
  const savedSetupLines = this._setupLines;
4559
4559
  this._createLines = [];
4560
4560
  this._setupLines = [];
4561
+ const outerLoopParams = this._loopVarStack.map((v) => `${v.itemVar}, ${v.indexVar}`).join(", ");
4562
+ const outerExtra = outerLoopParams ? `, ${outerLoopParams}` : "";
4561
4563
  this._loopVarStack.push({ itemVar, indexVar });
4562
4564
  const itemNode = this.generateTemplateBlock(body);
4563
4565
  this._loopVarStack.pop();
@@ -4567,7 +4569,7 @@ ${blockFactoriesCode}return ${lines.join(`
4567
4569
  this._setupLines = savedSetupLines;
4568
4570
  const localizeVar = (line) => this.localizeVar(line);
4569
4571
  const factoryLines = [];
4570
- factoryLines.push(`function ${blockName}(ctx, ${itemVar}, ${indexVar}) {`);
4572
+ factoryLines.push(`function ${blockName}(ctx, ${itemVar}, ${indexVar}${outerExtra}) {`);
4571
4573
  const localVars = new Set;
4572
4574
  for (const line of itemCreateLines) {
4573
4575
  const match = line.match(/^this\.(_(?:el|t|anchor|frag|slot|c|inst|empty)\d+)\s*=/);
@@ -4597,7 +4599,7 @@ ${blockFactoriesCode}return ${lines.join(`
4597
4599
  factoryLines.push(` if (target) target.insertBefore(${localizeVar(itemNode)}, anchor);`);
4598
4600
  }
4599
4601
  factoryLines.push(` },`);
4600
- factoryLines.push(` p(ctx, ${itemVar}, ${indexVar}) {`);
4602
+ factoryLines.push(` p(ctx, ${itemVar}, ${indexVar}${outerExtra}) {`);
4601
4603
  if (hasEffects) {
4602
4604
  factoryLines.push(` disposers.forEach(d => d());`);
4603
4605
  factoryLines.push(` disposers = [];`);
@@ -4639,11 +4641,11 @@ ${blockFactoriesCode}return ${lines.join(`
4639
4641
  setupLines.push(` const __key = ${keyExpr};`);
4640
4642
  setupLines.push(` let __block = __map.get(__key);`);
4641
4643
  setupLines.push(` if (!__block) {`);
4642
- setupLines.push(` __block = ${blockName}(this, ${itemVar}, ${indexVar});`);
4644
+ setupLines.push(` __block = ${blockName}(this, ${itemVar}, ${indexVar}${outerExtra});`);
4643
4645
  setupLines.push(` __block.c();`);
4644
4646
  setupLines.push(` }`);
4645
4647
  setupLines.push(` __block.m(__parent, __anchor);`);
4646
- setupLines.push(` __block.p(this, ${itemVar}, ${indexVar});`);
4648
+ setupLines.push(` __block.p(this, ${itemVar}, ${indexVar}${outerExtra});`);
4647
4649
  setupLines.push(` __newMap.set(__key, __block);`);
4648
4650
  setupLines.push(` }`);
4649
4651
  setupLines.push(``);
@@ -8372,8 +8374,8 @@ globalThis.zip ??= (...a) => a[0].map((_, i) => a.map(b => b[i]));
8372
8374
  return new CodeGenerator({}).getComponentRuntime();
8373
8375
  }
8374
8376
  // src/browser.js
8375
- var VERSION = "3.13.22";
8376
- var BUILD_DATE = "2026-02-25@12:47:56GMT";
8377
+ var VERSION = "3.13.23";
8378
+ var BUILD_DATE = "2026-02-25@12:51:51GMT";
8377
8379
  if (typeof globalThis !== "undefined") {
8378
8380
  if (!globalThis.__rip)
8379
8381
  new Function(getReactiveRuntime())();