Skip to content

Commit

Permalink
Prepare 0.95.0 for release
Browse files Browse the repository at this point in the history
  • Loading branch information
kibertoad committed Mar 3, 2021
1 parent c1ab23c commit 3c70dca
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
12 changes: 11 additions & 1 deletion CHANGELOG.md
@@ -1,5 +1,7 @@
# Master (Unreleased)

# 0.95.0 - 03 March, 2021

### New features:

- Add transaction isolation support #4185
Expand All @@ -15,11 +17,14 @@
- Events: introduce queryContext on query-error #4301
- CLI: Use UTC timestamp for new migrations #4245
- MSSQL: Replace MSSQL dialect with Tedious.js implementation #2857 #4281
MSSQL: Use "nvarchar(max)" for ".json()" #4278
- MSSQL: Use "nvarchar(max)" for ".json()" #4278
- MSSQL: Schema builder - add predictable constraint names for default values #4319
- MSSQL: Schema builder - attempt to drop default constraints when changing default value on columns #4321
- SQLite: Fallback to json for sqlite3 when using jsonb #4186
- SQLite: Return complete list of DDL commands for creating foreign keys #4194
- SQLite: Support dropping composite foreign keys #4202
- SQLite: Recreate indices when altering a table #4277
- SQLite: Add support for altering columns #4322

### Bug fixes:

Expand All @@ -29,7 +34,10 @@
- CLI: Fix an issue with npm@7 and ESM when `type` was set to `'module'` in `package.json` #4295
- PostgreSQL: Add check to only create native enum once #3658
- SQLite: Fix foreign key "on delete" when altering a table #4225
- SQLite: Made the constraint detection case-insensitive #4330
- MySQL: Keep auto increment after rename #4266
- MSSQL: don't raise query-error twice #4314
- MSSQL: Alter column must have its own query #4317

### Typings:

Expand All @@ -38,6 +46,8 @@
- Fix type definition of Transaction #4172
- Add typedefinitions for havingNotIn #4265
- Include 'name' property in MigratorConfig #4300
- Improve join and conflict types #4318
- Fix ArrayIfAlready type #4331

### Test / internal changes:

Expand Down
2 changes: 2 additions & 0 deletions UPGRADING.md
Expand Up @@ -12,6 +12,8 @@ const config: Knex.Config = {} // this is a type from the Knex namespace
const knexInstance: Knex = knex(config)
```

* TypeScript version 4.1+ is needed when using knex types now.

* MSSQL driver was completely reworked in order to address the multitude of connection pool, error handling and performance issues. Since the new implementation uses `tedious` library directly instead of `mssql`, please replace `mssql` with `tedious` in your dependencies if you are using a MSSQL database.

* Transaction rollback does not trigger a promise rejection for transactions with specified handler. If you want to preserve previous behavior, pass `config` object with `doNotRejectOnRollback: false`:
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "knex",
"version": "0.95.0-next3",
"version": "0.95.0",
"description": "A batteries-included SQL query & schema builder for Postgres, MySQL and SQLite3 and the Browser",
"main": "knex.js",
"types": "types/index.d.ts",
Expand Down

0 comments on commit 3c70dca

Please sign in to comment.