Comparing version 0.18.4 to 0.19.0
@@ -128,3 +128,3 @@ #!/usr/bin/env node | ||
path.dirname(env.modulePath) + | ||
'/src/migrate/stub/knexfile-' + | ||
'/lib/migrate/stub/knexfile-' + | ||
type + | ||
@@ -131,0 +131,0 @@ '.stub' |
const { DEFAULT_EXT, DEFAULT_TABLE_NAME } = require('./constants'); | ||
const { resolveClientNameWithAliases } = require('../../src/helpers'); | ||
const { resolveClientNameWithAliases } = require('../../lib/helpers'); | ||
const fs = require('fs'); | ||
@@ -4,0 +4,0 @@ const path = require('path'); |
# Master (Unreleased) | ||
# 0.19.0 - 11 July, 2019 | ||
### Changes: | ||
- Pooling: tarn.js connection pool was updated to version 2.0.0. This fixes issue with destroying connections and introduces support for connection pool event handlers. Please see tarn.js documentation for more details #3345 | ||
- Pooling: Passing unsupported pooling configuration options now throws an error | ||
- Pooling: `beforeDestroy` configuration option was removed | ||
# 0.18.4 - 10 July, 2019 | ||
@@ -4,0 +12,0 @@ |
## How to contribute to Knex.js | ||
- Make changes in the `/src` directory. | ||
- Make changes in the `/lib` directory. | ||
@@ -36,3 +36,3 @@ - Before sending a pull request for a feature or bug fix, be sure to have | ||
const Dialect = require(`knex/src/dialects/sqlite3/index.js`); | ||
const Dialect = require(`knex/lib/dialects/sqlite3/index.js`); | ||
Dialect.prototype._driver = () => require('sqlite3-offline'); | ||
@@ -39,0 +39,0 @@ |
@@ -8,2 +8,2 @@ // Knex.js | ||
module.exports = require('./src/index'); | ||
module.exports = require('./lib/index'); |
{ | ||
"name": "knex", | ||
"version": "0.18.4", | ||
"version": "0.19.0", | ||
"description": "A batteries-included SQL query & schema builder for Postgres, MySQL and SQLite3 and the Browser", | ||
@@ -11,9 +11,8 @@ "main": "knex.js", | ||
"scripts": { | ||
"format": "prettier --write \"{src,bin,scripts,test}/**/*.js\"", | ||
"format": "prettier --write \"{lib,bin,scripts,test}/**/*.js\"", | ||
"debug:test": "mocha --inspect-brk --exit -t 0 test/index.js", | ||
"debug:tape": "node --inspect-brk test/tape/index.js", | ||
"coveralls": "nyc report --reporter=text-lcov | coveralls", | ||
"lint": "eslint \"src/**/*.js\" \"test/**/*.js\"", | ||
"lint": "eslint \"lib/**/*.js\" \"test/**/*.js\"", | ||
"lint:types": "dtslint types", | ||
"pretest": "npm run lint && npm run lint:types", | ||
"test": "mocha --exit -t 10000 test/index.js && npm run test:tape && npm run test:cli", | ||
@@ -42,3 +41,3 @@ "test:nyc": "nyc mocha --exit --check-leaks --globals __core-js_shared__ -t 10000 test/index.js && npm run test:tape && npm run test:cli", | ||
"pg-connection-string": "2.0.0", | ||
"tarn": "^1.1.5", | ||
"tarn": "^2.0.0", | ||
"tildify": "2.0.0", | ||
@@ -130,5 +129,5 @@ "uuid": "^3.3.2", | ||
"browser": { | ||
"./src/migrate/Migrator.js": "./src/util/noop.js", | ||
"./src/bin/cli.js": "./src/util/noop.js", | ||
"./src/seed/Seeder.js": "./src/util/noop.js", | ||
"./lib/migrate/Migrator.js": "./lib/util/noop.js", | ||
"./lib/bin/cli.js": "./lib/util/noop.js", | ||
"./lib/seed/Seeder.js": "./lib/util/noop.js", | ||
"mssql": false, | ||
@@ -146,4 +145,4 @@ "mssql/lib/base": false, | ||
"react-native": { | ||
"./src/migrate": "./src/util/noop.js", | ||
"./src/seed": "./src/util/noop.js" | ||
"./lib/migrate": "./lib/util/noop.js", | ||
"./lib/seed": "./lib/util/noop.js" | ||
}, | ||
@@ -154,4 +153,4 @@ "files": [ | ||
"bin/*", | ||
"src/*", | ||
"lib/*", | ||
"lib/*", | ||
"knex.js", | ||
@@ -158,0 +157,0 @@ "LICENSE", |
@@ -1745,3 +1745,2 @@ // Originally based on contributions to DefinitelyTyped: | ||
destroy?: Function; | ||
beforeDestroy?: Function; | ||
min?: number; | ||
@@ -1748,0 +1747,0 @@ max?: number; |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
548977
14846
2
+ Addedtarn@2.0.0(transitive)
- Removedtarn@1.1.5(transitive)
Updatedtarn@^2.0.0