61 Commits

Author SHA1 Message Date
Roger Veciana i Rovira
22e5866eeb
Update to React 19 (#321)
* Upgrade to react 19

* Change waitFor timeout and remove uneeded waitFor usage. Upgrade use-sync-external-store

* sync cpackage-lock.json

* Add removed types again
2025-01-14 15:51:55 +01:00
Victor Oliva
39f9a743a3
upgrade dependencies, migrate to vitest (#303) 2023-07-29 20:56:51 +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
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
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
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
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
80b28b7349 fix: utils/combineKeys emit empty Map when needed 2021-10-06 19:44:42 +02:00
Josep M Sobrepere
9d47952006 fix(utils): partitionByKey make streamSelector optional 2021-06-25 10:11:36 +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
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
d92092f721 feat(utils): createKeyedSignal key/value overload 2021-04-02 16:13:52 +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
96a397fbf1 chore(utils): flip order of returned tuple of partitionByKey 2021-03-31 00:10:15 +02:00
Josep M Sobrepere
957c4e5346 chore(utils): flag split, collect & collectValues as deprecated 2021-03-31 00:10:15 +02:00
Josep M Sobrepere
d653623d1f test(utils): add tests to combineKeys 2021-03-31 00:10:15 +02:00
Víctor Oliva
bbf752556f Add tests and jsdocs for partitionByKey 2021-03-31 00:10:15 +02:00
Víctor Oliva
35f46c96b8 Rename mergeActiveKeys for combineKeys, add tests and jsdocs 2021-03-31 00:10:15 +02:00
Josep M Sobrepere
f976661c2e feat(utils): partitionByKey && mergeActiveKeys WIP 2021-03-31 00:10:15 +02:00
Josep M Sobrepere
e1dc04dbea feat(utils): createSignal & createKeyedSignal 2021-03-23 23:01:57 +01:00
Josep M Sobrepere
c1717c15ea chore(utils): improvements 2021-02-28 20:05:03 +01:00
Josep M Sobrepere
effba0761a feat(utils): getGroupedObservable 2021-02-28 20:05:03 +01:00
Josep M Sobrepere
8517b5521c feat(utils): add 'get' to collect observables 2021-02-26 09:27:34 +01:00
Josep M Sobrepere
56e0643a30 feat(utils): add contextBinder 2021-01-22 15:18:03 +01:00
Josep M Sobrepere
a0b004a5df chore(deps): upgrade to TypeScript 4 2021-01-22 15:18:03 +01:00
Josep M Sobrepere
75ba112753 feat(utils): startWith -> defaultStart on suspense utils
BREAKING CHANGE: suspend, suspended and switchMapSuspended will only
emit SUSPENSE if the source doesn't emit synchronously
2020-10-02 20:50:01 +02:00
Josep M Sobrepere
199a791834 refactor(utils): leverage pipe from RxJS 2020-10-02 12:19:19 +02:00
Josep M Sobrepere
008a3b6b85 chore: use const enums 2020-09-25 14:59:05 +02:00
Josep M Sobrepere
1fe4f41045 fix(utils): fix createListener typings 2020-09-23 14:50:09 +02:00
Víctor Oliva
562890f16a feat(utils-createListener): add overload for shorthand listeners 2020-09-23 10:31:53 +02:00
Josep M Sobrepere
45f32cc47a utils(createListener): add createListener util 2020-09-22 23:39:49 +02:00
Josep M Sobrepere
94baef6ccc fix(utils-split): dismiss inner observable on error 2020-09-10 11:49:42 +02:00
Josep M Sobrepere
fc20321d9b test(utils-split): add test for when inner-observable errors 2020-09-10 11:49:42 +02:00
Riko Eksteen
8175410c97 chore(typings): bring types in line with RxJs
- use OperatorFunction and MonoTypeOperatorFunction where appropriate
- switch order of type arguments on "split" (from K,T,R to T,K,R) so that it matches other operators like groupBy
- change typings of switchMapSuspended so that it matches RxJs switchMap (now uses ObservedValueOf)

no code changes; all tests still pass
2020-09-04 12:49:44 +02:00
Josep M Sobrepere
7ac587cd07 chore(refactor): move subscribe utils to core 2020-08-27 15:12:47 +02:00
Josep M Sobrepere
a653031818 feat(utils): add selfDependant creation operator 2020-08-27 12:14:53 +02:00
Josep M Sobrepere
0d40dca5c3 chore(core-utils): move Suspense utils from core to utils 2020-08-26 23:37:48 +02:00
Josep M Sobrepere
047f83d0a2 chore(utils): collector abstraction to reduce bundle size 2020-08-26 20:22:28 +02:00
Josep M Sobrepere
a6ae4a69b1 fix(utils-collect): add shareLatest behaviour 2020-08-26 18:30:18 +02:00
Josep M Sobrepere
31f7029c36 feat(utils): add collect operator 2020-08-26 09:31:56 +02:00
Víctor Oliva
9aff17d208 docs(utils-split): add initial docs to split 2020-08-25 19:22:08 +02:00
Josep M Sobrepere Profitós
90de29b08a feat(utils): deprecate groupInMap in favour of collectValues 2020-08-25 13:55:38 +02:00
Josep M Sobrepere Profitós
27c90bc693 fix(utils-split): fix error notifications 2020-08-21 20:32:10 +02:00