@ng-org/alien-deepsignals 0.1.2-alpha.7 → 0.1.2-alpha.9

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.
@@ -8,10 +8,29 @@ export declare function isDeepSignal(value: unknown): value is DeepSignal<any>;
8
8
  * the added subscriberFactories are joined with the existing ones
9
9
  * and `replaceProxiesInBranchOnChange` is or-ed with the current value.
10
10
  *
11
+ * @param input An object that you want to use as reactive, deepSignal object.
12
+ * If the input object is a DeepSignal object already, returns the same object.
13
+ * @param specialOptions Additional configuration options.
14
+ *
15
+ * @returns A {@link DeepSignal} object.
16
+ * You can use the returned DeepSignal as you would use your input object.
17
+ * You _do not have to to wrap your type definitions in `DeepSignal<>`_.
18
+ * Nevertheless, it can be instructive for TypeScript to show you the
19
+ * additional utilities that DeepSignal objects expose. Also, it might keep
20
+ * you aware that modifications you make to those objects are persisted and
21
+ * can update the frontend.
22
+ * The utilities that DeepSignal objects include are:
23
+ *
24
+ * - For sets:
25
+ * - iterator helper methods (e.g. `map()`, `filter()`, `reduce()`, `any()`, ...)
26
+ * - `first()` to get one element from the set -- useful if you know that there is only one.
27
+ * - `getBy(graphNuri: string, subjectIri: string)`, to find objects by their graph NURI and subject IRI.
28
+ * - **NOTE**: When assigning a set to `DeepSignal<Set>`, TypeScript will warn you. You can safely ignore this by writing (`parent.children = new Set() as DeepSignal<Set<any>>`). Internally, the set is automatically converted but this is not expressible in TypeScript.
29
+ * - For all objects: `__raw__` which gives you the non-proxied object without tracking value access and without triggering updates upon modifications. Tracking value access is used in the frontend so it knows on what changes to refresh. If you use `__raw__`, that won't work anymore.
11
30
  *
12
31
  * @throws if provided with unsupported input types.
13
32
  */
14
- export declare function deepSignal<T extends object>(input: T, options?: DeepSignalOptions): DeepSignal<T>;
33
+ export declare function deepSignal<T extends object>(input: T, specialOptions?: DeepSignalOptions): DeepSignal<T>;
15
34
  /**
16
35
  * Low-level function, you should probably use `watch` instead.
17
36
  *
@@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G,MAAM,GAAG,CAAC,CAa1E;AAED,oDAAoD;AACpD,wBAAgB,MAAM,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,OAEhE"}
@@ -1019,19 +1019,38 @@ function isDeepSignal(value) {
1019
1019
  * the added subscriberFactories are joined with the existing ones
1020
1020
  * and `replaceProxiesInBranchOnChange` is or-ed with the current value.
1021
1021
  *
1022
+ * @param input An object that you want to use as reactive, deepSignal object.
1023
+ * If the input object is a DeepSignal object already, returns the same object.
1024
+ * @param specialOptions Additional configuration options.
1025
+ *
1026
+ * @returns A {@link DeepSignal} object.
1027
+ * You can use the returned DeepSignal as you would use your input object.
1028
+ * You _do not have to to wrap your type definitions in `DeepSignal<>`_.
1029
+ * Nevertheless, it can be instructive for TypeScript to show you the
1030
+ * additional utilities that DeepSignal objects expose. Also, it might keep
1031
+ * you aware that modifications you make to those objects are persisted and
1032
+ * can update the frontend.
1033
+ * The utilities that DeepSignal objects include are:
1034
+ *
1035
+ * - For sets:
1036
+ * - iterator helper methods (e.g. `map()`, `filter()`, `reduce()`, `any()`, ...)
1037
+ * - `first()` to get one element from the set -- useful if you know that there is only one.
1038
+ * - `getBy(graphNuri: string, subjectIri: string)`, to find objects by their graph NURI and subject IRI.
1039
+ * - **NOTE**: When assigning a set to `DeepSignal<Set>`, TypeScript will warn you. You can safely ignore this by writing (`parent.children = new Set() as DeepSignal<Set<any>>`). Internally, the set is automatically converted but this is not expressible in TypeScript.
1040
+ * - For all objects: `__raw__` which gives you the non-proxied object without tracking value access and without triggering updates upon modifications. Tracking value access is used in the frontend so it knows on what changes to refresh. If you use `__raw__`, that won't work anymore.
1022
1041
  *
1023
1042
  * @throws if provided with unsupported input types.
1024
1043
  */
