Adrian Leonhard
30dfe7d43f
Double timeouts to prevent tests flaking out
2020-05-24 12:22:32 +02:00
Adrian Leonhard
e08275dbbb
Merge pull request #256 from bb/patch-1
...
Fix ObservableGroupMap index out of bounds #255
2020-05-24 11:58:47 +02:00
Adrian Leonhard
1c0bdabbc7
Add .gitattributes and git add . --renormalize
2020-05-24 11:50:26 +02:00
Adrian Leonhard
013bd56e6d
Add test from #255 (confirmed that it fails on master)
2020-05-24 10:34:32 +02:00
Adrian Leonhard
294e6a2398
Merge pull request #251 from mobxjs/fix-from-stream-initialvalue-type
...
Fix fromStream initialValue type
2020-05-16 12:26:40 +02:00
Adrian Leonhard
dbd39752f2
Merge pull request #245 from NaridaL/master
...
Add ObservableGroupMap
2020-05-15 18:18:35 +02:00
Adrian Leonhard
47321e7483
Typing initial value correctly doesn't require a second type parameter.
...
I enabled strict mode to resolve all the null errors in observable-stream.ts and test/observable-stream.ts
2020-05-15 18:10:24 +02:00
Ivan Kasenkov
a12a84fadd
fix types: type of IStreamListener.current also can be type of initial value
2020-05-15 17:52:06 +02:00
Adrian Leonhard
2170edce13
Add failing test.
2020-05-15 17:48:22 +02:00
Adrian Leonhard
7086cd685d
ObservableGroupMap: add two more tests, minor restructure
2020-05-05 23:48:44 +02:00
Adrian Leonhard
5ff0b3f1a7
Add ObservableGroupMap
...
An ObservableGroupMap is constructed from a base IObservableArray and a `groupBy` function.
It maps `groupBy` values to IObservableArrays of the items in the base array which have groupBy(item) == key
The IObservableArrays are updated reactively when items in the base array are removed, changed or added.
Updates are done without iterating through the base array (except once at the beginning)
2020-05-04 15:41:01 +02:00
Adrian Leonhard
9ccbf01870
Update prettier to 2.0.4
2020-04-10 14:23:14 +02:00
Javier Gonzalez
aad06b1656
fix action async execution order when throwing ( #246 )
...
* fix action async execution order when throwing
2020-04-07 23:34:28 +02:00
xaviergonz
c0c8065b8c
Published version 5.5.4
2020-02-21 16:32:22 +01:00
Javier Gonzalez
c386dd362e
Fix invalid actionAsync context when promises resolve at the same time in different actionAsync calls ( #240 )
...
* fix-239
* update changelog
* fix for old node versions
2020-02-21 13:30:29 +01:00
Michel Weststrate
9fac6ae8bd
Merge branch 'transformer-not-memorize-outside' of https://github.com/upsuper/mobx-utils into upsuper-transformer-not-memorize-outside
2020-01-13 18:49:52 +00:00
Michel Weststrate
ca7a18dd78
Merge pull request #224 from samdroid-apps/support-computed-options-transformer
...
Support IComputedOptions in createTransformer
2020-01-13 18:40:06 +00:00
Xidorn Quan
887d928afd
have transformer not memorize when called outside reactive context
2019-11-29 13:38:56 +11:00
Javier Gonzalez
305a383872
fix actionAsync when using promises that resolve immediately ( #225 )
...
* fix actionAsync when using promises that resolve immediately
* change test name
2019-10-29 18:09:00 +01:00
xaviergonz
69e8382811
add actionAsync unit test for awaiting later
2019-10-25 22:44:10 +02:00
xaviergonz
389bb08ffe
improve an actionAsync unit test
2019-10-25 22:32:35 +02:00
Sam Parkinson
43805db436
Support IComputedOptions in createTransformer
...
In the same vain as #215 , it would be great to use a custom equals
function with createTransformer, to avoid bubbling bubbling recomputes
of transformers that return arrays.
This commit passes the options through to the internal `computed`. The
name option is not passed through, since that can be changed with
the `debugNameGenerator` option.
2019-10-23 14:21:15 +11:00
xaviergonz
c0e5c937cd
add one more unit test to actionAsync
2019-10-18 00:18:29 +02:00
Javier Gonzalez
5b67900ac8
fix actionAsync actions without task ( #221 )
2019-10-17 18:33:38 +02:00
Javier Gonzalez
b9ee8fa8cd
add plain value support to task ( #220 )
2019-10-16 13:29:13 +02:00
Javier Gonzalez
3786cfa35d
update some more dev deps, run latest prettier
2019-10-13 20:37:48 +02:00
Javier Gonzalez
41246eadd7
actionAsync ( #217 )
...
* actionasync
* fix docs indentation
* fix typo
* fixed more typos
* slight improvement to unit tests
* add fail function
* fix dangling promises, improve unit tests
* fix recursivity, some edge cases
* removed wrong unit test
* silly commit to retrigger build
* silly commit to retrigger build
* try to fix unit test
* update some dev-deps
2019-10-13 20:28:06 +02:00
Michel Weststrate
75733b1302
applied prettier
2019-10-02 14:33:19 +01:00
Michel Weststrate
772854fe42
Merge pull request #216 from wrench7/fix-create-view-model-missing-properties
...
Fix: reinstate createViewModel unobserved properties
2019-10-02 14:24:15 +01:00
Jason Langdon
e617af6ddb
remove superfluous code that getAllMethodsAndProperties relies on
2019-10-01 12:24:43 +01:00
Jason Langdon
853bd37647
fix unobserved properties not being included in createViewModel
2019-09-26 10:43:34 +01:00
David Hearnden
1652bb20fe
Supports IComputedOptions in computedFn
2019-09-20 15:41:58 +10:00
Michel Weststrate
a7076d5b42
Better computed name
2019-04-18 16:27:24 +02:00
Michel Weststrate
abed715e0c
Added tests, implementation refinement
2019-04-18 16:17:36 +02:00
Michel Weststrate
bf13617331
small rename
2019-04-17 23:44:46 +02:00
Michel Weststrate
846691b5c9
Implemented deepMap
2019-04-17 23:40:46 +02:00
Michel Weststrate
7c13bcc5b0
Merge branch 'es6-getters-create-view-model' of https://github.com/wrench7/mobx-utils into wrench7-es6-getters-create-view-model
2019-04-17 16:11:18 +02:00
Michel Weststrate
ee840ea0e2
Updated dependencies to fix Github security warnings
2019-04-10 17:04:19 +02:00
Michel Weststrate
8e90487b5a
Stricter typings for create-view-model. See #182
2019-04-10 16:46:36 +02:00
Michel Weststrate
b1fb160f44
Merge pull request #182 from mobxjs/view-model-add-to-interface
...
[CreateViewModel] - Add changedValues to interface
2019-04-10 17:39:17 +03:00
Michel Weststrate
ba820882e7
Merge pull request #174 from hepuxuan/lazyObservable-no-longer-work-after-reset
...
set started to false when calling lazyObservable.reset to allow further update to lazyObservable.
2019-04-10 17:37:39 +03:00
Michel Weststrate
6cae7d136a
Merge pull request #177 from wbercx/deepobserve-guard
...
Fix: guard around unobserveRecursively to avoid error being thrown
2019-04-10 17:36:09 +03:00
Michel Weststrate
84d2792db1
Merge pull request #176 from mobxjs/add-name-to-create-transformer
...
[CreateTransformer] - Add debugging name
2019-04-10 17:34:05 +03:00
Jason Langdon
5d147c1a43
Fix: ensure ES6 observable getters are included in createViewModel
2019-04-02 16:44:41 +01:00
Itamar Sharify
6cfb95677a
[CreateTransformer] - Add debugging name
...
Fixes Issue #129
2019-03-15 23:57:49 +02:00
miton18
aaa064ba4c
Lazy-observable pending unit tests
2019-03-13 16:23:50 +01:00
Itamar Sharify
6f0d5410c9
[CreateViewModel] - Add changedValues to interface
2019-03-12 00:09:57 +02:00
Wesley Bercx
c9f554df89
Update with upstream master to resolve conflicts.
2019-03-11 12:36:25 +11:00
Wesley Bercx
dc7d9d4aff
Added test for primitive value changes.
2019-03-11 12:28:44 +11:00
Puxuan
28577b9252
add unit test
2019-03-06 22:54:19 -06:00