@manyducks.co/dolla 2.0.0-alpha.63 → 2.0.0-alpha.65

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 (56) hide show
  1. package/dist/core/app.d.ts +24 -0
  2. package/dist/core/index.d.ts +2 -2
  3. package/dist/core/nodes/dynamic.d.ts +2 -2
  4. package/dist/core/nodes/element.d.ts +1 -0
  5. package/dist/core/scheduler.d.ts +12 -4
  6. package/dist/core/signals.d.ts +10 -9
  7. package/dist/hooks/index.d.ts +2 -2
  8. package/dist/hooks.js +1 -1
  9. package/dist/hooks.js.map +1 -1
  10. package/dist/http.js +1 -1
  11. package/dist/i18n.js +3 -3
  12. package/dist/index-Bh8JrCt1.js +556 -0
  13. package/dist/index-Bh8JrCt1.js.map +1 -0
  14. package/dist/index.js +113 -70
  15. package/dist/index.js.map +1 -1
  16. package/dist/jsx-dev-runtime.js +1 -1
  17. package/dist/jsx-runtime.js +1 -1
  18. package/dist/{logger-B7RBYtzP.js → logger-BuZRMjzE.js} +5 -5
  19. package/dist/{logger-B7RBYtzP.js.map → logger-BuZRMjzE.js.map} +1 -1
  20. package/dist/markup-DsJHUuod.js +1179 -0
  21. package/dist/markup-DsJHUuod.js.map +1 -0
  22. package/dist/router/hooks.d.ts +2 -0
  23. package/dist/router/index.d.ts +1 -0
  24. package/dist/router/router.d.ts +1 -0
  25. package/dist/router.js +3 -5
  26. package/dist/router.js.map +1 -1
  27. package/dist/{signals-DbDmN2gr.js → signals-BDlRtifZ.js} +264 -255
  28. package/dist/signals-BDlRtifZ.js.map +1 -0
  29. package/dist/typeChecking-D0-H8_Xm.js +62 -0
  30. package/dist/{typeChecking-CbltMOUt.js.map → typeChecking-D0-H8_Xm.js.map} +1 -1
  31. package/dist/utils.d.ts +5 -0
  32. package/docs/components.md +21 -0
  33. package/docs/hooks.md +3 -3
  34. package/docs/signals.md +67 -53
  35. package/docs/stores.md +13 -4
  36. package/package.json +4 -4
  37. package/dist/core/mount.d.ts +0 -15
  38. package/dist/core/mount.test.d.ts +0 -0
  39. package/dist/markup-CW_lWDfq.js +0 -1115
  40. package/dist/markup-CW_lWDfq.js.map +0 -1
  41. package/dist/router-CBGsADQ4.js +0 -543
  42. package/dist/router-CBGsADQ4.js.map +0 -1
  43. package/dist/signals-DbDmN2gr.js.map +0 -1
  44. package/dist/typeChecking-CbltMOUt.js +0 -71
  45. package/docs/state.md +0 -141
  46. package/examples/webcomponent/index.html +0 -14
  47. package/examples/webcomponent/main.js +0 -165
  48. package/notes/TODO.md +0 -6
  49. package/notes/context-routes.md +0 -61
  50. package/notes/custom-nodes.md +0 -17
  51. package/notes/effection-idea.md +0 -34
  52. package/notes/mixins.md +0 -22
  53. package/notes/molecule.md +0 -35
  54. package/notes/readme-scratch.md +0 -260
  55. package/notes/route-middleware.md +0 -42
  56. package/notes/stores.md +0 -79
@@ -0,0 +1,24 @@
1
+ import { Router, RouterOptions } from "../router/router";
2
+ import { View } from "../types";
3
+ import { Context } from "./context";
4
+ import { LoggerCrashProps } from "./logger";
5
+ interface AppOptions {
6
+ view?: View<{}>;
7
+ router?: Router;
8
+ context?: Context;
9
+ }
10
+ declare class App {
11
+ #private;
12
+ get context(): Context;
13
+ constructor(options: AppOptions);
14
+ setCrashView(view: View<LoggerCrashProps>): this;
15
+ mount(element: string | Element): Promise<void>;
16
+ unmount(): Promise<void>;
17
+ }
18
+ export interface CreateAppOptions {
19
+ context?: Context;
20
+ }
21
+ export declare function createApp(view: View<{}>, options?: CreateAppOptions): App;
22
+ export declare function createApp(routerOptions: RouterOptions, options?: CreateAppOptions): App;
23
+ export declare function createApp(router: Router, options?: CreateAppOptions): App;
24
+ export {};
@@ -1,4 +1,5 @@
1
- export { $, batch, effect, get, memo, writable, untracked } from "./signals.js";
1
+ export { createApp } from "./app.js";
2
+ export { $, batch, effect, get, memo as memo, writable, untracked } from "./signals.js";
2
3
  export type { MaybeSignal, Writable, Signal } from "./signals.js";
