New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dat-node

Package Overview
Dependencies
Maintainers
15
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dat-node - npm Package Versions

1
8

2.0.0

Diff

Changelog

Source

2.0.0 - 2017-04-13

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.

Changed

  • Using mirror-folder for importing files - this comes with a new event emitter for importing and different options.
  • Storage is a lot different! You can specify a directory or a storage function, e.g. Dat(ram, cb) now instead of the database.

Removed

  • 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.
  • Import options - mirror-folder has fewer options on import.
jhand
published 1.4.1 •

Changelog

Source

1.4.1 - 2017-03-17

Fixed

  • Pass network opts through to discovery-swarm.
jhand
published 1.4.0 •

Changelog

Source

1.4.0 - 2017-03-08

Added

  • .datignore support for ignoring files
  • Callback on joinNetwork after first round of discovery
  • Initial pause and resume API aliased to join and leave
  • stats.peers API with new peer counts

Fixed

  • Better leave network, also closes swarm.
  • Clone options passed to initArchive
  • Set opts.file for archive owner without length
  • createIfMissing passed to level options
  • dat.close() twice sync errors
  • Fix import without options
  • (hyperdrive fix) sparse content archives

Changed

  • Remove automatic finalize for snapshot imports
jhand
published 1.3.8 •

Changelog

Source

1.3.8 - 2017-02-20

Fixed

  • Close archive after bad key on init.
jhand
published 1.3.7 •

Changelog

Source

1.3.7 - 2017-02-15

Changed

  • Rollback temporary changes from 1.3.6
  • Set length on file option
  • Remove hyperdrive version pin
jhand
published 1.3.6 •

Changelog

Source

1.3.6 - 2017-02-13

Changed

  • Temporary changes for critical replication bugs
  • Pin hyperdrive to 7.13.2
  • Remove length option in raf
  • Do not allow owner to download
  • Do not set file option for owner
jhand
published 1.3.5 •

Changelog

Source

1.3.5 - 2017-02-04

Fixed

  • Key regression on resume
jhand
published 1.3.4 •

Changelog

Source

1.3.4 - 2017-02-03

Fixed

  • Call back with error if opts.key mismatches keys in database
  • Fix options casting and improve errors
  • Improve key handling for archive databases + debug info
jhand
published 1.3.3 •

Changelog

Source

1.3.3 - 2017-02-01

Fixed

  • Call back with error object on init archive
jhand
published 1.3.2 •

Changelog

Source

1.3.2 - 2017-02-01

Fixed

  • Do not mutate input args
  • Call unreplicate on close to make sure data replication stops
  • Throw error if close is called more than once
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc