391 Commits

Author SHA1 Message Date
Josep M Sobrepere
08e3ddc83d
context-state: combineStates 2022-10-05 23:23:05 +02:00
Josep M Sobrepere
8e62ef7aaf
context-state: routeState 2022-10-05 22:02:53 +02:00
Víctor Oliva
eca5e63f8f add tests for substate (wip) 2022-10-05 17:36:12 +02:00
Josep M Sobrepere
c79850194c
context-state: substate fixes 2022-10-05 16:51:41 +02:00
Josep M Sobrepere
46c6791ba3
context-state: initial substate implementation 2022-10-05 16:29:36 +02: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
86e9a4874c
chore: fix package-lock.json 2022-09-09 12:40:47 +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
Josep M Sobrepere
85ad4a3b19 fix package-lock.json 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
e2fbf4afda chore: upgrade deps 2022-04-11 15:30:50 +02:00
Josep M Sobrepere
8c71bcf086 types: make types compatible for React 18 2022-04-11 15:27:13 +02:00
Josep M Sobrepere
14a07f219d upgrade CI to node 16 2022-04-05 15:32:31 +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
Víctor Oliva
841a86563b docs: update bundlephobia link
Fixes #247
2022-03-30 08:48:19 +02:00
Josep M Sobrepere
73776b473b @react-rxjs/core@0.9.2 2022-03-29 15:25:12 +02:00
Josep M Sobrepere
1a27b2440e chore: upgrade dependencies 2022-03-29 15:06:32 +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
allcontributors[bot]
d3de33285f docs: update .all-contributorsrc [skip ci] 2022-03-27 23:04:20 +02:00
allcontributors[bot]
1e106abf07 docs: update README.md [skip ci] 2022-03-27 23:04:20 +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