react-rx 2.1.2 → 2.1.3

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.
@@ -4,6 +4,7 @@ import { Observable } from 'rxjs';
4
4
  * Returns an observable representing updates to any React value (props, state or any other calculated value)
5
5
  * Note: the returned observable is the same instance throughout the component lifecycle
6
6
  * @param value
7
+ * @deprecated use an `of` operator and `useMemoObservable` instead for a faster, more robust and siimpler solution
7
8
  */
8
9
  export declare function useAsObservable<T>(value: T): Observable<T>;
9
10
  export declare function useAsObservable<T, K>(value: T, operator: (input: Observable<T>) => Observable<K>): Observable<K>;
@@ -4,6 +4,7 @@ import { Observable } from 'rxjs';
4
4
  * Returns an observable representing updates to any React value (props, state or any other calculated value)
5
5
  * Note: the returned observable is the same instance throughout the component lifecycle
6
6
  * @param value
7
+ * @deprecated use an `of` operator and `useMemoObservable` instead for a faster, more robust and siimpler solution
7
8
  */
8
9
  export declare function useAsObservable<T>(value: T): Observable<T>;
9
10
  export declare function useAsObservable<T, K>(value: T, operator: (input: Observable<T>) => Observable<K>): Observable<K>;
@@ -4,6 +4,7 @@ import { Observable } from 'rxjs';
4
4
  * Returns an observable representing updates to any React value (props, state or any other calculated value)
5
5
  * Note: the returned observable is the same instance throughout the component lifecycle
6
6
  * @param value
7
+ * @deprecated use an `of` operator and `useMemoObservable` instead for a faster, more robust and siimpler solution
7
8
  */
8
9
  export declare function useAsObservable<T>(value: T): Observable<T>;
9
10
  export declare function useAsObservable<T, K>(value: T, operator: (input: Observable<T>) => Observable<K>): Observable<K>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-rx",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "description": "React + RxJS = <3",
5
5
  "keywords": [
6
6
  "action",
@@ -74,23 +74,23 @@
74
74
  },
75
75
  "devDependencies": {
76
76
  "@sanity/semantic-release-preset": "^2.0.2",
77
- "@testing-library/dom": "^8.14.0",
78
- "@testing-library/react": "^13.3.0",
79
- "@types/jest": "^28.1.4",
77
+ "@testing-library/dom": "^8.18.1",
78
+ "@testing-library/react": "^13.4.0",
79
+ "@types/jest": "^29.1.1",
80
80
  "@types/node": "^18.8.2",
81
- "@types/react": "^18.0.12",
82
- "@types/react-dom": "^18.0.5",
81
+ "@types/react": "^18.0.21",
82
+ "@types/react-dom": "^18.0.6",
83
83
  "@types/use-sync-external-store": "^0.0.3",
84
84
  "@typescript-eslint/eslint-plugin": "^5.39.0",
85
85
  "@typescript-eslint/parser": "^5.39.0",
86
86
  "eslint": "^8.24.0",
87
- "eslint-config-prettier": "^8.1.0",
87
+ "eslint-config-prettier": "^8.5.0",
88
88
  "eslint-plugin-prettier": "^4.2.1",
89
- "eslint-plugin-react": "^7.22.0",
89
+ "eslint-plugin-react": "^7.31.8",
90
90
  "eslint-plugin-react-hooks": "^4.6.0",
91
- "jest": "^28.1.2",
92
- "jest-environment-jsdom": "^28.1.2",
93
- "jsdom": "^20.0.0",
91
+ "jest": "^29.1.2",
92
+ "jest-environment-jsdom": "^29.1.2",
93
+ "jsdom": "^20.0.1",
94
94
  "npm-run-all": "^4.1.5",
95
95
  "prettier": "^2.7.1",
96
96
  "prettier-plugin-packagejson": "^2.3.0",
@@ -98,8 +98,8 @@
98
98
  "react-dom": "^18.2.0",
99
99
  "react-test-renderer": "^18.2.0",
100
100
  "rimraf": "^3.0.2",
101
- "rxjs": "^6.5.5",
102
- "ts-jest": "^28.0.5",
101
+ "rxjs": "^6.6.7",
102
+ "ts-jest": "^29.0.3",
103
103
  "typescript": "4.7.4"
104
104
  },
105
105
  "peerDependencies": {
@@ -7,6 +7,7 @@ import {distinctUntilChanged} from 'rxjs/operators'
7
7
  * Returns an observable representing updates to any React value (props, state or any other calculated value)
8
8
  * Note: the returned observable is the same instance throughout the component lifecycle
9
9
  * @param value
10
+ * @deprecated use an `of` operator and `useMemoObservable` instead for a faster, more robust and siimpler solution
10
11
  */
11
12
  export function useAsObservable<T>(value: T): Observable<T>
12
13
  export function useAsObservable<T, K>(
@@ -1,2 +0,0 @@
1
- import { useEffect } from 'react';
2
- export declare const useIsomorphicEffect: typeof useEffect;
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useIsomorphicEffect = void 0;
4
- var react_1 = require("react");
5
- exports.useIsomorphicEffect = typeof window !== 'undefined' ? react_1.useLayoutEffect : react_1.useEffect;
@@ -1,2 +0,0 @@
1
- import { useEffect } from 'react';
2
- export declare const useIsomorphicEffect: typeof useEffect;
@@ -1,2 +0,0 @@
1
- import { useEffect, useLayoutEffect } from 'react';
2
- export const useIsomorphicEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;
@@ -1,2 +0,0 @@
1
- import { useEffect } from 'react';
2
- export declare const useIsomorphicEffect: typeof useEffect;
@@ -1,2 +0,0 @@
1
- import { useEffect, useLayoutEffect } from 'react';
2
- export var useIsomorphicEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;
@@ -1,3 +0,0 @@
1
- import {useEffect, useLayoutEffect} from 'react'
2
-
3
- export const useIsomorphicEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect