Jump to content
McKay Development

node-steam-tradeoffer-manager v2.0.0-beta1


GitHub

Recommended Posts

This is the first beta release of TradeOfferManager v2. There are many breaking changes, so please update your code accordingly.

You can install it using npm install steam-tradeoffer-manager@beta.

  • BREAKING Node.js v4 or later is now required and TradeOfferManager will not run on lower versions of Node
  • BREAKING Removed message and token arguments from TradeOffer#send
    • See below for how you can specify a trade offer message and/or token now
  • BREAKING Removed autoRetry from TradeOffer#accept
    • The functionality has been removed entirely
  • BREAKING Removed getEscrowDuration from both TradeOfferManager and from TradeOffer
    • Use getUserDetails instead (see below)
  • BREAKING Removed TradeOfferManager.getStateName and EResult.getName
    • Use TradeOfferManager.ETradeOfferState[value] and TradeOfferManager.EResult[value] instead, respectively
  • BREAKING Removed obsolete and unofficial enum values (such as EConfirmationMethod.Mobile and ETradeOfferState.EmailPending)
  • Added value-to-name mappings to bundled enums (except EOfferFilter) so you can do ESomeEnum[value] directly to get its string representation
  • Added TradeOffer#setMessage
  • Added TradeOffer#setToken
  • You can now provide trade tokens directly in TradeOfferManager#createOffer
  • You can now use trade URLs instead of SteamIDs in TradeOfferManager#createOffer
  • Added TradeOffer#getUserDetails
    • Replaces TradeOfferManager#getEscrowDuration and TradeOffer#getEscrowDuration
  • Added offerList event
  • Now uses gzip compression in WebAPI responses
  • Improved some security by running remove JavaScript from steamcommunity.com in VMs instead of using eval() directly
  • Some of the simpler dependencies (languages, deep-equal, clone) are now bundled in the npm download


View on GitHub
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...