Skip to content

Latest commit

 

History

History
415 lines (265 loc) · 20.6 KB

CHANGELOG.md

File metadata and controls

415 lines (265 loc) · 20.6 KB

@moralisweb3/streams

2.10.2

Patch Changes

  • #912 26848dc2d Thanks @ErnoW! - Update api types to include latest features and fixes of evmApi and streams. This includes:

    • removal of deprecated subdomain and providerUrl params
    • evm endpooint for getMultipleNFTs
    • evm endpoint updated for getNFTContractTransfers to include fromBlock, toBlock, fromDate and toDate params
    • streams support for getNativeBalances
  • Updated dependencies [26848dc2d]:

    • @moralisweb3/api-utils@2.10.2
    • @moralisweb3/common-core@2.10.2
    • @moralisweb3/common-evm-utils@2.10.2
    • @moralisweb3/common-streams-utils@2.10.2

2.10.1

Patch Changes

  • Updated dependencies [33230c43c]:
    • @moralisweb3/common-evm-utils@2.10.1
    • @moralisweb3/api-utils@2.10.1
    • @moralisweb3/common-core@2.10.1
    • @moralisweb3/common-streams-utils@2.10.1

2.10.0

Patch Changes

  • Updated dependencies [439d6e564, 2dcf75f8a, 52a8160d9, b703c5517]:
    • @moralisweb3/common-core@2.10.0
    • @moralisweb3/api-utils@2.10.0
    • @moralisweb3/common-evm-utils@2.10.0
    • @moralisweb3/common-streams-utils@2.10.0

2.9.0

Patch Changes

  • #885 aa86dc0f1 Thanks @b4rtaz! - The LogParser class supports now a case when the parser from the @ethersproject/abi package returns an instance of the Indexed class.

  • Updated dependencies [a8c2175c2, 338ee39e8, f709e1179, 31ef229ad, 248089ffa]:

    • @moralisweb3/common-evm-utils@2.9.0
    • @moralisweb3/common-core@2.9.0
    • @moralisweb3/api-utils@2.9.0
    • @moralisweb3/common-streams-utils@2.9.0

2.8.2

Patch Changes

  • Updated dependencies [0cefcef6, 0cefcef6]:
    • @moralisweb3/common-evm-utils@2.8.2
    • @moralisweb3/api-utils@2.8.2
    • @moralisweb3/common-core@2.8.2
    • @moralisweb3/common-streams-utils@2.8.2

2.8.1

Patch Changes

  • Updated dependencies []:
    • @moralisweb3/api-utils@2.8.1
    • @moralisweb3/common-core@2.8.1
    • @moralisweb3/common-evm-utils@2.8.1
    • @moralisweb3/common-streams-utils@2.8.1

2.8.0

Minor Changes

  • #777 f1336a35 Thanks @ErnoW! - Move @moralisweb3/core package to @moralisweb3/common-core
  • #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)

    Package name changes (deprecated, upcomming breaking change)

    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:

    Migration guide

    • @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.

    NextJs package

    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

    Operation types

    The parameters and return types are now exported for every api operation. These are exported from

    • moralis/common-evm-utils for evm api methods
    • moralis/common-sol-utils for sol api methods
    • moralis/common-auth-utils for auth methods
    • moralis/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;

    Dataytypes support in client-side projects

    As a first step to provide better client-side support, all datatypes are now usable in server-side and client-side.

Patch Changes

  • #804 6382cc1c Thanks @b4rtaz! - Fix errors due to changes in webhook data for log parser function and update parse server streams docs

  • Updated dependencies [f1336a35, 62036ef3, 1374573d]:

    • @moralisweb3/api-utils@2.8.0
    • @moralisweb3/common-core@2.8.0
    • @moralisweb3/common-evm-utils@2.8.0
    • @moralisweb3/common-streams-utils@2.8.0

2.7.4

Patch Changes

  • #818 bc293674 Thanks @ErnoW! - Update api types for streams: include types for stream usage

  • Updated dependencies [a18b46ae, 08622cd9]:

    • @moralisweb3/evm-utils@2.7.4
    • @moralisweb3/core@2.7.4
    • @moralisweb3/api-utils@2.7.4

