Releases: onflow/fcl-js
@onflow/[email protected]
Minor Changes
-
#1893
b9f49494d5b3faed1bc24005adc6ba312f653a21
Thanks @jribbink! - Add missing field to TransactionStatus type -
#1893
b9f49494d5b3faed1bc24005adc6ba312f653a21
Thanks @jribbink! - Add FvmErrorCode enum for categorizing transaction/script execution errors -
#1981
dda32df052801ee5e70b703a19c246f36bbd31c2
Thanks @jribbink! - Add missing fields to Provider type
Patch Changes
-
#1970
3b31f1c02b78bf178502627e5ca1de81bdfe8f26
Thanks @jribbink! - Fix CurrentUser services type -
#1983
18d24c8bad7efa0d8741d74f0cf299f89b3622c7
Thanks @jribbink! - Update dependencies
@onflow/[email protected]
Patch Changes
-
#1983
18d24c8bad7efa0d8741d74f0cf299f89b3622c7
Thanks @jribbink! - Update dependencies -
Updated dependencies [
18d24c8bad7efa0d8741d74f0cf299f89b3622c7
]:- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
@onflow/[email protected]
Patch Changes
-
#2027
169974cbd76495f29fac9d950916e3e9fd7f3fd4
Thanks @caosbad! - Fixed an issue where the signer could not get the correct singerIndex when preparing a payload due to prefixed addresses in the sdk -
#1983
18d24c8bad7efa0d8741d74f0cf299f89b3622c7
Thanks @jribbink! - Update dependencies -
Updated dependencies [
b9f49494d5b3faed1bc24005adc6ba312f653a21
,3b31f1c02b78bf178502627e5ca1de81bdfe8f26
,18d24c8bad7efa0d8741d74f0cf299f89b3622c7
,b9f49494d5b3faed1bc24005adc6ba312f653a21
,dda32df052801ee5e70b703a19c246f36bbd31c2
]:- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
@onflow/[email protected]
Patch Changes
- #1983
18d24c8bad7efa0d8741d74f0cf299f89b3622c7
Thanks @jribbink! - Update dependencies
@onflow/[email protected]
Patch Changes
- #1983
18d24c8bad7efa0d8741d74f0cf299f89b3622c7
Thanks @jribbink! - Update dependencies
@onflow/[email protected]
This release introduces exciting new features and important bug fixes to FCL 🎉. Highlights include improved mobile support, transaction error handling, and session persistence.
Please upgrade to the latest version to get access to the latest improvements by running the following command:
npm update @onflow/fcl
✨ New Features
-
Full Telegram In-App Browser Support
-
Mobile Wallet Notifications
-
Introduced UI notifications for pending WalletConnect requests, providing users with prompts to confirm actions on their mobile device.
(#1970 | commit)
-
Added a
walletconnect.disableNotifications
configuration option to turn off the notification UI if not required.
(#1970 | commit)If developers wish to disable these notifications, they can use the following snippet:
import {config} from "@onflow/fcl" config().put("walletconnect.disableNotifications", true)
-
-
Session Persistence
-
FCL now uses
localStorage
by default, with utility helpersLOCAL_STORAGE
andSESSION_STORAGE
added for customization.
(#2001 | commit)End users will no longer have to re-authenticate themselves with apps after switching tabs or closing browser windows. Developers do not need to make any changes to their application to realize these user experience benefits, as long as they have not set a custom
fcl.storage
configuration key.If developers do not want to include session persistence in their app, they may configure it as follows:
import {config, SESSION_STORAGE} from '@onflow/fcl' config().put("fcl.storage", SESSION_STORAGE)
-
-
Improved Error Handling
-
Added a new
TransactionError
type to handle failed transactions more effectively.
(#1893 | commit)Developers can use these error objects to more accurately handle and present transaction execution errors to end users as follows:
import {mutate, TransactionError} from '@onflow/fcl' mutate({...}).catch(e => { if (e instanceof TransactionError) { console.log({ code: e.code, type: e.type, message: e.message }) // e.g. { code: 1101, type: "CADENCE_RUNTIME_ERROR", message: "[Error Code: 1101] Cadence..." } })
-
⚙️ Other Improvements
-
WalletConnect Modal Behavior
-
Faster Transaction Status Polling
-
Fixed Prefixed Address Issue
📦 Dependency Updates
- Updated dependencies:
- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
@onflow/[email protected]
Minor Changes
- #1970
3b31f1c02b78bf178502627e5ca1de81bdfe8f26
Thanks @jribbink! - Add UI notifications for pending requests
Patch Changes
-
#1994
a7df42ff4609aa8a1f381fd447d3f94606f71a17
Thanks @jribbink! - Fix WalletConnectModal close detection -
#1999
c14746a9e4dbde10d6204697a68e6f2de6e83dd1
Thanks @jribbink! - Improve deeplinking for WC/RPC wallets using non-WC/RPC pre-authz services -
#1983
18d24c8bad7efa0d8741d74f0cf299f89b3622c7
Thanks @jribbink! - Update dependencies -
Updated dependencies [
bac8c54db1b6821a2158923544aa537885d5a0e7
,8a5f8e9874980c40c1feb3eac915c6e8570abbf3
,3b31f1c02b78bf178502627e5ca1de81bdfe8f26
,c14746a9e4dbde10d6204697a68e6f2de6e83dd1
,18d24c8bad7efa0d8741d74f0cf299f89b3622c7
,b9f49494d5b3faed1bc24005adc6ba312f653a21
]:- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
@onflow/[email protected]
Patch Changes
-
#1983
18d24c8bad7efa0d8741d74f0cf299f89b3622c7
Thanks @jribbink! - Update dependencies -
#2001
bac8c54db1b6821a2158923544aa537885d5a0e7
Thanks @jribbink! - Pass getStorageProvider to currentUser configuration -
Updated dependencies [
bac8c54db1b6821a2158923544aa537885d5a0e7
,8a5f8e9874980c40c1feb3eac915c6e8570abbf3
,3b31f1c02b78bf178502627e5ca1de81bdfe8f26
,b7860a388960f3d2220c5f85a820a33e41915f35
,c14746a9e4dbde10d6204697a68e6f2de6e83dd1
,18d24c8bad7efa0d8741d74f0cf299f89b3622c7
,b9f49494d5b3faed1bc24005adc6ba312f653a21
]:- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
@onflow/[email protected]
Minor Changes
-
#2001
bac8c54db1b6821a2158923544aa537885d5a0e7
Thanks @jribbink! - Add getStorageProvider to currentUser configuration -
#1989
8a5f8e9874980c40c1feb3eac915c6e8570abbf3
Thanks @jribbink! - Reduce transaction status polling delay to 1000ms -
#1893
b9f49494d5b3faed1bc24005adc6ba312f653a21
Thanks @jribbink! - Add custom errorTransactionError
type for failing transaction results
Patch Changes
-
#1970
3b31f1c02b78bf178502627e5ca1de81bdfe8f26
Thanks @jribbink! - Pass missing fields to service redirects in execService -
#1999
c14746a9e4dbde10d6204697a68e6f2de6e83dd1
Thanks @jribbink! - Improve deeplinking for WC/RPC wallets using non-WC/RPC pre-authz services -
#1983
18d24c8bad7efa0d8741d74f0cf299f89b3622c7
Thanks @jribbink! - Update dependencies -
Updated dependencies [
b7860a388960f3d2220c5f85a820a33e41915f35
,18d24c8bad7efa0d8741d74f0cf299f89b3622c7
]:- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
- @onflow/[email protected]
@onflow/[email protected]
Minor Changes
- #1970
3b31f1c02b78bf178502627e5ca1de81bdfe8f26
Thanks @jribbink! - Addrollup-plugin-postcss
&@rollup/plugin-image
Patch Changes
- #1983
18d24c8bad7efa0d8741d74f0cf299f89b3622c7
Thanks @jribbink! - Update dependencies