Changelog
[4.3.0]
client.getFileContentBinary
and client.getFileContentBinaryHns
methods for downloading binary data.chunkSizeMultiplier
option for large file uploads.staggerPercent
option for more efficient uploading of large file uploads.getFileContentHns
error due to bad skylink comparison. By @parajbs in https://github.com/SkynetLabs/skynet-js/issues/479Changelog
[4.1.0]
client.db.getJSON
no longer returns { data, revision }
but instead { data, skylink }
.client.db.setJSON
no longer accepts a revision number.skylink
response field to dataLink
.sia://
prefixes to the skylinks returned from SkyDB.RegistryEntry.datakey
to dataKey
for consistency.data
that is type Uint8Array
instead of string
.getSkylinkUrl
, downloadFile
, openFile
, and the HNS equivalents are all now async
.getFileContent
and getFileContentHns
no longer return metadata objects.noResponseMetadata
custom option from download and HNS download methods.getMetadata
now takes a CustomGetMetadataOptions
object for custom options.resolveHns
option endpointDownloadHnsres
to endpointResolveHns
.getHnsUrl
now defaults to subdomain: true
.client.portalUrl
is now an async method instead of a variable.sia:
skylink prefix has been changed to sia://
.getEntry
timeout
option has been removed as it no longer has an effect.uriHandshakeResolverPrefix
.merkleRoot
and bitfield
from upload response.client.dbV2
and mySky.dbV2
.dbV2.setJSON
does not make a network request to get the latest revision
number, so you must always call dbV2.getJSON
first.client.loadMySky
.MySky
and DacLibrary
types. See the docs for everything you can do with this new functionality.client.extractDomain
, client.getFullDomainUrl
, extractDomainForPortal
, getFullDomainUrlForPortal
.client.file.getJSON
.client.file.getJSONEncrypted
.client.file.getEntryLink
.Permission
export.Keypair
and KeyPairAndSeed
crypto types.validateRegistryProof
function.decryptJSONFile
, encryptJSONFile
,
ENCRYPTED_JSON_RESPONSE_VERSION
, and EncryptedJSONResponse
.db.deleteJSON
and mySky.deleteJSON
.db.setDataLink
.db.getEntryData
, db.setEntryData
, db.deleteEntryData
.cachedDataLink
option to db.getJSON
. This lets us avoid getting the data again if the latest data link matches the cached data link.getEntryLink
and mysky.getEntryLink
.getEntryUrlForPortal
, getSkylinkUrlForPortal
.signEntry
helper function.client.registry.postSignedEntry
helper method.skyd
are now type
ExecuteRequestError
.
AxiosError
.skyd
.ExecuteRequestError
also contains .responseMessage
and
.responseStatus
.ExecuteRequestError
can be used with instanceof
(unlike AxiosError).executeRequest
.customCookie
client option.onDownloadProgress
client option.client.initPortalUrl
method to manually initialize the portal URL before it is needed.errorPages
and tryFiles
options for directory uploads.SKYNET_JS_INTEGRATION_TEST_CUSTOM_COOKIE
env var.client.pinSkylink
.isSkylinkV1
and isSkylinkV2
.range
option to download options.convertSkylinkToBase64
.skyd
requests now contain the full, descriptive error
response returned from skyd
.resolveHNS
method now works for Handshake domains with skyns://
HNS entries.