Skip to content
This repository was archived by the owner on Sep 3, 2021. It is now read-only.
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: multiformats/js-cid
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.5.8
Choose a base ref
...
head repository: multiformats/js-cid
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.6.0
Choose a head ref
  • 8 commits
  • 8 files changed
  • 4 contributors

Commits on Apr 4, 2019

  1. feat: preserve base when constructed from a string

    BREAKING CHANGE: previously base was not preserved and all CIDs would
    be normalised to base58btc when asking for their string representation.
    
    The default will change to base32 in https://github.com/multiformats/js-cid/pull/73/files
    
    The idea behind this change is that we shouldnt lose information when
    the user passes us a base encoded string, but keep it and use it as
    the default base so toString returns the same string they provided.
    
    I'd like this as a fix for ipld explorer, which currently forces all
    CIDs into base58btc, seee: ipfs/ipfs-webui#999
    
    License: MIT
    Signed-off-by: Oli Evans <[email protected]>
    olizilla authored and vmx committed Apr 4, 2019
    Configuration menu
    Copy the full SHA
    2e597b9 View commit details
    Browse the repository at this point in the history
  2. chore: validate and test CIDv0 invariants

    Adds tests for
    - base other than 'base32btc' for CIDv0
    - codec other than 'dag-pb' for CIDv0
    
    License: MIT
    Signed-off-by: Oli Evans <[email protected]>
    olizilla authored and vmx committed Apr 4, 2019
    Configuration menu
    Copy the full SHA
    0e94b55 View commit details
    Browse the repository at this point in the history
  3. feat: cache string represntation

    store the string form of the CID as a non-enumerable property where
    an instance is constructed from a valid string, or after the first
    call to toBaseEncodedString where the supplied base matches the
    default base.
    
    adds tests for string caching, and some missing test cases.
    
    License: MIT
    Signed-off-by: Oli Evans <[email protected]>
    olizilla authored and vmx committed Apr 4, 2019
    Configuration menu
    Copy the full SHA
    537f604 View commit details
    Browse the repository at this point in the history
  4. feat: add flow typedefs

    Add flow type definitions which would improve workflow for dependent libraries that happen to use flow type-checker.
    Gozala committed Apr 4, 2019
    Configuration menu
    Copy the full SHA
    1cf9740 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #79 from Gozala/flowtypes

    feat: add flow typedefs
    mikeal authored Apr 4, 2019
    Configuration menu
    Copy the full SHA
    a75da83 View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2019

  1. docs: add multibaseName param with better examples

    - Clarify how to use the mutlibaseName param in the README.
    - Update the usage section with clear examples
    olizilla authored and vmx committed Apr 8, 2019
    Configuration menu
    Copy the full SHA
    e6634fe View commit details
    Browse the repository at this point in the history
  2. chore: update contributors

    vmx committed Apr 8, 2019
    Configuration menu
    Copy the full SHA
    93f7ffd View commit details
    Browse the repository at this point in the history
  3. chore: release version v0.6.0

    vmx committed Apr 8, 2019
    Configuration menu
    Copy the full SHA
    b29e421 View commit details
    Browse the repository at this point in the history
Loading