# Agent-JS 0.15.0

**URL:** <https://forum.dfinity.org/t/agent-js-0-15-0/17393>\
**Category:** JavaScript\
**Tags:** release\
**Created:** [December 13, 2022, 5:01pm UTC](https://forum.dfinity.org/t/agent-js-0-15-0/17393 "2022-12-13T17:01:22Z")\
**Posts on this page:** 2\
**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:** [December 13, 2022, 5:01pm UTC](https://forum.dfinity.org/t/agent-js-0-15-0/17393/1 "2022-12-13T17:01:22Z")

</div>

Deprecates `@dfinity/authentication`, moving the `isDelegationValid` check into `@dfinity/identity.`

Also moves `Secp256k1KeyIdentity` out of `@dfinity/identity` to its own package, `@dfinity/identity-secp256k1` in order to keep package sizes down for other packages.

`@dfinity/identity-ledgerhq` is deprecated, and had already been out of use for some time. `@zondax/ledger-icp` is the maintained tool for integrating with the Ledger hardware wallet.

- chore: links assets docs in index by [@krpeacock](https://github.com/krpeacock) in [#651](https://github.com/dfinity/agent-js/pull/651)
- feat: fetchOptions, callOptions for React Native by [@wackyleo459](https://github.com/wackyleo459) in [#652](https://github.com/dfinity/agent-js/pull/652)
- feat: React Native support with fetchOption and callOptions by [@wackyleo459](https://github.com/wackyleo459) in [#653](https://github.com/dfinity/agent-js/pull/653)
- chore: test size-limit automation for CI by [@krpeacock](https://github.com/krpeacock) in [#658](https://github.com/dfinity/agent-js/pull/658)
- test: lowering identity limit from baseline by [@krpeacock](https://github.com/krpeacock) in [#659](https://github.com/dfinity/agent-js/pull/659)
- test: enabling comparison job by [@krpeacock](https://github.com/krpeacock) in [#660](https://github.com/dfinity/agent-js/pull/660)
- chore: deprecates @dfinity/authentication by [@krpeacock](https://github.com/krpeacock) in [#661](https://github.com/dfinity/agent-js/pull/661)
- chore: replaces smartcontracts references by [@krpeacock](https://github.com/krpeacock) in [#662](https://github.com/dfinity/agent-js/pull/662)
- feat: separate secp256k1 library by [@krpeacock](https://github.com/krpeacock) in [#663](https://github.com/dfinity/agent-js/pull/663)
- chore: release/v0.15.0 by [@krpeacock](https://github.com/krpeacock) in [#664](https://github.com/dfinity/agent-js/pull/664)

**Full Changelog** : [v0.14.1…v0.15.0](https://github.com/dfinity/agent-js/compare/v0.14.1...v0.15.0)

> **[Release v0.15.0 · dfinity/agent-js](https://github.com/dfinity/agent-js/releases/tag/v0.15.0)**
>
> What's Changed
> Deprecates @dfinity/authentication, moving the isDelegationValid check into \`@dfinity/identity.
> Also moves Secp256k1KeyIdentity out of @dfinity/identity to its own package, @dfinity/...

---

<div class="post-metadata">

**Author:** ![harshbaz](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/harshbaz/32/14871_2.png) [@harshbaz](https://forum.dfinity.org/u/harshbaz)\
**Post date:** [December 16, 2022, 2:55am UTC](https://forum.dfinity.org/t/agent-js-0-15-0/17393/2 "2022-12-16T02:55:40Z")

</div>

The new package does not not work for me?

> <https://github.com/dfinity/agent-js/issues/666>
>
> \*\*Describe the bug\*\*
> Trying to import \`Secp256k1KeyIdentity\` from the new separ…ate package results in an error.
> 
> \*\*To Reproduce\*\*
> Try importing \`import { Secp256k1KeyIdentity } from '@dfinity/identity-secp256k1';\` in a \`ts\` file.
> and you should see an error thrown by typescript about an invalid import.
> 
> And, there's no lib folder that package json is referring to:
> 
> !\[image\](https://user-images.githubusercontent.com/106158714/207582008-48c4960a-152f-4bf6-98c6-09e8e1a43bc3.png)
> 
> \*\*Expected behavior\*\*
> I should be able to import it