1025
- function deepSignal(input, options) {
1044
+ function deepSignal(input, specialOptions) {
1026
1045
  // Is the input already a signal?
1027
1046
  if (isDeepSignal(input)) {
1028
1047
  // Add possibly new external subscribers to existing ones.
1029
1048
  const meta = rawToMeta.get(input[RAW_KEY]);
1030
1049
  meta.options.subscriberFactories =
1031
- meta.options.subscriberFactories.union(options?.subscriberFactories ?? new Set());
1050
+ meta.options.subscriberFactories.union(specialOptions?.subscriberFactories ?? new Set());
1032
1051
  meta.options.replaceProxiesInBranchOnChange =
1033
1052
  meta?.options.replaceProxiesInBranchOnChange ||
1034
- options?.replaceProxiesInBranchOnChange;
1053
+ specialOptions?.replaceProxiesInBranchOnChange;
1035
1054
  return input;
1036
1055
  }
1037
1056
  if (!shouldProxy(input))
@@ -1044,7 +1063,7 @@ function deepSignal(input, options) {
1044
1063
  syntheticIdPropertyName: DEFAULT_SYNTHETIC_ID_PROPERTY_NAME,
1045
1064
  replaceProxiesInBranchOnChange: false,
1046
1065
  subscriberFactories: new Set(),
1047
- ...options,
1066
+ ...specialOptions,
1048
1067
  },
1049
1068
  version: 0,
1050
1069
  listeners: new Set(),
package/dist/types.d.ts CHANGED
@@ -132,7 +132,7 @@ export type SignalLike<T = any> = WritableSignal<T> | ComputedSignal<T>;
132
132
  export type DeepSignalObjectProps<T> = {
133
133
  /** The original raw object. */
134
134
  __raw__: T;
135
- /** @ignore meta information */
135
+ /** @internal meta information @ignore */
136
136
  __meta__: ProxyMeta;
137
137
  };
138
138
  /** Utility functions for sets. */
@@ -156,9 +156,20 @@ export type DeepSignalSetProps<T> = {
156
156
  };
157
157
  /**
158
158
  * Type alias for `DeepSignal<Set<T>>` and reactive Set wrapper that accepts raw or proxied entries.
159
- * Additionally it is decorated with {@link DeepSignalSetProps}.
159
+ * Additionally it is decorated with {@link DeepSignalSetProps}
160
+ * and iterator utilities like `.map()`, `.filter()`, `.some()`, ....
161
+ *
162
+ * Note that you can assign plain `Set`s to properties with type DeepSignalSet,
163
+ * however Typescript will give you a warning. That is a limitation of TypeScript's capability.
164
+ * Internally, the object will be converted to a DeepSignalSet.
165
+ * You can instruct TypeScript to ignore this with `parent.children = new Set() as DeepSignal<Set<any>>`.
166
+ */
167
+ export type DeepSignalSet<T> = DeepSignalSet_<T> & DeepSignalSetProps<T> & DeepSignalObjectProps<T>;
168
+ /**
169
+ * Helper type to prevent excessive documentation to be generated for each property.
170
+ * @ignore
160
171
  */
161
- export interface DeepSignalSet<T> extends Set<DeepSignal<T>>, DeepSignalObjectProps<Set<T>>, SetIterator<DeepSignal<T>>, DeepSignalSetProps<T> {
172
+ export interface DeepSignalSet_<T> extends Set<DeepSignal<T>>, DeepSignalObjectProps<Set<T>>, SetIterator<DeepSignal<T>>, DeepSignalSetProps<T> {
162
173
  add(value: T | DeepSignal<T>): this;
163
174
  delete(value: T | DeepSignal<T>): boolean;
164
175
  has(value: T | DeepSignal<T>): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAE/C,oDAAoD;AACpD,MAAM,MAAM,SAAS,GAAG;IACpB,IAAI,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;CAC7B,GAAG,CACE;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,IAAI,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;IAAC,KAAK,CAAC,EAAE,GAAG,CAAA;CAAE,GACnD;IAAE,EAAE,EAAE,QAAQ,CAAC;IAAC,IAAI,CAAC,EAAE,KAAK,CAAC;IAAC,KAAK,CAAC,EAAE,GAAG,CAAA;CAAE,CAChD,CAAC;AAEF,4EAA4E;AAC5E,MAAM,WAAW,cAAc;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,SAAS,EAAE,CAAC;CACxB;AAED,8DAA8D;AAC9D,MAAM,WAAW,iBAAiB;IAC9B,OAAO,EAAE,SAAS,EAAE,CAAC;CACxB;AAED,cAAc;AACd,MAAM,MAAM,mBAAmB,GAAG,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;AAClE,cAAc;AACd,M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AAG,GAAG,IAAI,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ng-org/alien-deepsignals",
3
- "version": "0.1.2-alpha.7",
3
+ "version": "0.1.2-alpha.9",
4
4
  "private": false,
5
5
  "authors": [
6
6
  "Laurin Weger",
@@ -40,16 +40,26 @@
40
40
  "dependencies": {
41
41
  "alien-signals": "^2.0.7"
42
42
  },
43
- "optionalDependencies": {
43
+ "peerDependencies": {
44
44
  "react": "^19.0.0 || ^18.0.0",
45
45
  "svelte": "^5.0.0 || ^4.0.0 || ^3.0.0",
46
46
  "vue": "^3.0.0"
47
47
  },
48
+ "peerDependenciesMeta": {
49
+ "react": {
50
+ "optional": true
51
+ },
52
+ "svelte": {
53
+ "optional": true
54
+ },
55
+ "vue": {
56
+ "optional": true
57
+ }
58
+ },
48
59
  "devDependencies": {
49
60
  "@astrojs/react": "^4.4.2",
50
61
  "@astrojs/svelte": "^7.2.2",
51
62
  "@astrojs/vue": "^5.1.3",
52
- "@types/node": "^22.10.9",
53
63
  "@types/react": "^19.2.7",
54
64
  "@types/react-dom": "^19.2.2",
55
65
  "@vitest/coverage-v8": "^4.0.18",