2.7.3

Patch Changes

  • Updated dependencies []:
    • @moralisweb3/core@2.7.3
    • @moralisweb3/api-utils@2.7.3
    • @moralisweb3/evm-utils@2.7.3

2.7.2

Patch Changes

  • #784 a1bbd61f Thanks @sogunshola! - Fix errors due to changes in webhook data for log parser function and update parse server streams docs

  • Updated dependencies []:

    • @moralisweb3/core@2.7.2
    • @moralisweb3/api-utils@2.7.2
    • @moralisweb3/evm-utils@2.7.2

2.7.1

Patch Changes

  • #790 2f938764 Thanks @b4rtaz! - Add missing dependency to the @moralisweb3/streams package.

  • Updated dependencies []:

    • @moralisweb3/core@2.7.1
    • @moralisweb3/api-utils@2.7.1
    • @moralisweb3/evm-utils@2.7.1

2.7.0

Minor Changes

  • #782 07c8ca69 Thanks @sogunshola! - Incuded parse server package with streams plugin implementation and added document builder to streams package.
  • #782 07c8ca69 Thanks @sogunshola! - Included parse server package and added document builder logic to streams package

Patch Changes

  • Updated dependencies []:
    • @moralisweb3/core@2.7.0
    • @moralisweb3/api-utils@2.7.0
    • @moralisweb3/evm-utils@2.7.0

2.6.7

Patch Changes

  • #768 6701030e Thanks @sogunshola! - Move streams-typings from dev dependencies to dependencies in streams package and also correct export name in umbrella package

  • Updated dependencies []:

    • @moralisweb3/core@2.6.7
    • @moralisweb3/api-utils@2.6.7
    • @moralisweb3/evm-utils@2.6.7

2.6.6

Patch Changes

  • Updated dependencies [11ba50f7, d87f37c5]:
    • @moralisweb3/evm-utils@2.6.6
    • @moralisweb3/core@2.6.6
    • @moralisweb3/api-utils@2.6.6

2.6.5

Patch Changes

  • #744 9953a791 Thanks @ErnoW! - Update types and endpoints for Moralis.Streams to reflect the api changes. Some types have changes, Moralis.Streams.retry now accepts an id and is fixed. And return types from webhooks have been updated.

  • Updated dependencies []:

    • @moralisweb3/core@2.6.5
    • @moralisweb3/api-utils@2.6.5
    • @moralisweb3/evm-utils@2.6.5

2.6.4

Patch Changes

  • 4af4eb8a Thanks @ErnoW! - Fix dependency/dev-dependency issue with streams-typings

  • Updated dependencies [77eb29bf]:

    • @moralisweb3/api-utils@2.6.4
    • @moralisweb3/core@2.6.4
    • @moralisweb3/evm-utils@2.6.4

2.6.3

Patch Changes

  • #729 cfd23005 Thanks @ErnoW! - Update types from swagger

  • Updated dependencies []:

    • @moralisweb3/core@2.6.3
    • @moralisweb3/api-utils@2.6.3
    • @moralisweb3/evm-utils@2.6.3

2.6.2

Patch Changes

  • ed6dfb2e Thanks @ErnoW! - Fix put call to post call for Moralis.Streams.addAddress
  • #727 68c8057a Thanks @ErnoW! - Update streams api types

  • Updated dependencies []:

    • @moralisweb3/core@2.6.2
    • @moralisweb3/api-utils@2.6.2
    • @moralisweb3/evm-utils@2.6.2

2.6.1

Patch Changes

  • #715 f3cd2b5c Thanks @ErnoW! - Update types according to api changes: remove address and tokenAddress, add includeContractLogs, includeInternalTxs and allAddresses flags, and mape topic0 an array
  • #714 42893723 Thanks @ErnoW! - Rename network param to networkType for Moralis.Streams and Moralis.Auth, to communicate more clearly the purpose of this param. Also make this value optional and default to "evm"
  • #722 36a4096d Thanks @ErnoW! - Add advancedOptions to Morlais.Streams (and remove filter)

  • Updated dependencies [bfea2ba5, 42893723]:

    • @moralisweb3/evm-utils@2.6.1
    • @moralisweb3/core@2.6.1
    • @moralisweb3/api-utils@2.6.1

