Skip to content

Releases: dappforce/subsocial-js

v0.8.6

14 Mar 17:35
Compare
Choose a tag to compare

0.8.6 - 2023-03-14

Added

  • improve getContent for IPFS instance
  • add headers for IPFS constructor

v0.8.8-beta.0

10 Mar 16:55
Compare
Choose a tag to compare
v0.8.8-beta.0 Pre-release
Pre-release
chore: release v0.8.8-beta.0

v0.8.7-beta.0

10 Mar 16:19
Compare
Choose a tag to compare
v0.8.7-beta.0 Pre-release
Pre-release
chore: release v0.8.7-beta.0

v0.8.6-beta.0

10 Mar 16:04
Compare
Choose a tag to compare
v0.8.6-beta.0 Pre-release
Pre-release
chore: release v0.8.6-beta.0

v0.8.5

10 Mar 15:11
Compare
Choose a tag to compare

0.8.5 - 2023-03-10

Added

  • add properties for pinContent in IPFS instance

v0.8.4

10 Mar 15:06
Compare
Choose a tag to compare

0.8.4 - 2023-03-10

Added

  • deprecated useServer for IPFS
  • add headers for IPFS constructor

v0.8.3

09 Mar 11:52
Compare
Choose a tag to compare

0.8.3 - 2023-03-09

Added

  • add HTTP support for connecting to Substrate node

v.0.8.1

20 Feb 13:51
64c0bde
Compare
Choose a tag to compare

Added

  • Add flatten function for reactions
  • Add findReaction and findReactions to top-level API (wrappers around api.blockchain.findReaction and api.blockchain.findReactions)
  • Add new type ReactionStruct
  • Add new attribute username for Space in Elastic Index type
  • Add typedoc for @subsocial/utils package

Fixed

  • Fix behavior of simpleFormatBalance currency argument not working

Changed

  • Change the return type of ids in api.blockchain functions to string
  • Change argument of createTwitterURL to accept object with only required properties
  • Make api.blockchain.getReactionIdsByAccount private, because its same as api.blockchain.getPostReactionIdsByAccount

Deprecated

  • Make api.base deprecated. All the functionality provided by it are all implemented in the top-level API. e.g. api.base.findPost <=> api.findPost
  • Deprecate handle attribute in Elastic Space type. Use newly added field username instead

Removed

  • Remove profiles from elastic index types

v0.7.13

13 Feb 16:49
Compare
Choose a tag to compare

0.7.13 - 2023-02-13

Added

  • add get-metadata.js for definitions, for fast updating types after chain upgrades
  • support createSpaceAsProfile in definitions

v0.7.12

03 Feb 15:43
Compare
Choose a tag to compare

0.7.12 - 2023-02-03

We have done really huge update of our SDK. Get feedback of our early

Added

  • definitions for Subsocial Parachain Node
  • new methods for IPFS instance:
    • saveContentToIpfs
    • pinContent
    • unpinContent
  • support custom headers for IPFS node:
    • setWriteHeaders
    • setPinHeaders
  • add high level getter for:
    • api.base - get base no-serialized data from blockchain and IPFS
    • api.blockchain - get no-serialized data only from blockchain
    • api.ipfs - get IPFS instance
    • api.substrateApi - get ApiPromise instance
  • add methods to blockchain instance for getting data from roles storages from blockchain:
    • getAccountsWithAnyRoleInSpace
    • getSpaceIdsWithRolesByAccount
    • getSpacePermissionsByAccount
  • add method to blockchain instance for getting counter of storage:
    • postsCountBySpaceId
    • sharesCountByPostId
    • repliesCountByPostId
    • accountFollowersCountByAccountId
    • accountsFollowedCountByAccount
  • add filters arg for find(Space|Post)Structs methods in Subsocial API
  • add methods to SubsocialApi:
    • findSpaces
    • findPosts
    • findProfileSpaces
  • add twitterParser to utils:
    • parseHashtags
    • parseUsernames
    • parseTextToMarkdown
  • add createTwitterURL to utils