Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: tinylib/msgp
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.2.2
Choose a base ref
...
head repository: tinylib/msgp
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.2.3
Choose a head ref
  • 4 commits
  • 14 files changed
  • 1 contributor

Commits on Oct 3, 2024

  1. Add install to quickstart (#370)

    This seems like a fairly important thing to have in the quickstart.
    klauspost authored Oct 3, 2024
    Configuration menu
    Copy the full SHA
    9279415 View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2024

  1. Add "clearomitted" directive (#373)

    * Add "clearomitted" directive
    
    Adds `//msgp:clearomitted` directive.
    
    This will cause all `omitempty` and `omitzero` fields to be set to the zero value on Unmarshal and Decode, and the field wasn't present in the marshalled data.
    
    This can be useful when de-serializing into reused objects, that can have values set for these, and we want to avoid clearing all fields, but also don't want existing fields to leak through.
    
    Fields are tracked through a bit mask, and zeroed after the unmarshal loop, if no value has been written.
    
    This does not affect marshaling.
    klauspost authored Oct 22, 2024
    Configuration menu
    Copy the full SHA
    6da1c88 View commit details
    Browse the repository at this point in the history
  2. Fix allownil propagated to byte slices as slice elements (#374)

    `[][]byte` would assume that the byte slices had allownil set. This would cause an extra `if x == nil {x = make([]byte,0)}` to be inserted on elements.
    
    Regression from #363
    klauspost authored Oct 22, 2024
    Configuration menu
    Copy the full SHA
    65798b6 View commit details
    Browse the repository at this point in the history
  3. Fix allownil on maps elements (#375)

    * Fix allownil on maps elements
    * Also set for primitives.
    
    Similar to #374 map `[]byte` elements would also inherit allownil unintentionally.
    klauspost authored Oct 22, 2024
    Configuration menu
    Copy the full SHA
    4558fbf View commit details
    Browse the repository at this point in the history
Loading