tinybase 3.1.4 → 3.1.6
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/package.json +46 -22
- package/readme.md +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tinybase",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.6",
|
|
4
4
|
"author": "jamesgpearce",
|
|
5
5
|
"repository": "github:tinyplex/tinybase",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,8 +22,6 @@
|
|
|
22
22
|
"tinybase": "./bin/cli.js"
|
|
23
23
|
},
|
|
24
24
|
"exports": {
|
|
25
|
-
".": "./lib/tinybase.js",
|
|
26
|
-
"./with-schemas": "./lib/tinybase.js",
|
|
27
25
|
"./package.json": "./package.json",
|
|
28
26
|
"./cjs": "./lib/cjs/tinybase.cjs",
|
|
29
27
|
"./cjs/with-schemas": "./lib/cjs/tinybase.cjs",
|
|
@@ -37,10 +35,6 @@
|
|
|
37
35
|
"./es6/with-schemas": "./lib/es6/tinybase.js",
|
|
38
36
|
"./es6/*/with-schemas": "./lib/es6/*.js",
|
|
39
37
|
"./es6/*": "./lib/es6/*.js",
|
|
40
|
-
"./debug": "./lib/debug/tinybase.js",
|
|
41
|
-
"./debug/with-schemas": "./lib/debug/tinybase.js",
|
|
42
|
-
"./debug/*/with-schemas": "./lib/debug/*.js",
|
|
43
|
-
"./debug/*": "./lib/debug/*.js",
|
|
44
38
|
"./umd": "./lib/umd/tinybase.js",
|
|
45
39
|
"./umd/with-schemas": "./lib/umd/tinybase.js",
|
|
46
40
|
"./umd/*/with-schemas": "./lib/umd/*.js",
|
|
@@ -53,8 +47,38 @@
|
|
|
53
47
|
"./lib/with-schemas": "./lib/tinybase.js",
|
|
54
48
|
"./lib/*/with-schemas": "./lib/*.js",
|
|
55
49
|
"./lib/*": "./lib/*.js",
|
|
56
|
-
"
|
|
57
|
-
|
|
50
|
+
"./debug": {
|
|
51
|
+
"types": "./lib/types/tinybase.d.ts",
|
|
52
|
+
"default": "./lib/debug/tinybase.js"
|
|
53
|
+
},
|
|
54
|
+
"./debug/with-schemas": {
|
|
55
|
+
"types": "./lib/types/with-schemas/tinybase.d.ts",
|
|
56
|
+
"default": "./lib/debug/tinybase.js"
|
|
57
|
+
},
|
|
58
|
+
"./debug/*/with-schemas": {
|
|
59
|
+
"types": "./lib/types/with-schemas/*.d.ts",
|
|
60
|
+
"default": "./lib/debug/*.js"
|
|
61
|
+
},
|
|
62
|
+
"./debug/*": {
|
|
63
|
+
"types": "./lib/types/*.d.ts",
|
|
64
|
+
"default": "./lib/debug/*.js"
|
|
65
|
+
},
|
|
66
|
+
".": {
|
|
67
|
+
"types": "./lib/types/tinybase.d.ts",
|
|
68
|
+
"default": "./lib/tinybase.js"
|
|
69
|
+
},
|
|
70
|
+
"./with-schemas": {
|
|
71
|
+
"types": "./lib/types/with-schemas/tinybase.d.ts",
|
|
72
|
+
"default": "./lib/tinybase.js"
|
|
73
|
+
},
|
|
74
|
+
"./*/with-schemas": {
|
|
75
|
+
"types": "./lib/types/with-schemas/*.d.ts",
|
|
76
|
+
"default": "./lib/*.js"
|
|
77
|
+
},
|
|
78
|
+
"./*": {
|
|
79
|
+
"types": "./lib/types/*.d.ts",
|
|
80
|
+
"default": "./lib/*.js"
|
|
81
|
+
}
|
|
58
82
|
},
|
|
59
83
|
"typesVersions": {
|
|
60
84
|
"*": {
|
|
@@ -187,26 +211,26 @@
|
|
|
187
211
|
},
|
|
188
212
|
"devDependencies": {
|
|
189
213
|
"@babel/cli": "^7.21.5",
|
|
190
|
-
"@babel/core": "^7.
|
|
191
|
-
"@babel/preset-env": "^7.
|
|
192
|
-
"@babel/preset-react": "^7.
|
|
214
|
+
"@babel/core": "^7.22.1",
|
|
215
|
+
"@babel/preset-env": "^7.22.4",
|
|
216
|
+
"@babel/preset-react": "^7.22.3",
|
|
193
217
|
"@babel/preset-typescript": "^7.21.5",
|
|
194
218
|
"@rollup/plugin-replace": "^5.0.2",
|
|
195
219
|
"@rollup/plugin-terser": "^0.4.3",
|
|
196
220
|
"@types/asciichart": "^1.5.6",
|
|
197
221
|
"@types/expect-puppeteer": "^5.0.3",
|
|
198
222
|
"@types/http-server": "^0.12.1",
|
|
199
|
-
"@types/jest": "^29.5.
|
|
223
|
+
"@types/jest": "^29.5.2",
|
|
200
224
|
"@types/jest-environment-puppeteer": "^5.0.3",
|
|
201
225
|
"@types/less": "^3.0.3",
|
|
202
|
-
"@types/node": "^20.
|
|
226
|
+
"@types/node": "^20.2.5",
|
|
203
227
|
"@types/puppeteer": "^5.4.7",
|
|
204
|
-
"@types/react": "^18.2.
|
|
228
|
+
"@types/react": "^18.2.7",
|
|
205
229
|
"@types/react-dom": "^18.2.4",
|
|
206
230
|
"@types/react-test-renderer": "^18.0.0",
|
|
207
231
|
"@types/tmp": "^0.2.3",
|
|
208
|
-
"@typescript-eslint/eslint-plugin": "^5.59.
|
|
209
|
-
"@typescript-eslint/parser": "^5.59.
|
|
232
|
+
"@typescript-eslint/eslint-plugin": "^5.59.8",
|
|
233
|
+
"@typescript-eslint/parser": "^5.59.8",
|
|
210
234
|
"asciichart": "^1.5.25",
|
|
211
235
|
"babel-eslint": "^10.1.0",
|
|
212
236
|
"babel-jest": "^29.5.0",
|
|
@@ -215,10 +239,10 @@
|
|
|
215
239
|
"country-flag-emoji-json": "^2.0.0",
|
|
216
240
|
"cspell": "^6.31.1",
|
|
217
241
|
"esbuild": "^0.17.19",
|
|
218
|
-
"eslint": "^8.
|
|
242
|
+
"eslint": "^8.41.0",
|
|
219
243
|
"eslint-config-prettier": "^8.8.0",
|
|
220
244
|
"eslint-plugin-jest": "^27.2.1",
|
|
221
|
-
"eslint-plugin-jsdoc": "^
|
|
245
|
+
"eslint-plugin-jsdoc": "^46.1.0",
|
|
222
246
|
"eslint-plugin-react": "^7.32.2",
|
|
223
247
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
224
248
|
"gulp": "^4.0.2",
|
|
@@ -227,14 +251,14 @@
|
|
|
227
251
|
"jest": "^29.5.0",
|
|
228
252
|
"jest-environment-jsdom": "^29.5.0",
|
|
229
253
|
"jest-fetch-mock": "^3.0.3",
|
|
230
|
-
"jest-puppeteer": "^
|
|
254
|
+
"jest-puppeteer": "^9.0.0",
|
|
231
255
|
"less": "^4.1.3",
|
|
232
256
|
"prettier": "^2.8.8",
|
|
233
|
-
"puppeteer": "^20.
|
|
257
|
+
"puppeteer": "^20.5.0",
|
|
234
258
|
"react": "^18.2.0",
|
|
235
259
|
"react-dom": "^18.2.0",
|
|
236
260
|
"react-test-renderer": "^18.2.0",
|
|
237
|
-
"rollup": "^3.
|
|
261
|
+
"rollup": "^3.23.0",
|
|
238
262
|
"rollup-plugin-esbuild": "^5.0.0",
|
|
239
263
|
"rollup-plugin-gzip": "^3.1.0",
|
|
240
264
|
"rollup-plugin-preserve-shebang": "^1.0.1",
|
package/readme.md
CHANGED
|
@@ -266,4 +266,4 @@ export const createShop: typeof createShopDecl = () => {
|
|
|
266
266
|
};
|
|
267
267
|
```
|
|
268
268
|
|
|
269
|
-
<section><h2 id="did-we-say-tiny">Did we say tiny?</h2><p>If you use the basic <a href="https://tinybase.org/api/store/"><code>store</code></a> module alone, you'll only add a gzipped <em>4.3kB</em> to your app. Incrementally add the other modules as you need more functionality, or get it all for <em>8.8kB</em>.</p><p>The optional <a href="https://tinybase.org/api/ui-react/"><code>ui-react</code></a> module is just another <em>3.4kB</em>, the auxiliary <a href="https://tinybase.org/api/tools/"><code>tools</code></a> module is <em>9.9kB</em>, and everything is super fast. Life's easy when you have zero dependencies!</p><p>Read more about how TinyBase is structured and packaged in the <a href="https://tinybase.org/guides/how-tinybase-is-built/architecture/">Architecture</a> guide.</p></section><div class="table"><table class="fixed"><tbody><tr><th width="30%"> </th><th>.js.gz</th><th>.js</th><th>debug.js</th><th>.d.ts</th></tr><tr><th class="right"><a href="https://tinybase.org/api/store/">store</a></th><td>4.3kB</td><td>10.1kB</td><td>43.8kB</td><td>186.4kB</td></tr><tr><th class="right"><a href="https://tinybase.org/api/metrics/">metrics</a></th><td>1.8kB</td><td>3.6kB</td><td>14.9kB</td><td>29.3kB</td></tr><tr><th class="right"><a href="https://tinybase.org/api/indexes/">indexes</a></th><td>1.9kB</td><td>3.7kB</td><td>16.7kB</td><td>33.9kB</td></tr><tr><th class="right"><a href="https://tinybase.org/api/relationships/">relationships</a></th><td>1.8kB</td><td>3.7kB</td><td>16.8kB</td><td>42.2kB</td></tr><tr><th class="right"><a href="https://tinybase.org/api/queries/">queries</a></th><td>2.7kB</td><td>5.5kB</td><td>25.0kB</td><td>113.0kB</td></tr><tr><th class="right"><a href="https://tinybase.org/api/checkpoints/">checkpoints</a></th><td>1.5kB</td><td>3.1kB</td><td>12.5kB</td><td>33.5kB</td></tr><tr><th class="right"><a href="https://tinybase.org/api/persisters/">persisters</a></th><td>0.8kB</td><td>1.7kB</td><td>5.2kB</td><td>27.3kB</td></tr><tr><th class="right"><a href="https://tinybase.org/api/common/">common</a></th><td>0.1kB</td><td>0.1kB</td><td>0.1kB</td><td>3.5kB</td></tr><tr><th class="right">tinybase (all)</th><td>8.8kB</td><td>21.5kB</td><td>92.7kB</td><td>0.3kB</td></tr></tbody></table></div><section><h2 id="well-tested-and-documented">Well tested and documented.</h2><p>TinyBase has <em>100.0%</em> test coverage, including the code throughout the documentation - even on this page! The guides, demos, and API examples are designed to make it as easy as possible to get up and running.</p><p>Read more about how TinyBase is tested in the Unit <a href="https://tinybase.org/guides/how-tinybase-is-built/testing/">Testing</a> guide.</p></section><div class="table"><table class="fixed"><tbody><tr><th width="30%"> </th><th>Total</th><th>Tested</th><th>Coverage</th></tr><tr><th class="right">Lines</th><td>1,790</td><td>1,790</td><td>100.0%</td></tr><tr><th class="right">Statements</th><td>1,928</td><td>1,928</td><td>100.0%</td></tr><tr><th class="right">Functions</th><td>766</td><td>766</td><td>100.0%</td></tr><tr><th class="right">Branches</th><td>642</td><td>642</td><td>100.0%</td></tr><tr><th class="right">Tests</th><td colspan="3">2,602</td></tr><tr><th class="right">Assertions</th><td colspan="3">13,096</td></tr></tbody></table></div><hr><p><a class="start" href="https://tinybase.org/guides/the-basics/getting-started/">Get started</a></p><p><a href="https://tinybase.org/demos/">Try the demos</a></p><p><a href="https://tinybase.org/api/store/interfaces/store/store/">Read the docs</a></p><hr><section><h2 id="follow">Follow</h2><ul><li>News and updates on <a href="https://twitter.com/tinybasejs">Twitter</a>, <a href="https://discord.com/invite/mGz3mevwP8">Discord</a>, and <a href="https://facebook.com/tinybasejs">Facebook</a>.</li><li><a href="https://github.com/tinyplex/tinybase/discussions">Discussions</a> and <a href="https://github.com/tinyplex/tinybase/issues">issues</a> on <a href="https://github.com/tinyplex/tinybase">GitHub</a>.</li><li><a href="https://tinybase.org/guides/releases/">Release notes</a> for each version.</li><li>Packages on <a href="https://www.npmjs.com/package/tinybase/v/3.1.
|
|
269
|
+
<section><h2 id="did-we-say-tiny">Did we say tiny?</h2><p>If you use the basic <a href="https://tinybase.org/api/store/"><code>store</code></a> module alone, you'll only add a gzipped <em>4.3kB</em> to your app. Incrementally add the other modules as you need more functionality, or get it all for <em>8.8kB</em>.</p><p>The optional <a href="https://tinybase.org/api/ui-react/"><code>ui-react</code></a> module is just another <em>3.4kB</em>, the auxiliary <a href="https://tinybase.org/api/tools/"><code>tools</code></a> module is <em>9.9kB</em>, and everything is super fast. Life's easy when you have zero dependencies!</p><p>Read more about how TinyBase is structured and packaged in the <a href="https://tinybase.org/guides/how-tinybase-is-built/architecture/">Architecture</a> guide.</p></section><div class="table"><table class="fixed"><tbody><tr><th width="30%"> </th><th>.js.gz</th><th>.js</th><th>debug.js</th><th>.d.ts</th></tr><tr><th class="right"><a href="https://tinybase.org/api/store/">store</a></th><td>4.3kB</td><td>10.1kB</td><td>43.8kB</td><td>186.4kB</td></tr><tr><th class="right"><a href="https://tinybase.org/api/metrics/">metrics</a></th><td>1.8kB</td><td>3.6kB</td><td>14.9kB</td><td>29.3kB</td></tr><tr><th class="right"><a href="https://tinybase.org/api/indexes/">indexes</a></th><td>1.9kB</td><td>3.7kB</td><td>16.7kB</td><td>33.9kB</td></tr><tr><th class="right"><a href="https://tinybase.org/api/relationships/">relationships</a></th><td>1.8kB</td><td>3.7kB</td><td>16.8kB</td><td>42.2kB</td></tr><tr><th class="right"><a href="https://tinybase.org/api/queries/">queries</a></th><td>2.7kB</td><td>5.5kB</td><td>25.0kB</td><td>113.0kB</td></tr><tr><th class="right"><a href="https://tinybase.org/api/checkpoints/">checkpoints</a></th><td>1.5kB</td><td>3.1kB</td><td>12.5kB</td><td>33.5kB</td></tr><tr><th class="right"><a href="https://tinybase.org/api/persisters/">persisters</a></th><td>0.8kB</td><td>1.7kB</td><td>5.2kB</td><td>27.3kB</td></tr><tr><th class="right"><a href="https://tinybase.org/api/common/">common</a></th><td>0.1kB</td><td>0.1kB</td><td>0.1kB</td><td>3.5kB</td></tr><tr><th class="right">tinybase (all)</th><td>8.8kB</td><td>21.5kB</td><td>92.7kB</td><td>0.3kB</td></tr></tbody></table></div><section><h2 id="well-tested-and-documented">Well tested and documented.</h2><p>TinyBase has <em>100.0%</em> test coverage, including the code throughout the documentation - even on this page! The guides, demos, and API examples are designed to make it as easy as possible to get up and running.</p><p>Read more about how TinyBase is tested in the Unit <a href="https://tinybase.org/guides/how-tinybase-is-built/testing/">Testing</a> guide.</p></section><div class="table"><table class="fixed"><tbody><tr><th width="30%"> </th><th>Total</th><th>Tested</th><th>Coverage</th></tr><tr><th class="right">Lines</th><td>1,790</td><td>1,790</td><td>100.0%</td></tr><tr><th class="right">Statements</th><td>1,928</td><td>1,928</td><td>100.0%</td></tr><tr><th class="right">Functions</th><td>766</td><td>766</td><td>100.0%</td></tr><tr><th class="right">Branches</th><td>642</td><td>642</td><td>100.0%</td></tr><tr><th class="right">Tests</th><td colspan="3">2,602</td></tr><tr><th class="right">Assertions</th><td colspan="3">13,096</td></tr></tbody></table></div><hr><p><a class="start" href="https://tinybase.org/guides/the-basics/getting-started/">Get started</a></p><p><a href="https://tinybase.org/demos/">Try the demos</a></p><p><a href="https://tinybase.org/api/store/interfaces/store/store/">Read the docs</a></p><hr><section><h2 id="follow">Follow</h2><ul><li>News and updates on <a href="https://twitter.com/tinybasejs">Twitter</a>, <a href="https://discord.com/invite/mGz3mevwP8">Discord</a>, and <a href="https://facebook.com/tinybasejs">Facebook</a>.</li><li><a href="https://github.com/tinyplex/tinybase/discussions">Discussions</a> and <a href="https://github.com/tinyplex/tinybase/issues">issues</a> on <a href="https://github.com/tinyplex/tinybase">GitHub</a>.</li><li><a href="https://tinybase.org/guides/releases/">Release notes</a> for each version.</li><li>Packages on <a href="https://www.npmjs.com/package/tinybase/v/3.1.6">NPM</a>.</li></ul></section><section><h2 id="about">About</h2><p>Building TinyBase was originally an interesting exercise for <a rel="me" href="https://hachyderm.io/@jamesgpearce">me</a> in API design, minification, and documentation. It could not have been built without these great <a href="https://tinybase.org/guides/how-tinybase-is-built/credits/#giants">projects</a> and <a href="https://tinybase.org/guides/how-tinybase-is-built/credits/#and-friends">friends</a>, and I hope you enjoy using it!</p></section>
|