181 Commits

Author SHA1 Message Date
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
Josep M Sobrepere
abf554ebc6 v0.9.0 rxjs-state integration
Co-authored-by: Víctor Oliva <olivarra1@gmail.com>
2022-03-20 16:45:28 -05:00
Josep M Sobrepere
b84fd55b53
patch libraries 2022-03-11 15:56:18 -05:00
Josep M Sobrepere
f97649c0af
fix: undo type: module 2022-03-11 15:53:53 -05:00
Josep M Sobrepere
93c0336304
@react-rxjs/core@0.8.6 on devDependencies 2022-03-11 15:43:31 -05:00
Josep M Sobrepere
a4871f4ff7 @react-rxjs/core@0.8.6 fix build 2022-03-11 15:41:33 -05:00
Josep M Sobrepere
dc0afe3b65 patch packages 2022-03-11 11:53:51 -05:00
Josep M Sobrepere
04430000ac type: module 2022-03-11 11:53:51 -05:00
Josep M Sobrepere
d3b6013d3b useSyncExternalStore 2022-03-11 11:53:51 -05:00
Josep M Sobrepere
80b28b7349 fix: utils/combineKeys emit empty Map when needed 2021-10-06 19:44:42 +02:00
Josep M Sobrepere
36c9e6f392 patch: upgrade dev dependencies & patch 2021-09-26 21:43:33 +02:00
Josep M Sobrepere
00670499c9 chore: patch exports for all packages (RN) 2021-09-04 00:14:11 +02:00
Josep M Sobrepere
04e356d028 fix: package.json exports 2021-09-03 23:54:27 +02:00
Josep M Sobrepere
9d47952006 fix(utils): partitionByKey make streamSelector optional 2021-06-25 10:11:36 +02:00
Josep M Sobrepere
6444c03faf chore: patch exports for all packages 2021-06-07 10:33:04 +02:00
Josep M Sobrepere
3ebc198cb5 @react-rxjs/utils@0.9.0 2021-06-01 12:02:57 +02:00
Víctor Oliva
cb128737a5 remove split/collect/collectValues 2021-05-31 23:53:35 +02:00
Víctor Oliva
59576a11dc polish error behaviour on partitionByKey, complete tests 2021-05-31 23:53:35 +02:00
Víctor Oliva
9e33084aab reimplement partitionByKey 2021-05-31 23:53:35 +02:00
Víctor Oliva
71173d3be0 add new tests to partitionByKey 2021-05-31 23:53:35 +02:00
Víctor Oliva
903c929682 feat(utils/combineKeys): emit set with changed keys 2021-05-31 14:42:15 +02:00
Josep M Sobrepere
13fa3af64f @react-rxjs/core@0.8.1 and @react-rxjs/utils@0.8.3 2021-05-31 14:22:22 +02:00
Josep M Sobrepere
80a9fd67ee chore: remove tsdx and upgrade dependencies 2021-05-31 13:51:59 +02:00
Josep M Sobrepere
03ef720011 fix(contextBinder): fix typings (exclude Suspense from hook) 2021-05-26 09:58:37 +02:00
Josep M Sobrepere
d3fb725015 fix(utils): combineKeys allow for reentrant keys 2021-05-10 21:23:32 +02:00
Josep M Sobrepere
c6b4010cd0 fix(shareLatest): properly closing sync observables 2021-05-07 10:07:16 +02:00
Víctor Oliva
51148d1900 @react-rxjs/core@0.8.0 2021-04-23 12:01:13 +02:00
Josep M Sobrepere
92e1bef304 feat(core): 🎉 Subscribe: Make source$ optional 🎉 2021-04-16 17:33:42 +02:00
Josep M Sobrepere
f8afe0c25d @react-rxjs/core@0.7.1 2021-04-08 10:46:10 +02:00
Josep M Sobrepere
22f86e08b6 chore(core): improve shareLatest implementation 2021-04-08 10:34:56 +02:00
Josep M Sobrepere
ffa503a982 fix(core): defer the evaluation of the factory function 2021-04-08 09:40:30 +02:00
Josep M Sobrepere
e6c7898821 fix(core): fixes issue with factory bind lazily referencing its enhanced self 2021-04-07 23:42:41 +02:00
Josep M Sobrepere
a180a8155a @react-rxjs/core@0.7.0 2021-04-02 21:57:24 +02:00
Josep M Sobrepere
a0bea24b4f feat(core): remove useSubscribe 2021-04-02 21:57:24 +02:00
Josep M Sobrepere
15539048a5 feat(core): factory bind accept function for default value 2021-04-02 17:09:13 +02:00
Josep M Sobrepere
961eadecc8 @react-rxjs/utils@0.8.2 2021-04-02 16:24:12 +02:00
Josep M Sobrepere
d92092f721 feat(utils): createKeyedSignal key/value overload 2021-04-02 16:13:52 +02:00
Josep M Sobrepere
ca8bfae61d chore: fix devDependencies 2021-04-01 15:58:38 +02:00
Josep M Sobrepere
ba1d31e1b9 chore: improve bundling 2021-04-01 15:44:34 +02:00
Víctor Oliva
c9d1864f58 fix(createKeyedSignal): Fix types on key selector overload 2021-04-01 11:43:41 +02:00
Josep M Sobrepere
7c84ed50d9 @react-rxjs/utils@0.8.0 2021-03-31 01:19:14 +02:00