knex 3.2.9 → 3.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,4 +1,21 @@
1
- # Master (Unreleased)
1
+ # [Master (Unreleased)](https://github.com/knex/knex/compare/3.2.10...master)
2
+
3
+ # 3.2.10 - 2 May, 2026
4
+
5
+ ### Bug fixes
6
+
7
+ - fix: bump lodash to ^4.18.1, close #6433 [#6446](https://github.com/knex/knex/pull/6446)
8
+ - Fix: Properly Escape Aliases in Analytic Functions [#6392](https://github.com/knex/knex/pull/6392)
9
+
10
+ ### Misc
11
+
12
+ - chore: auto-update the docs' knex version on publish [#6447](https://github.com/knex/knex/pull/6447)
13
+ - chore: skip re-running tests on automated release commit [#6443](https://github.com/knex/knex/pull/6443)
14
+ - chore: sync docker images we use to ghcr [#6445](https://github.com/knex/knex/pull/6445)
15
+ - chore: fixes for release-drafter workflow [#6442](https://github.com/knex/knex/pull/6442)
16
+ - chore: new publish/release workflow [#6441](https://github.com/knex/knex/pull/6441)
17
+ - docs: Update changelog for version 3.2.9 [#6440](https://github.com/knex/knex/pull/6440)
18
+ - docs: sync website changelog from 3.0.0 to 3.2.8 [#6426](https://github.com/knex/knex/pull/6426)
2
19
 
3
20
  # 3.2.9 - 3 April, 2026
4
21
 
@@ -7,7 +24,7 @@
7
24
  - fix: support DELETE... LIMIT in dialects that support it (mysql), but continue to disallow ones that don't [#6429](https://github.com/knex/knex/issues/6429)
8
25
  - fix(postgres): escape double quotes in searchPath to prevent SQL injection [#6411](https://github.com/knex/knex/issues/6411)
9
26
  - fix(sqlite): append RETURNING statement when insert empty row [#5471](https://github.com/knex/knex/issues/5471)
10
- - fix: add type support for Array<Buffer> [#6428](https://github.com/knex/knex/issues/6428)
27
+ - fix: add type support for `Array<Buffer>` [#6428](https://github.com/knex/knex/issues/6428)
11
28
 
12
29
  # 3.2.8 - 30 March, 2026
13
30
 
@@ -1243,7 +1243,7 @@ class QueryCompiler {
1243
1243
  sql += ')';
1244
1244
 
1245
1245
  if (stmt.alias) {
1246
- sql += ' as ' + stmt.alias;
1246
+ sql += ' as ' + self.formatter.wrap(stmt.alias);
1247
1247
  }
1248
1248
 
1249
1249
  return sql;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "knex",
3
- "version": "3.2.9",
3
+ "version": "3.2.10",
4
4
  "description": "A batteries-included SQL query & schema builder for PostgresSQL, MySQL, CockroachDB, MSSQL and SQLite3",
5
5
  "main": "knex.js",
6
6
  "types": "types/index.d.ts",
@@ -68,7 +68,7 @@
68
68
  "get-package-type": "^0.1.0",
69
69
  "getopts": "2.3.0",
70
70
  "interpret": "^2.2.0",
71
- "lodash": "^4.17.21",
71
+ "lodash": "^4.18.1",
72
72
  "pg-connection-string": "2.6.2",
73
73
  "rechoir": "^0.8.0",
74
74
  "resolve-from": "^5.0.0",