@stonecrop/nuxt 0.41.1 → 0.43.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/README.md CHANGED
@@ -125,7 +125,7 @@ export default defineNuxtPlugin(() => {
125
125
  })
126
126
  ```
127
127
 
128
- This wires record loading to your GraphQL (or any other) backend. It is the seam Desktop reads through as well. There is no fallback: without a registered client, `getRecord` and `getRecords` throw naming `setClient`, and Desktop skips the read and renders empty.
128
+ This wires record loading to your GraphQL (or any other) backend. It is the seam Desktop reads through as well. There is no fallback: without a registered client, `getRecord` and `getRecords` throw naming `setClient`, and Desktop skips the read, rendering empty lists and leaving a record on its loading state.
129
129
 
130
130
  ### Use the Stonecrop Composable
131
131
 
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stonecrop/nuxt",
3
3
  "configKey": "stonecrop",
4
- "version": "0.41.1",
4
+ "version": "0.43.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.3",
7
7
  "unbuild": "unknown"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stonecrop/nuxt",
3
- "version": "0.41.1",
3
+ "version": "0.43.0",
4
4
  "description": "Nuxt module for Stonecrop",
5
5
  "keywords": [
6
6
  "nuxt",
@@ -60,18 +60,18 @@
60
60
  "pathe": "^2.0.3",
61
61
  "pinia": "^3.0.4",
62
62
  "prompts": "^2.4.2",
63
- "@stonecrop/casl-middleware": "0.41.1",
64
- "@stonecrop/atable": "0.41.1",
65
- "@stonecrop/code-editor": "0.41.1",
66
- "@stonecrop/aform": "0.41.1",
67
- "@stonecrop/desktop": "0.41.1",
68
- "@stonecrop/graphql-client": "0.41.1",
69
- "@stonecrop/graphql-middleware": "0.41.1",
70
- "@stonecrop/nuxt-grafserv": "0.41.1",
71
- "@stonecrop/schema": "0.41.1",
72
- "@stonecrop/stonecrop": "0.41.1",
73
- "@stonecrop/themes": "0.41.1",
74
- "@stonecrop/node-editor": "0.41.1"
63
+ "@stonecrop/aform": "0.43.0",
64
+ "@stonecrop/atable": "0.43.0",
65
+ "@stonecrop/casl-middleware": "0.43.0",
66
+ "@stonecrop/graphql-client": "0.43.0",
67
+ "@stonecrop/graphql-middleware": "0.43.0",
68
+ "@stonecrop/node-editor": "0.43.0",
69
+ "@stonecrop/schema": "0.43.0",
70
+ "@stonecrop/code-editor": "0.43.0",
71
+ "@stonecrop/nuxt-grafserv": "0.43.0",
72
+ "@stonecrop/stonecrop": "0.43.0",
73
+ "@stonecrop/themes": "0.43.0",
74
+ "@stonecrop/desktop": "0.43.0"
75
75
  },
76
76
  "devDependencies": {
77
77
  "@eslint/js": "^10.0.1",
@@ -81,11 +81,11 @@
81
81
  "@nuxt/eslint-config": "^1.16.0",
82
82
  "@nuxt/module-builder": "^1.0.2",
83
83
  "@nuxt/schema": "^4.4.8",
84
- "@nuxt/test-utils": "^4.0.3",
84
+ "@nuxt/test-utils": "^4.3.1",
85
85
  "@types/prompts": "^2.4.9",
86
86
  "@vitejs/plugin-vue": "^6.0.6",
87
- "@vitest/browser-playwright": "^4.1.11",
88
- "@vitest/coverage-istanbul": "^4.1.11",
87
+ "@vitest/browser-playwright": "5.0.1",
88
+ "@vitest/coverage-istanbul": "5.0.1",
89
89
  "@vue/test-utils": "^2.4.10",
90
90
  "baseline-browser-mapping": "latest",
91
91
  "browserslist": "latest",
@@ -103,7 +103,7 @@
103
103
  "typescript": "^6.0.3",
104
104
  "typescript-eslint": "^8.62.1",
105
105
  "vite": "^8.2.2",
106
- "vitest": "^4.1.11",
106
+ "vitest": "5.0.1",
107
107
  "vue": "^3.5.33",
108
108
  "vue-router": "^5.0.6",
109
109
  "vue-tsc": "^3.3.6"
@@ -314,13 +314,9 @@ export const resolvers = {
314
314
  return updated as Record<string, unknown>
315
315
  }
316
316
 
317
+ // A new record carries its key only when a user typed one, a natural key.
317
318
  const declared = patch[lookupField]
318
- const identity =
319
- typeof declared === 'string' && declared !== ''
320
- ? declared
321
- : typeof declared === 'number'
322
- ? String(declared)
323
- : nextId(d)
319
+ const identity = declared === undefined ? nextId(d) : String(declared)
324
320
  const defaults =
325
321
  d === 'project'
326
322
  ? { status: 'Active', description: '' }