fix(smartstate): Update build scripts and dependency versions; replace isohash with smarthashWeb for state hash generation

This commit is contained in:
Juergen Kunz
2025-06-19 23:57:56 +00:00
parent a0189921a5
commit dd18ef94bd
6 changed files with 4914 additions and 1583 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/smartstate',
version: '2.0.19',
version: '2.0.20',
description: 'A package for handling and managing state in applications.'
}

View File

@ -61,7 +61,7 @@ export class StatePart<TStatePartName, TStatePayload> {
*/
public notifyChange() {
const createStateHash = (stateArg: any) => {
return plugins.isohash.sha256FromString(plugins.smartjson.stringify(stateArg));
return plugins.smarthashWeb.sha256FromString(plugins.smartjson.stringify(stateArg));
};
if (
this.stateStore &&

View File

@ -1,7 +1,7 @@
import * as isohash from '@push.rocks/isohash';
import * as smarthashWeb from '@push.rocks/smarthash/web';
import * as smartjson from '@push.rocks/smartjson';
import * as smartpromise from '@push.rocks/smartpromise';
import * as smartrx from '@push.rocks/smartrx';
import * as webstore from '@push.rocks/webstore';
export { isohash, smartjson, smartpromise, smartrx, webstore };
export { smarthashWeb, smartjson, smartpromise, smartrx, webstore };