@slimlib/store 1.6.0 → 1.6.2

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 CHANGED
@@ -65,7 +65,7 @@ function Component() {
65
65
  In store
66
66
 
67
67
  ```javascript
68
- import { createStore, useStore } from '@slimlib/store/svelte';
68
+ import { createStore } from '@slimlib/store/svelte';
69
69
 
70
70
  // create store
71
71
  const [state, subscribe] = createStore();
package/dist/index.umd.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("./core")):"function"==typeof define&&define.amd?define(["exports","./core"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).slimlibStore={},e.slimlibStoreCore)}(this,(function(e,t){"use strict";Object.keys(t).forEach((function(n){"default"===n||e.hasOwnProperty(n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})}))}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("./core")):"function"==typeof define&&define.amd?define(["exports","./core"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).slimlibStore={},e.slimlibStoreCore)}(this,(function(e,t){"use strict";Object.keys(t).forEach((function(n){"default"===n||Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})}))}));
2
2
  //# sourceMappingURL=index.umd.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "type": "module",
3
- "version": "1.6.0",
3
+ "version": "1.6.2",
4
4
  "name": "@slimlib/store",
5
5
  "description": "Simple Proxy-based store for SPA",
6
6
  "license": "MIT",
@@ -10,30 +10,44 @@
10
10
  "unpkg": "./dist/index.umd.js",
11
11
  "exports": {
12
12
  ".": {
13
+ "types": "./dist/index.d.ts",
14
+ "import": "./dist/index.mjs",
13
15
  "require": "./dist/index.cjs",
14
16
  "default": "./dist/index.mjs"
15
17
  },
16
18
  "./core": {
19
+ "types": "./dist/core.d.ts",
20
+ "import": "./dist/core.mjs",
17
21
  "require": "./dist/core.cjs",
18
22
  "default": "./dist/core.mjs"
19
23
  },
20
24
  "./react": {
25
+ "types": "./dist/react.d.ts",
26
+ "import": "./dist/react.mjs",
21
27
  "require": "./dist/react.cjs",
22
28
  "default": "./dist/react.mjs"
23
29
  },
24
30
  "./preact": {
31
+ "types": "./dist/preact.d.ts",
32
+ "import": "./dist/preact.mjs",
25
33
  "require": "./dist/preact.cjs",
26
34
  "default": "./dist/preact.mjs"
27
35
  },
28
36
  "./svelte": {
37
+ "types": "./dist/svelte.d.ts",
38
+ "import": "./dist/svelte.mjs",
29
39
  "require": "./dist/svelte.cjs",
30
40
  "default": "./dist/svelte.mjs"
31
41
  },
32
42
  "./angular": {
43
+ "types": "./dist/angular.d.ts",
44
+ "import": "./dist/angular.mjs",
33
45
  "require": "./dist/angular.cjs",
34
46
  "default": "./dist/angular.mjs"
35
47
  },
36
48
  "./rxjs": {
49
+ "types": "./dist/rxjs.d.ts",
50
+ "import": "./dist/rxjs.mjs",
37
51
  "require": "./dist/rxjs.cjs",
38
52
  "default": "./dist/rxjs.mjs"
39
53
  },
@@ -61,20 +75,6 @@
61
75
  "store",
62
76
  "proxy"
63
77
  ],
64
- "devDependencies": {
65
- "@types/react": "^18.0.0",
66
- "preact": ">=10.0.0",
67
- "react": ">=17.0.0",
68
- "react-dom": ">=17.0.0",
69
- "@testing-library/react": "^14.0.0",
70
- "@testing-library/angular": "^14.0.0",
71
- "@types/react-dom": ">=17.0.0",
72
- "jest-environment-jsdom": "^29.4.3",
73
- "@testing-library/svelte": "^3.2.2",
74
- "svelte": "^3.55.1",
75
- "svelte-jester": "^2.3.2",
76
- "tslib": "^2.5.0"
77
- },
78
78
  "peerDependencies": {
79
79
  "preact": ">=10.0.0",
80
80
  "react": ">=17.0.0",
@@ -94,10 +94,5 @@
94
94
  "rxjs": {
95
95
  "optional": true
96
96
  }
97
- },
98
- "scripts": {
99
- "build": "pkgbld-internal --umd=index,preact,react,svelte,angular,rxjs",
100
- "test": "jest --collectCoverage",
101
- "lint": "eslint ./src"
102
97
  }
103
98
  }