2.6.0

Minor Changes

  • #707 683b6ce8 Thanks @ErnoW! - Add endpoints to attach, delete or get addresses to streams via Moralis.Streams.addAddress, Moralis.Streams.getAddresses, and Moralis.Streams.deleteAddress

Patch Changes

  • Updated dependencies []:
    • @moralisweb3/core@2.6.0
    • @moralisweb3/api-utils@2.6.0
    • @moralisweb3/evm-utils@2.6.0

2.5.8

Patch Changes

  • Updated dependencies []:
    • @moralisweb3/core@2.5.8
    • @moralisweb3/api-utils@2.5.8
    • @moralisweb3/evm-utils@2.5.8

2.5.7

Patch Changes

  • Updated dependencies []:
    • @moralisweb3/core@2.5.7
    • @moralisweb3/api-utils@2.5.7
    • @moralisweb3/evm-utils@2.5.7

2.5.6

Patch Changes

  • Updated dependencies []:
    • @moralisweb3/core@2.5.6
    • @moralisweb3/api-utils@2.5.6
    • @moralisweb3/evm-utils@2.5.6

2.5.5

Patch Changes

  • #699 d79800ad Thanks @ErnoW! - Fix parsing of API error messages, now the MoralisError will show the message that is returned from the api.

  • Updated dependencies [d79800ad]:

    • @moralisweb3/core@2.5.5
    • @moralisweb3/api-utils@2.5.5
    • @moralisweb3/evm-utils@2.5.5

2.5.4

Patch Changes

  • Updated dependencies [62275677]:
    • @moralisweb3/evm-utils@2.5.4
    • @moralisweb3/core@2.5.4
    • @moralisweb3/api-utils@2.5.4

2.5.3

Patch Changes

  • #692 008de89f Thanks @ErnoW! - Update typings for streams: update @moralisweb3/streams-typings to v1.0.2

  • Updated dependencies []:

    • @moralisweb3/core@2.5.3
    • @moralisweb3/api-utils@2.5.3
    • @moralisweb3/evm-utils@2.5.3

2.5.2

Patch Changes

  • #689 500ddaf3 Thanks @ErnoW! - Export types for returned webhooks

  • Updated dependencies []:

    • @moralisweb3/core@2.5.2
    • @moralisweb3/api-utils@2.5.2
    • @moralisweb3/evm-utils@2.5.2

2.5.1

Patch Changes

  • #685 688dc414 Thanks @ErnoW! - Fix for providing a custom type to Moralis.Streams.parsedLogs<MyEvent>(). This now works as expected, and the returned type is of MyEvent[]

  • Updated dependencies []:

    • @moralisweb3/core@2.5.1
    • @moralisweb3/api-utils@2.5.1
    • @moralisweb3/evm-utils@2.5.1

2.5.0

Minor Changes

  • #683 cd9a9ce5 Thanks @ErnoW! - Add Moralis.Streams.retry() to retry failed webhooks, and add Moralis.Streams.updateStatus() to update the status of a webhook.
  • #677 b5f3bc77 Thanks @ErnoW! - Add Moralis.Streams.getHistory to get all failed webhooks

Patch Changes

  • Updated dependencies [c719cc2f]:
    • @moralisweb3/core@2.5.0
    • @moralisweb3/api-utils@2.5.0
    • @moralisweb3/evm-utils@2.5.0

2.4.0

Minor Changes

  • #658 7fffd1e4 Thanks @sogunshola! - Intergrating stream API in code base, creating a new package @moralisweb3/streams

Patch Changes

  • Updated dependencies [7fffd1e4]:
    • @moralisweb3/api-utils@2.4.0
    • @moralisweb3/core@2.4.0
    • @moralisweb3/evm-utils@2.4.0