@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.
Files changed (2) hide show
  1. package/README.md +7 -7
  2. package/package.json +20 -3
package/README.md CHANGED
@@ -1,15 +1,15 @@
1
- [![](../website/static/img/logo.svg)](https://rkrupinski.github.io/stan)
1
+ [![](../website/static/img/logo.svg)](https://stan.party)
2
2
 
3
3
  # Stan
4
4
 
5
5
  [![CI](https://github.com/rkrupinski/stan/actions/workflows/ci.yml/badge.svg)](https://github.com/rkrupinski/stan/actions/workflows/ci.yml)
6
- [![Bundle size](https://badgen.net/bundlephobia/minzip/@rkrupinski/stan)](https://bundlephobia.com/package/@rkrupinski/stan)
6
+ ![Bundle size](https://img.shields.io/bundlejs/size/@rkrupinski/stan)
7
7
 
8
8
  Minimal, type-safe state management
9
9
 
10
- [🌐 Website](https://rkrupinski.github.io/stan)   |  
11
- [📘 API docs](https://rkrupinski.github.io/stan/docs/api/state)   |  
12
- [📝 Examples](https://rkrupinski.github.io/stan/docs/getting-started/examples)   |  
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<number, string>(
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 ${answer}!
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.2",
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
- ".": "./dist/index.js",
8
- "./react": "./dist/react.js"
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",