@tb-dev/vue 3.4.4 → 3.5.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.
@@ -3,6 +3,7 @@ export interface LocalRefOptions {
3
3
  deep?: boolean;
4
4
  initOnMounted?: boolean;
5
5
  listenToStorageChanges?: boolean;
6
+ mergeDefaults?: boolean;
6
7
  onError?: (err: unknown) => void;
7
8
  writeDefaults?: boolean;
8
9
  }
package/dist/index.js CHANGED
@@ -162,6 +162,7 @@ function localRef(key, initial, options) {
162
162
  deep: options?.deep ?? true,
163
163
  initOnMounted: options?.initOnMounted ?? true,
164
164
  listenToStorageChanges: options?.listenToStorageChanges ?? true,
165
+ mergeDefaults: options?.mergeDefaults ?? true,
165
166
  onError: options?.onError ?? handleError,
166
167
  writeDefaults: options?.writeDefaults ?? true,
167
168
  serializer: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tb-dev/vue",
3
- "version": "3.4.4",
3
+ "version": "3.5.0",
4
4
  "description": "Vue utilities",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -24,14 +24,14 @@
24
24
  "composables"
25
25
  ],
26
26
  "dependencies": {
27
- "@tb-dev/utils": "^7.2.0",
27
+ "@tb-dev/utils": "^7.3.0",
28
28
  "@vueuse/core": "^14.2.0",
29
29
  "es-toolkit": "^1.44.0",
30
30
  "vue": "^3.5.27"
31
31
  },
32
32
  "devDependencies": {
33
- "@tb-dev/eslint-config": "^8.2.5",
34
- "@types/node": "^25.1.0",
33
+ "@tb-dev/eslint-config": "^8.2.6",
34
+ "@types/node": "^25.2.2",
35
35
  "eslint": "^9.39.2",
36
36
  "tslib": "^2.8.1",
37
37
  "typedoc": "^0.28.16",