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: multiformats/js-multiformats
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v13.0.1
Choose a base ref
...
head repository: multiformats/js-multiformats
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v13.1.0
Choose a head ref
  • 3 commits
  • 7 files changed
  • 3 contributors

Commits on Jan 31, 2024

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

Commits on Feb 15, 2024

  1. feat: support decoding ArrayBuffers (#287)

    When using `fetch` to download something over HTTP, it only makes
    an `ArrayBuffer` available, not a `Uint8Array`.
    
    `TextDecoder` supports decoding `ArrayBuffer`s, and the `raw` codec
    turns passed `ArrayBuffer`s into `Uint8Array`s so this is just a
    type change.
    
    Instead of:
    
    ```js
    const res = await fetch('...')
    const obj = json.decode(new Uint8Array(await res.arrayBuffer()))
    ```
    
    we can do:
    
    ```js
    const res = await fetch('...')
    const obj = json.decode(await res.arrayBuffer())
    ```
    achingbrain committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    e7f3272 View commit details
    Browse the repository at this point in the history
  2. chore(release): 13.1.0 [skip ci]

    ## [13.1.0](v13.0.1...v13.1.0) (2024-02-15)
    
    ### Features
    
    * support decoding ArrayBuffers ([#287](#287)) ([e7f3272](e7f3272))
    
    ### Trivial Changes
    
    * Update .github/dependabot.yml [skip ci] ([aa9c730](aa9c730))
    semantic-release-bot committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    dcbd5d7 View commit details
    Browse the repository at this point in the history
Loading