The way paths are used throughout the webnative and filesystem APIs has changed.
In earlier versions of webnative, API calls expected UNIX style paths.
const bool = await fs.exists("private/some/file")const updatedCID = await fs.mkdir("public/some/directory")
In webnative 0.24, paths are created by path helper functions for files and directories.
const bool = await fs.exists(wn.path.file("private", "some", "file"))const updatedCID = await fs.mkdir(wn.path.directory("public", "some", "directory"))
The docs for the previous API remain available for reference.
The URL for loading webnative from UNPKG has changed. In previous versions, webnative was available as
<script src="https://unpkg.com/[email protected]/dist/index.umd.js"></script>
In webnative 0.26, webnative is available as
<script src="https://unpkg.com/[email protected]/dist/index.min.js"></script>