
Today, we’re bringing skynet-js 3.0 out of beta. With the latest version of our Javascript SDK for Skynet, we’re cleaning up lots of small details to prepare for long-term stability and create a foundation for our upcoming work focusing on increased code-reuse and data sharing between skapps.
Since some of the changes break full backward compatibility, we’re calling this v3. This release also marked our first use of a beta release stream, and we’ll continue to roll-out new features and updates on it. Try it with npm install [email protected]
or take a look at the instructions in our documentation.
Some of the new changes and features to watch out for (including those that require changes to your code):
- A
getFileContent
method for requesting a skyfile’s content for use in your code - New client/method parameter for downloading files without a metadata header
- Additional type checking on API calls
- Use of Javascript’s new BigInt type for registry revisions
- Upload methods and
getMetadata
now return an object — allowing for additional data to be returned along with the original results
Marcin has written a full updating guide for v3, which you can check out for more info.
I’m very excited about the future of the SDK and the web applications it’ll empower!