rari 0.17.8 → 0.17.10

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.
Files changed (55) hide show
  1. package/dist/cli.d.mts +0 -4
  2. package/dist/cli.mjs +1 -1
  3. package/dist/define-BIL9PMLh.mjs +1 -0
  4. package/dist/{define-BafO1-XT.d.mts → define-DCZgXfOp.d.mts} +0 -2
  5. package/dist/font/google-catalog.d.mts +15 -0
  6. package/dist/font/google.d.mts +1 -3
  7. package/dist/font/local.d.mts +2 -4
  8. package/dist/font.d.mts +1 -1
  9. package/dist/get-client-component-DVAbynLr.mjs +1 -0
  10. package/dist/headers.d.mts +1 -3
  11. package/dist/image/runtime-config.d.mts +1 -3
  12. package/dist/image/static.d.mts +1 -1
  13. package/dist/image.d.mts +1 -5
  14. package/dist/index.d.mts +2 -4
  15. package/dist/mdx/define.d.mts +1 -1
  16. package/dist/mdx/define.mjs +1 -1
  17. package/dist/mdx/registry.d.mts +1 -3
  18. package/dist/mdx.d.mts +1 -5
  19. package/dist/mdx.mjs +1 -1
  20. package/dist/og.d.mts +0 -2
  21. package/dist/platform.d.mts +1 -3
  22. package/dist/{preload-modules-BDQFWAlZ.mjs → preload-modules-0iyuP4Vs.mjs} +2 -2
  23. package/dist/proxy/RariRequest.d.mts +2 -4
  24. package/dist/proxy/RariResponse.d.mts +1 -1
  25. package/dist/proxy/executor.d.mts +1 -3
  26. package/dist/{react-helpers-GTRYJwF2.d.mts → react-helpers-CZtKqfS6.d.mts} +0 -2
  27. package/dist/{router-kf_rLP_F.mjs → router-861SNPMt.mjs} +1 -1
  28. package/dist/router.d.mts +0 -8
  29. package/dist/router.mjs +1 -1
  30. package/dist/runtime/AppRouterProvider.d.mts +1 -5
  31. package/dist/runtime/AppRouterProvider.mjs +1 -1
  32. package/dist/runtime/ClientRouter.d.mts +1 -3
  33. package/dist/runtime/ClientRouter.mjs +3 -3
  34. package/dist/runtime/ErrorBoundaryWrapper.d.mts +0 -2
  35. package/dist/runtime/ErrorBoundaryWrapper.mjs +1 -1
  36. package/dist/runtime/action-flight-refresh.d.mts +0 -2
  37. package/dist/runtime/action-revalidation-kind.d.mts +1 -3
  38. package/dist/runtime/call-server.d.mts +1 -3
  39. package/dist/runtime/entry-client.d.mts +2 -4
  40. package/dist/runtime/entry-client.mjs +3 -3
  41. package/dist/runtime/merge-flight-refresh.d.mts +2 -4
  42. package/dist/runtime/rsc-client-runtime.d.mts +1 -5
  43. package/dist/runtime/rsc-client-runtime.mjs +1 -1
  44. package/dist/runtime/rsc-references.d.mts +0 -2
  45. package/dist/{sitemap-DIL-PFSt.mjs → sitemap-ByPlT2YN.mjs} +1 -1
  46. package/dist/{static-modules-BnpA9S9v.d.mts → static-modules-DmO7M_cF.d.mts} +0 -4
  47. package/dist/{types-DAdRjhuk.d.mts → types-CSDt4P_t.d.mts} +0 -4
  48. package/dist/{types-C8N3Hc8I.d.mts → types-Cw2SI7r7.d.mts} +0 -2
  49. package/dist/{types-yeW6ju9Y.d.mts → types-DNk27dqJ.d.mts} +0 -10
  50. package/dist/{types-CkZPEEdi.d.mts → types-DeWes1rB.d.mts} +0 -2
  51. package/dist/vite.d.mts +2 -26
  52. package/dist/vite.mjs +77 -75
  53. package/package.json +13 -13
  54. package/dist/define-Dsj1lR4C.mjs +0 -1
  55. package/dist/get-client-component-D2K213pV.mjs +0 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rari",
3
3
  "type": "module",
4
- "version": "0.17.8",
4
+ "version": "0.17.10",
5
5
  "description": "Runtime Accelerated Rendering Infrastructure (rari)",
6
6
  "author": "Ryan Skinner",
7
7
  "license": "MIT",
@@ -138,8 +138,8 @@
138
138
  },
139
139
  "peerDependencies": {
140
140
  "@mdx-js/mdx": "^3.1.1",
141
- "@rari/use-cache": "^0.17.8",
142
- "oxc-transform-react": "^0.155.0",
141
+ "@rari/use-cache": "^0.17.10",
142
+ "oxc-transform-react": "^0.158.0",
143
143
  "react": "^19.3.1",
144
144
  "react-dom": "^19.3.1"
145
145
  },
