Beta versions are released on the beta
stream. The latest beta can be installed with npm install skynet-js@beta
.
For the latest stable changes, see CHANGELOG.md.
- Add portalUrl response field to
getFileContents
andgetMetadata
.
- Fix a bug where registry entries with empty data were rejected.
- The bundle size when building with webpack has been further reduced.
- A new optimization causes
db.setJSON
to complete significantly faster. - The size of the bundled SDK has been reduced by more than 60% by changing crypto dependencies.
This beta version is released on the beta
stream. It can be installed with npm install skynet-js@beta
.
getFileContent
andgetFileContentHns
methods have been added for getting the content of a file from a skylink or Handshake domain without downloading the file in-browser.
- [Breaking change] Entry revisions are now
bigint
instead ofnumber
. - [Breaking change] Upload methods return full objects instead of just a skylink string.
- [Breaking change] Upload request methods were removed.
- [Breaking change]
getMetadata
returns 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.getJSON
can return destructured nulls instead of null - [Breaking change]
registry.getEntry
only returnsnull
on 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.
- [Breaking change]
executeRequest
was removed.