jq79 0.4.10 → 0.4.11
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/jq79.cjs +5 -5
- package/dist/jq79.cjs.map +1 -1
- package/dist/jq79.d.ts +1 -0
- package/dist/jq79.global.js +5 -5
- package/dist/jq79.global.js.map +1 -1
- package/dist/jq79.js +5 -5
- package/dist/jq79.js.map +1 -1
- package/package.json +1 -1
- package/src/jq79.ts +7 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jq79",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.11",
|
|
4
4
|
"description": "Mini reactive component library: single-file components, Svelte-style setup scripts, fine-grained proxy reactivity. Single-file build, zero dependencies.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"reactive",
|
package/src/jq79.ts
CHANGED
|
@@ -1055,11 +1055,6 @@ const releaseStyle = (content: string) => {
|
|
|
1055
1055
|
}
|
|
1056
1056
|
}
|
|
1057
1057
|
|
|
1058
|
-
// library helpers injected into setup scripts. They behave like extra
|
|
1059
|
-
// globals: a same-named scope property (render data or a top-level
|
|
1060
|
-
// declaration) shadows them
|
|
1061
|
-
const SETUP_HELPERS: Record<string, any> = { $, $$, $create, $reactive }
|
|
1062
|
-
|
|
1063
1058
|
// scripts run inside `with (scriptScope)`, where scriptScope's `has` trap
|
|
1064
1059
|
// claims ownership of every name that is neither a real global, an injected
|
|
1065
1060
|
// library helper, nor one of the internal helpers. This makes `with` route ALL
|
|
@@ -1572,8 +1567,15 @@ export class Component79 {
|
|
|
1572
1567
|
}
|
|
1573
1568
|
}
|
|
1574
1569
|
|
|
1570
|
+
export { Component79 as C79 }
|
|
1571
|
+
|
|
1575
1572
|
export const parseComponent = (component: string): Component79 => new Component79(component)
|
|
1576
1573
|
|
|
1574
|
+
// library helpers injected into setup scripts. They behave like extra
|
|
1575
|
+
// globals: a same-named scope property (render data or a top-level
|
|
1576
|
+
// declaration) shadows them
|
|
1577
|
+
const SETUP_HELPERS: Record<string, any> = { $, $$, $create, $reactive, Component79 }
|
|
1578
|
+
|
|
1577
1579
|
// the hot-reload handshake. jq79/dev serves a classic script that sets the flag
|
|
1578
1580
|
// below; classic scripts run before deferred module ones, so the flag is always
|
|
1579
1581
|
// set before this module evaluates. The page's copy of the runtime can come from
|