rip-lang 3.13.132 → 3.13.133

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.132-blue.svg" alt="Version"></a>
12
+ <a href="CHANGELOG.md"><img src="https://img.shields.io/badge/version-3.13.133-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
@@ -10104,8 +10104,8 @@ globalThis.zip ??= (...a) => a[0].map((_, i) => a.map(b => b[i]));
10104
10104
  return new CodeGenerator({}).getComponentRuntime();
10105
10105
  }
10106
10106
  // src/browser.js
10107
- var VERSION = "3.13.132";
10108
- var BUILD_DATE = "2026-04-04@05:43:09GMT";
10107
+ var VERSION = "3.13.133";
10108
+ var BUILD_DATE = "2026-04-04@06:37:36GMT";
10109
10109
  if (typeof globalThis !== "undefined") {
10110
10110
  if (!globalThis.__rip)
10111
10111
  new Function(getReactiveRuntime())();
@@ -735,7 +735,7 @@ globalThis.sleep ??= (ms) => new Promise(r => setTimeout(r, ms));
735
735
  globalThis.todo ??= (msg) => { throw new Error(msg || "Not implemented"); };
736
736
  globalThis.warn ??= console.warn;
737
737
  globalThis.zip ??= (...a) => a[0].map((_, i) => a.map(b => b[i]));
738
- `}function L1(){return new f1({}).getReactiveRuntime()}function N1(){return new f1({}).getComponentRuntime()}var c2="3.13.132",j2="2026-04-04@05:43:09GMT";if(typeof globalThis<"u"){if(!globalThis.__rip)Function(L1())();if(!globalThis.__ripComponent)Function(N1())()}var O4=(f)=>{let w=f.match(/^[ \t]*(?=\S)/gm),A=Math.min(...(w||[]).map((_)=>_.length));return f.replace(RegExp(`^[ ]{${A}}`,"gm"),"").trim()};async function y2(){let f=[],w=document.querySelector('script[src$="rip.min.js"], script[src$="rip.js"]'),A=w?.getAttribute("data-src");if(A){for(let _ of A.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=O4(_.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)+`
738
+ `}function L1(){return new f1({}).getReactiveRuntime()}function N1(){return new f1({}).getComponentRuntime()}var c2="3.13.133",j2="2026-04-04@06:37:36GMT";if(typeof globalThis<"u"){if(!globalThis.__rip)Function(L1())();if(!globalThis.__ripComponent)Function(N1())()}var O4=(f)=>{let w=f.match(/^[ \t]*(?=\S)/gm),A=Math.min(...(w||[]).map((_)=>_.length));return f.replace(RegExp(`^[ ]{${A}}`,"gm"),"").trim()};async function y2(){let f=[],w=document.querySelector('script[src$="rip.min.js"], script[src$="rip.js"]'),A=w?.getAttribute("data-src");if(A){for(let _ of A.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=O4(_.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)+`
739
739
  `}catch(z){console.error(`Rip compile error in ${R.url||"inline"}:`,z.message)}if(Y)try{await(0,eval)(`(async()=>{
740
740
  ${Y}
741
741
  })()`)}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,M]of Object.entries(R.components||{}))W.push({code:M,url:z});if(R.data){let z=w?.getAttribute("data-state"),M={};if(z)try{M=JSON.parse(z)}catch{}Object.assign(M,R.data),w?.setAttribute("data-state",JSON.stringify(M))}}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={},M=w.getAttribute("data-state");if(M)try{z=JSON.parse(M)}catch(O){console.error("Rip: invalid data-state JSON:",O.message)}let D=R({data:z});if(globalThis.__ripApp=D,typeof window<"u")window.app=D;let J=w.getAttribute("data-persist");if(J!=null&&globalThis.persistStash)globalThis.persistStash(D,{local:J==="local"})}}if(Y.length>0){let R=Y.map((M)=>M.js).join(`
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rip-lang",
3
- "version": "3.13.132",
3
+ "version": "3.13.133",
4
4
  "description": "A modern language that compiles to JavaScript",
5
5
  "type": "module",
6
6
  "main": "src/compiler.js",