@thzero/library_client_vue3_store_pinia 0.18.35 → 0.18.39

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/openSource.js CHANGED
@@ -37,10 +37,10 @@ export default () => {
37
37
  },
38
38
  {
39
39
  category: 'client',
40
- name: 'pinia-plugin-persistedstate-2',
41
- url: 'https://github.com/iendeavor/pinia-plugin-persistedstate-2',
40
+ name: 'pinia-plugin-persistedstate',
41
+ url: 'https://github.com/prazdevs/pinia-plugin-persistedstate',
42
42
  licenseName: 'MIT',
43
- licenseUrl: 'https://github.com/iendeavor/pinia-plugin-persistedstate-2/blob/main/LICENSE'
43
+ licenseUrl: 'https://github.com/prazdevs/pinia-plugin-persistedstate/blob/main/LICENSE'
44
44
  },
45
45
  {
46
46
  category: 'client',
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@thzero/library_client_vue3_store_pinia",
3
- "version": "0.18.35",
3
+ "version": "0.18.39",
4
4
  "version_major": 0,
5
5
  "version_minor": 18,
6
- "version_patch": 35,
7
- "version_date": "06/04/2026",
6
+ "version_patch": 39,
7
+ "version_date": "08/27/2026",
8
8
  "description": "An opinionated library for vue3 with pinia store for the library_client_vue3 using the https://prazdevs.github.io/pinia-plugin-persistedstate library.",
9
9
  "author": "thZero",
10
10
  "author_url": "https://www.thzero.com",
@@ -22,10 +22,9 @@
22
22
  "test": "echo \"Error: no test specified\" && exit 1"
23
23
  },
24
24
  "dependencies": {
25
- "pinia": "^3.0.4",
25
+ "pinia": "^4.0.3",
26
26
  "pinia-plugin-persistedstate": "^4.7.1",
27
- "pinia-plugin-persistedstate-2": "^2.0.32",
28
- "vue": "^3.5.32"
27
+ "vue": "^3.5.42"
29
28
  },
30
29
  "peerDependencies": {
31
30
  "@thzero/library_client": "^0.18",
package/store/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { createPinia, defineStore } from 'pinia';
2
2
  import piniaPluginPersistedState from 'pinia-plugin-persistedstate';
3
- import { createPersistedStatePlugin } from 'pinia-plugin-persistedstate-2';
4
3
 
5
4
  import LibraryClientConstants from '@thzero/library_client/constants';
6
5
 
@@ -142,11 +141,12 @@ class BaseStore {
142
141
  this.pinia.use(piniaPluginPersistedState);
143
142
  return;
144
143
  }
145
- if (this._initPluginPersistType() === BaseStore.PersistanceTypePersist2) {
146
- const installPersistedStatePlugin = createPersistedStatePlugin();
147
- this.pinia.use((context) => installPersistedStatePlugin(context));
148
- return;
149
- }
144
+ // TODO: Not currently supports Pinina 4
145
+ // if (this._initPluginPersistType() === BaseStore.PersistanceTypePersist2) {
146
+ // const installPersistedStatePlugin = createPersistedStatePlugin();
147
+ // this.pinia.use((context) => installPersistedStatePlugin(context));
148
+ // return;
149
+ // }
150
150
  if (this._initPluginPersistType() === BaseStore.PersistanceTypeOverride) {
151
151
  const override = this._initPluginPersistOverride();
152
152
  if (override) {
@@ -185,16 +185,17 @@ class BaseStore {
185
185
  storeConfig.persist = persistConfig;
186
186
  return;
187
187
  }
188
- if (type === BaseStore.PersistanceTypePersist2) {
189
- if (options && !String.isNullOrEmpty(options.keyOverride))
190
- persistConfig.key = options.keyOverride;
191
- if (options && !String.isNullOrEmpty(options.keySuffix))
192
- persistConfig.key += options.keySuffix;
193
- if (options && options.additionalPaths)
194
- persistConfig.includePaths = [ ...persistConfig.includePaths, ...options.additionalPaths ];
195
- storeConfig.persistedState = persistConfig;
196
- return;
197
- }
188
+ // TODO: Not currently supports Pinina 4
189
+ // if (type === BaseStore.PersistanceTypePersist2) {
190
+ // if (options && !String.isNullOrEmpty(options.keyOverride))
191
+ // persistConfig.key = options.keyOverride;
192
+ // if (options && !String.isNullOrEmpty(options.keySuffix))
193
+ // persistConfig.key += options.keySuffix;
194
+ // if (options && options.additionalPaths)
195
+ // persistConfig.includePaths = [ ...persistConfig.includePaths, ...options.additionalPaths ];
196
+ // storeConfig.persistedState = persistConfig;
197
+ // return;
198
+ // }
198
199
  if (type === BaseStore.PersistanceTypeOverride) {
199
200
  if (override) {
200
201
  override(storeConfig, persistConfig);