@ditojs/server 3.2.3 → 3.2.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ditojs/server",
3
- "version": "3.2.3",
3
+ "version": "3.2.5",
4
4
  "type": "module",
5
5
  "description": "Dito.js Server – Dito.js is a declarative and modern web framework, based on Objection.js, Koa.js and Vue.js",
6
6
  "repository": "https://github.com/ditojs/dito/tree/main/packages/server",
@@ -24,7 +24,7 @@
24
24
  "node >= 18"
25
25
  ],
26
26
  "dependencies": {
27
- "@ditojs/admin": "^3.2.3",
27
+ "@ditojs/admin": "^3.2.5",
28
28
  "@ditojs/build": "^3.2.0",
29
29
  "@ditojs/router": "^3.2.0",
30
30
  "@ditojs/utils": "^3.2.0",
@@ -89,5 +89,5 @@
89
89
  "objection": "^3.1.5",
90
90
  "typescript": "^6.0.3"
91
91
  },
92
- "gitHead": "5fdd07d3192698bfab4a3bedc061a08341c67282"
92
+ "gitHead": "f149113bc95317c74b17f4af56ccfebed789c47b"
93
93
  }
@@ -181,6 +181,13 @@ export class Model extends objection.Model {
181
181
  }
182
182
  }
183
183
 
184
+ // @override
185
+ static getConcurrency(knex) {
186
+ // A transaction holds a single connection, so concurrent queries just
187
+ // queue up in pg's client, which is deprecated and removed in pg@9.
188
+ return knex?.isTransaction ? 1 : super.getConcurrency(knex)
189
+ }
190
+
184
191
  // @override
185
192
  $validate(json, options = {}) {
186
193
  if (options.skipValidation) {