@fluixi/core 1.0.0-alpha.68 → 1.0.0-alpha.70
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/dist/cdn/core.global.js +1 -1
- package/dist/src/cdn/core.cjs +1 -1
- package/dist/src/cdn/core.mjs +1 -1
- package/dist/src/index.cjs +1 -1
- package/dist/src/index.d.ts +1 -4
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -0
- package/dist/src/index.mjs +1 -1
- package/dist/src/lib/client/index.cjs +1 -1
- package/dist/src/lib/client/index.mjs +1 -1
- package/dist/src/lib/core.cjs +1 -1
- package/dist/src/lib/core.d.ts +1 -2
- package/dist/src/lib/core.d.ts.map +1 -1
- package/dist/src/lib/core.js +5 -2
- package/dist/src/lib/core.mjs +1 -1
- package/dist/src/lib/index.cjs +1 -1
- package/dist/src/lib/index.mjs +1 -1
- package/dist/src/lib/render/deferred.cjs +1 -0
- package/dist/src/lib/render/deferred.d.ts +36 -0
- package/dist/src/lib/render/deferred.d.ts.map +1 -0
- package/dist/src/lib/render/deferred.js +141 -0
- package/dist/src/lib/render/deferred.mjs +1 -0
- package/dist/src/lib/render/index.cjs +1 -1
- package/dist/src/lib/render/index.d.ts +2 -0
- package/dist/src/lib/render/index.d.ts.map +1 -1
- package/dist/src/lib/render/index.js +6 -1
- package/dist/src/lib/render/index.mjs +1 -1
- package/dist/src/lib/render/versions.cjs +1 -0
- package/dist/src/lib/render/versions.d.ts +27 -0
- package/dist/src/lib/render/versions.d.ts.map +1 -0
- package/dist/src/lib/render/versions.js +51 -0
- package/dist/src/lib/render/versions.mjs +1 -0
- package/dist/src/utils.cjs +1 -0
- package/dist/src/utils.d.ts +10 -0
- package/dist/src/utils.d.ts.map +1 -0
- package/dist/src/utils.js +9 -0
- package/dist/src/utils.mjs +1 -0
- package/dist/src/version.generated.cjs +1 -0
- package/dist/src/version.generated.d.ts +3 -0
- package/dist/src/version.generated.d.ts.map +1 -0
- package/dist/src/version.generated.js +3 -0
- package/dist/src/version.generated.mjs +1 -0
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +10 -10
- package/src/index.ts +1 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which build of each package is actually running.
|
|
3
|
+
*
|
|
4
|
+
* Two reasons this exists rather than a single `fluixi-js="v1"` stamp:
|
|
5
|
+
*
|
|
6
|
+
* - **A bug report needs the real versions.** "v1" says nothing; `1.0.0-alpha.68` says
|
|
7
|
+
* exactly which build to check out.
|
|
8
|
+
* - **The packages can disagree.** `@fluixi/core`, `@fluixi/dom` and `@fluixi/reactive`
|
|
9
|
+
* version together but are resolved separately, so a stale lockfile or a mixed install
|
|
10
|
+
* can pair one version of the DOM runtime with another of the signal core. That is the
|
|
11
|
+
* kind of fault that shows up as inexplicable reactivity behaviour, and the DOM now
|
|
12
|
+
* says so out loud.
|
|
13
|
+
*
|
|
14
|
+
* Read from generated constants rather than `package.json`: bundlers and ESM resolvers
|
|
15
|
+
* treat a manifest import inconsistently, and it would pull the whole file into the
|
|
16
|
+
* bundle for one string.
|
|
17
|
+
*/
|
|
18
|
+
import { VERSION as CORE } from '../../version.generated.js';
|
|
19
|
+
import { VERSION as DOM } from '@fluixi/dom';
|
|
20
|
+
import { VERSION as REACTIVE } from '@fluixi/reactive';
|
|
21
|
+
export const versions = { core: CORE, dom: DOM, reactive: REACTIVE };
|
|
22
|
+
/**
|
|
23
|
+
* Stamp the versions onto the mount element and expose them as `window.Fluixi`.
|
|
24
|
+
*
|
|
25
|
+
* The attributes make it visible in the page source and in a screenshot of devtools —
|
|
26
|
+
* which is usually all a bug report contains — while the global is what you reach for in
|
|
27
|
+
* a console.
|
|
28
|
+
*/
|
|
29
|
+
export function stampVersions(container) {
|
|
30
|
+
container.setAttribute('fluixi', versions.core);
|
|
31
|
+
container.setAttribute('fx-dom', versions.dom);
|
|
32
|
+
container.setAttribute('fx-reactive', versions.reactive);
|
|
33
|
+
if (typeof globalThis !== 'undefined')
|
|
34
|
+
globalThis.Fluixi = versions;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Warn when the three packages are not from the same release.
|
|
38
|
+
*
|
|
39
|
+
* They are versioned as one unit, so a mismatch means the install is wrong, not that a
|
|
40
|
+
* combination needs supporting. Worth saying once, loudly, rather than letting it surface
|
|
41
|
+
* later as a reactivity bug nobody can reproduce.
|
|
42
|
+
*/
|
|
43
|
+
export function warnOnVersionSkew() {
|
|
44
|
+
const distinct = new Set(Object.values(versions));
|
|
45
|
+
if (distinct.size <= 1)
|
|
46
|
+
return;
|
|
47
|
+
console.warn(`[fluixi] package versions disagree — core ${versions.core}, dom ${versions.dom}, ` +
|
|
48
|
+
`reactive ${versions.reactive}. These ship as one release, so a mismatch usually ` +
|
|
49
|
+
`means a stale lockfile or two copies resolved side by side. Reinstall, or check ` +
|
|
50
|
+
`for duplicates with \`pnpm why @fluixi/dom\`.`);
|
|
51
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var o="1.0.0-alpha.70";import{VERSION as s}from"@fluixi/dom";import{VERSION as t}from"@fluixi/reactive";var e={core:o,dom:s,reactive:t};function c(i){i.setAttribute("fluixi",e.core),i.setAttribute("fx-dom",e.dom),i.setAttribute("fx-reactive",e.reactive),typeof globalThis<"u"&&(globalThis.Fluixi=e)}function d(){new Set(Object.values(e)).size<=1||console.warn(`[fluixi] package versions disagree — core ${e.core}, dom ${e.dom}, reactive ${e.reactive}. These ship as one release, so a mismatch usually means a stale lockfile or two copies resolved side by side. Reinstall, or check for duplicates with \`pnpm why @fluixi/dom\`.`)}export{c as stampVersions,e as versions,d as warnOnVersionSkew};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var a=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var p=(r,o,f,x)=>{if(o&&typeof o=="object"||typeof o=="function")for(let e of c(o))!d.call(r,e)&&e!==f&&a(r,e,{get:()=>o[e],enumerable:!(x=b(o,e))||x.enumerable});return r},t=(r,o,f)=>(p(r,o,"default"),f&&p(f,o,"default"));var g=r=>p(a({},"__esModule",{value:!0}),r);var m={};module.exports=g(m);t(m,require("@fluixi/utils"),module.exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `@fluixi/utils` surface, re-exported for convenience.
|
|
3
|
+
*
|
|
4
|
+
* A separate entry point on purpose: re-exporting it from the main `@fluixi/core` barrel
|
|
5
|
+
* dragged the entire library into every app, whether or not a single helper was used.
|
|
6
|
+
* Importing it here is opt-in, so only apps that want it pay for it — and prefer
|
|
7
|
+
* `@fluixi/utils/object` and friends, which are finer-grained again.
|
|
8
|
+
*/
|
|
9
|
+
export * from '@fluixi/utils';
|
|
10
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `@fluixi/utils` surface, re-exported for convenience.
|
|
3
|
+
*
|
|
4
|
+
* A separate entry point on purpose: re-exporting it from the main `@fluixi/core` barrel
|
|
5
|
+
* dragged the entire library into every app, whether or not a single helper was used.
|
|
6
|
+
* Importing it here is opt-in, so only apps that want it pay for it — and prefer
|
|
7
|
+
* `@fluixi/utils/object` and friends, which are finer-grained again.
|
|
8
|
+
*/
|
|
9
|
+
export * from '@fluixi/utils';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"@fluixi/utils";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var c=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var n=Object.prototype.hasOwnProperty;var r=(o,a)=>{for(var t in a)c(o,t,{get:a[t],enumerable:!0})},s=(o,a,t,e)=>{if(a&&typeof a=="object"||typeof a=="function")for(let p of l(a))!n.call(o,p)&&p!==t&&c(o,p,{get:()=>a[p],enumerable:!(e=h(a,p))||e.enumerable});return o};var x=o=>s(c({},"__esModule",{value:!0}),o);var I={};r(I,{VERSION:()=>E});module.exports=x(I);var E="1.0.0-alpha.70";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.generated.d.ts","sourceRoot":"","sources":["../../src/version.generated.ts"],"names":[],"mappings":"AAEA,uEAAuE;AACvE,eAAO,MAAM,OAAO,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a="1.0.0-alpha.70";export{a as VERSION};
|