@signaltree/core 9.1.0 → 9.2.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signaltree/core",
3
- "version": "9.1.0",
3
+ "version": "9.2.0",
4
4
  "description": "Reactive JSON for Angular. JSON branches, reactive leaves. No actions. No reducers. No selectors.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -32,9 +32,9 @@
32
32
  "./package.json": "./package.json"
33
33
  },
34
34
  "peerDependencies": {
35
- "@angular/core": "^20.0.0",
36
- "@angular/compiler": "^20.0.0",
37
- "@angular/platform-browser-dynamic": "^20.0.0",
35
+ "@angular/core": "^20.0.0 || ^21.0.0",
36
+ "@angular/compiler": "^20.0.0 || ^21.0.0",
37
+ "@angular/platform-browser-dynamic": "^20.0.0 || ^21.0.0",
38
38
  "zone.js": "^0.15.0",
39
39
  "tslib": "^2.0.0"
40
40
  },
@@ -55,6 +55,7 @@
55
55
  "files": [
56
56
  "dist/**/*.js",
57
57
  "src/**/*.d.ts",
58
+ "skills/**/*",
58
59
  "README.md"
59
60
  ]
60
61
  }
@@ -16,12 +16,6 @@ export interface TimeTravelConfig {
16
16
  }
17
17
  export type Primitive = string | number | boolean | null | undefined | bigint | symbol;
18
18
  export type NotFn<T> = T extends (...args: unknown[]) => unknown ? never : T;
19
- declare module '@angular/core' {
20
- interface WritableSignal<T> {
21
- (value: NotFn<T>): void;
22
- (updater: (current: T) => T): void;
23
- }
24
- }
25
19
  export interface NodeAccessor<T> {
26
20
  (): T;
27
21
  (value: Partial<T>): void;
@@ -272,10 +266,11 @@ export type PathInterceptor = (ctx: {
272
266
  blocked: boolean;
273
267
  blockReason?: string;
274
268
  }, next: () => void) => void | Promise<void>;
275
- export type CallableWritableSignal<T> = WritableSignal<T> & {
269
+ export interface CallableWritableSignal<T> extends WritableSignal<T> {
270
+ (): T;
276
271
  (value: NotFn<T>): void;
277
272
  (updater: (current: T) => T): void;
278
- };
273
+ }
279
274
  export type AccessibleNode<T> = NodeAccessor<T> & TreeNode<T>;
280
275
  export declare const ENHANCER_META: unique symbol;
281
276
  export type Enhancer<TAdded> = (tree: ISignalTree<any>) => ISignalTree<any> & TAdded;