reactjrx 1.98.0 → 1.99.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.
@@ -1,6 +1,12 @@
1
1
  import { QueryKey } from '../keys/types';
2
2
  import { Query } from './query/Query';
3
3
  import { QueryOptions, QueryFilters, Updater } from './types';
4
+ /**
5
+ * This function returns `a` if `b` is deeply equal.
6
+ * If not, it will replace any deeply equal children of `b` with those of `a`.
7
+ * This can be used for structural sharing between JSON values for example.
8
+ */
9
+ export declare function replaceEqualDeep<T>(a: unknown, b: T): T;
4
10
  export declare function hashQueryKeyByOptions<TQueryKey extends QueryKey = QueryKey>(queryKey: TQueryKey, options?: Pick<QueryOptions<any, any, any, any>, "queryKeyHashFn">): string;
5
11
  export declare function matchQuery(filters: QueryFilters, query: Query<any, any, any, any>): boolean;
6
12
  export declare function timeUntilStale(updatedAt: number, staleTime?: number): number;
@@ -1 +1,9 @@
1
- export { isServer } from './isServer';
1
+ export * from './react/useUnmountObservable';
2
+ export * from './react/useMount';
3
+ export * from './react/useEffectOnce';
4
+ export * from './react/useLiveRef';
5
+ export * from './operators/retryBackoff';
6
+ export * from './isDefined';
7
+ export * from './arrayEqual';
8
+ export * from './isServer';
9
+ export * from './isPromiseLike';
@@ -1 +1 @@
1
- export declare function isPromiseLike(value: any): value is Promise<any>;
1
+ export declare function isPromiseLike<T>(value: T): value is T & Promise<any>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "reactjrx",
3
3
  "private": false,
4
- "version": "1.98.0",
4
+ "version": "1.99.0",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"
@@ -1 +0,0 @@
1
- export declare function hasObjectPrototype(o: any): boolean;
@@ -1 +0,0 @@
1
- export declare function primitiveEqual<A, B>(objA: A, objB: B): boolean;
@@ -1,6 +0,0 @@
1
- /**
2
- * This function returns `a` if `b` is deeply equal.
3
- * If not, it will replace any deeply equal children of `b` with those of `a`.
4
- * This can be used for structural sharing between JSON values for example.
5
- */
6
- export declare function replaceEqualDeep<T>(a: unknown, b: T): T;