- Updated dependencies [
4434f6e915
]:- @moralisweb3/evm-api@2.27.2
- moralis@2.27.2
- @moralisweb3/api-utils@2.27.2
- @moralisweb3/auth@2.27.2
- @moralisweb3/common-auth-utils@2.27.2
- @moralisweb3/common-core@2.27.2
- @moralisweb3/sol-api@2.27.2
- Updated dependencies [
f4c0c22b92
]:- @moralisweb3/evm-api@2.27.1
- moralis@2.27.1
- @moralisweb3/api-utils@2.27.1
- @moralisweb3/auth@2.27.1
- @moralisweb3/common-auth-utils@2.27.1
- @moralisweb3/common-core@2.27.1
- @moralisweb3/sol-api@2.27.1
- Updated dependencies [
061df23238
]:- @moralisweb3/evm-api@2.27.0
- moralis@2.27.0
- @moralisweb3/api-utils@2.27.0
- @moralisweb3/auth@2.27.0
- @moralisweb3/common-auth-utils@2.27.0
- @moralisweb3/common-core@2.27.0
- @moralisweb3/sol-api@2.27.0
- Updated dependencies [
7b334bf7bd
]:- @moralisweb3/evm-api@2.26.9
- moralis@2.26.9
- @moralisweb3/api-utils@2.26.9
- @moralisweb3/auth@2.26.9
- @moralisweb3/common-auth-utils@2.26.9
- @moralisweb3/common-core@2.26.9
- @moralisweb3/sol-api@2.26.9
- Updated dependencies [
77d125401e
]:- @moralisweb3/evm-api@2.26.8
- moralis@2.26.8
- @moralisweb3/api-utils@2.26.8
- @moralisweb3/auth@2.26.8
- @moralisweb3/common-auth-utils@2.26.8
- @moralisweb3/common-core@2.26.8
- @moralisweb3/sol-api@2.26.8
- Updated dependencies [
6bd790d233
]:- @moralisweb3/evm-api@2.26.7
- moralis@2.26.7
- @moralisweb3/api-utils@2.26.7
- @moralisweb3/auth@2.26.7
- @moralisweb3/common-auth-utils@2.26.7
- @moralisweb3/common-core@2.26.7
- @moralisweb3/sol-api@2.26.7
- Updated dependencies [
4f50daec00
,9ddc8c3a95
]:- moralis@2.26.6
- @moralisweb3/evm-api@2.26.6
- @moralisweb3/api-utils@2.26.6
- @moralisweb3/auth@2.26.6
- @moralisweb3/common-auth-utils@2.26.6
- @moralisweb3/common-core@2.26.6
- @moralisweb3/sol-api@2.26.6
- Updated dependencies [
26d2a2e397
]:- @moralisweb3/evm-api@2.26.5
- @moralisweb3/api-utils@2.26.5
- @moralisweb3/auth@2.26.5
- @moralisweb3/common-auth-utils@2.26.5
- @moralisweb3/common-core@2.26.5
- @moralisweb3/sol-api@2.26.5
- moralis@2.26.5
- Updated dependencies [
92ef94d396
]:- @moralisweb3/evm-api@2.26.4
- moralis@2.26.4
- @moralisweb3/api-utils@2.26.4
- @moralisweb3/auth@2.26.4
- @moralisweb3/common-auth-utils@2.26.4
- @moralisweb3/common-core@2.26.4
- @moralisweb3/sol-api@2.26.4
- Updated dependencies [
c2f2e5822f
]:- @moralisweb3/evm-api@2.26.3
- @moralisweb3/api-utils@2.26.3
- @moralisweb3/auth@2.26.3
- @moralisweb3/common-auth-utils@2.26.3
- @moralisweb3/common-core@2.26.3
- @moralisweb3/sol-api@2.26.3
- moralis@2.26.3
- Updated dependencies [
ea0b14b4d2
,54bbb312fe
,36f3d57d2b
,db90d9b887
]:- @moralisweb3/evm-api@2.26.2
- moralis@2.26.2
- @moralisweb3/api-utils@2.26.2
- @moralisweb3/auth@2.26.2
- @moralisweb3/common-auth-utils@2.26.2
- @moralisweb3/common-core@2.26.2
- @moralisweb3/sol-api@2.26.2
- Updated dependencies [
50d341a8ed
]:- @moralisweb3/evm-api@2.26.1
- moralis@2.26.1
- @moralisweb3/api-utils@2.26.1
- @moralisweb3/auth@2.26.1
- @moralisweb3/common-auth-utils@2.26.1
- @moralisweb3/common-core@2.26.1
- @moralisweb3/sol-api@2.26.1
- Updated dependencies [
a5c088bc4a
,a5c088bc4a
,a5c088bc4a
]:- @moralisweb3/evm-api@2.26.0
- moralis@2.26.0
- @moralisweb3/api-utils@2.26.0
- @moralisweb3/auth@2.26.0
- @moralisweb3/common-auth-utils@2.26.0
- @moralisweb3/common-core@2.26.0
- @moralisweb3/sol-api@2.26.0
- Updated dependencies [
10ee58ef60
]:- @moralisweb3/evm-api@2.25.4
- moralis@2.25.4
- @moralisweb3/api-utils@2.25.4
- @moralisweb3/auth@2.25.4
- @moralisweb3/common-auth-utils@2.25.4
- @moralisweb3/common-core@2.25.4
- @moralisweb3/sol-api@2.25.4
- Updated dependencies [
961c409610
]:- @moralisweb3/evm-api@2.25.3
- moralis@2.25.3
- @moralisweb3/api-utils@2.25.3
- @moralisweb3/auth@2.25.3
- @moralisweb3/common-auth-utils@2.25.3
- @moralisweb3/common-core@2.25.3
- @moralisweb3/sol-api@2.25.3
- Updated dependencies [
3415bf5a7f
]:- @moralisweb3/evm-api@2.25.2
- moralis@2.25.2
- @moralisweb3/api-utils@2.25.2
- @moralisweb3/auth@2.25.2
- @moralisweb3/common-auth-utils@2.25.2
- @moralisweb3/common-core@2.25.2
- @moralisweb3/sol-api@2.25.2
- Updated dependencies [
cb5b17e5ea
]:- @moralisweb3/evm-api@2.25.1
- moralis@2.25.1
- @moralisweb3/api-utils@2.25.1
- @moralisweb3/auth@2.25.1
- @moralisweb3/common-auth-utils@2.25.1
- @moralisweb3/common-core@2.25.1
- @moralisweb3/sol-api@2.25.1
- Updated dependencies [
5caa82758
,31d73a721
,31d73a721
]:- @moralisweb3/evm-api@2.25.0
- moralis@2.25.0
- @moralisweb3/api-utils@2.25.0
- @moralisweb3/auth@2.25.0
- @moralisweb3/common-auth-utils@2.25.0
- @moralisweb3/common-core@2.25.0
- @moralisweb3/sol-api@2.25.0
- Updated dependencies [
69ce6b585
]:- @moralisweb3/evm-api@2.24.3
- moralis@2.24.3
- @moralisweb3/api-utils@2.24.3
- @moralisweb3/auth@2.24.3
- @moralisweb3/common-auth-utils@2.24.3
- @moralisweb3/common-core@2.24.3
- @moralisweb3/sol-api@2.24.3
- Updated dependencies [
b6f6e182f
]:- @moralisweb3/evm-api@2.24.2
- moralis@2.24.2
- @moralisweb3/api-utils@2.24.2
- @moralisweb3/auth@2.24.2
- @moralisweb3/common-auth-utils@2.24.2
- @moralisweb3/common-core@2.24.2
- @moralisweb3/sol-api@2.24.2
- Updated dependencies [
7ef12018e
]:- @moralisweb3/evm-api@2.24.1
- moralis@2.24.1
- @moralisweb3/api-utils@2.24.1
- @moralisweb3/auth@2.24.1
- @moralisweb3/common-auth-utils@2.24.1
- @moralisweb3/common-core@2.24.1
- @moralisweb3/sol-api@2.24.1
- Updated dependencies [
444c0dd54
,444c0dd54
]:- @moralisweb3/sol-api@2.24.0
- moralis@2.24.0
- @moralisweb3/api-utils@2.24.0
- @moralisweb3/auth@2.24.0
- @moralisweb3/common-auth-utils@2.24.0
- @moralisweb3/common-core@2.24.0
- @moralisweb3/evm-api@2.24.0
- Updated dependencies [
11fb29d8b
]:- @moralisweb3/evm-api@2.23.2
- moralis@2.23.2
- @moralisweb3/api-utils@2.23.2
- @moralisweb3/auth@2.23.2
- @moralisweb3/common-auth-utils@2.23.2
- @moralisweb3/common-core@2.23.2
- @moralisweb3/sol-api@2.23.2
- Updated dependencies [
7e2b9ffc7
]:- @moralisweb3/evm-api@2.23.1
- moralis@2.23.1
- @moralisweb3/api-utils@2.23.1
- @moralisweb3/auth@2.23.1
- @moralisweb3/common-auth-utils@2.23.1
- @moralisweb3/common-core@2.23.1
- @moralisweb3/sol-api@2.23.1
-
#1164
18c36c8b0
Thanks @b4rtaz! - This version implements breaking changes in the Moralis EVM API.Deleted endpoints:
getErc20Approvals
,getErc20Burns
,getErc20Mints
,getErc20Transfers
,searchNFTs
.
New endpoints:
getBlockStats
,getNFTCollectionStats
,getNFTTokenStats
,getTokenStats
,getWalletStats
.
Updated endpoints:
getTokenTransfers
,getNFTs
,getWalletNFTCollections
,getNFTTrades
,getNFTTransfers
,getContractNFTTransfers
,getNFTOwners
,getTokenAddressTransfers
,getWalletTokenIdTransfers
,getAllTokenIds
,getNFTTransfersFromToBlock
,getNFTTransfersByBlock
,getTokenIdOwners
,getTransactions
,getContractEvents
- thetotal
field in the response is not available anymore, thedisable_total
parameter is now removed,getNFTTransfers
- doesn't support thedirection
parameter anymore,getLogsByAddress
- thetopic0
parameter is now required,topic1
,topic2
andtopic3
are now removed.
- Updated dependencies [
18c36c8b0
]:- @moralisweb3/evm-api@2.23.0
- moralis@2.23.0
- @moralisweb3/api-utils@2.23.0
- @moralisweb3/auth@2.23.0
- @moralisweb3/common-auth-utils@2.23.0
- @moralisweb3/common-core@2.23.0
- @moralisweb3/sol-api@2.23.0
- Updated dependencies [
a1dca27df
]:- @moralisweb3/evm-api@2.22.5
- moralis@2.22.5
- @moralisweb3/api-utils@2.22.5
- @moralisweb3/auth@2.22.5
- @moralisweb3/common-auth-utils@2.22.5
- @moralisweb3/common-core@2.22.5
- @moralisweb3/sol-api@2.22.5
- Updated dependencies [
7a646d14b
]:- @moralisweb3/evm-api@2.22.4
- moralis@2.22.4
- @moralisweb3/api-utils@2.22.4
- @moralisweb3/auth@2.22.4
- @moralisweb3/common-auth-utils@2.22.4
- @moralisweb3/common-core@2.22.4
- @moralisweb3/sol-api@2.22.4
- Updated dependencies [
da8400258
]:- @moralisweb3/evm-api@2.22.3
- moralis@2.22.3
- @moralisweb3/api-utils@2.22.3
- @moralisweb3/auth@2.22.3
- @moralisweb3/common-auth-utils@2.22.3
- @moralisweb3/common-core@2.22.3
- @moralisweb3/sol-api@2.22.3
- Updated dependencies [
a41684c26
]:- moralis@2.22.2
- @moralisweb3/api-utils@2.22.2
- @moralisweb3/auth@2.22.2
- @moralisweb3/common-auth-utils@2.22.2
- @moralisweb3/common-core@2.22.2
- @moralisweb3/evm-api@2.22.2
- @moralisweb3/sol-api@2.22.2
- Updated dependencies [
a9ba7092f
]:- moralis@2.22.1
- @moralisweb3/api-utils@2.22.1
- @moralisweb3/auth@2.22.1
- @moralisweb3/common-auth-utils@2.22.1
- @moralisweb3/common-core@2.22.1
- @moralisweb3/evm-api@2.22.1
- @moralisweb3/sol-api@2.22.1
- Updated dependencies [
9dc253b1e
]:- @moralisweb3/sol-api@2.22.0
- moralis@2.22.0
- @moralisweb3/api-utils@2.22.0
- @moralisweb3/auth@2.22.0
- @moralisweb3/common-auth-utils@2.22.0
- @moralisweb3/common-core@2.22.0
- @moralisweb3/evm-api@2.22.0
- Updated dependencies [
465394674
,98035a86d
]:- @moralisweb3/common-core@2.21.0
- moralis@2.21.0
- @moralisweb3/evm-api@2.21.0
- @moralisweb3/sol-api@2.21.0
- @moralisweb3/auth@2.21.0
- @moralisweb3/api-utils@2.21.0
- @moralisweb3/common-auth-utils@2.21.0
- Updated dependencies [
0f5444575
,8a3bef8c2
,0f5444575
,833feaf20
,0f5444575
,0f5444575
,26f20c88a
,26f20c88a
]:- @moralisweb3/evm-api@2.20.0
- moralis@2.20.0
- @moralisweb3/auth@2.20.0
- @moralisweb3/api-utils@2.20.0
- @moralisweb3/common-auth-utils@2.20.0
- @moralisweb3/common-core@2.20.0
- @moralisweb3/sol-api@2.20.0
- Updated dependencies [
1de42875b
]:- moralis@2.19.1
- @moralisweb3/evm-api@2.19.1
- @moralisweb3/api-utils@2.19.1
- @moralisweb3/auth@2.19.1
- @moralisweb3/common-auth-utils@2.19.1
- @moralisweb3/common-core@2.19.1
- @moralisweb3/sol-api@2.19.1
-
#1109
5c26cdc28
Thanks @Y0moo! - Removed Core configuration for MoralisNextApi. Accepts onlyauthentication
andapiKey
now -
Updated dependencies [
d6f6476a7
,586a71133
,d6f6476a7
,586a71133
,586a71133
,586a71133
,393291c73
]:- @moralisweb3/evm-api@2.19.0
- moralis@2.19.0
- @moralisweb3/sol-api@2.19.0
- @moralisweb3/auth@2.19.0
- @moralisweb3/common-auth-utils@2.19.0
- @moralisweb3/common-core@2.19.0
- @moralisweb3/api-utils@2.19.0
- Updated dependencies [
dafeca247
]:- @moralisweb3/api-utils@2.18.4
- @moralisweb3/auth@2.18.4
- @moralisweb3/common-auth-utils@2.18.4
- @moralisweb3/common-core@2.18.4
- @moralisweb3/evm-api@2.18.4
- @moralisweb3/sol-api@2.18.4
- moralis@2.18.4
-
#1085
700ce4b4e
Thanks @Y0moo! - useEvmResolveENSDomain hook added -
Updated dependencies [
6e1fc78fd
,a3c5e35fe
]:- @moralisweb3/evm-api@2.18.3
- moralis@2.18.3
- @moralisweb3/api-utils@2.18.3
- @moralisweb3/auth@2.18.3
- @moralisweb3/common-auth-utils@2.18.3
- @moralisweb3/common-core@2.18.3
- @moralisweb3/sol-api@2.18.3
- Updated dependencies [
8caf91365
]:- @moralisweb3/evm-api@2.18.2
- @moralisweb3/api-utils@2.18.2
- @moralisweb3/auth@2.18.2
- @moralisweb3/common-auth-utils@2.18.2
- @moralisweb3/common-core@2.18.2
- @moralisweb3/sol-api@2.18.2
- moralis@2.18.2
- Updated dependencies [
98a35355f
]:- @moralisweb3/evm-api@2.18.1
- @moralisweb3/api-utils@2.18.1
- @moralisweb3/auth@2.18.1
- @moralisweb3/common-auth-utils@2.18.1
- @moralisweb3/common-core@2.18.1
- @moralisweb3/sol-api@2.18.1
- moralis@2.18.1
-
#1056
3e031685b
Thanks @ErnoW! - AddgetErc20Transfers
endpoint atMoralis.EvmApi.token.getErc20Transfers()
-
#1066
9fba6e55a
Thanks @ErnoW! - Add processed media for nfts
- Updated dependencies [
2f102c48c
,4ad15182b
,3e031685b
,2d99b05c7
,9fba6e55a
,6d8dbacb7
,957587789
,ff40a18f1
,ecc414aaf
]:- @moralisweb3/evm-api@2.18.0
- @moralisweb3/api-utils@2.18.0
- @moralisweb3/common-auth-utils@2.18.0
- @moralisweb3/auth@2.18.0
- @moralisweb3/sol-api@2.18.0
- @moralisweb3/common-core@2.18.0
- moralis@2.18.0
-
#1060
24af1116f
Thanks @b4rtaz! - Restored CommonJS bundle format. -
Updated dependencies [
e96c34ab4
]:- @moralisweb3/api-utils@2.17.0
- @moralisweb3/evm-api@2.17.0
- @moralisweb3/auth@2.17.0
- @moralisweb3/common-auth-utils@2.17.0
- @moralisweb3/common-core@2.17.0
- @moralisweb3/sol-api@2.17.0
- moralis@2.17.0
-
Updated dependencies [
8981730d6
]:- @moralisweb3/api-utils@2.16.1
- @moralisweb3/auth@2.16.1
- @moralisweb3/common-auth-utils@2.16.1
- @moralisweb3/common-core@2.16.1
- @moralisweb3/evm-api@2.16.1
- moralis@2.16.1
- @moralisweb3/sol-api@2.16.1
-
#1045
f706d2dce
Thanks @ErnoW! - Update next-auth dependency to fix potential OAuth vulnerability -
#1046
95ba96bce
Thanks @Y0moo! - Fixed Error: "Cannot read properties of null (reading 'operation')" -
Updated dependencies []:
- @moralisweb3/api-utils@2.16.0
- @moralisweb3/auth@2.16.0
- @moralisweb3/common-auth-utils@2.16.0
- @moralisweb3/common-core@2.16.0
- @moralisweb3/evm-api@2.16.0
- @moralisweb3/sol-api@2.16.0
- moralis@2.16.0
- Updated dependencies [
521534f81
]:- @moralisweb3/common-auth-utils@2.15.0
- @moralisweb3/common-core@2.15.0
- @moralisweb3/api-utils@2.15.0
- @moralisweb3/evm-api@2.15.0
- @moralisweb3/sol-api@2.15.0
- @moralisweb3/auth@2.15.0
- moralis@2.15.0
- Updated dependencies []:
- @moralisweb3/api-utils@2.14.3
- @moralisweb3/auth@2.14.3
- @moralisweb3/common-auth-utils@2.14.3
- @moralisweb3/common-core@2.14.3
- @moralisweb3/evm-api@2.14.3
- @moralisweb3/sol-api@2.14.3
- moralis@2.14.3
-
#1014
7949ea1fe
Thanks @ErnoW! - Seperate sdk headers based on sdk type -
Updated dependencies [
7949ea1fe
]:- @moralisweb3/api-utils@2.14.2
- @moralisweb3/auth@2.14.2
- @moralisweb3/common-auth-utils@2.14.2
- @moralisweb3/common-core@2.14.2
- @moralisweb3/evm-api@2.14.2
- @moralisweb3/sol-api@2.14.2
- moralis@2.14.2
- Updated dependencies [
3838ea2c8
]:- moralis@2.14.1
- @moralisweb3/api-utils@2.14.1
- @moralisweb3/auth@2.14.1
- @moralisweb3/common-auth-utils@2.14.1
- @moralisweb3/common-core@2.14.1
- @moralisweb3/evm-api@2.14.1
- @moralisweb3/sol-api@2.14.1
- Updated dependencies [
055f0f47a
]:- @moralisweb3/common-auth-utils@2.14.0
- @moralisweb3/auth@2.14.0
- @moralisweb3/api-utils@2.14.0
- @moralisweb3/common-core@2.14.0
- @moralisweb3/evm-api@2.14.0
- @moralisweb3/sol-api@2.14.0
- moralis@2.14.0
-
#1001
5876132c3
Thanks @Y0moo! - Fix: unexpected missing chainId errors -
Updated dependencies [
abb77d713
]:- @moralisweb3/api-utils@2.13.0
- @moralisweb3/auth@2.13.0
- @moralisweb3/common-auth-utils@2.13.0
- @moralisweb3/common-core@2.13.0
- @moralisweb3/evm-api@2.13.0
- @moralisweb3/sol-api@2.13.0
- moralis@2.13.0
- Updated dependencies [
a16b47566
,89f1dcd43
,301490a3d
]:- @moralisweb3/common-auth-utils@2.12.0
- @moralisweb3/evm-api@2.12.0
- @moralisweb3/auth@2.12.0
- @moralisweb3/api-utils@2.12.0
- @moralisweb3/common-core@2.12.0
- @moralisweb3/sol-api@2.12.0
- moralis@2.12.0
-
#953
cf2a8e36e
Thanks @ErnoW! - Fix requests that can return null response -
#953
fa40ad7b0
Thanks @ErnoW! - Fix issues related to several NextJS hooks, due to the serialisation of the request -
#946
dc3f66250
Thanks @b4rtaz! - Added a new parameter to theMoralisNextAuthProvider
class:payload
. It allows to keep some extra information in the session. -
Updated dependencies []:
- @moralisweb3/api-utils@2.11.1
- @moralisweb3/auth@2.11.1
- @moralisweb3/common-auth-utils@2.11.1
- @moralisweb3/common-core@2.11.1
- @moralisweb3/evm-api@2.11.1
- @moralisweb3/sol-api@2.11.1
- moralis@2.11.1
- Updated dependencies [
98bd66b8e
]:- @moralisweb3/evm-api@2.11.0
- @moralisweb3/api-utils@2.11.0
- @moralisweb3/auth@2.11.0
- @moralisweb3/common-auth-utils@2.11.0
- @moralisweb3/sol-api@2.11.0
- moralis@2.11.0
- Updated dependencies []:
- @moralisweb3/api-utils@2.10.3
- @moralisweb3/auth@2.10.3
- @moralisweb3/common-auth-utils@2.10.3
- @moralisweb3/evm-api@2.10.3
- @moralisweb3/sol-api@2.10.3
- moralis@2.10.3
-
#912
26848dc2d
Thanks @ErnoW! - Update api types to include latest features and fixes of evmApi and streams. This includes:- removal of deprecated
subdomain
andproviderUrl
params - evm endpooint for
getMultipleNFTs
- evm endpoint updated for
getNFTContractTransfers
to includefromBlock
,toBlock
,fromDate
andtoDate
params - streams support for
getNativeBalances
- removal of deprecated
-
Updated dependencies [
26848dc2d
]:- @moralisweb3/api-utils@2.10.2
- @moralisweb3/auth@2.10.2
- @moralisweb3/common-auth-utils@2.10.2
- @moralisweb3/evm-api@2.10.2
- moralis@2.10.2
- @moralisweb3/sol-api@2.10.2
- Updated dependencies []:
- @moralisweb3/api-utils@2.10.1
- @moralisweb3/auth@2.10.1
- @moralisweb3/common-auth-utils@2.10.1
- @moralisweb3/evm-api@2.10.1
- @moralisweb3/sol-api@2.10.1
- moralis@2.10.1
-
#901
ee6440fed
Thanks @Y0moo! - Improved Error handling for MoralisNextAuthProvider -
#899
328f8ecda
Thanks @Y0moo! - Fixed infinite rerender when provide Moralis DataTypes as a hook param -
#898
2dcf75f8a
Thanks @b4rtaz! - Updatedaxios
dependency to 1.2.x. -
Updated dependencies [
2dcf75f8a
,b703c5517
]:- @moralisweb3/api-utils@2.10.0
- @moralisweb3/evm-api@2.10.0
- @moralisweb3/auth@2.10.0
- @moralisweb3/common-auth-utils@2.10.0
- @moralisweb3/sol-api@2.10.0
- moralis@2.10.0
-
#872
8428ad9b5
Thanks @Y0moo! - - Added more data fetching examples to the @moralisweb3/next's README- Deprecation warning for
isValidating
. It'll be replaced withisFetching
. - Deprecation warning for
refetch
. It'll be replaced withfetch
. - No data will be fetched if params were not provided to the hook.
fetch()
function returnes a response value
- Deprecation warning for
-
Updated dependencies [
a8c2175c2
,f709e1179
,31ef229ad
]:- @moralisweb3/evm-api@2.9.0
- @moralisweb3/api-utils@2.9.0
- @moralisweb3/auth@2.9.0
- @moralisweb3/common-auth-utils@2.9.0
- @moralisweb3/sol-api@2.9.0
- moralis@2.9.0
- Updated dependencies []:
- @moralisweb3/api-utils@2.8.2
- @moralisweb3/auth@2.8.2
- @moralisweb3/common-auth-utils@2.8.2
- @moralisweb3/evm-api@2.8.2
- @moralisweb3/sol-api@2.8.2
- moralis@2.8.2
- #859
3b584866
Thanks @Y0moo! - 1. No infinite rerenders when pass Moralis Datatypes to the hooks as params. 2. No unexpected challenge requests when userequestChallengeAsync
from the challenge hooks. - Updated dependencies []:
- @moralisweb3/api-utils@2.8.1
- @moralisweb3/auth@2.8.1
- @moralisweb3/common-auth-utils@2.8.1
- @moralisweb3/evm-api@2.8.1
- @moralisweb3/sol-api@2.8.1
- moralis@2.8.1
-
#846
1374573d
Thanks @ErnoW! - # Api responses (breaking change)For any api call, you get a resultAdapter response. The value of the
toJSON()
value has changed. Now it is the same value as.raw
. Previously this caused a lot of confusion, and as both return a json. The value of this method has changed. So if you used.toJSON()
on an api result you can:- Use
.result
, this will probably contain dataTypes with lots of utility functions. If you only care about the data, you can call.format()
or.toJSON()
on this datatype. This is the prefered way as it provides you wilt additional utilites and extra properties. We suggest you to use Typescript, to easily see the available properties/methods on these datatypes. - Or. use the new values (or values from
.raw
), these values are identical as they are provided by the internal api, without any data transformation. The types might be different than before, so please check this (we suggest to use Typescript, as all responses are typed, otherwise you can log the output and see any differences)
If you're using some of our internal packages @moralisweb3/core for example then these names have been changed to differentiate between server-side packages, and packages that are compatible with client-side and server-side. We name these common-*. This is a first step to provide better client-side support:
@moralisweb3/core
->@moralisweb3/common-core
@moralisweb3/evm-utils
->@moralisweb3/common-evm-utils
@moralisweb3/sol-utils
->@moralisweb3/common-sol-utils
Change your dependencies in package.json and the corresponding imports in your code to the new names.
For the time being, the old packages will remain, and we use them to forward to the common-* package, this will be removed in a future version, so please update to the new package name.
For easy integration we created a nextJs package. See
packages/next
. This contains:- hooks to all api endpoints
- adapter to integrate into NextJs authentication via Moralis Auth
For a demo check out
demos/nextjs
The parameters and return types are now exported for every api operation. These are exported from
moralis/common-evm-utils
for evm api methodsmoralis/common-sol-utils
for sol api methodsmoralis/common-auth-utils
for auth methodsmoralis/common-streams-utils
for streams methods
For example:
import Moralis from 'moralis'; import { GetContractNFTsRequest, EvmChain, GetContractNFTsResponse } from 'moralis/common-evm-utils'; const getBlockOptions: GetContractNFTsRequest = { address: '0xd8da6bf26964af9d7eed9e03e53415d37aa96045', chain: EvmChain.ETHEREUM, }; let result: GetContractNFTsResponse; const response = await Moralis.EvmApi.nft.getContractNFTs(getBlockOptions); result = response.result;
As a first step to provide better client-side support, all datatypes are now usable in server-side and client-side.
- Use