Node module for creating dat compatible tools on file systems [ DEPRECATED - More info on active projects and modules at https://dat-ecosystem.org/ ]
Update hyperdrive to fix relative path security issue.
https://github.com/datproject/dat-node/compare/v3.5.14...v3.5.15
Big new release! Hyperdrive version 8 upgrades to our SLEEP file format. The hyperdrive release improves import, transfer speed, and metadata access. It includes a new API much like the node fs API. Lots of cool things!
We've tried to keep the dat-node API changes to a minimum. But we've moved away from using leveldb to storing the metadata, using a flat file format instead. This means the 2.0 release will be incompatible with exiting dat archives.
If you have any old archives, we definitely recommend you upgrade. Any upgrade time will be made up for with more speed!
The major API differences are listed below, we probably forgot some minor changes as several of the underlying modules have changes options or APIs.
mirror-folder
for importing files - this comes with a new event emitter for importing and different options.Dat(ram, cb)
now instead of the database.opts.db
option - no more database! You can specify a variety of storage formats as the first argument instead.dat.owner
- this is now dat.writable
.stats
events - we are still in the process of upgrading hyperdrive-stats. Hypercore will also support more stats internally now and we will be transitioning to those soon.mirror-folder
has fewer options on import.A rainy Wednesday in Portland, OR means it is time for a new release!
The theme for this release is networks! We knew that networks each have their own peculiarities. We are learning that clear network information and debugging tools can help make up for network confusion. Unlike a web server, which may be either on or off, a distributed network can have many states. With this release we try to make those various states clearer.
Not network related, but still pretty cool:
.datignore
file to ignore anything in your dat directory! ?The next minor (or maybe major?) release will be super exciting!!!!! Mafintosh has been busy SLEEPing and getting ready to improve Dat transfer and import speeds a ton. Some details
.datignore
Add a .datignore
file to any dat to ignore files on import. Turn it off with the option useDatIgnore = false
on the import function call.
dat.stats.peers
The stats API now has peer counts! We provide a few different peer counts so you can give accurate information about the state of the network.
peers.total
- total number of connected peerspeers.complete
- connected peers with a full replication of content datapeers.downloadingFrom
- connected peers the user has downloaded data fromNote that these are only tallied for current connections (no cache kept for offline peers).
dat.joinNetwork(opts, cb)
dat.joinNetwork([opts], [cb])
now has a callback option. This will callback after the first round of discovery has finished. With that you can check if any peers are online for a given key.
dat.pause()
& dat.resume()
dat.pause()
and dat.resume()
allow you to start and stop transfers on demand! It is aliased to join
and leave
right now but we'll make it fancier soon ? .
.datignore
support for ignoring filesjoinNetwork
after first round of discoverypause
and resume
API aliased to join
and leave
stats.peers
API with new peer countsopts.file
for archive owner without lengthcreateIfMissing
passed to level optionsdat.close()
twice sync errors