as-model 0.1.6 → 0.1.7

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/esm/index.js CHANGED
@@ -38,6 +38,7 @@ function config() {
38
38
  var _config = config(), createStore = _config.createStore, createKey = _config.createKey, createStores = _config.createStores, model = _config.model;
39
39
  import { createSignal, createSelector } from "./store";
40
40
  import { validations } from "./validation";
41
+ import { shallowEqual } from "./tools";
41
42
  export {
42
43
  config,
43
44
  createKey,
@@ -46,5 +47,6 @@ export {
46
47
  createStore,
47
48
  createStores,
48
49
  model,
50
+ shallowEqual,
49
51
  validations
50
52
  };
package/index.d.ts CHANGED
@@ -290,3 +290,6 @@ export declare const validations: {
290
290
  data: unknown
291
291
  ) => data is ModelUsage<S, T, R>;
292
292
  };
293
+
294
+ /** tools * */
295
+ export declare function shallowEqual(prev: unknown, current: unknown): boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "as-model",
4
- "version": "0.1.6",
4
+ "version": "0.1.7",
5
5
  "description": "This is a model state management tool",
6
6
  "license": "MIT",
7
7
  "author": "Jimmy.Harding",