rip-lang 3.13.116 → 3.13.117

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.116-blue.svg" alt="Version"></a>
12
+ <a href="CHANGELOG.md"><img src="https://img.shields.io/badge/version-3.13.117-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
@@ -9641,8 +9641,8 @@ globalThis.zip ??= (...a) => a[0].map((_, i) => a.map(b => b[i]));
9641
9641
  return new CodeGenerator({}).getComponentRuntime();
9642
9642
  }
9643
9643
  // src/browser.js
9644
- var VERSION = "3.13.116";
9645
- var BUILD_DATE = "2026-03-14@10:17:47GMT";
9644
+ var VERSION = "3.13.117";
9645
+ var BUILD_DATE = "2026-03-14@10:20:59GMT";
9646
9646
  if (typeof globalThis !== "undefined") {
9647
9647
  if (!globalThis.__rip)
9648
9648
  new Function(getReactiveRuntime())();
@@ -731,7 +731,7 @@ globalThis.sleep ??= (ms) => new Promise(r => setTimeout(r, ms));
731
731
  globalThis.todo ??= (msg) => { throw new Error(msg || "Not implemented"); };
732
732
  globalThis.warn ??= console.warn;
733
733
  globalThis.zip ??= (...a) => a[0].map((_, i) => a.map(b => b[i]));
734
- `}function B1(){return new $1({}).getReactiveRuntime()}function N1(){return new $1({}).getComponentRuntime()}var S2="3.13.116",L2="2026-03-14@10:17:47GMT";if(typeof globalThis<"u"){if(!globalThis.__rip)Function(B1())();if(!globalThis.__ripComponent)Function(N1())()}var Y7=(f)=>{let U=f.match(/^[ \t]*(?=\S)/gm),_=Math.min(...(U||[]).map((w)=>w.length));return f.replace(RegExp(`^[ ]{${_}}`,"gm"),"").trim()};async function T2(){let f=[],U=document.querySelector('script[src$="rip.min.js"], script[src$="rip.js"]'),_=U?.getAttribute("data-src");if(_){for(let w of _.trim().split(/\s+/))if(w)f.push({url:w})}for(let w of document.querySelectorAll('script[type="text/rip"]'))if(w.src)f.push({url:w.src});else{let u=Y7(w.textContent);if(u)f.push({code:u})}if(f.length>0){let w=await Promise.allSettled(f.map(async(Y)=>{if(!Y.url)return;let Z=await fetch(Y.url);if(!Z.ok)throw Error(`${Y.url} (${Z.status})`);if(Y.url.endsWith(".rip"))Y.code=await Z.text();else{let R=await Z.json();Y.bundle=R}}));for(let Y of w)if(Y.status==="rejected")console.warn("Rip: fetch failed:",Y.reason.message);let u=[],$=[];for(let Y of f)if(Y.bundle)u.push(Y.bundle);else if(Y.code)$.push(Y);let F=U?.getAttribute("data-router");if(F!=null&&u.length>0){let Y={skipRuntimes:!0,skipExports:!0,skipImports:!0};if($.length>0){let R="";for(let A of $)try{R+=Y1(A.code,Y)+`
734
+ `}function B1(){return new $1({}).getReactiveRuntime()}function N1(){return new $1({}).getComponentRuntime()}var S2="3.13.117",L2="2026-03-14@10:20:59GMT";if(typeof globalThis<"u"){if(!globalThis.__rip)Function(B1())();if(!globalThis.__ripComponent)Function(N1())()}var Y7=(f)=>{let U=f.match(/^[ \t]*(?=\S)/gm),_=Math.min(...(U||[]).map((w)=>w.length));return f.replace(RegExp(`^[ ]{${_}}`,"gm"),"").trim()};async function T2(){let f=[],U=document.querySelector('script[src$="rip.min.js"], script[src$="rip.js"]'),_=U?.getAttribute("data-src");if(_){for(let w of _.trim().split(/\s+/))if(w)f.push({url:w})}for(let w of document.querySelectorAll('script[type="text/rip"]'))if(w.src)f.push({url:w.src});else{let u=Y7(w.textContent);if(u)f.push({code:u})}if(f.length>0){let w=await Promise.allSettled(f.map(async(Y)=>{if(!Y.url)return;let Z=await fetch(Y.url);if(!Z.ok)throw Error(`${Y.url} (${Z.status})`);if(Y.url.endsWith(".rip"))Y.code=await Z.text();else{let R=await Z.json();Y.bundle=R}}));for(let Y of w)if(Y.status==="rejected")console.warn("Rip: fetch failed:",Y.reason.message);let u=[],$=[];for(let Y of f)if(Y.bundle)u.push(Y.bundle);else if(Y.code)$.push(Y);let F=U?.getAttribute("data-router");if(F!=null&&u.length>0){let Y={skipRuntimes:!0,skipExports:!0,skipImports:!0};if($.length>0){let R="";for(let A of $)try{R+=Y1(A.code,Y)+`
735
735
  `}catch(Q){console.error(`Rip compile error in ${A.url||"inline"}:`,Q.message)}if(R)try{await(0,eval)(`(async()=>{
736
736
  ${R}
737
737
  })()`)}catch(A){console.error("Rip runtime error:",A)}}let Z=K1.modules?.["ui.rip"];if(Z?.launch){let R=u[u.length-1],A=U.getAttribute("data-persist"),Q={bundle:R,hash:F==="hash"};if(A!=null)Q.persist=A==="local"?"local":!0;await Z.launch("",Q)}}else{let Y=[];for(let A of u){for(let[Q,X]of Object.entries(A.components||{}))Y.push({code:X,url:Q});if(A.data){let Q=U?.getAttribute("data-state"),X={};if(Q)try{X=JSON.parse(Q)}catch{}Object.assign(X,A.data),U?.setAttribute("data-state",JSON.stringify(X))}}Y.push(...$);let Z={skipRuntimes:!0,skipExports:!0,skipImports:!0},R=[];for(let A of Y){if(!A.code)continue;try{let Q=Y1(A.code,Z);R.push({js:Q,url:A.url||"inline"})}catch(Q){console.error(`Rip compile error in ${A.url||"inline"}:`,Q.message)}}if(!globalThis.__ripApp&&U){let A=globalThis.stash;if(A){let Q={},X=U.getAttribute("data-state");if(X)try{Q=JSON.parse(X)}catch(O){console.error("Rip: invalid data-state JSON:",O.message)}let H=A({data:Q});if(globalThis.__ripApp=H,typeof window<"u")window.app=H;let M=U.getAttribute("data-persist");if(M!=null&&globalThis.persistStash)globalThis.persistStash(H,{local:M==="local"})}}if(R.length>0){let A=R.map((X)=>X.js).join(`
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rip-lang",
3
- "version": "3.13.116",
3
+ "version": "3.13.117",
4
4
  "description": "A modern language that compiles to JavaScript",
5
5
  "type": "module",
6
6
  "main": "src/compiler.js",