fix(smartstate): Update build scripts and dependency versions; replace isohash with smarthashWeb for state hash generation
This commit is contained in:
@ -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.'
|
||||
}
|
||||
|
@ -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 &&
|
||||
|
@ -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 };
|
||||
|
Reference in New Issue
Block a user