-
Notifications
You must be signed in to change notification settings - Fork 154
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
Pouchdb replicator #209
Pouchdb replicator #209
Conversation
… much untested). Also validation update (will become 1.1.0).
… some improvements to coroutines (nesting them, most notably)
…rotections for them like in CouchDB). No regressions, but JS test coverage isn't complete yet.
"sanitize-filename": "^1.6.1", | ||
"uuid": "^3.0.1", | ||
"pouchdb-fauxton": "^0.0.5" | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@garrensmith you actually don't need to add any dependencies
in the sub-packages; just keep it empty. They'll automatically be filled in by release.sh
.
|
||
#after_success: | ||
# - npm run helper -- semantic-release | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can remove this file assuming the top-level .travis.yml
also runs the tests
@@ -0,0 +1,35 @@ | |||
{ | |||
"name": "pouchdb-replicator", | |||
"version": "2.3.4", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this doesn't need to include a version; that's automatically added at release
time.
OTOH we have to make sure we can actually publish a new version that's the same verison as express-pouchdb/pouchdb-server. Since the latest pouchdb-replicator is 2.1.3 looks like we're good.
tests/mocha.opts
Outdated
@@ -1,2 +1,3 @@ | |||
--colors | |||
--compilers js:pouchdb-plugin-helper/mocha-babel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would much prefer to keep things simple and not have any ES6+ in the codebase, but if that's how pouchdb-replicator and the other plugins are written, then we should probably have a unified strategy for what we're doing with transpilation. It seems ES6+ is currently only used in the tests, not the source code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alternatively I would be okay with just converting from ES modules to CommonJS and using only Node 4+ features. We only support Node 4+ anyhow. Then we could get rid of the mocha-babel
helper entirely.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tests were originally written in Python. I ported them to ES6 since it allowed for the most direct translation. They depend quite heavily on async/await, which as far as I know is not supported even in node 4+.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also we seem to be missing a LICENSE file?
"devDependencies": { | ||
"pouchdb-plugin-helper": "^3.0.0" | ||
}, | ||
"optionalDependencies": {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We seem to be missing a LICENSE
file for pouchdb-replicator
and also "license": "Apache-2.0"
in the package.json
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, probably forgot that while moving to Github. Anyway, I always meant for this to be under Apache-2.0; re-licensing it under ISC or MIT license is fine with me too.
Thanks for putting the work in @garrensmith ! Just a few changes and it should be good to go. Also I added you as a publisher: https://www.npmjs.com/package/pouchdb-replicator |
Thanks Nolan. One thing. What do we do about licensing. Pouchdb-replicator is licensed under Apache. Everything else is MIT. Is that ok?
|
Ask Marten if he's okay switching to Apache
…-----
Nolan Lawson
http://nolanlawson.com
https://github.com/nolanlawson
On Feb 20, 2017 12:07 PM, "garren smith" ***@***.***> wrote:
Thanks Nolan. One thing. What do we do about licensing. Pouchdb-replicator
is licensed under Apache. Everything else is MIT. Is that ok?
All misspelling thanks to my iPhone.
On Mon, Feb 20, 2017 at 10:04 PM +0200, "Nolan Lawson" <
***@***.***> wrote:
Thanks for putting the work in @garrensmith ! Just a few changes and it
should be good to go. Also I added you as a contributor:
https://www.npmjs.com/package/pouchdb-replicator
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#209 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AARUwiKAdwB3DI0LGHmSj3ShPJjMmZpFks5refJ4gaJpZM4MGjj9>
.
|
Just commented inline:
So feel free to do whatever is most practical/most in line with other packages. And nice to see all the monorepo work lately! |
f502372
to
1543a57
Compare
I've converted all the tests to es2015. It took pretty long but I think its at least more consistent. |
awwman thanks for doing the hard work <3 |
@garrensmith looks like we still have (BTW you can run |
Thanks I've cleaned it up. The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 awesome
Very nice to see a monorepo taking shape for pouchdb-server as well! |
This reverts commit b824fbd.
I fixed the mistake I made when I originally merged this, which was that I squash-rebased everything and thus @marten-de-vries didn't get any credit for |
This adds in the pouchdb-replicator plugin with full git history.
/cc @marten-de-vries