Skip to content

Commit 3c29de8

Browse files
committed
v2.1.0
1 parent 8747f01 commit 3c29de8

File tree

610 files changed

+3418
-3173
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

610 files changed

+3418
-3173
lines changed

coverage.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"tests":2134,"assertions":11006,"lines":{"total":1246,"covered":1246,"skipped":0,"pct":100},"statements":{"total":1347,"covered":1347,"skipped":0,"pct":100},"functions":{"total":507,"covered":507,"skipped":0,"pct":100},"branches":{"total":469,"covered":469,"skipped":0,"pct":100},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":"Unknown"}}
1+
{"tests":2134,"assertions":11009,"lines":{"total":1246,"covered":1246,"skipped":0,"pct":100},"statements":{"total":1347,"covered":1347,"skipped":0,"pct":100},"functions":{"total":507,"covered":507,"skipped":0,"pct":100},"branches":{"total":469,"covered":469,"skipped":0,"pct":100},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":"Unknown"}}

docs/api/all.html

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<html><head><link rel="preload" as="font" href="/fonts/lato-light.woff2" type="font/woff2" crossorigin="anonymous"><link rel="preload" as="font" href="/fonts/lato-regular.woff2" type="font/woff2" crossorigin="anonymous"><link rel="preload" as="font" href="/fonts/roboto-thin.woff2" type="font/woff2" crossorigin="anonymous"><link rel="preload" as="font" href="/fonts/roboto-light.woff2" type="font/woff2" crossorigin="anonymous"><link rel="preload" as="font" href="/fonts/roboto-mono-light.woff2" type="font/woff2" crossorigin="anonymous"><link rel="preload" as="font" href="/fonts/roboto-mono-regular.woff2" type="font/woff2" crossorigin="anonymous"><title>createCheckpoints | TinyBase</title><meta property="og:type" content="website"><meta property="og:title" content="createCheckpoints | TinyBase"><meta property="og:description"><meta property="og:url" content="https://beta.tinybase.org/api/checkpoints/functions/creation/createcheckpoints"><meta property="og:image" content="https://beta.tinybase.org/favicon_pad.png"><meta name="twitter:card" content="summary"><meta name="twitter:title" content="createCheckpoints | TinyBase"><meta name="twitter:description"><meta name="twitter:site" content="@tinybasejs"><meta name="twitter:image" content="https://beta.tinybase.org/favicon_pad.png"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" type="image/svg+xml" href="/favicon.svg"><link rel="stylesheet" href="/css/index.css"><script src="/js/app.js"></script><script async="" src="https://www.googletagmanager.com/gtag/js?id=G-D1MGR8VRWJ"></script><script>window.dataLayer=window.dataLayer||[];function g(){dataLayer.push(arguments);}g('js',new Date());g('config','G-D1MGR8VRWJ');</script></head><body><header><a href="/"><img src="/favicon.svg"><span>TinyBase <em title="2.1.0-beta.0">beta</em></span></a><nav><ul><li><a href="/guides">Guides</a></li><li><a href="/demos">Demos</a></li><li><a href="/api">API</a></li><li><a href="https://github.com/tinyplex/tinybase">GitHub</a></li></ul></nav><span id="dark"></span></header><main><nav><ul><li id="root" class="parent open"><span></span><a href="/">TinyBase</a><ul><li id="G" class="parent"><span></span><a href="/guides">Guides</a></li><li id="D2" class="parent"><span></span><a href="/demos">Demos</a></li><li id="api" class="parent open"><span></span><a href="/api">API</a><ul><li id="s" class="parent"><span></span><a href="/api/store"><code>store</code></a></li><li id="m" class="parent"><span></span><a href="/api/metrics"><code>metrics</code></a></li><li id="i" class="parent"><span></span><a href="/api/indexes"><code>indexes</code></a></li><li id="r" class="parent"><span></span><a href="/api/relationships"><code>relationships</code></a></li><li id="q" class="parent"><span></span><a href="/api/queries"><code>queries</code></a></li><li id="c" class="parent open"><span></span><a href="/api/checkpoints"><code>checkpoints</code></a><ul><li id="c/I14" class="parent"><span></span><a href="/api/checkpoints/interfaces">Interfaces</a></li><li id="c/F6" class="parent open"><span></span><a href="/api/checkpoints/functions">Functions</a><ul><li id="cC" class="current"><span></span><a href="/api/checkpoints/functions/creation/createcheckpoints"><code>createCheckpoints</code></a></li></ul></li><li id="c/TA12" class="parent"><span></span><a href="/api/checkpoints/type-aliases">Type Aliases</a></li></ul></li><li id="p" class="parent"><span></span><a href="/api/persisters"><code>persisters</code></a></li><li id="u" class="parent"><span></span><a href="/api/ui-react"><code>ui-react</code></a></li><li id="c3" class="parent"><span></span><a href="/api/common"><code>common</code></a></li></ul></li></ul></li></ul></nav><article><nav><ul><li><a href="/">TinyBase</a></li><li><a href="/api">API</a></li><li><a href="/api/checkpoints"><code>checkpoints</code></a></li><li><a href="/api/checkpoints/functions">Functions</a></li></ul></nav><section class="s1" id="/api/checkpoints/functions/creation/createcheckpoints" data-id="cC"><h1><code>createCheckpoints</code></h1><p>The <code>createCheckpoints</code> function creates a <a href="/api/checkpoints/interfaces/checkpoints/checkpoints"><code>Checkpoints</code></a> object, and is the main entry point into the <a href="/api/checkpoints"><code>checkpoints</code></a> module.</p><pre><code><span class="function"><a href="/api/checkpoints/functions/creation/createcheckpoints">createCheckpoints</a></span><span class="punctuation">(</span>store<span class="operator">:</span> <span class="type"><a href="/api/store/interfaces/store/store">Store</a></span><span class="punctuation">)</span><span class="operator">:</span> <span class="type"><a href="/api/checkpoints/interfaces/checkpoints/checkpoints">Checkpoints</a></span></code></pre><div class="table"><table><tr><th></th><th>Type</th><th>Description</th></tr><tr><th><code>store</code></th><td><code><span class="type"><a href="/api/store/interfaces/store/store">Store</a></span></code></td><td><p>The <a href="/api/store/interfaces/store/store"><code>Store</code></a> for which to set <a href="/api/checkpoints/interfaces/checkpoints/checkpoints"><code>Checkpoints</code></a>.</p></td></tr><tr><th class="right">returns</th><td><code><span class="type"><a href="/api/checkpoints/interfaces/checkpoints/checkpoints">Checkpoints</a></span></code></td><td><p>A reference to the new Checkpoints object.</p></td></tr></table></div><p>It is trivially simple.</p><p>A given <a href="/api/store/interfaces/store/store"><code>Store</code></a> can only have one <a href="/api/checkpoints/interfaces/checkpoints/checkpoints"><code>Checkpoints</code></a> object associated with it. If you call this function twice on the same <a href="/api/store/interfaces/store/store"><code>Store</code></a>, your second call will return a reference to the <a href="/api/checkpoints/interfaces/checkpoints/checkpoints"><code>Checkpoints</code></a> object created by the first.</p><section class="s2"><h2>Examples</h2><p>This example creates a <a href="/api/checkpoints/interfaces/checkpoints/checkpoints"><code>Checkpoints</code></a> object.</p><pre><code><span class="keyword">const</span> store <span class="operator">=</span> <span class="function"><a href="/api/store/functions/creation/createstore">createStore</a></span><span class="punctuation">(</span><span class="punctuation">)</span><span class="punctuation">;</span>
1+
<html><head><link rel="preload" as="font" href="/fonts/lato-light.woff2" type="font/woff2" crossorigin="anonymous"><link rel="preload" as="font" href="/fonts/lato-regular.woff2" type="font/woff2" crossorigin="anonymous"><link rel="preload" as="font" href="/fonts/roboto-thin.woff2" type="font/woff2" crossorigin="anonymous"><link rel="preload" as="font" href="/fonts/roboto-light.woff2" type="font/woff2" crossorigin="anonymous"><link rel="preload" as="font" href="/fonts/roboto-mono-light.woff2" type="font/woff2" crossorigin="anonymous"><link rel="preload" as="font" href="/fonts/roboto-mono-regular.woff2" type="font/woff2" crossorigin="anonymous"><title>createCheckpoints | TinyBase</title><meta property="og:type" content="website"><meta property="og:title" content="createCheckpoints | TinyBase"><meta property="og:description"><meta property="og:url" content="https://tinybase.org/api/checkpoints/functions/creation/createcheckpoints"><meta property="og:image" content="https://tinybase.org/favicon_pad.png"><meta name="twitter:card" content="summary"><meta name="twitter:title" content="createCheckpoints | TinyBase"><meta name="twitter:description"><meta name="twitter:site" content="@tinybasejs"><meta name="twitter:image" content="https://tinybase.org/favicon_pad.png"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" type="image/svg+xml" href="/favicon.svg"><link rel="stylesheet" href="/css/index.css"><script src="/js/app.js"></script><script async="" src="https://www.googletagmanager.com/gtag/js?id=G-D1MGR8VRWJ"></script><script>window.dataLayer=window.dataLayer||[];function g(){dataLayer.push(arguments);}g('js',new Date());g('config','G-D1MGR8VRWJ');</script></head><body><header><a href="/"><img src="/favicon.svg"><span>TinyBase</span></a><nav><ul><li><a href="/guides">Guides</a></li><li><a href="/demos">Demos</a></li><li><a href="/api">API</a></li><li><a href="https://github.com/tinyplex/tinybase">GitHub</a></li></ul></nav><span id="dark"></span></header><main><nav><ul><li id="root" class="parent open"><span></span><a href="/">TinyBase</a><ul><li id="G" class="parent"><span></span><a href="/guides">Guides</a></li><li id="D2" class="parent"><span></span><a href="/demos">Demos</a></li><li id="api" class="parent open"><span></span><a href="/api">API</a><ul><li id="s" class="parent"><span></span><a href="/api/store"><code>store</code></a></li><li id="m" class="parent"><span></span><a href="/api/metrics"><code>metrics</code></a></li><li id="i" class="parent"><span></span><a href="/api/indexes"><code>indexes</code></a></li><li id="r" class="parent"><span></span><a href="/api/relationships"><code>relationships</code></a></li><li id="q" class="parent"><span></span><a href="/api/queries"><code>queries</code></a></li><li id="c" class="parent open"><span></span><a href="/api/checkpoints"><code>checkpoints</code></a><ul><li id="c/I14" class="parent"><span></span><a href="/api/checkpoints/interfaces">Interfaces</a></li><li id="c/F6" class="parent open"><span></span><a href="/api/checkpoints/functions">Functions</a><ul><li id="cC" class="current"><span></span><a href="/api/checkpoints/functions/creation/createcheckpoints"><code>createCheckpoints</code></a></li></ul></li><li id="c/TA12" class="parent"><span></span><a href="/api/checkpoints/type-aliases">Type Aliases</a></li></ul></li><li id="p" class="parent"><span></span><a href="/api/persisters"><code>persisters</code></a></li><li id="u" class="parent"><span></span><a href="/api/ui-react"><code>ui-react</code></a></li><li id="c3" class="parent"><span></span><a href="/api/common"><code>common</code></a></li></ul></li></ul></li></ul></nav><article><nav><ul><li><a href="/">TinyBase</a></li><li><a href="/api">API</a></li><li><a href="/api/checkpoints"><code>checkpoints</code></a></li><li><a href="/api/checkpoints/functions">Functions</a></li></ul></nav><section class="s1" id="/api/checkpoints/functions/creation/createcheckpoints" data-id="cC"><h1><code>createCheckpoints</code></h1><p>The <code>createCheckpoints</code> function creates a <a href="/api/checkpoints/interfaces/checkpoints/checkpoints"><code>Checkpoints</code></a> object, and is the main entry point into the <a href="/api/checkpoints"><code>checkpoints</code></a> module.</p><pre><code><span class="function"><a href="/api/checkpoints/functions/creation/createcheckpoints">createCheckpoints</a></span><span class="punctuation">(</span>store<span class="operator">:</span> <span class="type"><a href="/api/store/interfaces/store/store">Store</a></span><span class="punctuation">)</span><span class="operator">:</span> <span class="type"><a href="/api/checkpoints/interfaces/checkpoints/checkpoints">Checkpoints</a></span></code></pre><div class="table"><table><tr><th></th><th>Type</th><th>Description</th></tr><tr><th><code>store</code></th><td><code><span class="type"><a href="/api/store/interfaces/store/store">Store</a></span></code></td><td><p>The <a href="/api/store/interfaces/store/store"><code>Store</code></a> for which to set <a href="/api/checkpoints/interfaces/checkpoints/checkpoints"><code>Checkpoints</code></a>.</p></td></tr><tr><th class="right">returns</th><td><code><span class="type"><a href="/api/checkpoints/interfaces/checkpoints/checkpoints">Checkpoints</a></span></code></td><td><p>A reference to the new Checkpoints object.</p></td></tr></table></div><p>It is trivially simple.</p><p>A given <a href="/api/store/interfaces/store/store"><code>Store</code></a> can only have one <a href="/api/checkpoints/interfaces/checkpoints/checkpoints"><code>Checkpoints</code></a> object associated with it. If you call this function twice on the same <a href="/api/store/interfaces/store/store"><code>Store</code></a>, your second call will return a reference to the <a href="/api/checkpoints/interfaces/checkpoints/checkpoints"><code>Checkpoints</code></a> object created by the first.</p><section class="s2"><h2>Examples</h2><p>This example creates a <a href="/api/checkpoints/interfaces/checkpoints/checkpoints"><code>Checkpoints</code></a> object.</p><pre><code><span class="keyword">const</span> store <span class="operator">=</span> <span class="function"><a href="/api/store/functions/creation/createstore">createStore</a></span><span class="punctuation">(</span><span class="punctuation">)</span><span class="punctuation">;</span>
22
<span class="keyword">const</span> checkpoints <span class="operator">=</span> <span class="function"><a href="/api/checkpoints/functions/creation/createcheckpoints">createCheckpoints</a></span><span class="punctuation">(</span>store<span class="punctuation">)</span><span class="punctuation">;</span>
33
console<span class="punctuation">.</span><span class="function">log</span><span class="punctuation">(</span>checkpoints<span class="punctuation">.</span><span class="function"><a href="/api/checkpoints/interfaces/checkpoints/checkpoints/methods/getter/getcheckpointids">getCheckpointIds</a></span><span class="punctuation">(</span><span class="punctuation">)</span><span class="punctuation">)</span><span class="punctuation">;</span>
44
<span class="comment">// -> [[], '0', []]</span>
@@ -7,4 +7,4 @@
77
<span class="keyword">const</span> checkpoints2 <span class="operator">=</span> <span class="function"><a href="/api/checkpoints/functions/creation/createcheckpoints">createCheckpoints</a></span><span class="punctuation">(</span>store<span class="punctuation">)</span><span class="punctuation">;</span>
88
console<span class="punctuation">.</span><span class="function">log</span><span class="punctuation">(</span>checkpoints1 <span class="operator">===</span> checkpoints2<span class="punctuation">)</span><span class="punctuation">;</span>
99
<span class="comment">// -> true</span>
10-
</code></pre></section></section></article><aside></aside></main><footer><nav><a id="tw" href="https://twitter.com/tinybasejs" target="_blank"></a><a id="fb" href="https://facebook.com/tinybasejs" target="_blank"></a></nav><nav><a href="/">TinyBase 2.1.0-beta.0</a> © 2021- All Rights Reserved</nav></footer></body></html>
10+
</code></pre></section></section></article><aside></aside></main><footer><nav><a id="tw" href="https://twitter.com/tinybasejs" target="_blank"></a><a id="fb" href="https://facebook.com/tinybasejs" target="_blank"></a></nav><nav><a href="/">TinyBase 2.1.0</a> © 2021- All Rights Reserved</nav></footer></body></html>

0 commit comments

Comments
 (0)