@@ -160,25 +160,25 @@
160
160
  "react-server-dom-webpack": "^19.3.1"
161
161
  },
162
162
  "optionalDependencies": {
163
- "rari-darwin-arm64": "0.17.8",
164
- "rari-darwin-x64": "0.17.8",
165
- "rari-linux-arm64": "0.17.8",
166
- "rari-linux-x64": "0.17.8",
167
- "rari-win32-arm64": "0.17.8",
168
- "rari-win32-x64": "0.17.8"
163
+ "rari-darwin-arm64": "0.17.10",
164
+ "rari-darwin-x64": "0.17.10",
165
+ "rari-linux-arm64": "0.17.10",
166
+ "rari-linux-x64": "0.17.10",
167
+ "rari-win32-arm64": "0.17.10",
168
+ "rari-win32-x64": "0.17.10"
169
169
  },
170
170
  "devDependencies": {
171
171
  "@mdx-js/mdx": "^3.1.1",
172
172
  "@rari/deploy": "0.0.0",
173
173
  "@rari/logger": "0.0.0",
174
- "@rari/use-cache": "0.17.8",
175
- "@types/node": "^26.6.5",
174
+ "@rari/use-cache": "0.17.10",
175
+ "@types/node": "^26.6.6",
176
176
  "@types/react": "^19.3.0",
177
177
  "@types/react-dom": "^19.3.0",
178
- "oxc-transform-react": "^0.155.0",
178
+ "oxc-transform-react": "^0.158.0",
179
179
  "typescript": "npm:@typescript/typescript6@^6.0.2",
180
180
  "typescript-7": "npm:typescript@^7.0.2",
181
- "vite-plus": "^1.3.0"
181
+ "vite-plus": "^1.6.0"
182
182
  },
