@manyducks.co/dolla 2.0.0-alpha.42 → 2.0.0-alpha.43

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/README.md CHANGED
@@ -34,7 +34,7 @@ Dolla's goals include:
34
34
 
35
35
  A basic view. Note that the view function is called exactly once when the view is first mounted. All changes to DOM nodes thereafter happen as a result of `$state` values changing.
36
36
 
37
- ```js
37
+ ```jsx
38
38
  import Dolla, { atom, html } from "@manyducks.co/dolla";
39
39
 
40
40
  function Counter() {
@@ -33,8 +33,6 @@ export interface Reactive<T> {
33
33
  }
34
34
  export type MaybeReactive<T> = Reactive<T> | T;
35
35
  export type UnsubscribeFunction = () => void;
36
- export declare function pauseTracking(): void;
37
- export declare function resumeTracking(): void;
38
36
  /**
39
37
  * A function to compare the current and next values. Returning `true` means the value has changed.
40
38
  */
@@ -183,6 +181,7 @@ export declare function get<T>(value: MaybeReactive<T>): T;
183
181
  * });
184
182
  */
185
183
  export declare function peek<T>(value: MaybeReactive<T>): T;
184
+ export declare function untrack(fn: () => void): void;
186
185
  /**
187
186
  * Registers a callback that will receive a list of dependencies that were tracked within the scope this function was called in.
188
187
  */
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { atom, compose, effect, get, set, peek, getTracked } from "./core/signals.js";
1
+ export { atom, compose, effect, get, set, peek, untrack, getTracked } from "./core/signals.js";
2
2
  export type { Reactive, MaybeReactive, Atom } from "./core/signals.js";
3
3
  export { deepEqual, shallowEqual, strictEqual } from "./utils.js";
4
4
  export { ref, type Ref } from "./core/ref.js";
@@ -10,6 +10,8 @@ import { Dolla } from "./core/dolla.js";
10
10
  declare const dolla: Dolla;
11
11
  export default dolla;
12
12
  export declare const t: (selector: string, options?: import("./translate/index.js").TOptions) => import("./core/signals.js").Reactive<string>;
13
+ export declare const http: import("./http/index.js").HTTP;
14
+ export declare const createLogger: (name: string, options?: import("./core/dolla.js").LoggerOptions) => import("./core/dolla.js").Logger;
13
15
  export type { Dolla, Environment, Logger, LoggerErrorContext, LoggerOptions, Loggles } from "./core/dolla.js";
14
16
  export type { ViewContext, ViewElement, ViewFunction } from "./core/nodes/view.js";
15
17
  export type { InputType, Renderable } from "./types.js";