Comments (4)
so i spent a little time on this: setting up my editor for standard style, reading simple-mock, and mostly reading the hoodie source for the first time in over a year... i'd been editing test/specs/init.js
for some time before i realized that this involves writing tests and implementing the connect()
functionality, and i dunno if i should claim ownership of this issue as such. i will continue to watch it and try further edits.
from hoodie-client.
@ransomw if you only want to write the tests, thatβs totally okay, we can split this issue up in two PRs
from hoodie-client.
so i went ahead and did both the test and implementation w/ separate PRs for each and finer-grained commits in iss54-* branches of the fork.
i feel like this was a great starter issue to get familiar w/ the collaborative process. i didn't want to muck w/ the existing tests too much, so i pretty much just matched existing patterns. one idea that occurred to me that i didn't implement, for instance, is extracting the account
stub setup from the individual tests, b/c i'm not certain if this would be considered an improvement. anyway, that can be discussed in PR comments.
one thing to mention here is that i noticed the following warning on the can chain plugins calls
test running on node v5.5.0:
(node) warning: possible EventEmitter memory leak detected. 11 destroyed listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
at EventEmitter.addListener (events.js:252:17)
at setUpEventEmitter (.../hoodie-client/node_modules/pouchdb/lib/index.js:2360:9)
at Function.PouchDB.defaults (.../hoodie-client/node_modules/pouchdb/lib/index.js:2463:3)
at new Store (.../hoodie-client/node_modules/hoodie-client-store/index.js:45:31)
at Store (.../hoodie-client/node_modules/hoodie-client-store/index.js:19:40)
at new CustomStore (.../hoodie-client/node_modules/hoodie-client-store/index.js:107:12)
at new Hoodie (.../hoodie-client/index.js:25:15)
at Test.<anonymous> (.../hoodie-client/tests/specs/plugin.js:29:16)
at Test.bound [as _cb] (.../hoodie-client/node_modules/tape/lib/test.js:61:32)
at Test.run (.../hoodie-client/node_modules/tape/lib/test.js:77:10)
from hoodie-client.
great work @ransomw π
we can ignore the EventEmitter warning for now. It's a built-in feature of https://nodejs.org/api/events.html to help you avoid memory leaks. We might need to bump the limit before the warning occurs, but want to implement all outstanding features and fix all known bugs first
from hoodie-client.
Related Issues (20)
- An in-range update of uglify-js is breaking the build π¨ HOT 1
- π― test coverage HOT 1
- An in-range update of uglify-js is breaking the build π¨ HOT 1
- after reconnecting, store does not resume sync HOT 6
- An in-range update of browserify is breaking the build π¨ HOT 2
- Package hoodie-client for Bower HOT 7
- hoodie.account options are not applied HOT 4
- 'change' event no longer triggered after sign in / sign out HOT 1
- Compacting PouchDB HOT 3
- pass options to plugins
- An in-range update of pouchdb-adapter-http is breaking the build π¨ HOT 4
- An in-range update of pouchdb-adapter-memory is breaking the build π¨ HOT 4
- An in-range update of pouchdb-core is breaking the build π¨ HOT 4
- An in-range update of pouchdb-replication is breaking the build π¨ HOT 4
- Arguments ignored in custom events HOT 2
- An in-range update of @hoodie/store-client is breaking the build π¨ HOT 2
- An in-range update of uglify-js is breaking the build π¨ HOT 14
- Project still alive? HOT 5
- Offline multi-user authentication HOT 5
- Option to set database name respectively split data into multiple databases HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hoodie-client.