Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: kappa-next #14

Open
wants to merge 87 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
7991a5d
Move index.js to kappa-old.js
Frando Oct 22, 2019
3442666
Add new Kappa!
Frando Oct 22, 2019
9472c73
Add kappaClassic wrapper and source handlers
Frando Oct 22, 2019
8160fb5
Add thunky dependency
Frando Oct 22, 2019
2ae73cb
Fixes
Frando Oct 22, 2019
f298710
Add example as test
Frando Oct 22, 2019
404c78f
Cleanup
Frando Oct 22, 2019
e029dff
Docs
Frando Oct 22, 2019
f5aa224
Rename method
Frando Oct 22, 2019
44cdd21
Add flowchart
Frando Oct 22, 2019
87a4a46
Minor changes to wiring
Frando Oct 22, 2019
a21b44c
Add a hyperdrive source handler & test
Frando Oct 22, 2019
400d16b
Enable all tests
Frando Oct 22, 2019
f4ae334
Use svg for flow graph
Frando Oct 22, 2019
a58dffc
Added kappa-graph.svg
Frando Oct 22, 2019
03665c1
Use svg for flow graph
Frando Oct 22, 2019
6eb507c
Merge branch 'kappa5' of github.com:Frando/kappa-core into kappa5
Frando Oct 22, 2019
7203eda
Remove png graph
Frando Oct 22, 2019
8600c9d
Default opts, and cleanup
Frando Oct 23, 2019
1a281b8
Remove subflows for now
Frando Oct 24, 2019
c996fe6
Fix hyperdrive, improve tests
Frando Oct 24, 2019
c32347e
Tests & cleanup
Frando Oct 24, 2019
11cfe8c
Lint standard
Frando Oct 24, 2019
0046f80
Make methods public
Frando Oct 24, 2019
d81e5ef
Cleanup open & ready
Frando Oct 27, 2019
4f21708
Better multifeed backward compatibility
Frando Oct 29, 2019
6605098
docs
Frando Nov 7, 2019
30753f0
context for views
Frando Nov 7, 2019
e8cc5b1
bump corestore to 4.0.0
ameba23 Nov 7, 2019
ed0f44a
add corestore source
ameba23 Nov 7, 2019
967a3a3
add test for corestore source
ameba23 Nov 7, 2019
37cecec
add default error handler for hypercore source
ameba23 Nov 7, 2019
8516f33
valueencoding = json in corestore test
ameba23 Nov 7, 2019
f08b157
function for corestore constructor
ameba23 Nov 7, 2019
d075ab4
Add transform opt
Frando Nov 14, 2019
53e908a
Add stacked views.
Frando Nov 15, 2019
6a3ff63
clearIndex for stacked views
Frando Nov 15, 2019
a615575
Merge remote-tracking branch 'cobox/corestoreSource' into kappa5
Frando Nov 15, 2019
c50d72d
Rework API after discussions and feedback.
Frando Dec 5, 2019
3cea9f7
Finish API rework. Ready for review.
Frando Dec 5, 2019
e239f0e
version
Frando Dec 5, 2019
f6b7705
Use level-mem for state helper
Frando Dec 6, 2019
7fa4758
Cleanup
Frando Dec 6, 2019
093d951
Improve source utils
Frando Dec 7, 2019
f3c8d7c
Add feed api on multifeed and corestore sources
Frando Dec 7, 2019
70d8717
fix
Frando Dec 7, 2019
373023f
fix
Frando Dec 7, 2019
78f7e11
Streamline and remove unneeded opts
Frando Dec 7, 2019
3c6b8ea
docs
Frando Dec 7, 2019
567286d
docs
Frando Dec 7, 2019
7a5e14d
docs
Frando Dec 7, 2019
fea70bc
docs
Frando Dec 7, 2019
de37cfa
fix: storeversion only after open
Frando Dec 13, 2019
b903074
Use pipeline helper
Frando Dec 13, 2019
b1a6bbc
add close logic
Frando Dec 13, 2019
b033e32
if source has ready method await it in flow.ready
Frando Jan 10, 2020
1577791
fix onsourceready
Frando Jan 10, 2020
721a9e4
fix open logic
Frando Feb 22, 2020
3c574b4
support ready on source directly
Frando Mar 17, 2020
f87f740
support opts.filter for flows
Frando Mar 17, 2020
307c234
missing dev deps
Frando Mar 20, 2020
4eab8c6
filter empty messages
Frando Mar 20, 2020
f0d3def
open in nextTick
Frando Apr 27, 2020
b03cc5b
first round of fixes after review
Frando May 2, 2020
ba96eda
more fixes and doc improvements after review
Frando May 2, 2020
0e3298a
remove filter option for sources and views
Frando May 2, 2020
20eb000
optimization: ensure good version value, dont remove api props
Frando May 2, 2020
3e5ab17
support errors on open
Frando May 2, 2020
040fdae
rename view.clearIndex to view.reset
Frando May 2, 2020
bc39cf3
docs formatting
Frando May 2, 2020
eaa5a0a
Docs improvements
Frando May 2, 2020
86472bd
more fixes from nettle's review
Frando May 2, 2020
2b60ba3
remove outdated test
Frando May 2, 2020
d32bc9d
corrections
Frando May 2, 2020
462fc1a
Prepare for API changes
Frando May 4, 2020
5b04ad8
add error state
Frando May 6, 2020
33e7532
track indexing state
Frando May 6, 2020
567b0bb
mark status property private
Frando May 6, 2020
0f3bc69
move test util libs
Frando May 7, 2020
111d683
cleanup
Frando May 7, 2020
c57c658
remove unneeded deps
Frando May 7, 2020
b29f5f2
fix corestore source
Frando May 7, 2020
da208c9
Emit state-update event on kappa
Frando May 29, 2020
afa09ba
Reuse iteration code on kappa
Frando May 29, 2020
381edb3
Better state tracking
Frando May 29, 2020
def20f1
Expose top-level getState
Frando Jun 2, 2020
187c9f9
Restructure test SimpleSource
Frando Jun 2, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Emit state-update event on kappa
Frando committed May 29, 2020
commit da208c947bfca6707353a27cd26f72722669bcc7
1 change: 1 addition & 0 deletions kappa.js
Original file line number Diff line number Diff line change
@@ -32,6 +32,7 @@ module.exports = class Kappa extends EventEmitter {
this.view[name] = flow.view
this.source[name] = flow.source
flow.on('error', err => this.emit('error', err, flow))
flow.on('state-update', state => this.emit('state-update', name, state))

if (this.status !== Status.Paused) {
process.nextTick(() => flow.open(err => {