Commit graph

35 commits

Author SHA1 Message Date
Barney Carroll
e1a50890e9 stream: Removed valueOf & toString methods (fixes #2150) (#2151)
* stream: Removed `valueOf` & `toString` methods (fixes #2150)

* Update stream documentation
2018-05-16 00:01:30 +02:00
Adam Gamble
fb3c344055 Scan with halt (#1957)
* HALT if scan reducer doesn't change value

* Updated docs to reflect new scan behaviour with HALT
2018-05-03 16:52:33 +01:00
magikstm
e64a322bcf Correct test scripts 2017-12-30 04:44:00 -05:00
Pat Cavit
c7d72ba2de chore: mithril-stream@1.1.0 2017-07-12 21:04:09 -07:00
Pat Cavit
14726f7dd4 docs: add basic readme for mithril-stream 2017-07-12 21:04:09 -07:00
Pat Cavit
7abe16cdc9 chore: add license files to sub-packages 2017-07-12 21:04:09 -07:00
Pierre-Yves Gérardy
bc21be0880 Move "use strict" directive inside the stream IIFE #1831 2017-07-11 10:07:33 +02:00
Pat Cavit
bef58fdfa5 chore: Update repo references (#1834) 2017-05-02 09:24:12 -07:00
Pierre-Yves Gérardy
f272e36de0 Merge pull request #1738 from pygy/fix-stream-end-map
Fix stream end map
2017-03-26 21:31:13 +02:00
calainos
9d3d8774ac docs: Remove m.prop reference in error message (#1742)
Changing m.prop.combine and m.prop.merge to stream.combine and stream.merge
2017-03-24 15:32:11 -07:00
Pierre-Yves Gerardy
f22f884b1e Unregister the end streams after their dependents have run fix #1736 2017-03-24 22:29:43 +01:00
eladzlot
3578d0ffb3 added test for stream.end.map
Tests for issue #1736

Any maps set to the end stream do not get called.
In fact, for some reason adding a map to and end stream throws an error:

```
Cannot read property '_state' of undefined
    at updateDependency (/Users/eladzlot/www/mithril.js/stream/stream.js:46:20)
```
2017-03-24 11:53:54 +03:00
spacejack
683d85a952 refactor: Move scan and scanMerge to stream module (#1718) 2017-03-15 17:22:06 -07:00
Gyandeep Singh
daf5a64697 Chore: Fix lint issues and add indent with tabs 2017-03-11 15:54:41 -06:00
Isiah Meadows
934e0ac55e Merge branch 'next' into strict-mode 2017-03-09 11:54:32 -05:00
Pierre-Yves Gerardy
c3d015be28 IICE => IIFE 2017-03-04 23:24:21 +01:00
Pierre-Yves Gérardy
273d3d4740 Merge branch 'next' into next 2017-03-04 16:34:15 +01:00
Patrik Johnson
59ed3c7d48 Always expose stream on m.stream, use unpkg for docs (#1535)
... and document how streams are exposed in when loaded as <script> in global context
2017-03-04 16:27:02 +01:00
RobertAKARobin
23e4a57114 Put Stream in IIFE so variables aren't global
...when imported into the browser via <script> tags.
2017-03-03 20:44:41 -06:00
Isiah Meadows
1cc5fa5ba7 "use strict" and other linty fixes 2017-03-03 18:24:38 -05:00
Pat Cavit
e324cf6b91 feat: Make streams publishable to NPM (#1635) 2017-02-17 13:01:32 -08:00
Mikkel Bergmann
d1a3f7fe9b Make it work in a browser 2016-12-21 10:02:21 +11:00
eladzlot
3a1124f3ec simplify array operators in stream 2016-11-20 14:13:35 +02:00
Leo Horie
439cf95673 expose promise polyfill in a way that won't need code migration later 2016-11-16 21:15:23 -05:00
Leo Horie
5552ef31b1 lint 2016-11-15 23:20:22 -05:00
Leo Horie
6ce2a384ec simplify streams, lint docs 2016-11-15 23:13:38 -05:00
Leo Horie
bc8cf4ed76 change m.request return value from stream to promise
remove m.prop
add m.Promise
update tests and examples
2016-11-13 22:44:22 -05:00
Leo Horie
164327fc2f use strict 2016-11-04 12:57:18 -04:00
Leo Horie
fa82f4c7c4 wrapper for fantasy-land map 2016-11-04 12:50:42 -04:00
Zach Dahl
db445a899d add stream folder with scan and scan-merge 2016-10-29 00:38:28 -05:00
Leo Horie
80c25e3809 rename routeresolver methods to {onmatch,view}
expose some piecemeal modules
rename internal xhr to request
mirror internal stream api to match public api
2016-08-17 00:10:47 -04:00
Sebastian Sandqvist
c59ea457c9 fix bundle again 2016-08-15 12:33:57 -07:00
Sebastian Sandqvist
f8d2a50fb7 fix bundle 2016-08-15 12:32:10 -07:00
Sebastian Sandqvist
4854b4f959 remove semicolons 2016-08-15 12:10:51 -07:00
Sebastian Sandqvist
7bdb29bbfc Piecemeal stream usage 2016-08-15 12:09:22 -07:00