183
183
  "scripts": {
184
184
  "build": "pnpm typecheck && vp pack && node ./scripts/update-google-fonts.ts --types-only",
@@ -1 +0,0 @@
1
- import{g as e}from"./type-guards-BLY2PlGR.mjs";import{s as t}from"./regex-constants-DzXwNGh2.mjs";import{t as n}from"./names-CLmM0CPi.mjs";import{registerClientReference as r}from"./runtime/rsc-references.mjs";import{r as i}from"./rari-global-5vGzhToD.mjs";function a(e,n,a=`default`){let o=`${n}#${a}`;if(typeof globalThis<`u`){let r=i(),s=n.replace(t,``).split(`/`).pop(),c=s!=null&&s!==``?s:a,l={id:a==="default"?c:a,path:n,type:`client`,component:e,registered:!0};r[o]=l,r[c]=l,r[n]=l}function s(){throw Error(`Attempted to call ${a}() from the server but ${a} is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.`)}return r(s,n,a)}function o(e){let t={};for(let[n,{component:r,id:i,exportName:o=`default`}]of Object.entries(e))t[n]=a(r,i,o);return t}function s(t){return e(t)&&typeof t.id==`string`&&`component`in t}function c(e){return Array.isArray(e)?[...e]:Object.entries(e).map(([e,t])=>{if(s(t))return{component:t.component,id:t.id,exportName:t.exportName,name:e,client:t.client??!0};throw Error(`[rari/mdx] Component "${e}" is missing module metadata. Pass components to defineMdxComponents({ ... }) in a file processed by the rari vite plugin.`)})}function l(e){let t=c(e);return e=>{let r={},i={},a=new Set(n(e));for(let e of t)a.has(e.name)&&(e.client===!1?r[e.name]=e.component:i[e.name]={component:e.component,id:e.id,exportName:e.exportName});return{...r,...o(i)}}}export{l as t};
@@ -1 +0,0 @@
1
- import{S as e,g as t,m as n,u as r}from"./type-guards-BLY2PlGR.mjs";import{o as i}from"./path-CTEC1xmy.mjs";import{n as a,r as o,t as s}from"./rari-global-5vGzhToD.mjs";import{createElement as c}from"react";function l(e){return e.startsWith(`./`)?[e,e.slice(2)]:[e,`./${e}`]}function u(e){let t=i(e),n=/* @__PURE__ */ new Set([t]),r=t.indexOf(`/src/`);r!==-1&&n.add(t.slice(r+1));let a=t.indexOf(`/components/`);return a!==-1&&n.add(t.slice(a+1)),[...n]}function d(e,t){if(t!==void 0)return t;let n=e.exportName;if(n!=null&&n!==``)return n}function f(e,t){let n=i(e),r=i(t);return!!(n===r||r.includes(`/`)&&n.endsWith(`/${r}`)||n.includes(`/`)&&r.endsWith(`/${n}`))}function p(e,t,n){for(let r of u(e))for(let e of l(r)){let r=Object.values(n).find(t=>typeof t.path!=`string`||t.path===``?!1:f(t.path,e));if(r)return{info:r,exportName:d(r,t)}}return null}function m(e){return e.loading=!0,e.loadPromise=e.loader().then(t=>(e.component=t,e.registered=!0,e.loading=!1,t)).catch(t=>{throw console.error(`[rari] Failed to load component ${e.id}:`,t),e.loading=!1,e.loadError=t,e.loadPromise=void 0,t}),e.loadPromise}async function h(e,t){return e.component==null?e.loadPromise?(await e.loadPromise,g(e,t)):e.loader?await m(e)==null?null:g(e,t):null:g(e,t)}function g(e,r){let i=e.component;if(i==null)return null;if(n(i))return i;if(!t(i))return null;if(r==null||r===``||r==="default")return i.default??i;if(r in i)return i[r];let a=i.default;return t(a)&&r in a?a[r]:null}function _(e){let t=i(e);return t===e?[t]:[t,e]}function v(e){let t=o(),n=a(),r=s(),c=i(e),l=y(e,t);if(l!=null)return l;let u=c.indexOf(`#`),d=u===-1?c:c.slice(0,u),f=u===-1?void 0:c.slice(u+1);return b(e,f,t)??x(e,d,f,t,n,r)??p(d,f,t)}function y(e,t){for(let n of _(e)){if(!(n in t))continue;let e=t[n],r=n.indexOf(`#`);return{info:e,exportName:d(e,r===-1?void 0:n.slice(r+1))}}return null}function b(e,t,n){for(let r of _(e)){let e=r.indexOf(`#`),i=e===-1?r:r.slice(0,e);if(i in n)return{info:n[i],exportName:d(n[i],t)}}return null}function x(e,t,n,r,a,o){let s=i(e)===e?[t]:[t,e.includes(`#`)?e.slice(0,e.indexOf(`#`)):e];for(let e of s){let t=S(e,n,r,a);if(t!=null)return t;let i=C(e,n,r,o);if(i!=null)return i}return null}function S(e,t,n,r){for(let i of l(e)){if(!(i in r))continue;let e=r[i];if(e!==``&&e in n)return{info:n[e],exportName:d(n[e],t)}}return null}function C(e,t,n,r){if(!(e in r))return null;let i=r[e];return i===``||!(i in n)?null:{info:n[i],exportName:d(n[i],t)}}function w(t){return t.component!=null||t.loader==null?t.loadPromise:t.loadError==null?t.loadPromise?t.loadPromise:m(t):Promise.reject(e(t.loadError))}function T(e,r,i){let a=d(e,i),o=g({...e,component:r},a);if(o==null)return t(r)&&(`default`in r||`__esModule`in r)?r:n(r)?{default:r,[a!=null&&a!==``?a:`default`]:r,__esModule:!0}:r;let s=a!=null&&a!==``?a:`default`;return{...t(r)?r:{},default:o,[s]:o,__esModule:!0}}function E(t,n,i,a){let o=d(t,a),s=o!=null&&o!==``?o:`default`,l=a=>{if(t.loadError!=null)throw e(t.loadError);if(t.component!=null){let e=g(t,o);if(e==null)throw Error(`[rari] Lazy component "${n}" loaded but export "${s}" is missing`);if(!r(e))throw Error(`[rari] Lazy component "${n}" export "${s}" is not a component`);return c(e,a)}throw i};return l.displayName=`Lazy(${t.displayName??t.exportName??n})`,{default:l,[s]:l,__esModule:!0}}function D(e){let t=v(e);if(!t)return import.meta.env.DEV&&console.warn(`[rari] __rari_rsc_require__: component "${e}" not found in registry`),{};let{info:n,exportName:r}=t;if(n.component!=null)return T(n,n.component,r);if(n.loader){if(n.loadError!=null)return E(n,e,Promise.resolve(),r);let t=w(n);if(t)return E(n,e,t,r)}return{}}async function O(e){let t=v(e);return t?h(t.info,t.exportName):null}function k(){if(typeof window>`u`)return;let e=e=>{let t=o(),n=i(e);return e in t?t[e]:n in t?t[n]:Object.values(t).find(t=>t.path===e||t.path===n)};Reflect.set(globalThis,`__rari_get_script_filename__`,t=>{let n=e(t)?.path??i(t),r=i(n);if(r.startsWith(`http://`)||r.startsWith(`https://`))return r;let a=r.indexOf(`/src/`);return a===-1?r.startsWith(`src/`)?`/${r}`:r.startsWith(`/`)?r:`/${r}`:r.slice(a)}),Reflect.set(globalThis,`__rari_chunk_load__`,async t=>{let n=e(t);if(n&&n.component==null&&n.loader!=null){let e=w(n);if(e)return e.then(()=>void 0)}return n?.loadPromise==null?Promise.resolve():n.loadPromise.then(()=>void 0)})}export{k as n,D as r,O as t};