Skip to content

v7.0.0

Compare
Choose a tag to compare
@ryanio ryanio released this 08 Dec 15:59
· 207 commits to main since this release
d7286b4

Breaking Changes

  • Deprecated v1 APIs have been removed. This affects:
    • getAsset/getAssets
    • getBundle/getBundles (bundles were removed from OpenSea in Sept 2023)
    • getCollection response updated
  • ethers updated from v5 to v6. This replaces BigNumber usage with bigint, and updates the tsconfig target to es2020
  • The wallet constructor parameter in OpenSeaSDK was removed. Add your provider to your wallet and pass as the first param signerOrProvider
  • The chain parameter in getNFTsByContract/getNFT/refreshNFTMetadata was moved to the end of the parameter list and now defaults to the chain the sdk was initialized on.
  • Legacy exports OpenSeaPort and OpenSeaAPI were removed.
  • Removed parameter retries to simplify code
  • Deprecated createBuyOrder/createSellOrder aliases were removed. Please use createOffer/createListing instead.
  • getPaymentTokens() updated to getPaymentToken() and updated to work across chains

New features

  • getBestListings() endpoint added for getting the best listings for a collection
  • getCollectionStats() endpoint added for getting collection stats
  • getAccount() endpoint added for getting account information from an address
  • offerProtectionEnabled boolean added to buildOffer()
  • All types now provided at top-level export for easier use

Misc.

  • package-lock.json cleared and reinitialized for the latest dependency and sub-dependency updates

PR: #1310