Skip to content

Commit

Permalink
build(deps): bump true-myth from 8.0.1 to 8.2.0 (#1296)
Browse files Browse the repository at this point in the history
Bumps [true-myth](https://github.com/true-myth/true-myth) from 8.0.1 to
8.2.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/true-myth/true-myth/releases">true-myth's
releases</a>.</em></p>
<blockquote>
<h2>v8.2.0</h2>
<p>Finally—<em>finally!</em>—True Myth get a <code>Task</code> type! A
<code>Task&lt;T, E&gt;</code> is like a <code>Promise&lt;Result&lt;T,
E&gt;&gt;</code>. In fact, under the hood, it is <em>exactly</em> a
<code>Promise&lt;Result&lt;T, E&gt;&gt;</code>, but in general you do
not need to think about that layering. Instead, you get a nice type-safe
API for fallible async operations. (It’s what <code>Promise</code>
should have been!)</p>
<p>Install it with your preferred package manager:</p>
<table>
<thead>
<tr>
<th>Package manager</th>
<th>Command</th>
</tr>
</thead>
<tbody>
<tr>
<td>npm</td>
<td><code>npm install true-myth@latest</code></td>
</tr>
<tr>
<td>yarn</td>
<td><code>yarn add true-myth@latest</code></td>
</tr>
<tr>
<td>pnpm</td>
<td><code>pnpm install true-myth@latest</code></td>
</tr>
</tbody>
</table>
<h4>:rocket: Enhancement</h4>
<ul>
<li><a
href="https://redirect.github.com/true-myth/true-myth/pull/885">#885</a>
feature: implement a new <code>Task</code> type (<a
href="https://github.com/chriskrycho"><code>@​chriskrycho</code></a>)</li>
</ul>
<h4>:memo: Documentation</h4>
<ul>
<li><a
href="https://redirect.github.com/true-myth/true-myth/pull/890">#890</a>
docs: improve rendering of the fancy variant shenanigans with
<code>@Class</code> (<a
href="https://github.com/chriskrycho"><code>@​chriskrycho</code></a>)</li>
</ul>
<h4>:house: Internal</h4>
<ul>
<li><a
href="https://redirect.github.com/true-myth/true-myth/pull/891">#891</a>
Task: fix name of one of the tests (<a
href="https://github.com/chriskrycho"><code>@​chriskrycho</code></a>)</li>
</ul>
<h4>Committers: 1</h4>
<ul>
<li>Chris Krycho (<a
href="https://github.com/chriskrycho"><code>@​chriskrycho</code></a>)</li>
</ul>
<h2>v8.2.0-beta.1</h2>
<p>Beta release with <code>Task</code>, so folks can easily test it
out!</p>
<h4>:bug: Bug Fix</h4>
<ul>
<li><a
href="https://redirect.github.com/true-myth/true-myth/pull/887">#887</a>
Result: correct the implementation of <code>static err</code>
constructor (<a
href="https://github.com/chriskrycho"><code>@​chriskrycho</code></a>)</li>
</ul>
<h4>:memo: Documentation</h4>
<ul>
<li><a
href="https://redirect.github.com/true-myth/true-myth/pull/886">#886</a>
docs/internals: <code>Task</code>-inspired improvements (<a
href="https://github.com/chriskrycho"><code>@​chriskrycho</code></a>)</li>
<li><a
href="https://redirect.github.com/true-myth/true-myth/pull/881">#881</a>
docs: remove long-defunct reference to <code>new</code> from
<code>Result.(ok|err)</code> (<a
href="https://github.com/chriskrycho"><code>@​chriskrycho</code></a>)</li>
</ul>
<h4>:house: Internal</h4>
<ul>
<li><a
href="https://redirect.github.com/true-myth/true-myth/pull/886">#886</a>
docs/internals: <code>Task</code>-inspired improvements (<a
href="https://github.com/chriskrycho"><code>@​chriskrycho</code></a>)</li>
</ul>
<h4>Committers: 1</h4>
<ul>
<li>Chris Krycho (<a
href="https://github.com/chriskrycho"><code>@​chriskrycho</code></a>)</li>
</ul>
<h2>v8.1.0</h2>
<p>The big feature: a new module just for test support, with two
functions in it: <code>unwrap</code> and <code>unwrapErr</code>. You can
now write this:</p>
<pre lang="ts"><code>import { expect, test } from 'vitest'; // or your
testing library of choice
<p>import Maybe from 'true-myth/maybe';<br />
import Result from 'true-myth/result';<br />
import { unwrap, unwrapErr } from 'true-myth/test-helpers';</p>
<p>import { producesMaybe, producesResult } from 'my-library';<br />
&lt;/tr&gt;&lt;/table&gt;<br />
</code></pre></p>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/true-myth/true-myth/blob/main/CHANGELOG.md">true-myth's
changelog</a>.</em></p>
<blockquote>
<h2>8.2.0 (2025-01-03)</h2>
<p>Finally—<em>finally!</em>—True Myth get a <code>Task</code> type! A
<code>Task&lt;T, E&gt;</code> is like a <code>Promise&lt;Result&lt;T,
E&gt;&gt;</code>. In fact, under the hood, it is <em>exactly</em> a
<code>Promise&lt;Result&lt;T, E&gt;&gt;</code>, but in general you do
not need to think about that layering. Instead, you get a nice type-safe
API for fallible async operations. (It’s what <code>Promise</code>
should have been!)</p>
<h4>:rocket: Enhancement</h4>
<ul>
<li><a
href="https://redirect.github.com/true-myth/true-myth/pull/885">#885</a>
feature: implement a new <code>Task</code> type (<a
href="https://github.com/chriskrycho"><code>@​chriskrycho</code></a>)</li>
</ul>
<h4>:memo: Documentation</h4>
<ul>
<li><a
href="https://redirect.github.com/true-myth/true-myth/pull/890">#890</a>
docs: improve rendering of the fancy variant shenanigans with
<code>@Class</code> (<a
href="https://github.com/chriskrycho"><code>@​chriskrycho</code></a>)</li>
</ul>
<h4>:house: Internal</h4>
<ul>
<li><a
href="https://redirect.github.com/true-myth/true-myth/pull/891">#891</a>
Task: fix name of one of the tests (<a
href="https://github.com/chriskrycho"><code>@​chriskrycho</code></a>)</li>
</ul>
<h4>Committers: 1</h4>
<ul>
<li>Chris Krycho (<a
href="https://github.com/chriskrycho"><code>@​chriskrycho</code></a>)</li>
</ul>
<h2>8.2.0-beta.1 (2024-12-31)</h2>
<p>Beta release with <code>Task</code>, so folks can easily test it
out!</p>
<h4>:bug: Bug Fix</h4>
<ul>
<li><a
href="https://redirect.github.com/true-myth/true-myth/pull/887">#887</a>
Result: correct the implementation of <code>static err</code>
constructor (<a
href="https://github.com/chriskrycho"><code>@​chriskrycho</code></a>)</li>
</ul>
<h4>:memo: Documentation</h4>
<ul>
<li><a
href="https://redirect.github.com/true-myth/true-myth/pull/886">#886</a>
docs/internals: <code>Task</code>-inspired improvements (<a
href="https://github.com/chriskrycho"><code>@​chriskrycho</code></a>)</li>
<li><a
href="https://redirect.github.com/true-myth/true-myth/pull/881">#881</a>
docs: remove long-defunct reference to <code>new</code> from
<code>Result.(ok|err)</code> (<a
href="https://github.com/chriskrycho"><code>@​chriskrycho</code></a>)</li>
</ul>
<h4>:house: Internal</h4>
<ul>
<li><a
href="https://redirect.github.com/true-myth/true-myth/pull/886">#886</a>
docs/internals: <code>Task</code>-inspired improvements (<a
href="https://github.com/chriskrycho"><code>@​chriskrycho</code></a>)</li>
</ul>
<h4>Committers: 1</h4>
<ul>
<li>Chris Krycho (<a
href="https://github.com/chriskrycho"><code>@​chriskrycho</code></a>)</li>
</ul>
<h2>8.1.0 (2024-12-04)</h2>
<p>The big feature: a new module just for test support, with two
functions in it: <code>unwrap</code> and <code>unwrapErr</code>. You can
now write this:</p>
<pre lang="ts"><code>import { expect, test } from 'vitest'; // or your
testing library of choice
<p>import Maybe from 'true-myth/maybe';<br />
import Result from 'true-myth/result';<br />
import { unwrap, unwrapErr } from 'true-myth/test-helpers';</p>
<p>import { producesMaybe, producesResult } from 'my-library';</p>
<p>test('using this new helper', () =&gt; {<br />
expect(unwrap(producesMaybe())).toBe(true);<br />
expect(unwrap(producesResult('valid'))).toBe('cool');<br />
expect(unwrapErr(producesResult('invalid')).toBe('oh teh noes');<br />
&lt;/tr&gt;&lt;/table&gt;<br />
</code></pre></p>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/true-myth/true-myth/commit/3505dcb5e119bd74534980c90bb90c0e84e0bfea"><code>3505dcb</code></a>
Release 8.2.0</li>
<li><a
href="https://github.com/true-myth/true-myth/commit/a1dd334b16e8a7fb690ba5ff0131649529629942"><code>a1dd334</code></a>
Merge pull request <a
href="https://redirect.github.com/true-myth/true-myth/issues/891">#891</a>
from true-myth/fix-test-naming-issue-commit</li>
<li><a
href="https://github.com/true-myth/true-myth/commit/093ccd2663c012708f60aebaab4076f7749e9cd3"><code>093ccd2</code></a>
Merge pull request <a
href="https://redirect.github.com/true-myth/true-myth/issues/890">#890</a>
from true-myth/docs-render-fancy-variants</li>
<li><a
href="https://github.com/true-myth/true-myth/commit/5d68266df8a238cb7c60af7dfa53883752695532"><code>5d68266</code></a>
docs: improve rendering of the fancy variant shenanigans with
<code>@Class</code></li>
<li><a
href="https://github.com/true-myth/true-myth/commit/d8f744ed40fbef3771f3e28c38c902c6f29d4f8f"><code>d8f744e</code></a>
Task: fix name of one of the tests</li>
<li><a
href="https://github.com/true-myth/true-myth/commit/62c0c9e0bf11d970e0dd562cb19c79ad764cf399"><code>62c0c9e</code></a>
Merge pull request <a
href="https://redirect.github.com/true-myth/true-myth/issues/885">#885</a>
from true-myth/task-impl</li>
<li><a
href="https://github.com/true-myth/true-myth/commit/b04311d2294e00b3812bb10b7a1cf559930a45dc"><code>b04311d</code></a>
Task: slightly improve basic documentation rendering</li>
<li><a
href="https://github.com/true-myth/true-myth/commit/817366b42b078e90d95fab0e4a98d47e56c91220"><code>817366b</code></a>
Task: name the unsafe <code>Promise\&lt;Result&lt;T, E&gt;&gt;</code> →
<code>fromUnsafePromise</code></li>
<li><a
href="https://github.com/true-myth/true-myth/commit/947cf0c50325dd107be3dd8d5f5ef00b05aa0271"><code>947cf0c</code></a>
Task: use the <code>const</code> + <code>type</code> export hack</li>
<li><a
href="https://github.com/true-myth/true-myth/commit/040e44c43ab5b4e82d3cdb4b27b5fcfff8b8374d"><code>040e44c</code></a>
Task: match <code>Promise</code> names for
<code>withResolvers</code></li>
<li>Additional commits viewable in <a
href="https://github.com/true-myth/true-myth/compare/v8.0.1...v8.2.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=true-myth&package-manager=npm_and_yarn&previous-version=8.0.1&new-version=8.2.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Jan 4, 2025
1 parent 3b3333e commit 0484057
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
11 changes: 5 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/safe-ds-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"commander": "^12.1.0",
"glob": "^11.0.0",
"langium": "^3.0.0",
"true-myth": "^8.0.1"
"true-myth": "^8.2.0"
},
"devDependencies": {
"@types/node": "^18.19.62",
Expand Down
2 changes: 1 addition & 1 deletion packages/safe-ds-lang/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"@types/node": "^18.19.62",
"@types/ws": "^8.5.12",
"langium-cli": "^3.0.3",
"true-myth": "^8.0.1"
"true-myth": "^8.2.0"
},
"engines": {
"node": ">=18.0.0"
Expand Down

0 comments on commit 0484057

Please sign in to comment.