Skip to content

Upgrading hive 0.1 to 0.2

Breaking0.1.1 → 0.2.0Breaking3New1Changed2

BreakingUpgrade verdict

3 breaking changes.

  • The Migrator API is no longer available.
  • Some APIs changed in ways that may require code updates.
  • Stored data now uses little-endian byte order, which may affect existing data.
3 items need code or config changes
Breaking3
Removes Migrator.
Migrator
Makes minor API changes.
Changes Endianness to little.
Endianness

Generated by DepDelta from published Dart source. Not mixed with prose notes.

  • removed: class HiveInstance: abstract implements TypeRegistry
  • removed: get HiveInstance.home: Directory
  • removed: method BinaryReader.readUnsignedInt32(): int
  • removed: method BinaryWriter.writeUnsigenedInt32(int value): void
  • removed: method Box.getBoxFile(): File
  • removed: method HiveInstance.box( String name, { List<int> encryptionKey, int version, Migrator migrator, }): Future<Box>
  • removed: method HiveInstance.close({bool compact = …}): Future
  • removed: method HiveInstance.deleteFromDisk(): Future
  • removed: method HiveInstance.generateSecureKey(): List<int>
  • removed: method HiveInstance.init(String path): void
  • removed: method HiveInstance.isBoxOpen(String name): bool
  • removed: typedef Migrator = FutureOr Function(int oldVersion, int newVersion, Box box)
  • changed: method BinaryReader.readBytes(int bytes): List<int> → method BinaryReader.readBytes(int bytes): Uint8List
  • changed: method BinaryReader.readString( [int byteCount, Converter<List<int>, String> decoder = …]): String → method BinaryReader.readString([ int byteCount, Converter<List<int>, String> decoder = …, ]): String
  • changed: method BinaryReader.readStringList( [int length, Converter<List<int>, String> decoder = …]): List<String> → method BinaryReader.readStringList([ int length, Converter<List<int>, String> decoder = …, ]): List<String>
  • changed: method BinaryReader.viewBytes(int bytes): List<int> → method BinaryReader.viewBytes(int bytes): Uint8List
  • changed: method BinaryWriter.writeBytes(Uint8List bytes): void → method BinaryWriter.writeBytes(List<int> bytes): void
  • changed: method Box.allKeys(): Future<Iterable<String>> → method Box.allKeys(): Iterable<String>
  • changed: method Box.has(String key): Future<bool> → method Box.has(String key): bool
  • changed: variable Hive: final HiveInstance → variable Hive: final HiveInterface
  • added: class HiveInterface: abstract implements TypeRegistry
  • added: get Box.path: String
  • added: get HiveInterface.path: String
  • added: method BinaryReader.readUint32(): int
  • added: method BinaryWriter.writeUint32(int value): void
  • added: method HiveInterface.box( String name, { List<int> encryptionKey, bool inMemory = …, }): Future<Box>
  • added: method HiveInterface.close({bool compact = …}): Future
  • added: method HiveInterface.deleteFromDisk(): Future
  • added: method HiveInterface.generateSecureKey(): List<int>
  • added: method HiveInterface.init(String path): void
  • added: method HiveInterface.isBoxOpen(String name): bool