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 with SELECT;
    • ๐Ÿ”„ 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