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: stephenh/ts-proto
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.181.1
Choose a base ref
...
head repository: stephenh/ts-proto
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.0.2
Choose a head ref
  • 16 commits
  • 278 files changed
  • 3 contributors

Commits on Aug 15, 2024

  1. fix: toJSON Function with removeEnumPrefix=true and `unrecognizedEn…

    …umValue=0` Options (#1089)
    
    close: #1086 
    
    This PR addresses the issue described in #1086, where the `toJSON`
    function generated by ts-proto incorrectly serializes enum values when
    both the `removeEnumPrefix=true` and `unrecognizedEnumValue=0` options
    are used.
    
    The expected behavior is that, even with `removeEnumPrefix=true`, the
    `toJSON` function should encode the enum values using their original
    string values, including the prefix. However, the bug causes the
    function to encode the enum values without the prefix, leading to
    incorrect JSON serialization.
    
    To fix this, the PR updates the `toJSON` function to correctly use the
    original enum name, including the prefix, when encoding. This is
    achieved by storing the `originalName` alongside the `UnrecognizedEnum`
    value and using it during serialization.
    
    This change ensures that the enum values are correctly serialized with
    their full names, aligning the behavior with the expected output when
    these options are enabled.
    
    If this code format doesn't align with the maintainer's preferences,
    please feel free to modify it as needed.
    kanziw authored Aug 15, 2024
    Configuration menu
    Copy the full SHA
    2401490 View commit details
    Browse the repository at this point in the history
  2. chore(release): 1.181.2 [skip ci]

    ## [1.181.2](v1.181.1...v1.181.2) (2024-08-15)
    
    ### Bug Fixes
    
    * toJSON Function with `removeEnumPrefix=true` and `unrecognizedEnumValue=0` Options ([#1089](#1089)) ([2401490](2401490)), closes [#1086](#1086) [#1086](#1086)
    semantic-release-bot committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    290d0c5 View commit details
    Browse the repository at this point in the history
  3. feat!: Replace protobuf.js

    stephenh committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    6a9ee1d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    069a874 View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2024

  1. chore: Bump node.

    stephenh committed Aug 16, 2024
    Configuration menu
    Copy the full SHA
    44756cf View commit details
    Browse the repository at this point in the history
  2. chore: Bump yarn.

    stephenh committed Aug 16, 2024
    Configuration menu
    Copy the full SHA
    633bcb4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    00ed234 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e801110 View commit details
    Browse the repository at this point in the history
  5. chore: Bump typescript/tsx.

    stephenh committed Aug 16, 2024
    Configuration menu
    Copy the full SHA
    3b2865a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    3cf703d View commit details
    Browse the repository at this point in the history
  7. chore(release): 2.0.0 [skip ci]

    # [2.0.0](v1.181.2...v2.0.0) (2024-08-16)
    semantic-release-bot committed Aug 16, 2024
    Configuration menu
    Copy the full SHA
    f9bd6d7 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    3ecd498 View commit details
    Browse the repository at this point in the history
  9. chore(release): 2.0.1 [skip ci]

    ## [2.0.1](v2.0.0...v2.0.1) (2024-08-16)
    
    ### Bug Fixes
    
    * Fix build from typescript bump. ([3ecd498](3ecd498))
    semantic-release-bot committed Aug 16, 2024
    Configuration menu
    Copy the full SHA
    b65d40a View commit details
    Browse the repository at this point in the history
  10. docs: Add 2.x release notes.

    stephenh committed Aug 16, 2024
    Configuration menu
    Copy the full SHA
    5e058bb View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    f1c23d2 View commit details
    Browse the repository at this point in the history
  12. chore(release): 2.0.2 [skip ci]

    ## [2.0.2](v2.0.1...v2.0.2) (2024-08-16)
    
    ### Bug Fixes
    
    * Fix version loading in new dist layout. ([#1091](#1091)) ([f1c23d2](f1c23d2))
    semantic-release-bot committed Aug 16, 2024
    Configuration menu
    Copy the full SHA
    c4cfc90 View commit details
    Browse the repository at this point in the history
Loading