jq79 0.6.4 → 0.6.6

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.
@@ -14,8 +14,30 @@ export type ReactiveDeepData<T> = T & {
14
14
  $effect: (run: () => void, options?: EffectOptions) => Unsubscribe;
15
15
  $dispose: () => void;
16
16
  };
17
+ type TrieNode = {
18
+ children: Map<string, TrieNode> | null;
19
+ own: Effect | null;
20
+ ownMany: Set<Effect> | null;
21
+ deep: Effect | null;
22
+ deepMany: Set<Effect> | null;
23
+ parent: TrieNode | null;
24
+ segment: string;
25
+ };
26
+ export declare const addOwn: (node: TrieNode, effect: Effect) => void;
27
+ export declare const addDeep: (node: TrieNode, effect: Effect) => void;
28
+ export declare const removeOwn: (node: TrieNode, effect: Effect) => void;
29
+ export declare const removeDeep: (node: TrieNode, effect: Effect) => void;
30
+ export declare const eachOwn: (node: TrieNode, visit: (effect: Effect) => void) => void;
31
+ export declare const eachDeep: (node: TrieNode, visit: (effect: Effect) => void) => void;
17
32
  export declare const $toRaw: <T>(value: T) => T;
18
33
  export declare const untracked: <T>(fn: () => T) => T;
34
+ export type Effect = {
35
+ deps: Set<string>;
36
+ run: () => void;
37
+ reindex: Set<(deps: Set<string>) => void>;
38
+ deep: boolean;
39
+ order: number;
40
+ };
19
41
  export declare const ALSO_WAKEN_BY: unique symbol;
20
42
  export declare const $reactive: <T extends Record<string, any>>(data: T) => ReactiveDeepData<T>;
21
43
  export type EffectScope = {
@@ -11,4 +11,5 @@ export type PropDecl = {
11
11
  export declare const parsePropsPattern: (pattern: string | undefined) => PropDecl[] | null;
12
12
  export declare const parseFactoryProps: (src: string) => PropDecl[] | null;
13
13
  export declare const transformFactoryScript: (src: string) => string | null;
14
+ export declare const freeIdentifiers: (expr: string) => string[] | null;
14
15
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jq79",
3
- "version": "0.6.4",
3
+ "version": "0.6.6",
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",
@@ -68,6 +68,8 @@
68
68
  "benchmark:ab": "node scripts/run-ab.mjs",
69
69
  "benchmark:comparison": "node scripts/run-comparison.mjs",
70
70
  "benchmark:once": "node scripts/run-once-render.mjs",
71
+ "check:svg-names": "node scripts/check-svg-attribute-names.mjs",
72
+ "check:box": "node scripts/check-box-layout.mjs",
71
73
  "prepublishOnly": "npm test && npm run build"
72
74
  },
73
75
  "peerDependencies": {