All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- update
pinContent
method: add property 'asLink' that allow use ipfsCluster for pinning@subsocial/utils
- remove
memoize
for createPostSlug fn
- add nacl realisation for asymmetric encryption to
@subsocial/utils
- fix
adminClient
for IPFS instance
- add
saveJson
for IPFS instance with sorting and compressing of JSON
- improve
getContent
for IPFS instance - add
headers
for IPFS constructor
- add
properties
forpinContent
in IPFS instance
- deprecated
useServer
for IPFS - add headers for IPFS constructor
- add HTTP support for connecting to Substrate node
- add adminClient for IPFS instance for better management of IPFS
- 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
- 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
- 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
- Remove
profiles
from elastic index types
- Fix behavior of
simpleFormatBalance
currency
argument not working
- add
get-metadata.js
for definitions, for fast updating types after chain upgrades - support
createSpaceAsProfile
in definitions
- add
parseTwitterToMarkdown
andcreateTwitterURL
to@subsocial/utils
, for support parsing Twitter posts to Markdown and creating Twitter saved content provided by Post4ever
We have done really huge update of our SDK. Get feedback of our early
- 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