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: ipfs/protons
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: protons-runtime-v4.0.2
Choose a base ref
...
head repository: ipfs/protons
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: protons-runtime-v5.0.0
Choose a head ref
  • 14 commits
  • 38 files changed
  • 3 contributors

Commits on Jan 12, 2023

  1. chore(release): 6.0.2 [skip ci]

    ## [protons-v6.0.2](protons-v6.0.1...protons-v6.0.2) (2023-01-12)
    
    ### Dependencies
    
    * remove lerna, update aegir ([#76](#76)) ([83a24f2](83a24f2))
    semantic-release-bot committed Jan 12, 2023
    Configuration menu
    Copy the full SHA
    26c569d View commit details
    Browse the repository at this point in the history
  2. feat: add support for maps (#75)

    You can now use maps:
    
    ```protobuf
    message MapTypes {
      map<string, string> stringMap = 1;
    }
    ```
    
    They are deserlialized as ES6 `Map`s and can support keys of any type
    - n.b. protobuf.js deserializes maps as `Object`s and only supports
    round tripping string keys.
    achingbrain authored Jan 12, 2023
    Configuration menu
    Copy the full SHA
    e8dfc0a View commit details
    Browse the repository at this point in the history
  3. chore(release): 6.1.0 [skip ci]

    ## [protons-v6.1.0](protons-v6.0.2...protons-v6.1.0) (2023-01-12)
    
    ### Features
    
    * add support for maps ([#75](#75)) ([e8dfc0a](e8dfc0a))
    semantic-release-bot committed Jan 12, 2023
    Configuration menu
    Copy the full SHA
    51746ec View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2023

  1. fix: support empty messages (#78)

    Empty messages should be supported
    achingbrain authored Jan 17, 2023
    Configuration menu
    Copy the full SHA
    8a02910 View commit details
    Browse the repository at this point in the history
  2. chore(release): 6.1.1 [skip ci]

    ## [protons-v6.1.1](protons-v6.1.0...protons-v6.1.1) (2023-01-17)
    
    ### Bug Fixes
    
    * support empty messages ([#78](#78)) ([8a02910](8a02910))
    semantic-release-bot committed Jan 17, 2023
    Configuration menu
    Copy the full SHA
    3ac2c56 View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2023

  1. fix: throw when unsupported fields are detected (#80)

    `required` is a field in proto2 but not in proto3 so throw if it
    is encountered while generating `.ts` from `.proto`.
    
    It would be better to detect `proto2` from the `syntax` directive
    but it's not in the output of the `pbjs -t json` command.
    
    Fixes #34
    achingbrain authored Jan 31, 2023
    Configuration menu
    Copy the full SHA
    8108875 View commit details
    Browse the repository at this point in the history
  2. chore(release): 6.1.2 [skip ci]

    ## [protons-v6.1.2](protons-v6.1.1...protons-v6.1.2) (2023-01-31)
    
    ### Bug Fixes
    
    * throw when unsupported fields are detected ([#80](#80)) ([8108875](8108875)), closes [#34](#34)
    semantic-release-bot committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    a34a908 View commit details
    Browse the repository at this point in the history
  3. fix: throw when .proto is empty (#81)

    Refuse to compile an empty .proto file
    achingbrain authored Jan 31, 2023
    Configuration menu
    Copy the full SHA
    ed392cb View commit details
    Browse the repository at this point in the history
  4. chore(release): 6.1.3 [skip ci]

    ## [protons-v6.1.3](protons-v6.1.2...protons-v6.1.3) (2023-01-31)
    
    ### Bug Fixes
    
    * throw when .proto is empty ([#81](#81)) ([ed392cb](ed392cb))
    semantic-release-bot committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    311b622 View commit details
    Browse the repository at this point in the history
  5. chore: move bad fixtures to separate directory (#82)

    To allow regenerating good fixtures, move the bad fixtures to
    their own directory.
    achingbrain authored Jan 31, 2023
    Configuration menu
    Copy the full SHA
    76aa198 View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2023

  1. Configuration menu
    Copy the full SHA
    fd2e7a7 View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2023

  1. fix!: singular fields should be optional to write (#83)

    As per [`proto3`'s language guide](https://developers.google.com/protocol-buffers/docs/proto3#specifying_field_rules):
    
    > Message fields can be one of the following:
    >  - singular: a well-formed message can have zero or one of this field (but not more than one). And this is the default field rule for proto3 syntax.
    
    This means that all `proto3` fields are effectively optional when
    writing, so it's relatively easy to implement by accepting a `Partial`
    version of the message interface for encoding.
    
    When reading messages singular fields are initialized to their default
    values when reading and optional values are not so the plain non-`Partial`
    interface can be returned.
    
    This also has the nice side effect of not requiring the user to pass
    empty lists/maps for `repeated` and `map` fields which never really
    felt right.  These values are initialized to their empty forms when
    reading messages from the wire.
    
    Fixes #42
    achingbrain authored Feb 2, 2023
    Configuration menu
    Copy the full SHA
    229afbc View commit details
    Browse the repository at this point in the history
  2. fix: sort imports (#84)

    ipfs/eslint-config-ipfs#126 will introduce
    linting rules on import sorting so order imports during building
    in a way that will comply with the new linting rules.
    achingbrain authored Feb 2, 2023
    Configuration menu
    Copy the full SHA
    6f796f1 View commit details
    Browse the repository at this point in the history
  3. chore(release): 5.0.0 [skip ci]

    ## [protons-runtime-v5.0.0](protons-runtime-v4.0.2...protons-runtime-v5.0.0) (2023-02-02)
    
    ### ⚠ BREAKING CHANGES
    
    * singular fields should be optional to write (#83)
    
    ### Bug Fixes
    
    * singular fields should be optional to write ([#83](#83)) ([229afbc](229afbc)), closes [#42](#42)
    * sort imports ([#84](#84)) ([6f796f1](6f796f1))
    semantic-release-bot committed Feb 2, 2023
    Configuration menu
    Copy the full SHA
    63827d9 View commit details
    Browse the repository at this point in the history
Loading