rip-lang 3.13.128 → 3.13.129

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.128-blue.svg" alt="Version"></a>
12
+ <a href="CHANGELOG.md"><img src="https://img.shields.io/badge/version-3.13.129-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
@@ -9999,8 +9999,8 @@ globalThis.zip ??= (...a) => a[0].map((_, i) => a.map(b => b[i]));
9999
9999
  return new CodeGenerator({}).getComponentRuntime();
10000
10000
  }
10001
10001
  // src/browser.js
10002
- var VERSION = "3.13.128";
10003
- var BUILD_DATE = "2026-03-21@07:22:07GMT";
10002
+ var VERSION = "3.13.129";
10003
+ var BUILD_DATE = "2026-03-21@07:42:15GMT";
10004
10004
  if (typeof globalThis !== "undefined") {
10005
10005
  if (!globalThis.__rip)
10006
10006
  new Function(getReactiveRuntime())();
@@ -733,7 +733,7 @@ globalThis.sleep ??= (ms) => new Promise(r => setTimeout(r, ms));
733
733
  globalThis.todo ??= (msg) => { throw new Error(msg || "Not implemented"); };
734
734
  globalThis.warn ??= console.warn;
735
735
  globalThis.zip ??= (...a) => a[0].map((_, i) => a.map(b => b[i]));
736
- `}function L1(){return new $1({}).getReactiveRuntime()}function N1(){return new $1({}).getComponentRuntime()}var c2="3.13.128",j2="2026-03-21@07:22:07GMT";if(typeof globalThis<"u"){if(!globalThis.__rip)Function(L1())();if(!globalThis.__ripComponent)Function(N1())()}var H7=(f)=>{let w=f.match(/^[ \t]*(?=\S)/gm),U=Math.min(...(w||[]).map((_)=>_.length));return f.replace(RegExp(`^[ ]{${U}}`,"gm"),"").trim()};async function y2(){let f=[],w=document.querySelector('script[src$="rip.min.js"], script[src$="rip.js"]'),U=w?.getAttribute("data-src");if(U){for(let _ of U.trim().split(/\s+/))if(_)f.push({url:_})}for(let _ of document.querySelectorAll('script[type="text/rip"]'))if(_.src)f.push({url:_.src});else{let u=H7(_.textContent);if(u)f.push({code:u})}if(f.length>0){let _=await Promise.allSettled(f.map(async(W)=>{if(!W.url)return;let Z=await fetch(W.url);if(!Z.ok)throw Error(`${W.url} (${Z.status})`);if(W.url.endsWith(".rip"))W.code=await Z.text();else{let Y=await Z.json();W.bundle=Y}}));for(let W of _)if(W.status==="rejected")console.warn("Rip: fetch failed:",W.reason.message);let u=[],$=[];for(let W of f)if(W.bundle)u.push(W.bundle);else if(W.code)$.push(W);let F=w?.getAttribute("data-router");if(F!=null&&u.length>0){let W={skipRuntimes:!0,skipExports:!0,skipImports:!0};if($.length>0){let Y="";for(let R of $)try{Y+=Y1(R.code,W)+`
736
+ `}function L1(){return new $1({}).getReactiveRuntime()}function N1(){return new $1({}).getComponentRuntime()}var c2="3.13.129",j2="2026-03-21@07:42:15GMT";if(typeof globalThis<"u"){if(!globalThis.__rip)Function(L1())();if(!globalThis.__ripComponent)Function(N1())()}var H7=(f)=>{let w=f.match(/^[ \t]*(?=\S)/gm),U=Math.min(...(w||[]).map((_)=>_.length));return f.replace(RegExp(`^[ ]{${U}}`,"gm"),"").trim()};async function y2(){let f=[],w=document.querySelector('script[src$="rip.min.js"], script[src$="rip.js"]'),U=w?.getAttribute("data-src");if(U){for(let _ of U.trim().split(/\s+/))if(_)f.push({url:_})}for(let _ of document.querySelectorAll('script[type="text/rip"]'))if(_.src)f.push({url:_.src});else{let u=H7(_.textContent);if(u)f.push({code:u})}if(f.length>0){let _=await Promise.allSettled(f.map(async(W)=>{if(!W.url)return;let Z=await fetch(W.url);if(!Z.ok)throw Error(`${W.url} (${Z.status})`);if(W.url.endsWith(".rip"))W.code=await Z.text();else{let Y=await Z.json();W.bundle=Y}}));for(let W of _)if(W.status==="rejected")console.warn("Rip: fetch failed:",W.reason.message);let u=[],$=[];for(let W of f)if(W.bundle)u.push(W.bundle);else if(W.code)$.push(W);let F=w?.getAttribute("data-router");if(F!=null&&u.length>0){let W={skipRuntimes:!0,skipExports:!0,skipImports:!0};if($.length>0){let Y="";for(let R of $)try{Y+=Y1(R.code,W)+`
737
737
  `}catch(z){console.error(`Rip compile error in ${R.url||"inline"}:`,z.message)}if(Y)try{await(0,eval)(`(async()=>{
738
738
  ${Y}
739
739
  })()`)}catch(R){console.error("Rip runtime error:",R)}}let Z=J1.modules?.["ui.rip"];if(Z?.launch){let Y=u[u.length-1],R=w.getAttribute("data-persist"),z={bundle:Y,hash:F==="hash"};if(R!=null)z.persist=R==="local"?"local":!0;await Z.launch("",z)}}else{let W=[];for(let R of u){for(let[z,Q]of Object.entries(R.components||{}))W.push({code:Q,url:z});if(R.data){let z=w?.getAttribute("data-state"),Q={};if(z)try{Q=JSON.parse(z)}catch{}Object.assign(Q,R.data),w?.setAttribute("data-state",JSON.stringify(Q))}}W.push(...$);let Z={skipRuntimes:!0,skipExports:!0,skipImports:!0},Y=[];for(let R of W){if(!R.code)continue;try{let z=Y1(R.code,Z);Y.push({js:z,url:R.url||"inline"})}catch(z){console.error(`Rip compile error in ${R.url||"inline"}:`,z.message)}}if(!globalThis.__ripApp&&w){let R=globalThis.stash;if(R){let z={},Q=w.getAttribute("data-state");if(Q)try{z=JSON.parse(Q)}catch(O){console.error("Rip: invalid data-state JSON:",O.message)}let X=R({data:z});if(globalThis.__ripApp=X,typeof window<"u")window.app=X;let J=w.getAttribute("data-persist");if(J!=null&&globalThis.persistStash)globalThis.persistStash(X,{local:J==="local"})}}if(Y.length>0){let R=Y.map((Q)=>Q.js).join(`
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rip-lang",
3
- "version": "3.13.128",
3
+ "version": "3.13.129",
4
4
  "description": "A modern language that compiles to JavaScript",
5
5
  "type": "module",
6
6
  "main": "src/compiler.js",