@devmoods/postgres-admin 0.10.0 → 0.11.0

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/dist/index.js CHANGED
@@ -427,13 +427,13 @@ function createRouter({
427
427
  for (const updateAtColumn of updatedAtColumns) {
428
428
  data[updateAtColumn] = sql.raw("NOW()");
429
429
  }
430
- return await postgres.transaction(async (tx) => {
430
+ return await postgres.transaction(async () => {
431
431
  await postgres.get(sql`
432
432
  SELECT * FROM ${sql.identifier(table)}
433
433
  WHERE ${sql.identifier(primaryKey)} = ${req.params.pk}
434
434
  FOR UPDATE
435
435
  `);
436
- return tx.get(sql`
436
+ return postgres.get(sql`
437
437
  UPDATE ${sql.identifier(table)}
438
438
  SET ${sql.spreadUpdate(data)}
439
439
  WHERE ${sql.identifier(primaryKey)} = ${pk}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devmoods/postgres-admin",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -24,14 +24,14 @@
24
24
  "devDependencies": {
25
25
  "@bitiforms/adapter-devmoods-ui": "^0.15.0",
26
26
  "@bitiforms/react": "^0.15.0",
27
- "@devmoods/express-extras": "^0.52.3",
28
- "@devmoods/fetch": "^4.0.1",
29
- "@devmoods/ui": "^2.8.1",
30
- "@tanstack/react-query": "^5.66.9",
27
+ "@devmoods/express-extras": "^0.57.1",
28
+ "@devmoods/fetch": "^4.1.0",
29
+ "@devmoods/ui": "^2.9.1",
30
+ "@tanstack/react-query": "^5.67.3",
31
31
  "@types/react": "^19.0.10",
32
32
  "@types/react-dom": "^19.0.4",
33
33
  "@vitejs/plugin-react": "^4.3.4",
34
- "@vitest/coverage-v8": "3.0.6",
34
+ "@vitest/coverage-v8": "3.0.8",
35
35
  "babel-plugin-react-compiler": "19.0.0-beta-e552027-20250112",
36
36
  "dotenv": "^16.4.7",
37
37
  "express": "^4.21.2",
@@ -39,12 +39,12 @@
39
39
  "react-dom": "^19.0.0",
40
40
  "react-fast-compare": "^3.2.2",
41
41
  "react-icons": "^5.5.0",
42
- "react-router": "^7.2.0",
43
- "sass": "^1.85.0",
44
- "tsup": "^8.3.6",
45
- "vite": "^6.1.1",
46
- "vitest": "^3.0.6",
42
+ "react-router": "^7.3.0",
43
+ "sass": "^1.85.1",
44
+ "tsup": "^8.4.0",
45
+ "vite": "^6.2.1",
46
+ "vitest": "^3.0.8",
47
47
  "zustand": "^5.0.3"
48
48
  },
49
- "gitHead": "3f6541da7ee91c9840050e3b73eba220bc2beab9"
49
+ "gitHead": "d9aeb9c5a14fa806a272582b4e3e67ac31b22dad"
50
50
  }