rip-lang 3.13.110 → 3.13.111

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.110-blue.svg" alt="Version"></a>
12
+ <a href="CHANGELOG.md"><img src="https://img.shields.io/badge/version-3.13.111-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
@@ -9640,8 +9640,8 @@ globalThis.zip ??= (...a) => a[0].map((_, i) => a.map(b => b[i]));
9640
9640
  return new CodeGenerator({}).getComponentRuntime();
9641
9641
  }
9642
9642
  // src/browser.js
9643
- var VERSION = "3.13.110";
9644
- var BUILD_DATE = "2026-03-14@09:05:54GMT";
9643
+ var VERSION = "3.13.111";
9644
+ var BUILD_DATE = "2026-03-14@09:26:52GMT";
9645
9645
  if (typeof globalThis !== "undefined") {
9646
9646
  if (!globalThis.__rip)
9647
9647
  new Function(getReactiveRuntime())();
@@ -732,7 +732,7 @@ globalThis.sleep ??= (ms) => new Promise(r => setTimeout(r, ms));
732
732
  globalThis.todo ??= (msg) => { throw new Error(msg || "Not implemented"); };
733
733
  globalThis.warn ??= console.warn;
734
734
  globalThis.zip ??= (...a) => a[0].map((_, i) => a.map(b => b[i]));
735
- `}function I1(){return new f1({}).getReactiveRuntime()}function B1(){return new f1({}).getComponentRuntime()}var N2="3.13.110",S2="2026-03-14@09:05:54GMT";if(typeof globalThis<"u"){if(!globalThis.__rip)Function(I1())();if(!globalThis.__ripComponent)Function(B1())()}var A7=(f)=>{let U=f.match(/^[ \t]*(?=\S)/gm),_=Math.min(...(U||[]).map((w)=>w.length));return f.replace(RegExp(`^[ ]{${_}}`,"gm"),"").trim()};async function L2(){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=A7(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 A=await Z.json();Y.bundle=A}}));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 A="";for(let R of $)try{A+=F1(R.code,Y)+`
735
+ `}function I1(){return new f1({}).getReactiveRuntime()}function B1(){return new f1({}).getComponentRuntime()}var N2="3.13.111",S2="2026-03-14@09:26:52GMT";if(typeof globalThis<"u"){if(!globalThis.__rip)Function(I1())();if(!globalThis.__ripComponent)Function(B1())()}var A7=(f)=>{let U=f.match(/^[ \t]*(?=\S)/gm),_=Math.min(...(U||[]).map((w)=>w.length));return f.replace(RegExp(`^[ ]{${_}}`,"gm"),"").trim()};async function L2(){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=A7(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 A=await Z.json();Y.bundle=A}}));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 A="";for(let R of $)try{A+=F1(R.code,Y)+`
736
736
  `}catch(Q){console.error(`Rip compile error in ${R.url||"inline"}:`,Q.message)}if(A)try{await(0,eval)(`(async()=>{
737
737
  ${A}
738
738
  })()`)}catch(R){console.error("Rip runtime error:",R)}}let Z=X1.modules?.["ui.rip"];if(Z?.launch){let A=u[u.length-1],R=U.getAttribute("data-persist"),Q={bundle:A,hash:F==="hash"};if(R!=null)Q.persist=R==="local"?"local":!0;await Z.launch("",Q)}}else{let Y=[];for(let R of u){for(let[Q,X]of Object.entries(R.components||{}))Y.push({code:X,url:Q});if(R.data){let Q=U?.getAttribute("data-state"),X={};if(Q)try{X=JSON.parse(Q)}catch{}Object.assign(X,R.data),U?.setAttribute("data-state",JSON.stringify(X))}}Y.push(...$);let Z={skipRuntimes:!0,skipExports:!0,skipImports:!0},A=[];for(let R of Y){if(!R.code)continue;try{let Q=F1(R.code,Z);A.push({js:Q,url:R.url||"inline"})}catch(Q){console.error(`Rip compile error in ${R.url||"inline"}:`,Q.message)}}if(!globalThis.__ripApp&&U){let R=globalThis.stash;if(R){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=R({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(A.length>0){let R=A.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.110",
3
+ "version": "3.13.111",
4
4
  "description": "A modern language that compiles to JavaScript",
5
5
  "type": "module",
6
6
  "main": "src/compiler.js",
@@ -37,6 +37,7 @@
37
37
  "parser": "bun src/grammar/solar.rip -o src/parser.js src/grammar/grammar.rip",
38
38
  "serve": "bun scripts/serve.js",
39
39
  "test": "bun test/runner.js",
40
+ "test:types": "cd test/types && ../../bin/rip check && bunx tsc",
40
41
  "test:ui": "bun run --cwd packages/ui test:e2e",
41
42
  "test:ui:chromium": "bun run --cwd packages/ui test:e2e:chromium",
42
43
  "test:ui:axe": "bun run --cwd packages/ui test:e2e:axe",