@wizzard-packages/core 0.1.1 → 0.3.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.
Files changed (2) hide show
  1. package/README.md +10 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -42,6 +42,16 @@ store.dispatch({
42
42
  });
43
43
  ```
44
44
 
45
+ ## Utilities
46
+
47
+ ```ts
48
+ import { getByPath, setByPath } from '@wizzard-packages/core';
49
+
50
+ const data = { user: { name: 'Ada' } };
51
+ const name = getByPath(data, 'user.name');
52
+ const next = setByPath(data, 'user.name', 'Grace');
53
+ ```
54
+
45
55
  ## Related packages
46
56
 
47
57
  - @wizzard-packages/react - React provider + hooks on top of core
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wizzard-packages/core",
3
- "version": "0.1.1",
3
+ "version": "0.3.0",
4
4
  "description": "Core logic for Wizzard Stepper - framework agnostic store and utilities.",
5
5
  "repository": {
6
6
  "type": "git",