Skip to content

Commit

Permalink
feat: support knex 0.15
Browse files Browse the repository at this point in the history
  • Loading branch information
kjin committed Dec 13, 2018
1 parent 32dcb55 commit b654bfc
Show file tree
Hide file tree
Showing 6 changed files with 204 additions and 209 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"@types/extend": "^3.0.0",
"@types/glob": "^7.0.0",
"@types/is": "0.0.21",
"@types/knex": "^0.15.1",
"@types/methods": "^1.1.0",
"@types/mocha": "^5.2.5",
"@types/ncp": "^2.0.1",
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/plugin-knex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ module.exports = [
unpatch: unpatchClient
},
{
// knex 0.10.x and 0.11.x do not need patching
versions: '>=0.10 <=0.11'
// these knex versions do not need patching
versions: '>=0.10 <=0.11 || >=0.14 <=0.16'
}
];

Expand Down
14 changes: 14 additions & 0 deletions test/fixtures/plugin-fixtures.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,20 @@
},
"_mainModule": "knex"
},
"knex0.14": {
"dependencies": {
"knex": "^0.14.0",
"mysql": "^2.13.0"
},
"_mainModule": "knex"
},
"knex0.16": {
"dependencies": {
"knex": "^0.16.0",
"mysql": "^2.13.0"
},
"_mainModule": "knex"
},
"koa1": {
"dependencies": {
"koa": "^1.1.2"
Expand Down
Loading

0 comments on commit b654bfc

Please sign in to comment.