-
Notifications
You must be signed in to change notification settings - Fork 113
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
Bump dependencies (uuid, debug, dev-deps) #217
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
node_modules | ||
coverage | ||
node_modules/ | ||
coverage/ | ||
.nyc_output/ | ||
*.log |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
sudo: false | ||
language: node_js | ||
node_js: | ||
- '7' | ||
- '8' | ||
- '10' | ||
- '12' | ||
script: 'npm run test-travis' | ||
after_script: 'npm install coveralls@2 && cat ./coverage/lcov.info | coveralls' | ||
- "node" | ||
- "lts/*" | ||
after_success: | ||
- c8 -r text-lcov npm test | coveralls | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -394,12 +394,12 @@ describe('Koa Session External Context Store', () => { | |
|
||
request(server) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if we remove There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it correct like this? (I'm not familiar with this mode of usage of mocha). |
||
.post('/') | ||
.expect(200) | ||
.end((err, res) => { | ||
if (err) return done(err); | ||
const cookie = res.headers['set-cookie']; | ||
should.not.exist(cookie); | ||
}) | ||
.expect(200, done); | ||
done(); | ||
}); | ||
}); | ||
it('should set headers if manuallyCommit() is called', done => { | ||
const app = App({ autoCommit: false }); | ||
|
@@ -418,9 +418,6 @@ describe('Koa Session External Context Store', () => { | |
request(server) | ||
.post('/') | ||
.expect('Set-Cookie', /koa\.sess/) | ||
.end(err => { | ||
if (err) return done(err); | ||
}) | ||
.expect(200, done); | ||
}); | ||
}); | ||
|
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 makes this a breaking change, which'd mean a new major version - could be worth trying to split this PR up into a couple of smaller ones so non-breaking changes can be landed?
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.
From memory, I think it was dev-deps that prompted the engines.node bump, though I didn't make particular note of it.
I've never been quite sure about whether the engines.node should relate to app + dependencies, or app + dependencies + devDependencies.
I think the only substantive changes (ignoring dev-deps) are uuid & debug; [email protected] specifies engines.node as >=6.0, uuid doesn't mention engines.node.
I think I bumped engines.node to 10+ since eslint required that, but whether engines.node should depend on a devDependency, I'm not sure!
To further complicate the issue, [email protected] specifies engines.node as >=12: but having just run a test, the koa-session
example.js
runs perfectly well on [email protected].If the koa-session maintainers feel it worthwhile, the deps could be bumped separately from the dev-deps, but perhaps engines.node should not depend on devDependencies, in which I was mistaken in bumping it up to 10.0.0 and it can validly stay on 7.6.0?
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 think it's ok to upgrade node to 10.0.0 since node<10 is already out of maintenance for a long time.