Changelog
For the latest beta changes, see CHANGELOG-BETA.md.
[3.0.2]
Added
- Add portalUrl response field to 
getFileContentsandgetMetadata. 
Changed
- A new optimization causes 
db.setJSONto complete significantly faster. - The size of the bundled SDK has been reduced by more than 60% by changing crypto dependencies.
 - Fix a bug where registry entries with empty data were rejected.
 
[3.0.0]
Added
getFileContentandgetFileContentHnsmethods have been added for getting the content of a file from a skylink or Handshake domain without downloading the file in-browser.noResponseMetadataoption was added to the download options.
Changed
- [Breaking change] Entry revisions are now 
bigintinstead ofnumber. - [Breaking change] Upload methods return full objects instead of just a skylink string.
 - [Breaking change] Upload request methods were removed.
 - [Breaking change] 
getMetadatareturns a full object containing the metadata in a subfield. - [Breaking change] The registry timeout has changed to take seconds instead of milliseconds.
 - [Breaking change] 
db.getJSONcan return destructured nulls instead of null - [Breaking change] 
registry.getEntryonly returnsnullon entry-not-found. - Almost every API method now has the potential to throw. A common cause would be wrongly-typed inputs to a method, which are now checked.
 
Removed
- [Breaking change] 
executeRequestwas removed. 
[2.9.0]
Added
- Support for downloading skylinks with paths (either pre-encoded in the skylink, or with the 
pathparameter not encoded). - Support for returning skylinks from 
getSkylinkUrlanddownloadFilein subdomain form. - Added 
includePath,onlyPath, andfromSubdomainoptions toparseSkylink, allowing getting the path with/without the skylink as well as parsing skylinks in base32 subdomain form. 
Changed
- Fixed bug in 
getJSONwhere fetching an inexistent entry would cause an error. 
[2.8.0]
Added
downloadFileandgetSkylinkUrlnow accept asubdomainoption which makes them return the skylink in subdomain format.parseSkylinknow accepts asubdomainoption which parses the skylink as a base32 subdomain in a URL.
Changed
- Trying to use the skykeyName or skykeyId parameters now results in an error, as previously users may not have realized they were unimplemented.
 
[2.7.0]
Note: this version contains breaking changes to deriveChildSeed.
Changed
- [Breaking change] Fix 
deriveChildSeedbugs. It will now return hex-encoded strings. Note that it will now return different values than before these bugs were fixed. - Fix 
setJSONfunction not using hex-encoded publickeys when making its request. - Do not use a timeout for 
setEntryby default (was 5s previously). - Fix a bug when calling 
setJSONwithrevision = 0wheresetJSONwould fetch the latest revision anyway. 
[2.6.0]
Added
- Add 
getEntryUrl 
Changed
- Fix 
genKeyPair*functions 
[2.5.0]
Note: this version contains breaking changes in the SkyDB and Registry APIs.
Changed
- [Breaking change] Rename 
keyPairFromSeedtogenKeyPairFromSeedand have it return keys in the form of hex strings. - [Breaking change] Rename 
generateKeyPairAndSeedtogenKeyPairAndSeedand have it return keys in the form of hex strings. - [Breaking change] Use hex strings as keys as inputs to 
getJSON,setJSON,getEntry, andsetEntry. - [Breaking change] 
setEntryno longer takes adatakeyargument as it is already inentry. 
[2.4.0]
Changed
- Add crypto API for generating seeds and deriving subkeys.
 
[2.3.1]
Changed
- Fix compatibility issue that made 
getEntrynot work in the browser. 
[2.3.0]
Changed
- Simplified registry API.
 
[2.2.0]
Changed
- Change SkyDB and Registry APIs.
 
[2.1.1]
Changed
- Improve timeout handling for SkyDB
 - Extend end-to-end tests
 
[2.1.0]
Added
- Add SkyDB support
 
Changed
- Move to Typescript
 
[2.0.9]
Changed
- Fix some bugs with skylink parsing.
 
[2.0.8]
Changed
- Revert 2.0.7 and fix 
uploadFilefilename bug. 
[2.0.7]
Changed
- Revert: “Fixed a bug causing 
uploadFileto not work.” introduced in 2.0.4 
[2.0.6]
Changed
- Fixed a bug in server-side rendering where 
typeofwas not used forwindow. 
[2.0.5]
Changed
- Fixed a bug in server-side rendering where 
windowwasundefined. 
[2.0.4]
Changes
- Fixed a bug causing 
uploadFileto not work. 
[2.0.3]
Changed
- Remove some test code that made it into the published version.
 
[2.0.2]
Added
- MIT license
 
Changed
regeneratorRuntimeerror when packaging withwebpackhas been fixed.
[2.0.1]
Changed
- Publish only compiled version (resolves issues with webpack).
 
[2.0.0]
Prior version numbers skipped to maintain parity with API.
Added
downloadFileHns,openFileHns,resolveSkylinkHnsgetHnsUrl,getHnsresUrlcustomFilenameandcustomDirnameupload options
Changed
downloadandopenwere renamed todownloadFileandopenFile.uploadwas renamed touploadFileand the response was changed to only include a skylink. To obtain the full response as in the oldupload, use the newuploadFileRequest.getDownloadUrlhas been renamed togetSkylinkUrl.- Connection options can now be passed to the client, in addition to individual API calls, to be applied to all API calls.
 - The 
defaultPortalUrlstring has been renamed todefaultSkynetPortalUrlanddefaultPortalUrlis now a function. 
[0.1.0] - 2020-07-29
Added
- New 
SkynetClientclass that must be initialized to call methods such asuploadanddownload. - New utility helpers such as 
getRelativeFilePathanddefaultPortalUrl. 
Changed
- Most standalone functions are now methods on the 
SkynetClient. Previous code that was callingupload(...)instead ofclient.upload(...)will no longer work.