Releases: dappforce/subsocial-js
Releases · dappforce/subsocial-js
v0.8.6
0.8.6 - 2023-03-14
Added
- improve
getContent
for IPFS instance - add
headers
for IPFS constructor
v0.8.8-beta.0
chore: release v0.8.8-beta.0
v0.8.7-beta.0
chore: release v0.8.7-beta.0
v0.8.6-beta.0
chore: release v0.8.6-beta.0
v0.8.5
0.8.5 - 2023-03-10
Added
- add
properties
forpinContent
in IPFS instance
v0.8.4
0.8.4 - 2023-03-10
Added
- deprecated
useServer
for IPFS - add headers for IPFS constructor
v0.8.3
0.8.3 - 2023-03-09
Added
- add HTTP support for connecting to Substrate node
v.0.8.1
Added
- Add flatten function for reactions
- Add
findReaction
andfindReactions
to top-level API (wrappers aroundapi.blockchain.findReaction
andapi.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 asapi.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 fieldusername
instead
Removed
- Remove
profiles
from elastic index types
v0.7.13
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
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 IPFSapi.blockchain
- get no-serialized data only from blockchainapi.ipfs
- get IPFS instanceapi.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 forfind(Space|Post)Structs
methods in Subsocial API - add methods to
SubsocialApi
:- findSpaces
- findPosts
- findProfileSpaces
- add
twitterParser
toutils
:- parseHashtags
- parseUsernames
- parseTextToMarkdown
- add
createTwitterURL
toutils