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.
Types of changes:
Added
for new features.Changed
for changes in existing functionality.Removed
for now removed features.Deprecated
for soon-to-be removed features.Fixed
for any bug fixes.Security
in case of vulnerabilities.
- A bug has been fixed in
downloadFileHns
where it was creating a detached promise.
disableDefaultPath
option foruploadDirectory
.format
option fordownloadFile
anddownloadFileHns
.
stringToUint8ArrayUtf8
anduint8ArrayToStringUtf8
conversion utilities (for working with registry entries).- Export more methods from
skynet-js
:downloadFileHns
getHnsUrl
,getHnsresUrl
getFileContent
,getFileContentBinary
,getFileContentHns
,getFileContentBinaryHns
resolveHns
,pinSkylink
file.getJSON
- Add
uploadData
anddownloadData
. - Add SkyDB and SkyDB V2 (accessed with
client.db
andclient.dbV2
). By @parajbs in #140
- Fix
skynetApiKey
not being passed for certain methods.
- Add
skynetApiKey
option for portal API keys.
- Fix Options not being marshaled from the
nodejs
client to theskynet-js
client. - Fix an issue with
client.getEntryLink
. - Fix
skynet-js
client initialization in Node context (portal URL undefined).
- Added
client.getMetadata
.
- Fixed bug with paths containing
.
and..
as inputs touploadDirectory
.
- Added
client.getSkylinkUrl
. - Added
client.file.getEntryData
andclient.file.getEntryLink
. - Added
client.db.setDataLink
. - Added
client.registry.getEntry
,client.registry.getEntryUrl
,client.registry.getEntryLink
,client.registry.setEntry
, andclient.registry.postSignedEntry
. - Added
genKeyPairAndSeed
,genKeyPairFromSeed
,getEntryLink
function exports.
- Added
errorPages
andtryFiles
options when uploading directories
- Fixed custom client portal URL being ignored
- Added tus protocol to
uploadFile
for large, resumable file uploads. - Added ability to set custom cookies.
- Fixed length limits for request bodies.
- Fixed upload errors due to missing headers.
- Remove leading slash in directory path before uploading an absolute path.
customDirname
upload option
- This SDK has been updated to match Browser JS and require a client. You will first need to create a client and then make all API calls from this client.
- Connection options can now be passed to the client, in addition to individual API calls, to be applied to all API calls.
- The
defaultPortalUrl
string has been renamed todefaultSkynetPortalUrl
anddefaultPortalUrl
is now a function.
- Common Options object
- API authentication
dryRun
option
- Some upload bugs were fixed.
- Upload and download functionality.