react-rx 4.1.7 → 4.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-rx",
3
- "version": "4.1.7",
3
+ "version": "4.1.9",
4
4
  "description": "React + RxJS = <3",
5
5
  "keywords": [
6
6
  "action",
@@ -75,42 +75,42 @@
75
75
  "prettier": "@sanity/prettier-config",
76
76
  "dependencies": {
77
77
  "observable-callback": "^1.0.3",
78
- "react-compiler-runtime": "19.0.0-beta-df7b47d-20241124",
78
+ "react-compiler-runtime": "19.0.0-beta-201e55d-20241215",
79
79
  "use-effect-event": "^1.0.2"
80
80
  },
81
81
  "devDependencies": {
82
- "@sanity/pkg-utils": "^6.11.10",
82
+ "@sanity/pkg-utils": "^6.11.14",
83
83
  "@sanity/prettier-config": "^1.0.3",
84
84
  "@sanity/semantic-release-preset": "^5.0.0",
85
85
  "@testing-library/dom": "^10.4.0",
86
- "@testing-library/react": "^16.0.1",
86
+ "@testing-library/react": "^16.1.0",
87
87
  "@types/node": "^18.17.5",
88
- "@types/react": "^18.3.12",
89
- "@types/react-dom": "^18.3.1",
90
- "@typescript-eslint/eslint-plugin": "^8.13.0",
91
- "@typescript-eslint/parser": "^8.13.0",
92
- "@vitejs/plugin-react": "^4.3.3",
93
- "babel-plugin-react-compiler": "19.0.0-beta-df7b47d-20241124",
88
+ "@types/react": "^19.0.0",
89
+ "@types/react-dom": "^19.0.0",
90
+ "@typescript-eslint/eslint-plugin": "^8.17.0",
91
+ "@typescript-eslint/parser": "^8.17.0",
92
+ "@vitejs/plugin-react": "^4.3.4",
93
+ "babel-plugin-react-compiler": "19.0.0-beta-201e55d-20241215",
94
94
  "eslint": "^8.57.1",
95
95
  "eslint-config-prettier": "^9.1.0",
96
96
  "eslint-plugin-prettier": "^5.2.1",
97
97
  "eslint-plugin-react": "^7.37.2",
98
- "eslint-plugin-react-compiler": "19.0.0-beta-df7b47d-20241124",
99
- "eslint-plugin-react-hooks": "^5.0.0",
98
+ "eslint-plugin-react-compiler": "19.0.0-beta-201e55d-20241215",
99
+ "eslint-plugin-react-hooks": "^5.1.0",
100
100
  "eslint-plugin-simple-import-sort": "^12.1.1",
101
101
  "jsdom": "^24.1.0",
102
- "prettier": "^3.3.3",
103
- "react": "^18.3.1",
104
- "react-dom": "^18.3.1",
105
- "react-test-renderer": "^18.3.1",
102
+ "prettier": "^3.4.2",
103
+ "react": "^19.0.0",
104
+ "react-dom": "^19.0.0",
105
+ "react-test-renderer": "^19.0.0",
106
106
  "rxjs": "^7.8.1",
107
107
  "semantic-release": "^24.1.0",
108
- "typescript": "5.6.3",
109
- "vitest": "^2.1.4"
108
+ "typescript": "5.7.2",
109
+ "vitest": "^2.1.8"
110
110
  },
111
111
  "peerDependencies": {
112
112
  "react": "^18.3 || >=19.0.0-0",
113
113
  "rxjs": "^7"
114
114
  },
115
- "packageManager": "pnpm@9.12.3"
115
+ "packageManager": "pnpm@9.14.4"
116
116
  }
@@ -1,7 +1,7 @@
1
1
  import {render} from '@testing-library/react'
2
2
  import React from 'react'
3
3
  import {mergeMap, of, Subject, throwError} from 'rxjs'
4
- import {expect, test, vitest} from 'vitest'
4
+ import {expect, test} from 'vitest'
5
5
 
6
6
  import {useObservable} from '../useObservable.ts'
7
7
 
@@ -31,19 +31,7 @@ test('errors emitted by the observable should be thrown during the react render
31
31
  // Note that the error is thrown later, during the render phase
32
32
  subject.next({error: true, message: 'Boom'})
33
33
 
34
- const consoleErrorSpy = vitest.spyOn(globalThis.console, 'error').mockImplementation(() => {
35
- // silence console.error()'s
36
- })
37
34
  expect(() => rerender(<ObservableComponent />)).toThrowErrorMatchingInlineSnapshot(
38
35
  `[Error: Boom]`,
39
36
  )
40
-
41
- // Assert that react warnings are captured and logged to the console
42
- // note: this may change with React version
43
- expect(consoleErrorSpy.mock.calls.flat().join('\n')).toMatchObject(
44
- expect.stringContaining('Uncaught [Error: Boom]'),
45
- )
46
- expect(consoleErrorSpy.mock.calls.flat().join('\n')).toMatchObject(
47
- expect.stringContaining('The above error occurred in the <ObservableComponent> component'),
48
- )
49
37
  })
@@ -80,7 +80,7 @@ test('Strict mode should unsubscribe the source observable on unmount if its cre
80
80
  }
81
81
 
82
82
  const {rerender} = render(createElement(StrictMode, null, createElement(ObservableComponent)))
83
- expect(subscriberCount, 'Subscriber count should be 2').toBe(2)
83
+ expect(subscriberCount, 'Subscriber count should be 1').toBe(1)
84
84
  rerender(createElement(StrictMode, null, createElement('div')))
85
85
  await Promise.resolve()
86
86
  expect(subscriberCount, 'Subscriber count should be 0').toBe(0)