Skip to content

Upgrading ohash 1 to 2

Review needed1.1.6 → 2.0.12Changed9Fixed12Other10

Review neededUpgrade verdict

9 behavior changes.

  • Hashing objects with many entries is now faster.
  • Hashing objects and class instances is now faster.
  • Comparing two values is now faster because it walks them only once.
  • serialize: Faster serialization of typed arrays and objects with string keys.
Nothing to change

No breaking, platform, security or deprecated items in this range.

Nothing in this upgrade needs a code or configuration change.

Generated by DepDelta from published .d.ts files. Not mixed with prose notes.

  • added: function isEqual(object1: any, object2: any): boolean
  • added: function digest(message: string): string
  • added: function digest(data: string): string
  • removed: export { d as diff } from './shared/ohash.[hash]'
  • removed: export { i as isEqual } from './shared/ohash.[hash]'
  • removed: export { o as objectHash } from './shared/ohash.[hash]'
  • removed: export { o as serialize } from './shared/ohash.[hash]'
  • removed: function digest(message: string): string
  • removed: function murmurHash(key: Uint8Array | string, seed?: number): number
  • removed: function sha256(message: string): string
  • removed: function sha256base64(message: string): string
  • changed: function hash(object: any, options?: HashOptions): string → function hash(input: any): string
  • added: export { digest }
  • added: export { isEqual }
  • added: function serialize(input: any): string
  • removed: function d(obj1: any, obj2: any, opts?: HashOptions): DiffEntry[]
  • removed: function i(object1: any, object2: any, hashOptions?: HashOptions): boolean
  • removed: function o(object: any, options?: HashOptions): string
  • removed: interface H
  • removed: property H.excludeKeys?: ((key: string) => boolean) | undefined
  • removed: property H.excludeValues?: boolean | undefined
  • removed: property H.ignoreUnknown?: boolean | undefined
  • removed: property H.replacer?: ((value: any) => any) | undefined
  • removed: property H.respectFunctionNames?: boolean | undefined
  • removed: property H.respectFunctionProperties?: boolean | undefined
  • removed: property H.respectType?: boolean | undefined
  • removed: property H.unorderedArrays?: boolean | undefined
  • removed: property H.unorderedObjects?: boolean | undefined
  • removed: property H.unorderedSets?: boolean | undefined
  • removed: export { d as diff } from './shared/ohash.[hash]'
  • removed: export { i as isEqual } from './shared/ohash.[hash]'
  • added: export { isEqual }
  • added: function diff(obj1: any, obj2: any): DiffEntry[]