Skip to content

Commit

Permalink
chore(npm deps-dev): Bump @dfinity/auth-client from 2.1.2 to 2.1.3 (#44)
Browse files Browse the repository at this point in the history
Bumps
[@dfinity/auth-client](https://github.com/dfinity/agent-js/tree/HEAD/packages/auth-client)
from 2.1.2 to 2.1.3.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/dfinity/agent-js/releases"><code>@​dfinity/auth-client</code>'s
releases</a>.</em></p>
<blockquote>
<h2>Release 2.1.3</h2>
<h2>What's Changed</h2>
<p>We have a couple fixes and some improvements to errors in this
release.</p>
<h3>Fixes</h3>
<ul>
<li>Fixed an issue where <code>read_state</code> polling requests would
fail after the initial expiry, but before the request was processed
<ul>
<li>This was an edge case for subnets under high load. The
<code>read_state</code> is allowed to use a fresh ingress_expiry, so
<code>pollForResponse</code> and <code>retry</code> logic now uses this
pattern</li>
</ul>
</li>
<li>Added a check to handle a regression when calling the management
canister using the new sync_call flow</li>
</ul>
<h3>Error handling</h3>
<ul>
<li>
<p>Fixed an issue where <code>reject_code</code> and
<code>reject_message</code> weren't passed correctly to the error in
synchronous call <code>reject</code> or <code>trap</code> responses.</p>
</li>
<li>
<p>new <code>ActorCallError</code> class</p>
</li>
<li>
<p><code>AgentError</code> and <code>ActorCallError</code> support
<code>instanceof</code> checks, as well as a <code>name</code> attribute
that you can use for easier error handling</p>
<ul>
<li>some old generic <code>Error</code>s are now labeled more
preciesely</li>
</ul>
</li>
<li>
<p>chore: Correct the typo in <code>agent/src/actor.ts</code> by <a
href="https://github.com/AlexV525"><code>@​AlexV525</code></a> in <a
href="https://redirect.github.com/dfinity/agent-js/pull/939">dfinity/agent-js#939</a></p>
</li>
<li>
<p>fix: trap and throw handling in v3 sync call by <a
href="https://github.com/krpeacock"><code>@​krpeacock</code></a> in <a
href="https://redirect.github.com/dfinity/agent-js/pull/940">dfinity/agent-js#940</a></p>
</li>
<li>
<p>fix: read state with fresh expiry by <a
href="https://github.com/krpeacock"><code>@​krpeacock</code></a> in <a
href="https://redirect.github.com/dfinity/agent-js/pull/938">dfinity/agent-js#938</a></p>
</li>
<li>
<p>test: automatically deploys trap canister if it doesn't exist yet
dur… by <a
href="https://github.com/krpeacock"><code>@​krpeacock</code></a> in <a
href="https://redirect.github.com/dfinity/agent-js/pull/942">dfinity/agent-js#942</a></p>
</li>
<li>
<p>chore: skip range check when the certificate comes from the
management canister by <a
href="https://github.com/dfx-json"><code>@​dfx-json</code></a> in <a
href="https://redirect.github.com/dfinity/agent-js/pull/945">dfinity/agent-js#945</a></p>
</li>
<li>
<p>feat: allow for setting HttpAgent ingress expiry using
<code>ingressExpiryInMinutes</code> option by <a
href="https://github.com/krpeacock"><code>@​krpeacock</code></a> in <a
href="https://redirect.github.com/dfinity/agent-js/pull/905">dfinity/agent-js#905</a></p>
</li>
<li>
<p>feat: improved assertion options for agent errors by <a
href="https://github.com/krpeacock"><code>@​krpeacock</code></a> in <a
href="https://redirect.github.com/dfinity/agent-js/pull/908">dfinity/agent-js#908</a></p>
</li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/AlexV525"><code>@​AlexV525</code></a>
made their first contribution in <a
href="https://redirect.github.com/dfinity/agent-js/pull/939">dfinity/agent-js#939</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/dfinity/agent-js/compare/v2.1.2...v2.1.3">https://github.com/dfinity/agent-js/compare/v2.1.2...v2.1.3</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/dfinity/agent-js/blob/main/docs/CHANGELOG.md"><code>@​dfinity/auth-client</code>'s
changelog</a>.</em></p>
<blockquote>
<h2>[2.1.3] - 2024-10-23</h2>
<h3>Added</h3>
<ul>
<li>
<p>feat: allow for setting HttpAgent ingress expiry using
<code>ingressExpiryInMinutes</code> option</p>
</li>
<li>
<p>feat: improved assertion options for agent errors using
<code>prototype</code>, <code>name</code>, and
<code>instanceof</code></p>
</li>
</ul>
<h3>Changed</h3>
<ul>
<li>test: automatically deploys trap canister if it doesn't exist yet
during e2e</li>
<li>fix: handle v3 traps correctly, pulling the reject_code and message
from the certificate in the error response like v2.
Example trap error message:</li>
</ul>
<pre lang="txt"><code>AgentError: Call failed:
  Canister: hbrpn-74aaa-aaaaa-qaaxq-cai
  Method: Throw (update)
&quot;Request ID&quot;:
&quot;ae107dfd7c9be168a8ebc122d904900a95e3f15312111d9e0c08f136573c5f13&quot;
  &quot;Error code&quot;: &quot;IC0406&quot;
  &quot;Reject code&quot;: &quot;4&quot;
  &quot;Reject message&quot;: &quot;foo&quot;
</code></pre>
<ul>
<li>feat: the <code>UpdateCallRejected</code> error now exposes
<code>reject_code: ReplicaRejectCode</code>, <code>reject_message:
string</code>, and <code>error_code?: string</code> properties directly
on the error object.</li>
<li>fix: recalculates body to use a fresh <code>Expiry</code> when
polling for <code>read_state</code> requests. This prevents the request
from exceeding the <code>maximum_ingress_expiry</code> when the replica
is slow to respond.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/dfinity/agent-js/commit/6ef8afb360c1b6c95b545f565fb5e4b06549896a"><code>6ef8afb</code></a>
chore: release 2.1.3 (<a
href="https://github.com/dfinity/agent-js/tree/HEAD/packages/auth-client/issues/946">#946</a>)</li>
<li>See full diff in <a
href="https://github.com/dfinity/agent-js/commits/v2.1.3/packages/auth-client">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@dfinity/auth-client&package-manager=npm_and_yarn&previous-version=2.1.2&new-version=2.1.3)](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] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max <[email protected]>
  • Loading branch information
dependabot[bot] and bitdivine authored Dec 5, 2024
1 parent 5d4e229 commit a45b97d
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 28 deletions.
59 changes: 32 additions & 27 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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"src/example-frontend"
],
"devDependencies": {
"@dfinity/auth-client": "^2.1.2",
"@dfinity/auth-client": "^2.1.3",
"@dfinity/identity": "^2.0.0",
"prettier": "^3.3.2",
"prettier-plugin-organize-imports": "^4.1.0",
Expand Down

0 comments on commit a45b97d

Please sign in to comment.