3
4
  export { createContext } from "./context.js";
4
5
  export type { Context } from "./context.js";
@@ -6,7 +7,6 @@ export { m, Markup, MarkupNode, portal, render, repeat, unless, when } from "./m
6
7
  export { ref, type Ref } from "./ref.js";
7
8
  export { For, type ForProps } from "./views/for.js";
8
9
  export { Show, type ShowProps } from "./views/show.js";
9
- export { mount, type UnmountFn } from "./mount.js";
10
10
  export { deepEqual, shallowEqual, strictEqual } from "../utils.js";
11
11
  export { getEnv, setEnv } from "./env.js";
12
12
  export { createLogger, onLoggerCrash, setLogFilter, setLogLevels } from "./logger.js";
@@ -9,9 +9,9 @@ export declare class DynamicNode extends MarkupNode {
9
9
  private root;
10
10
  private children;
11
11
  private context;
12
- private slot;
12
+ private $slot;
13
13
  private unsubscribe?;
14
- constructor(context: Context, slot: Signal<any>);
14
+ constructor(context: Context, $slot: Signal<any>);
15
15
  getRoot(): Text;
16
16
  isMounted(): boolean;
17
17
  mount(parent: Node, after?: Node): void;
@@ -19,6 +19,7 @@ export declare class ElementNode extends MarkupNode {
19
19
  mount(parent: Node, after?: Node): void;
20
20
  unmount(skipDOM?: boolean): void;
21
21
  move(parent: Element, after?: Node): void;
22
+ private update;
22
23
  private attachProp;
23
24
  private getKey;
24
25
  private applyProps;
@@ -1,13 +1,21 @@
1
1
  export type Callback = () => void;
2
+ export interface Task {
3
+ id: number;
4
+ fn: ((didTimeout: boolean) => void) | null;
5
+ startTime: number;
6
+ expirationTime: number;
7
+ }
8
+ export declare function requestCallback(fn: () => void, options?: {
9
+ timeout: number;
10
+ }): Task;
11
+ export declare function cancelCallback(task: Task): void;
2
12
  /**
3
13
  * Centralized scheduling for DOM updates.
4
14
  */
5
15
  declare class Scheduler {
6
16
  #private;
7
- /**
8
- * Schedules an update on the next tick. If `key` is supplied, this update will replace any scheduled update with the same key.
9
- */
10
- scheduleUpdate(update: Callback, key?: string): void;
17
+ scheduleNodeUpdate(nodeId: number, fn: Callback): void;
18
+ cancelNodeUpdates(nodeId: number): void;
11
19
  /**
12
20
  * Registers a callback to run after all processing has finished in the next tick.
13
21
  */
@@ -12,8 +12,7 @@ export interface Signal<T> {
12
12
  * A function that sets the value of the signal.
13
13
  */
14
14
  export interface Setter<T> {
15
- (value: T): void;
16
- (update: (current: T) => T): void;
15
+ (value: T | ((previousValue: T) => T)): void;
17
16
  }
18
17
  /**
19
18
  * A getter and setter in a single object. Callable like a getter, but includes a `set` method for updating the signal's value.
@@ -26,7 +25,7 @@ export interface Writable<T> extends Signal<T> {
26
25
  * This value can be unwrapped to a plain value with `get` or `untracked` (depending on whether you're in a tracking context and need to track it).
27
26
  */
28
27
  export type MaybeSignal<T> = Signal<T> | T;
29
- export type EqualityFn<T> = (current: T, next: T) => boolean;
28
+ export type EqualityFn<T> = (previousValue: T, nextValue: T) => boolean;
30
29
  export interface SignalOptions<T> {
31
30
  /**
32
31
  * A function to compare the current and next values. Returning `true` means the value has changed.
@@ -35,11 +34,12 @@ export interface SignalOptions<T> {
35
34
  }
36
35
  export declare function $<T>(compute: (previousValue?: T) => MaybeSignal<T>, options?: MemoOptions<T>): Signal<T>;
37
36
  export declare function $<T>(): Writable<T | undefined>;
38
- export declare function $<T>(value: undefined, options: SignalOptions<T | undefined>): Writable<T | undefined>;
39
- export declare function $<T>(value: T, options?: SignalOptions<T>): Writable<T>;
37
+ export declare function $<T>(initialValue: undefined, options: SignalOptions<T | undefined>): Writable<T | undefined>;
38
+ export declare function $<T>(initialValue: T, options?: SignalOptions<T>): Writable<T>;
40
39
  export declare function writable<T>(): Writable<T | undefined>;
41
- export declare function writable<T>(value: undefined, options: SignalOptions<T | undefined>): Writable<T | undefined>;
42
- export declare function writable<T>(value: T, options?: SignalOptions<T>): Writable<T>;
40
+ export declare function writable<T>(initialValue: undefined, options: SignalOptions<T | undefined>): Writable<T | undefined>;
41
+ export declare function writable<T>(initialValue: T, options?: SignalOptions<T>): Writable<T>;
42
+ export declare function readable<T>(signal: MaybeSignal<T>): Signal<T>;
43
43
  export interface MemoOptions<T> extends SignalOptions<T> {
44
44
  /**
45
45
  * An array of signals this `memo` depends on. If this is passed, calls to signals within `fn` will NOT be tracked.
@@ -48,11 +48,12 @@ export interface MemoOptions<T> extends SignalOptions<T> {
48
48
  deps?: Signal<any>[];
49
49
  }
50
50
  /**
51
- * Creates a derived Signal that recomputes its value only when its dependencies change.
51
+ * Creates a derived signal that recomputes its value only when its dependencies change.
52
+ * Subsequent calls will return a cached value.
52
53
  * Dependencies are tracked when called inside `fn` by default,
53
54
  * but can be overridden by passing a `deps` array in the options object.
54
55
  */
55
- export declare function memo<T>(fn: (previousValue?: T) => MaybeSignal<T>, options?: MemoOptions<T>): Signal<T>;
56
+ export declare function memo<T>(compute: (previousValue?: T) => MaybeSignal<T>, options?: MemoOptions<T>): Signal<T>;
56
57
  /**
57
58
  * Suspends effects during `fn`. Effects for all updated Signal values are called at the end of the batch.
58
59
  */
@@ -1,5 +1,5 @@
1
- import { Context, Logger, type Ref, type Store } from "../core";
2
- import { type EffectFn, Signal, MaybeSignal, Setter, SignalOptions } from "../core/signals";
1
+ import { type Context, type Logger, type Ref, type Store } from "../core";
2
+ import { type EffectFn, type MaybeSignal, type Setter, type Signal, type SignalOptions } from "../core/signals";
3
3
  /**
4
4
  * Returns the Context object of the View, Store or Mixin this hook is called in.
5
5
  */
package/dist/hooks.js CHANGED
@@ -1,4 +1,4 @@
1
- import { w as s, m as f, g as i, u as a, h as x } from "./signals-DbDmN2gr.js";
1
+ import { w as s, m as f, g as i, u as a, h as x } from "./signals-BDlRtifZ.js";
2
2
  import { r as m } from "./ref-BD79iqlg.js";
3
3
  function o() {
4
4
  const t = x();
package/dist/hooks.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.js","sources":["../src/hooks/index.ts"],"sourcesContent":["import { Context, Logger, ref, type Ref, type Store } from \"../core\";\nimport {\n type EffectFn,\n get,\n getCurrentContext,\n Signal,\n MaybeSignal,\n memo,\n Setter,\n writable,\n SignalOptions,\n untracked,\n} from \"../core/signals\";\n\n/**\n * Returns the Context object of the View, Store or Mixin this hook is called in.\n */\nexport function useContext(): Context {\n const context = getCurrentContext();\n if (!context) {\n throw new Error(`No context found; hooks can only be called in the body of a View, Store or Mixin.`);\n }\n return context;\n}\n\n/**\n * Returns a logger. If a name is passed it will be used as a prefix for all console messages.\n * Otherwise the default name of the context will be used.\n */\nexport function useLogger(name?: MaybeSignal<string>): Logger {\n const context = useContext();\n if (name) context.setName(name);\n return context;\n}\n\n/**\n * Creates a new read-only Getter and a bound Setter function.\n */\nexport function useState<T>(value: T, options?: SignalOptions<T>): [Signal<T>, Setter<T>];\n\n/**\n * Creates a new read-only Signal and a bound Setter function.\n */\nexport function useState<T>(\n value: undefined,\n options: SignalOptions<T>,\n): [Signal<T | undefined>, Setter<T | undefined>];\n\n/**\n * Creates a new read-only Signal and a bound Setter function.\n */\nexport function useState<T>(): [Signal<T | undefined>, Setter<T | undefined>];\n\nexport function useState<T>(value?: T, options?: SignalOptions<T>): [Signal<T>, Setter<T>] {\n useContext(); // assert that we're in a valid context\n const state = writable(value as T, options);\n return [() => state(), state.set];\n}\n\nexport function useMemo<T>(\n compute: (current?: T) => MaybeSignal<T>,\n deps?: Signal<any>[],\n options?: SignalOptions<T>,\n): Signal<T> {\n useContext(); // assert that we're in a valid context\n return memo(compute, { ...options, deps });\n}\n\nexport function useEffect(fn: EffectFn, deps?: Signal<any>[]): void {\n const context = useContext();\n if (deps) {\n context.effect(() => {\n // Track deps and run `fn` untracked.\n for (const dep of deps) get(dep);\n untracked(fn);\n });\n } else {\n context.effect(fn);\n }\n}\n\n/**\n * Takes the current state and a dispatched action. Returns a new state based on the action.\n * Typically the body of this function will be a large switch statement.\n */\nexport type ReducerFn<State, Action> = (state: State, action: Action) => State;\n\n/**\n * Dispatches an action to this reducer, causing the state to update.\n */\nexport type DispatchFn<Action> = (action: Action) => void;\n\n/**\n *\n */\nexport function useReducer<State, Action>(\n reducer: ReducerFn<State, Action>,\n initialState: State,\n): [Signal<State>, DispatchFn<Action>] {\n const [state, setState] = useState(initialState);\n const dispatch = (action: Action) => {\n setState((current) => reducer(current, action));\n };\n return [state, dispatch];\n}\n\n/**\n * Uses a previously added Store. Takes the Store function itself and returns the nearest instance.\n */\nexport function useStore<T>(store: Store<any, T>): T {\n const context = useContext();\n return context.getStore(store);\n}\n\n/**\n * A hybrid Ref which is both a function ref and a React-style object ref with a `current` property.\n * Both the `current` property and the function syntax access the same value.\n */\nexport interface HybridRef<T> extends Ref<T> {\n current: T;\n}\n\n/**\n * Creates a Ref. Useful for getting references to DOM nodes.\n */\nexport function useRef<T>(initialValue?: T): HybridRef<T>;\n\nexport function useRef<T>(...value: [T]): HybridRef<T> {\n useContext(); // assert that we're in a valid context\n const valueRef = ref(...value);\n Object.defineProperty(valueRef, \"current\", { get: valueRef, set: valueRef });\n return valueRef as HybridRef<T>;\n}\n\n/**\n * Calls `callback` when the context is mounted. If `callback` returns a function, that function is called when the context is unmounted.\n */\nexport function useMount(callback: () => void | (() => void)): void {\n const context = useContext();\n context.onMount(() => {\n const result = callback();\n if (result) context.onUnmount(result);\n });\n}\n\n/**\n * Calls `callback` when the context is unmounted.\n */\nexport function useUnmount(callback: () => void): void {\n const context = useContext();\n context.onUnmount(callback);\n}\n"],"names":["useContext","context","getCurrentContext","useLogger","name","useState","value","options","state","writable","useMemo","compute","deps","memo","useEffect","fn","dep","get","untracked","useReducer","reducer","initialState","setState","action","current","useStore","store","useRef","valueRef","ref","useMount","callback","result","useUnmount"],"mappings":";;AAiBO,SAASA,IAAsB;AACpC,QAAMC,IAAUC,EAAkB;AAClC,MAAI,CAACD;AACG,UAAA,IAAI,MAAM,mFAAmF;AAE9F,SAAAA;AACT;AAMO,SAASE,EAAUC,GAAoC;AAC5D,QAAMH,IAAUD,EAAW;AACvB,SAAAI,KAAcH,EAAA,QAAQG,CAAI,GACvBH;AACT;AAoBgB,SAAAI,EAAYC,GAAWC,GAAoD;AAC9E,EAAAP,EAAA;AACL,QAAAQ,IAAQC,EAASH,GAAYC,CAAO;AAC1C,SAAO,CAAC,MAAMC,KAASA,EAAM,GAAG;AAClC;AAEgB,SAAAE,EACdC,GACAC,GACAL,GACW;AACA,SAAAP,EAAA,GACJa,EAAKF,GAAS,EAAE,GAAGJ,GAAS,MAAAK,GAAM;AAC3C;AAEgB,SAAAE,EAAUC,GAAcH,GAA4B;AAClE,QAAMX,IAAUD,EAAW;AAC3B,EAAIY,IACFX,EAAQ,OAAO,MAAM;AAER,eAAAe,KAAOJ,EAAM,CAAAK,EAAID,CAAG;AAC/B,IAAAE,EAAUH,CAAE;AAAA,EAAA,CACb,IAEDd,EAAQ,OAAOc,CAAE;AAErB;AAgBgB,SAAAI,EACdC,GACAC,GACqC;AACrC,QAAM,CAACb,GAAOc,CAAQ,IAAIjB,EAASgB,CAAY;AAIxC,SAAA,CAACb,GAHS,CAACe,MAAmB;AACnC,IAAAD,EAAS,CAACE,MAAYJ,EAAQI,GAASD,CAAM,CAAC;AAAA,EAChD,CACuB;AACzB;AAKO,SAASE,EAAYC,GAAyB;AAE5C,SADS1B,EAAW,EACZ,SAAS0B,CAAK;AAC/B;AAeO,SAASC,KAAarB,GAA0B;AAC1C,EAAAN,EAAA;AACL,QAAA4B,IAAWC,EAAI,GAAGvB,CAAK;AACtB,gBAAA,eAAesB,GAAU,WAAW,EAAE,KAAKA,GAAU,KAAKA,GAAU,GACpEA;AACT;AAKO,SAASE,EAASC,GAA2C;AAClE,QAAM9B,IAAUD,EAAW;AAC3B,EAAAC,EAAQ,QAAQ,MAAM;AACpB,UAAM+B,IAASD,EAAS;AACpB,IAAAC,KAAgB/B,EAAA,UAAU+B,CAAM;AAAA,EAAA,CACrC;AACH;AAKO,SAASC,EAAWF,GAA4B;AAErD,EADgB/B,EAAW,EACnB,UAAU+B,CAAQ;AAC5B;"}
1
+ {"version":3,"file":"hooks.js","sources":["../src/hooks/index.ts"],"sourcesContent":["import { type Context, type Logger, ref, type Ref, type Store } from \"../core\";\nimport {\n type EffectFn,\n get,\n getCurrentContext,\n type MaybeSignal,\n memo,\n type Setter,\n type Signal,\n type SignalOptions,\n untracked,\n writable,\n} from \"../core/signals\";\n\n/**\n * Returns the Context object of the View, Store or Mixin this hook is called in.\n */\nexport function useContext(): Context {\n const context = getCurrentContext();\n if (!context) {\n throw new Error(`No context found; hooks can only be called in the body of a View, Store or Mixin.`);\n }\n return context;\n}\n\n/**\n * Returns a logger. If a name is passed it will be used as a prefix for all console messages.\n * Otherwise the default name of the context will be used.\n */\nexport function useLogger(name?: MaybeSignal<string>): Logger {\n const context = useContext();\n if (name) context.setName(name);\n return context;\n}\n\n/**\n * Creates a new read-only Getter and a bound Setter function.\n */\nexport function useState<T>(value: T, options?: SignalOptions<T>): [Signal<T>, Setter<T>];\n\n/**\n * Creates a new read-only Signal and a bound Setter function.\n */\nexport function useState<T>(\n value: undefined,\n options: SignalOptions<T>,\n): [Signal<T | undefined>, Setter<T | undefined>];\n\n/**\n * Creates a new read-only Signal and a bound Setter function.\n */\nexport function useState<T>(): [Signal<T | undefined>, Setter<T | undefined>];\n\nexport function useState<T>(value?: T, options?: SignalOptions<T>): [Signal<T>, Setter<T>] {\n useContext(); // assert that we're in a valid context\n const state = writable(value as T, options);\n return [() => state(), state.set];\n}\n\nexport function useMemo<T>(\n compute: (current?: T) => MaybeSignal<T>,\n deps?: Signal<any>[],\n options?: SignalOptions<T>,\n): Signal<T> {\n useContext(); // assert that we're in a valid context\n return memo(compute, { ...options, deps });\n}\n\nexport function useEffect(fn: EffectFn, deps?: Signal<any>[]): void {\n const context = useContext();\n if (deps) {\n context.effect(() => {\n for (const dep of deps) get(dep);\n untracked(fn);\n });\n } else {\n context.effect(fn);\n }\n}\n\n/**\n * Takes the current state and a dispatched action. Returns a new state based on the action.\n * Typically the body of this function will be a large switch statement.\n */\nexport type ReducerFn<State, Action> = (state: State, action: Action) => State;\n\n/**\n * Dispatches an action to this reducer, causing the state to update.\n */\nexport type DispatchFn<Action> = (action: Action) => void;\n\n/**\n *\n */\nexport function useReducer<State, Action>(\n reducer: ReducerFn<State, Action>,\n initialState: State,\n): [Signal<State>, DispatchFn<Action>] {\n const [state, setState] = useState(initialState);\n const dispatch = (action: Action) => {\n setState((current) => reducer(current, action));\n };\n return [state, dispatch];\n}\n\n/**\n * Uses a previously added Store. Takes the Store function itself and returns the nearest instance.\n */\nexport function useStore<T>(store: Store<any, T>): T {\n const context = useContext();\n return context.getStore(store);\n}\n\n/**\n * A hybrid Ref which is both a function ref and a React-style object ref with a `current` property.\n * Both the `current` property and the function syntax access the same value.\n */\nexport interface HybridRef<T> extends Ref<T> {\n current: T;\n}\n\n/**\n * Creates a Ref. Useful for getting references to DOM nodes.\n */\nexport function useRef<T>(initialValue?: T): HybridRef<T>;\n\nexport function useRef<T>(...value: [T]): HybridRef<T> {\n useContext(); // assert that we're in a valid context\n const valueRef = ref(...value);\n Object.defineProperty(valueRef, \"current\", { get: valueRef, set: valueRef });\n return valueRef as HybridRef<T>;\n}\n\n/**\n * Calls `callback` when the context is mounted. If `callback` returns a function, that function is called when the context is unmounted.\n */\nexport function useMount(callback: () => void | (() => void)): void {\n const context = useContext();\n context.onMount(() => {\n const result = callback();\n if (result) context.onUnmount(result);\n });\n}\n\n/**\n * Calls `callback` when the context is unmounted.\n */\nexport function useUnmount(callback: () => void): void {\n const context = useContext();\n context.onUnmount(callback);\n}\n"],"names":["useContext","context","getCurrentContext","useLogger","name","useState","value","options","state","writable","useMemo","compute","deps","memo","useEffect","fn","dep","get","untracked","useReducer","reducer","initialState","setState","action","current","useStore","store","useRef","valueRef","ref","useMount","callback","result","useUnmount"],"mappings":";;AAiBO,SAASA,IAAsB;AACpC,QAAMC,IAAUC,EAAkB;AAClC,MAAI,CAACD;AACG,UAAA,IAAI,MAAM,mFAAmF;AAE9F,SAAAA;AACT;AAMO,SAASE,EAAUC,GAAoC;AAC5D,QAAMH,IAAUD,EAAW;AACvB,SAAAI,KAAcH,EAAA,QAAQG,CAAI,GACvBH;AACT;AAoBgB,SAAAI,EAAYC,GAAWC,GAAoD;AAC9E,EAAAP,EAAA;AACL,QAAAQ,IAAQC,EAASH,GAAYC,CAAO;AAC1C,SAAO,CAAC,MAAMC,KAASA,EAAM,GAAG;AAClC;AAEgB,SAAAE,EACdC,GACAC,GACAL,GACW;AACA,SAAAP,EAAA,GACJa,EAAKF,GAAS,EAAE,GAAGJ,GAAS,MAAAK,GAAM;AAC3C;AAEgB,SAAAE,EAAUC,GAAcH,GAA4B;AAClE,QAAMX,IAAUD,EAAW;AAC3B,EAAIY,IACFX,EAAQ,OAAO,MAAM;AACR,eAAAe,KAAOJ,EAAM,CAAAK,EAAID,CAAG;AAC/B,IAAAE,EAAUH,CAAE;AAAA,EAAA,CACb,IAEDd,EAAQ,OAAOc,CAAE;AAErB;AAgBgB,SAAAI,EACdC,GACAC,GACqC;AACrC,QAAM,CAACb,GAAOc,CAAQ,IAAIjB,EAASgB,CAAY;AAIxC,SAAA,CAACb,GAHS,CAACe,MAAmB;AACnC,IAAAD,EAAS,CAACE,MAAYJ,EAAQI,GAASD,CAAM,CAAC;AAAA,EAChD,CACuB;AACzB;AAKO,SAASE,EAAYC,GAAyB;AAE5C,SADS1B,EAAW,EACZ,SAAS0B,CAAK;AAC/B;AAeO,SAASC,KAAarB,GAA0B;AAC1C,EAAAN,EAAA;AACL,QAAA4B,IAAWC,EAAI,GAAGvB,CAAK;AACtB,gBAAA,eAAesB,GAAU,WAAW,EAAE,KAAKA,GAAU,KAAKA,GAAU,GACpEA;AACT;AAKO,SAASE,EAASC,GAA2C;AAClE,QAAM9B,IAAUD,EAAW;AAC3B,EAAAC,EAAQ,QAAQ,MAAM;AACpB,UAAM+B,IAASD,EAAS;AACpB,IAAAC,KAAgB/B,EAAA,UAAU+B,CAAM;AAAA,EAAA,CACrC;AACH;AAKO,SAASC,EAAWF,GAA4B;AAErD,EADgB/B,EAAW,EACnB,UAAU+B,CAAQ;AAC5B;"}
package/dist/http.js CHANGED
@@ -6,7 +6,7 @@ var g = (r, e, t) => e in r ? b(r, e, { enumerable: !0, configurable: !0, writab
6
6
  var a = (r, e, t) => g(r, typeof e != "symbol" ? e + "" : e, t), m = (r, e, t) => e.has(r) || f("Cannot " + t);
7
7
  var d = (r, e, t) => (m(r, e, "read from private field"), t ? t.call(r) : e.get(r)), c = (r, e, t) => e.has(r) ? f("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t);
8
8
  var o = (r, e, t) => (m(r, e, "access private method"), t);
9
- import { i as w } from "./typeChecking-CbltMOUt.js";
9
+ import { i as w } from "./typeChecking-D0-H8_Xm.js";
10
10
  var l, p, i, h;
11
11
  class O {
12
12
  constructor() {
package/dist/i18n.js CHANGED
@@ -5,9 +5,9 @@ var D = (o) => {
5
5
  var J = (o, t, e) => t in o ? B(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
6
6
  var O = (o, t, e) => J(o, typeof t != "symbol" ? t + "" : t, e), _ = (o, t, e) => t.has(o) || D("Cannot " + e);
7
7
  var r = (o, t, e) => (_(o, t, "read from private field"), e ? e.call(o) : t.get(o)), m = (o, t, e) => t.has(o) ? D("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(o) : t.set(o, e), N = (o, t, e, n) => (_(o, t, "write to private field"), n ? n.call(o, e) : t.set(o, e), e), g = (o, t, e) => (_(o, t, "access private method"), e);
8
- import { c as K } from "./logger-B7RBYtzP.js";
9
- import { w as Q, m as k, d as U, g as x } from "./signals-DbDmN2gr.js";
10
- import { b as C, i as j, c as W, t as P } from "./typeChecking-CbltMOUt.js";
8
+ import { c as K } from "./logger-BuZRMjzE.js";
9
+ import { w as Q, m as k, d as U, g as x } from "./signals-BDlRtifZ.js";
10
+ import { a as C, i as j, b as W, t as P } from "./typeChecking-D0-H8_Xm.js";
11
11
  var I, F, p, S, G;
12
12
  class X {
13
13
  constructor(t) {