gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

CHANGELOG.md (2977B)


      1 ## 1.5.0
      2 
      3 * New option `IgnoreUntaggedFields` to ignore decoding to any fields
      4   without `mapstructure` (or the configured tag name) set [GH-277]
      5 * New option `ErrorUnset` which makes it an error if any fields
      6   in a target struct are not set by the decoding process. [GH-225]
      7 * New function `OrComposeDecodeHookFunc` to help compose decode hooks. [GH-240]
      8 * Decoding to slice from array no longer crashes [GH-265]
      9 * Decode nested struct pointers to map [GH-271]
     10 * Fix issue where `,squash` was ignored if `Squash` option was set. [GH-280]
     11 * Fix issue where fields with `,omitempty` would sometimes decode
     12   into a map with an empty string key [GH-281]
     13 
     14 ## 1.4.3
     15 
     16 * Fix cases where `json.Number` didn't decode properly [GH-261]
     17 
     18 ## 1.4.2
     19 
     20 * Custom name matchers to support any sort of casing, formatting, etc. for
     21   field names. [GH-250]
     22 * Fix possible panic in ComposeDecodeHookFunc [GH-251]
     23 
     24 ## 1.4.1
     25 
     26 * Fix regression where `*time.Time` value would be set to empty and not be sent
     27   to decode hooks properly [GH-232]
     28 
     29 ## 1.4.0
     30 
     31 * A new decode hook type `DecodeHookFuncValue` has been added that has
     32   access to the full values. [GH-183]
     33 * Squash is now supported with embedded fields that are struct pointers [GH-205]
     34 * Empty strings will convert to 0 for all numeric types when weakly decoding [GH-206]
     35 
     36 ## 1.3.3
     37 
     38 * Decoding maps from maps creates a settable value for decode hooks [GH-203]
     39 
     40 ## 1.3.2
     41 
     42 * Decode into interface type with a struct value is supported [GH-187]
     43 
     44 ## 1.3.1
     45 
     46 * Squash should only squash embedded structs. [GH-194]
     47 
     48 ## 1.3.0
     49 
     50 * Added `",omitempty"` support. This will ignore zero values in the source
     51   structure when encoding. [GH-145]
     52 
     53 ## 1.2.3
     54 
     55 * Fix duplicate entries in Keys list with pointer values. [GH-185]
     56 
     57 ## 1.2.2
     58 
     59 * Do not add unsettable (unexported) values to the unused metadata key
     60   or "remain" value. [GH-150]
     61 
     62 ## 1.2.1
     63 
     64 * Go modules checksum mismatch fix
     65 
     66 ## 1.2.0
     67 
     68 * Added support to capture unused values in a field using the `",remain"` value
     69   in the mapstructure tag. There is an example to showcase usage.
     70 * Added `DecoderConfig` option to always squash embedded structs
     71 * `json.Number` can decode into `uint` types
     72 * Empty slices are preserved and not replaced with nil slices
     73 * Fix panic that can occur in when decoding a map into a nil slice of structs
     74 * Improved package documentation for godoc
     75 
     76 ## 1.1.2
     77 
     78 * Fix error when decode hook decodes interface implementation into interface
     79   type. [GH-140]
     80 
     81 ## 1.1.1
     82 
     83 * Fix panic that can happen in `decodePtr`
     84 
     85 ## 1.1.0
     86 
     87 * Added `StringToIPHookFunc` to convert `string` to `net.IP` and `net.IPNet` [GH-133]
     88 * Support struct to struct decoding [GH-137]
     89 * If source map value is nil, then destination map value is nil (instead of empty)
     90 * If source slice value is nil, then destination slice value is nil (instead of empty)
     91 * If source pointer is nil, then destination pointer is set to nil (instead of
     92   allocated zero value of type)
     93 
     94 ## 1.0.0
     95 
     96 * Initial tagged stable release.