Bump knex to v2.5.1

Change-type: patch
This commit is contained in:
Felipe Lalanne 2023-08-03 18:55:46 -04:00
parent e87ac99feb
commit 06e258ecad
4 changed files with 1398 additions and 2325 deletions

View File

@ -5,9 +5,12 @@ module.exports = function (source) {
return (
source
.toString()
// IMPORTANT: this is known to work with knex v0.95.15. It will most likely break
// IMPORTANT: this is known to work with knex v2.5.0. It will most likely break
// if knex is upgraded. This is really a hack and should be replaced by a more sustainable
// webpack configuration.
.replace('importFile(_path)', "require('./migrations/'+migration.file)")
.replace(
'importFile(_path)',
"require('./migrations/'+migrationsInfo.file)",
)
);
};

3709
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -101,7 +101,7 @@
"io-ts": "^2.2.10",
"io-ts-reporters": "^1.2.2",
"json-mask": "^0.3.9",
"knex": "^0.95.15",
"knex": "^2.5.1",
"lint-staged": "^13.0.3",
"livepush": "^3.5.1",
"lodash": "^4.17.21",

View File

@ -19,6 +19,7 @@ var externalModules = [
'oracledb',
'pg-query-stream',
'tedious',
'better-sqlite3',
/mssql\/.*/,
'osx-temperature-sensor',
'@balena/systemd',
@ -104,8 +105,8 @@ module.exports = function (env) {
include: [
new RegExp(
_.escapeRegExp(
// this is the path as of knex@0.95.15
path.join('knex', 'lib', 'migrations', 'migrate', 'sources'),
// this is the path as of knex@2.5.1
path.join('knex', 'lib', 'migrations', 'common'),
),
),
],