Skip to content

Commit 2e41171

Browse files
committed
v9.1.1
1 parent 46ffad2 commit 2e41171

247 files changed

Lines changed: 7500 additions & 2136 deletions

File tree

Some content is hidden

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

‎coverage.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"tests":8660,"assertions":36094,"lines":{"total":4537,"covered":4537,"skipped":0,"pct":100},"statements":{"total":4919,"covered":4919,"skipped":0,"pct":100},"functions":{"total":2211,"covered":2211,"skipped":0,"pct":100},"branches":{"total":1432,"covered":1423,"skipped":0,"pct":99.37},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":100}}
1+
{"tests":5174,"assertions":27970,"lines":{"total":4537,"covered":4537,"skipped":0,"pct":100},"statements":{"total":4919,"covered":4919,"skipped":0,"pct":100},"functions":{"total":2211,"covered":2211,"skipped":0,"pct":100},"branches":{"total":1432,"covered":1432,"skipped":0,"pct":100},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":100}}

‎docs/api/all.html‎

Lines changed: 43 additions & 29 deletions
Large diffs are not rendered by default.

‎docs/api/schematizer-arktype/functions/creation/createarktypeschematizer/article.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
<span class="punctuation">}</span><span class="punctuation">)</span><span class="punctuation">,</span>
1010
<span class="punctuation">}</span><span class="punctuation">)</span><span class="punctuation">;</span>
1111
console<span class="punctuation">.</span><span class="function">log</span><span class="punctuation">(</span>tablesSchema<span class="punctuation">)</span><span class="punctuation">;</span>
12-
<span class="comment">// -> {pets: {species: {type: 'string'}}}</span>
12+
<span class="comment">// -> {pets: {species: {type: 'string', required: true}}}</span>
1313
</code></pre></section><section class="s2"><h2>Since</h2><p>v7.1.0</p></section></section>

‎docs/api/schematizer-arktype/functions/creation/createarktypeschematizer/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
<span class="punctuation">}</span><span class="punctuation">)</span><span class="punctuation">,</span>
1010
<span class="punctuation">}</span><span class="punctuation">)</span><span class="punctuation">;</span>
1111
console<span class="punctuation">.</span><span class="function">log</span><span class="punctuation">(</span>tablesSchema<span class="punctuation">)</span><span class="punctuation">;</span>
12-
<span class="comment">// -> {pets: {species: {type: 'string'}}}</span>
12+
<span class="comment">// -> {pets: {species: {type: 'string', required: true}}}</span>
1313
</code></pre></section><section class="s2"><h2>Since</h2><p>v7.1.0</p></section></section></article><aside></aside></main><footer><nav><a id="gh" href="https://github.com/tinyplex/tinybase" target="_blank">GitHub</a><a id="bs" href="https://bsky.app/profile/tinybase.bsky.social" target="_blank">Bluesky</a><a id="tw" href="https://x.com/tinybasejs" target="_blank">X / Twitter</a><a id="dc" href="https://discord.com/invite/mGz3mevwP8" target="_blank">Discord</a></nav><nav><a href="/">TinyBase <span id="version"></span></a> © 2022-</nav></footer><script>window.dataLayer=window.dataLayer||[];function g(){dataLayer.push(arguments);}g('js',new Date());g('config','G-D1MGR8VRWJ');</script></body></html>

