Skip to content

Releases: hedzr/evendeep

v0.4.8

03 Jun 06:28
03c2fc0
Compare
Choose a tag to compare
bump to v0.4.8

  - fixed: check unexported field recursively now
  - improved some lines for better context logging in debugging
  - little changes

v0.4.7

05 Mar 07:10
616e31e
Compare
Choose a tag to compare
bump to v0.4.7

v0.4.3

05 Mar 00:52
0351e4c
Compare
Choose a tag to compare
bump to v0.4.3

- v0.4.3
  - fixed sometimes a ptr to new slice has not been cleaned in time

v0.4.1

04 Mar 16:59
9f85bf4
Compare
Choose a tag to compare
bump to v0.4.1

- v0.4.1
  - public `dbglog` subpackage, added Err/Wrn/Colored
  - added ability to disable dbglog.Log at runtime
  - improved internal functions (tool.Valfmt, cl.SetUnexportedFieldIfMap, ...)
  - improved dbglog.Log outputting
  - fixed bugs

v0.4.0

01 Mar 16:15
7a300a5
Compare
Choose a tag to compare
bump to v0.4.0

- v0.4.0
  - fixed autonew when copying to nil member
  - improved diff on chan
  - better logging (verbose) with colors

v0.3.1

11 Feb 06:16
2febdb4
Compare
Choose a tag to compare
bump to v0.3.1

- v0.3.1
  - changed: `dbglog.LogValid` is constant now
  - improved code style
  - DeepCopy:
    - passing nil parameters can return safely without panic any more
  - DeepDiff:
    - imp/fea: `diff.WithStripPointerAtFirst` - locate the final objects and compare them
    - imp/fea: `diff.WithTreatEmptyStructPtrAsNilPtr` - when comparing two pointers in struct field loop, assume nil and pointer to an empty struct is identical
    - imp/fea: `diff.WithCompareDifferentTypeStructs` - you can compare two struct with different type, their fields could be `diff` by its name
    - imp/fea: `diff.WithIgnoreUnmatchedFields` - this is default option for `diff.WithCompareDifferentTypeStructs(true)` mode, the field names unmatched couldn't take effects to comparing result
    - imp/fea: `diff.WithCompareDifferentSizeArrays` - `[2]string{"1","2"}` and `[3]string{"1","2",<empty>}` can be assumed as identity
    - By default,
      - they're assumed as identity: nil and zero array/map.
      - they're not identical: nil ptr to struct, and ptr to empty struct (can be overridden by `WithTreatEmptyStructPtrAsNilPtr`).
      - the slice elements' order is sensitive, except you're `diff` with `WithSliceOrderedComparison(true)`.

v0.2.56

30 Jan 15:09
6874168
Compare
Choose a tag to compare
bump to v0.2.56

  - changed: `InvalidStrategy` is -1 now since we got untyped int overflow error in auto-gen code by stringer

v0.2.53

30 Jan 10:48
16678e8
Compare
Choose a tag to compare
bump to v0.2.53

  - improved code style, format, ...
  - to fore-prevent low-performance and large-memory usage when retrieve expanded fields from a very large struct, use `cms.ByOrdinal` instead default `cms.ByName`
  - added new strategy `cms.Flat` and field tag to identify a pointer should be shallow copy to target field,
    ```go
    package main
    type A struct {
        field1 *ComplexStruct `copy:",flat"`
    }
    ```

v0.2.51

29 Jan 10:42
c1135e3
Compare
Choose a tag to compare
bump to v0.2.51

  - improved code style, format, ...
  - review most of testcases
  - improved/fixed edge conditions
  - added `duff,WithStripPointerAtFirst(b)`, `diff.WithSliceNoOrder(b)` options

v0.2.50

01 May 03:45
786bf21
Compare
Choose a tag to compare
bump v0.2.50