221 Commits

Author SHA1 Message Date
Victor Oliva
69233017c9
fix test TS errors 2025-01-14 14:56:08 +01:00
Roger Veciana Rovira
c572dc4fc2
Change waitFor timeout and remove uneeded waitFor usage. Upgrade use-sync-external-store 2025-01-14 09:53:31 +01:00
Roger Veciana Rovira
13d370f35d
Upgrade to react 19 2025-01-09 11:49:27 +01:00
Víctor Oliva
34ceb9362a @react-rxjs/core@0.10.7 2023-08-04 14:00:38 +02:00
Victor Oliva
d0d089ad63
Add getServerSnapshot, fix loop on SSR Subscribe (#306) 2023-08-04 13:50:30 +02:00
Víctor Oliva
963ff9488f Merge remote-tracking branch 'origin/main' into main 2023-08-03 16:59:06 +02:00
Victor Oliva
39f9a743a3
upgrade dependencies, migrate to vitest (#303) 2023-07-29 20:56:51 +02:00
Víctor Oliva
cf794f35dc @react-rxjs/core@0.10.6
@react-rxjs/dom@0.1.10
@react-rxjs/utils@0.9.7
2023-07-12 12:29:21 +02:00
Victor Oliva
fb57cdbbea
fix: default condition should be last one (#304) 2023-07-12 12:23:36 +02:00
Víctor Oliva
625c9cc773 @react-rxjs/core@0.10.5
@react-rxjs/dom@0.1.9
@react-rxjs/utils@0.9.6
2023-07-11 21:41:20 +02:00
Victor Oliva
0c251ef596
fix(utils/selfDependent): prevent subject from being closed after unsub (#283) 2023-07-11 21:35:34 +02:00
Victor Oliva
6aa83ddd11
fix: types not read when moduleResolution is not "node" (#302)
fixes #298
2023-07-11 21:20:25 +02:00
Víctor Oliva
155fb04484 @react-rxjs/core@0.10.4 2023-03-11 22:35:17 +01:00
Josep M Sobrepere
4c48d7cc8f
@react-rxjs/core@0.10.3 2022-09-09 16:49:52 +02:00
Josep M Sobrepere
f5ac97c153
fix: avoid errors on unmounted Suspense components 2022-09-09 16:48:34 +02:00
Josep M Sobrepere
42dba32121
@react-rxjs/core@0.10.2 2022-09-09 16:09:58 +02:00
Victor Oliva
46914820f3
fix: pipeState also enhanced as a React element (#282) 2022-09-09 16:03:13 +02:00
Josep M Sobrepere
e47d32fff4
@react-rxjs/core@0.10.1 2022-09-09 15:58:49 +02:00
Victor Oliva
822c0baca7
chore: rename selfDependant to selfDependent (#272)
Co-authored-by: Josep M Sobrepere <jm.sobrepere@gmail.com>
2022-09-09 12:47:03 +02:00
Josep M Sobrepere
2a5fd4df09 @react-rxjs/core@0.10.0 2022-09-09 12:39:32 +02:00
Victor Oliva
7a3c0261f8 feat: use StateObservables as React elements (#280)
* override all

* simplifyTypings

* feat: improvements and tests to `stateJsx`

Co-authored-by: Josep M Sobrepere <jm.sobrepere@gmail.com>
2022-09-09 12:39:32 +02:00
Josep M Sobrepere
39ba60bf81 feat: simplify EffectObservables to just Suspense 2022-09-09 12:39:32 +02:00
Víctor Oliva
420acd470a fix: Subscribe with async errors
Co-authored-by: Josep M Sobrepere <jm.sobrepere@gmail.com>
2022-09-09 12:39:32 +02:00
Josep M Sobrepere
19840fd332 feat: effect observables 2022-09-09 12:39:32 +02:00
Josep M Sobrepere
2b5b06c90f
@react-rxjs/core@0.9.8 2022-06-24 22:54:32 +02:00
Josep M Sobrepere
c777db70c0 fix: Subscribe with async errors
Co-authored-by: Victor Oliva <olivarra1@gmail.com>
2022-06-24 22:40:14 +02:00
Josep M Sobrepere
b5826b4e59
@react-rxjs/core@0.9.7 2022-06-14 15:47:36 +02:00
Josep M Sobrepere
af85c8a567 @react-rxjs/core: fix StrictMode error on immediate unmount 2022-06-14 15:45:41 +02:00
Josep M Sobrepere
26b6460c77
@react-rxjs/core@0.9.6 2022-04-29 10:50:08 +02:00
Josep M Sobrepere
e3d6f640e0 core: fix SUSPENSE typings 2022-04-25 15:13:29 +02:00
Victor Oliva
b194d558ca
docs: add description for toKeySet operator (#257)
Co-authored-by: Josep M Sobrepere <jm.sobrepere@gmail.com>
2022-04-21 14:39:15 +02:00
Victor Oliva
f9b6175694
feat: RemoveSubscribe component (#261) 2022-04-14 13:05:19 +02:00
Josep M Sobrepere
bb716cefb8 @react-rxjs/core@0.9.5 2022-04-11 15:36:12 +02:00
Josep M Sobrepere
8c71bcf086 types: make types compatible for React 18 2022-04-11 15:27:13 +02:00
Josep M Sobrepere
1516ed7df3 chore: yarn -> npm 2022-04-05 15:32:31 +02:00
Josep M Sobrepere
5c31503a1d @josepot/rxjs-state -> @rxstate/core 2022-04-05 10:49:18 +02:00
Josep M Sobrepere
2452f12ebc chore: upgrade dependencies 2022-04-05 10:49:18 +02:00
Josep M Sobrepere
da9fea8937
@react-rxjs/core@0.9.4 (#254) 2022-04-04 17:41:23 +02:00
Josep M Sobrepere
1af9c62033
fix: useStateObservable (#253) 2022-04-04 17:37:21 +02:00
Victor Oliva
6fe91f8a1b
feat: utils toKeySet (#252)
* feat: utils `toKeySet`

* Update packages/utils/src/toKeySet.ts

Co-authored-by: Josep M Sobrepere <jm.sobrepere@gmail.com>

* Update packages/utils/src/toKeySet.test.ts

Co-authored-by: Josep M Sobrepere <jm.sobrepere@gmail.com>

* organize test imports

Co-authored-by: Josep M Sobrepere <jm.sobrepere@gmail.com>
2022-04-01 10:16:12 +02:00
Josep M Sobrepere
ec8f8ad12d
partitionByKey fixes and improvements (#251)
* `partitionByKey` fixes and improvements

* fix `pendingFirstAdd`

* add order to sync test

* Update packages/utils/src/partitionByKey.ts

Co-authored-by: Victor Oliva <olivarra1@gmail.com>

Co-authored-by: Victor Oliva <olivarra1@gmail.com>
2022-03-30 23:31:02 +02:00
Josep M Sobrepere
78416fbed5
@react-rxjs/core@0.9.3 2022-03-30 15:48:48 +02:00
Victor Oliva
da4c7c6c30
fix Subscribe running in react18 StrictMode (#249) 2022-03-30 14:45:44 +02:00
Victor Oliva
fb7004a066
Improve performance of partitionByKey with a big number of elements (#232)
* Improve performance of partitionByKey with a big number of elements
* Improve performance of partitionByKey by not serialising the keys
* partition by key to emit deltas instead of the resulting keys
* update tests for partitionByKey
* update tests for combineKeys
* getGroupedObservable: close outer subscription once the inner stream is found
* add performance tests to partitionByKey
* make tests more predictable
* adjust performance threshold

Co-authored-by: Josep M Sobrepere <jm.sobrepere@gmail.com>
2022-03-30 11:36:14 +02:00
Josep M Sobrepere
73776b473b @react-rxjs/core@0.9.2 2022-03-29 15:25:12 +02:00
Josep M Sobrepere
8093bf39f9 fix: declare rxjs-state as external 2022-03-29 14:56:58 +02:00
Josep M Sobrepere
4cbe22a020 fix: React Native build 2022-03-29 14:46:57 +02:00
Josep M Sobrepere
d291db98ce
@react-rxjs/core@0.9.1 2022-03-27 23:14:50 +02:00
Luke Shiels
0f3ad28536 Fix compile error on Next.js 12 (Directory import)
We're using `react-rxjs` but have transitioned away to an SSR framework, however Node doesn't seem to support this syntax of importing from a directory without specifically writing `index.js`. 

Installing `react-rxjs` on a freshly setup Next.js project yields the following error when trying to import `bind` from `@react-rxjs/core`:
```
Error: Directory import '*<project>*/node_modules/use-sync-external-store/shim' is not supported resolving ES modules imported from *<project>*/node_modules/@react-rxjs/core/dist/core.es2019.mjs

Did you mean to import use-sync-external-store/shim/index.js?
```
2022-03-27 23:03:58 +02:00
Víctor Oliva
5a37acd322 add DefaultedStateObservable overloads 2022-03-20 16:45:28 -05:00