@rkrupinski/stan 1.3.2 → 1.3.3-rc2
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/README.md +7 -7
- package/package.json +20 -3
package/README.md
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
[](https://
|
|
1
|
+
[](https://stan.party)
|
|
2
2
|
|
|
3
3
|
# Stan
|
|
4
4
|
|
|
5
5
|
[](https://github.com/rkrupinski/stan/actions/workflows/ci.yml)
|
|
6
|
-
|
|
6
|
+

|
|
7
7
|
|
|
8
8
|
Minimal, type-safe state management
|
|
9
9
|
|
|
10
|
-
[🌐 Website](https://
|
|
11
|
-
[📘 API docs](https://
|
|
12
|
-
[📝 Examples](https://
|
|
10
|
+
[🌐 Website](https://stan.party) |
|
|
11
|
+
[📘 API docs](https://stan.party/docs/api/state) |
|
|
12
|
+
[📝 Examples](https://stan.party/docs/getting-started/examples) |
|
|
13
13
|
[📰 Blog Post](https://rkrupinski.com/post/introducing-stan)
|
|
14
14
|
|
|
15
15
|
A sneak peek:
|
|
@@ -18,7 +18,7 @@ A sneak peek:
|
|
|
18
18
|
import { selectorFamily } from '@rkrupinski/stan';
|
|
19
19
|
import { useStanValue } from '@rkrupinski/stan/react';
|
|
20
20
|
|
|
21
|
-
const deepThought = selectorFamily<
|
|
21
|
+
const deepThought = selectorFamily<string, string>(
|
|
22
22
|
question => () => thinkDeep(question),
|
|
23
23
|
);
|
|
24
24
|
|
|
@@ -27,7 +27,7 @@ const MyApp: FC<{ question: string }> = ({ question }) => {
|
|
|
27
27
|
|
|
28
28
|
return (
|
|
29
29
|
<p>
|
|
30
|
-
The Answer to {question} is
|
|
30
|
+
The Answer to "{question}" is "{answer}"!
|
|
31
31
|
</p>
|
|
32
32
|
);
|
|
33
33
|
};
|
package/package.json
CHANGED
|
@@ -1,11 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rkrupinski/stan",
|
|
3
3
|
"description": "Minimal, type-safe state management",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.3-rc2",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
6
10
|
"exports": {
|
|
7
|
-
".":
|
|
8
|
-
|
|
11
|
+
".": {
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"types": "./dist/index.d.ts"
|
|
14
|
+
},
|
|
15
|
+
"./react": {
|
|
16
|
+
"import": "./dist/react.js",
|
|
17
|
+
"types": "./dist/react.d.ts"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"typesVersions": {
|
|
21
|
+
"*": {
|
|
22
|
+
"*": [
|
|
23
|
+
"dist/*"
|
|
24
|
+
]
|
|
25
|
+
}
|
|
9
26
|
},
|
|
10
27
|
"scripts": {
|
|
11
28
|
"typecheck": "tsc",
|