Knex v1.0.0 Release Notes
Release Date: 2022-01-16 // over 2 years ago-
๐ฅ Breaking changes
- โฌ๏ธ Dropped support for Node 10;
- ๐ Replaced unsupported
sqlite3
driver with@vscode/sqlite3
; - ๐ Changed data structure from
RETURNING
operation to be consistent withSELECT
; - ๐ Changed Migrator to return list of migrations as objects consistently.
๐ New features:
- ๐ Support fromRaw #4781
- ๐ Support zero precision in timestamp/datetime #4784
- ๐ Support whereLike and whereILike #4779
- โ Add JSDoc (TS flavor) to stub files #4809
- ๐ Allow skip binding in limit and offset #4811
- ๐ Support creating a new table in the database based on another table #4821
- Accept Raw on onIn joins #4830
- ๐ Implement support for custom seed sources #4842
- โ Add binary uuid option #4836
- โก๏ธ ForUpdate array parameter #4882
- โ Add camel case to timestamps method #4803
- ๐ Advanced JSON support #4859
- โ Add type to TypeScript knexfile #4909
- ๐ Checks Constraints Support #4874
- ๐ Support creating multiple PKs with increments #4903
- Enable wrapIdentifier for SQLite .hasTable #4915
- ๐ MSSQL: Add support for unique constraint #4887
- ๐ SQLite: New dialect, using better-sqlite3 driver #4871
- SQLite: Switch to @vscode/sqlite3 #4866
- ๐ SQLite: Support createViewOrReplace #4856
- ๐ SQLite: Support RETURNING statements for better-sqlite3 driver #4934
- ๐ PostgreSQL: Support JOIN and USING syntax for Delete Statement #4800
๐ Bug fixes:
- ๐ Fix overzealous warning on use of whereNot with "in" or "between" #4780
- ๐ Fix Union all + first syntax error #4799
- ๐ Make view columns optional in create view like #4829
- ๐ Insert lock row fix during migration #4865
- ๐ Fix for createViewOrReplace #4856
- SQLite: Fix foreign key constraints when altering a table #4189
- MySQL: Validate connection fix #4794
- โ MySQL: Set comment size warning limit to 1024 #4867
Typings:
- ๐ Allow string indexType in index creation #4791
- โ Add missing ints typings #4832
- Returning method types #4881
- ๐ Improve columnInfo type #4868