‎docs/api/schematizer-arktype/interfaces/schematizer/arktypeschematizer/methods/conversion/totablesschema/article.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<nav><ul><li><a href="/">TinyBase</a></li><li><a href="/api/">API</a></li><li><a href="/api/schematizer-arktype/"><code>schematizer-arktype</code></a></li><li><a href="/api/schematizer-arktype/interfaces/">Interfaces</a></li><li><a href="/api/schematizer-arktype/interfaces/schematizer/arktypeschematizer/"><code>ArkTypeSchematizer</code></a></li><li><a href="/api/schematizer-arktype/interfaces/schematizer/arktypeschematizer/methods/conversion/totablesschema/"><code>toTablesSchema</code></a></li></ul></nav><section class="s1" id="/api/schematizer-arktype/interfaces/schematizer/arktypeschematizer/methods/conversion/totablesschema/" data-id="tTS2"><h1><code>toTablesSchema</code></h1><p>The <code>toTablesSchema</code> method converts a mapping of ArkType object schemas into a TinyBase <a href="/api/store/type-aliases/schema/tablesschema/"><code>TablesSchema</code></a>.</p><pre><code><span class="function"><a href="/api/schematizer-arktype/interfaces/schematizer/arktypeschematizer/methods/conversion/totablesschema/">toTablesSchema</a></span><span class="punctuation">(</span>schemas<span class="operator">:</span> <span class="punctuation">{</span><span class="punctuation">[</span>tableId<span class="operator">:</span> <span class="builtin">string</span><span class="punctuation">]</span><span class="operator">:</span> <span class="builtin">any</span><span class="punctuation">}</span><span class="punctuation">)</span><span class="operator">:</span> <span class="type"><a href="/api/store/type-aliases/schema/tablesschema/">TablesSchema</a></span></code></pre><div class="table"><table><tr><th></th><th>Type</th><th>Description</th></tr><tr><th><code>schemas</code></th><td><code><span class="punctuation">{</span><span class="punctuation">[</span>tableId<span class="operator">:</span> <span class="builtin">string</span><span class="punctuation">]</span><span class="operator">:</span> <span class="builtin">any</span><span class="punctuation">}</span></code></td><td><p>A mapping of table IDs to ArkType object schemas.</p></td></tr><tr><th class="right">returns</th><td><code><span class="type"><a href="/api/store/type-aliases/schema/tablesschema/">TablesSchema</a></span></code></td><td><p></p><p>A TinyBase <a href="/api/store/type-aliases/schema/tablesschema/"><code>TablesSchema</code></a>.</p><p></p></td></tr></table></div><p>This method extracts basic type information (string, number, boolean), string literals, default values, and nullable flags from ArkType schemas. Complex validation rules like min/max, regex patterns, refinements, and transforms are ignored.</p><section class="s2"><h2>Example</h2><p>This example converts ArkType schemas to TinyBase format.</p><pre><code><span class="keyword">import</span> <span class="punctuation">{</span>type<span class="punctuation">}</span> <span class="keyword">from</span> <span class="string">'arktype'</span><span class="punctuation">;</span>
1+
<nav><ul><li><a href="/">TinyBase</a></li><li><a href="/api/">API</a></li><li><a href="/api/schematizer-arktype/"><code>schematizer-arktype</code></a></li><li><a href="/api/schematizer-arktype/interfaces/">Interfaces</a></li><li><a href="/api/schematizer-arktype/interfaces/schematizer/arktypeschematizer/"><code>ArkTypeSchematizer</code></a></li><li><a href="/api/schematizer-arktype/interfaces/schematizer/arktypeschematizer/methods/conversion/totablesschema/"><code>toTablesSchema</code></a></li></ul></nav><section class="s1" id="/api/schematizer-arktype/interfaces/schematizer/arktypeschematizer/methods/conversion/totablesschema/" data-id="tTS2"><h1><code>toTablesSchema</code></h1><p>The <code>toTablesSchema</code> method converts a mapping of ArkType object schemas into a TinyBase <a href="/api/store/type-aliases/schema/tablesschema/"><code>TablesSchema</code></a>.</p><pre><code><span class="function"><a href="/api/schematizer-arktype/interfaces/schematizer/arktypeschematizer/methods/conversion/totablesschema/">toTablesSchema</a></span><span class="punctuation">(</span>schemas<span class="operator">:</span> <span class="punctuation">{</span><span class="punctuation">[</span>tableId<span class="operator">:</span> <span class="builtin">string</span><span class="punctuation">]</span><span class="operator">:</span> <span class="builtin">any</span><span class="punctuation">}</span><span class="punctuation">)</span><span class="operator">:</span> <span class="type"><a href="/api/store/type-aliases/schema/tablesschema/">TablesSchema</a></span></code></pre><div class="table"><table><tr><th></th><th>Type</th><th>Description</th></tr><tr><th><code>schemas</code></th><td><code><span class="punctuation">{</span><span class="punctuation">[</span>tableId<span class="operator">:</span> <span class="builtin">string</span><span class="punctuation">]</span><span class="operator">:</span> <span class="builtin">any</span><span class="punctuation">}</span></code></td><td><p>A mapping of table IDs to ArkType object schemas.</p></td></tr><tr><th class="right">returns</th><td><code><span class="type"><a href="/api/store/type-aliases/schema/tablesschema/">TablesSchema</a></span></code></td><td><p></p><p>A TinyBase <a href="/api/store/type-aliases/schema/tablesschema/"><code>TablesSchema</code></a>.</p><p></p></td></tr></table></div><p>This method extracts basic type information (string, number, boolean), string literals, default values, nullable flags, and required flags from ArkType schemas. Complex validation rules like min/max, regex patterns, refinements, and transforms are ignored.</p><section class="s2"><h2>Example</h2><p>This example converts ArkType schemas to TinyBase format.</p><pre><code><span class="keyword">import</span> <span class="punctuation">{</span>type<span class="punctuation">}</span> <span class="keyword">from</span> <span class="string">'arktype'</span><span class="punctuation">;</span>
22
<span class="keyword">import</span> <span class="punctuation">{</span>createStore<span class="punctuation">}</span> <span class="keyword">from</span> <span class="string">'tinybase'</span><span class="punctuation">;</span>
33
<span class="keyword">import</span> <span class="punctuation">{</span>createArkTypeSchematizer<span class="punctuation">}</span> <span class="keyword">from</span> <span class="string">'tinybase/schematizers/schematizer-arktype'</span><span class="punctuation">;</span>
44

0 commit comments

Comments
 (0)