# Agent-JS 1.2.0 is Released!

**URL:** <https://forum.dfinity.org/t/agent-js-1-2-0-is-released/28881>\
**Category:** JavaScript\
**Created:** [March 25, 2024, 9:08pm UTC](https://forum.dfinity.org/t/agent-js-1-2-0-is-released/28881 "2024-03-25T21:08:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon74414410](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@anon74414410](https://forum.dfinity.org/u/anon74414410)\
**Post date:** [March 25, 2024, 9:08pm UTC](https://forum.dfinity.org/t/agent-js-1-2-0-is-released/28881/1 "2024-03-25T21:08:39Z")

</div>

This release adds a few nice features, most notably, the agent works out of the box in React Native apps after switching to `@noble/curves` for bls verification!

This version will have the basic compatibility required for the new **canister logging** feature

Devs can now choose to restrict which authentication methods are allowed when logging in using Internet Identity. Pass `allowPinAuthentication: false` to `authClient.login` in order to prevent users from logging in using a PIN. You can also inspect the returned `onSuccess` payload in order to learn the `authnMethod` which can be `'passkey' | 'pin' | 'recovery'`

## What’s Changed

- feat: allow passing `DBCreateOptions` to `IdbStorage` constructor by [@hpeebles](https://github.com/hpeebles) in [#850](https://github.com/dfinity/agent-js/pull/850)
- fix: pads date numbers in changelog automation by [@krpeacock](https://github.com/krpeacock) in [#862](https://github.com/dfinity/agent-js/pull/862)
- feat: support for management canister logging by [@krpeacock](https://github.com/krpeacock) in [#863](https://github.com/dfinity/agent-js/pull/863)
- feat: pure JS BLS verification by [@krpeacock](https://github.com/krpeacock) in [#817](https://github.com/dfinity/agent-js/pull/817)
- feat: support for restricting II auth methods by [@krpeacock](https://github.com/krpeacock) in [#856](https://github.com/dfinity/agent-js/pull/856)
- chore: npm audit by [@krpeacock](https://github.com/krpeacock) in [#865](https://github.com/dfinity/agent-js/pull/865)

**Full Changelog** : [v1.1.1…v1.2.0](https://github.com/dfinity/agent-js/compare/v1.1.1...v1.2.0)

> **[Release Release 1.2.0 · dfinity/icp-js-core](https://github.com/dfinity/icp-js-core/releases/tag/v1.2.0)**
>
> What's Changed
> 
> feat: allow passing DBCreateOptions to IdbStorage constructor by @hpeebles in #850
> fix: pads date numbers in changelog automation by @krpeacock in #862
> feat: support for management ...

---

<div class="post-metadata">

**Author:** ![anon74414410](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@anon74414410](https://forum.dfinity.org/u/anon74414410)\
**Post date:** [March 25, 2024, 9:10pm UTC](https://forum.dfinity.org/t/agent-js-1-2-0-is-released/28881/2 "2024-03-25T21:10:45Z")

</div>

Fun fact - this update comes with a significant decrease to the package size of most agent-js bundles!

 ![a chart of size decreases, ranging from 0% in @dfinity/candid to 36% in @dfinity/identity](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/e/2/e26f13c4f5f2aae863f6bc3696a3a2b96a5c5df4.png)

---

<div class="post-metadata">

**Author:** ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)\
**Post date:** [March 26, 2024, 5:19am UTC](https://forum.dfinity.org/t/agent-js-1-2-0-is-released/28881/3 "2024-03-26T05:19:33Z")

</div>

Thanks for the canister logging and the feature to disable PIN authentication. I’ll integrate those into Juno’s console in the next few days. I hope the JS BLS verification is rock solid, that’s a great improvement!
