Skip to content

Commit

Permalink
Update packages for Node 18 (#3)
Browse files Browse the repository at this point in the history
* Update packages

* add type module

* Try commonjs

* Remove type

* better babelification

* Fix lodash renamed indexBy

* Revert lodash changes and upgrade other packages
  • Loading branch information
iancamp authored Nov 14, 2022
1 parent e639530 commit b51e933
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ var babel = require('gulp-babel');

gulp.task('default', function () {
return gulp.src([ 'lib/**' ])
.pipe(babel())
.pipe(babel({presets: ['@babel/preset-env']}))
.pipe(gulp.dest('dist'));
});
3 changes: 2 additions & 1 deletion lib/adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ const Adapter = {
connection: {
filename: filename
},
debug: process.env.WATERLINE_DEBUG_SQL || connection.debug
debug: process.env.WATERLINE_DEBUG_SQL || connection.debug,
useNullAsDefault: true
})
})
cb()
Expand Down
18 changes: 10 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,16 @@
"url": "git://github.com/waterlinejs/sqlite3-adapter.git"
},
"dependencies": {
"babel": "5.8.38",
"gulp": "4.0.2",
"gulp-babel": "5.2.0",
"knex": "^0.9",
"@babel/cli": "^7.19.3",
"@babel/core": "^7.20.2",
"@babel/preset-env": "^7.20.2",
"gulp": "^4.0.2",
"gulp-babel": "^8.0.0",
"knex": "2.3.0",
"lodash": "^3.10.0",
"moment": "^2.10.6",
"sqlite3": "4.0.9",
"waterline-cursor": "0.0.6",
"moment": "^2.29.4",
"sqlite3": "5.1.2",
"waterline-cursor": "0.0.7",
"waterline-errors": "^0.10.1",
"waterline-sequel": "^0.5.0"
},
Expand Down Expand Up @@ -63,6 +65,6 @@
]
},
"engines": {
"node": ">= 12.0.0"
"node": ">= 18.0.0"
}
}

0 comments on commit b51e933

Please sign in to comment.