Skip to content

Commit

Permalink
docs: fix 0.21 changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed Jun 20, 2023
1 parent fc317d7 commit b8ed8b1
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 22 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Kubo Changelogs

- [v0.22](docs/changelogs/v0.22.md)
- [v0.21](docs/changelogs/v0.21.md)
- [v0.20](docs/changelogs/v0.20.md)
- [v0.19](docs/changelogs/v0.19.md)
Expand Down
22 changes: 0 additions & 22 deletions docs/changelogs/v0.21.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
- [Gateway: DAG-CBOR/-JSON previews and improved error pages](#gateway-dag-cbor-json-previews-and-improved-error-pages)
- [Gateway: subdomain redirects are now `text/html`](#gateway-subdomain-redirects-are-now-texthtml)
- [Gateway: support for partial CAR export parameters (IPIP-402)](#gateway-support-for-partial-car-export-parameters-ipip-402)
- [`ipfs dag import` no longer pins by default](#ipfs-dag-import-no-longer-pins-by-default)
- [`ipfs dag stat` deduping statistics](#ipfs-dag-stat-deduping-statistics)
- [Accelerated DHT Client is no longer experimental](#accelerated-dht-client-is-no-longer-experimental)
- [πŸ“ Changelog](#-changelog)
Expand Down Expand Up @@ -116,27 +115,6 @@ Batch block retrieval minimizes round trips, catering to the requirements of
light HTTP clients for directory enumeration, range requests, and content path
resolution.

#### `ipfs dag import` no longer pins by default

With the gateway now capable of handling partial CAR exports
([IPIP-402](https://github.com/ipfs/specs/pull/402)) and incomplete DAG CARs
becoming more prevalent, there have been changes to the pinning mode when using
`ipfs dag import`.

Recursive pinning of the entire DAG within an imported CAR is now optional. To
explicitly attempt pinning the DAG referenced by any roots present in the CAR,
you can opt in by using the `--pin-roots` option.

Pinning incomplete DAG will produce an error:

```console
$ curl 'http://127.0.0.1:8080/ipns/docs.ipfs.tech?format=car&dag-scope=entity' > ./partial-entity.car # Kubo 0.21.0 with IPIP-402 (only root block of unixfs dir)
$ ipfs dag import --stats --pin-roots=true ./partial-entity.car
Error pinning QmPDC11yLAbVw3dX5jMeEuSdk4BiVjSd9X87zaYRdVjzW3 FAILED: block was not found locally (offline): ipld: could not find QmPDvrDAz2aHeLjPVQ4uh1neyknUmDpf1GsBzAbpFhS8ro
Imported 1 blocks (1618 bytes)
[exit code 1]
```

#### `ipfs dag stat` deduping statistics

`ipfs dat stat` now accept multiple CIDs and will dump advanced statistics
Expand Down
40 changes: 40 additions & 0 deletions docs/changelogs/v0.22.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Kubo changelog v0.22

- [v0.22.0](#v0220)

## v0.22.0

- [Overview](#overview)
- [πŸ”¦ Highlights](#-highlights)
- [`ipfs dag import` no longer pins by default](#ipfs-dag-import-no-longer-pins-by-default)
- [πŸ“ Changelog](#-changelog)
- [πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘¦ Contributors](#-contributors)

### Overview

### πŸ”¦ Highlights

#### `ipfs dag import` no longer pins by default

With the gateway now capable of handling partial CAR exports
([IPIP-402](https://github.com/ipfs/specs/pull/402)) and incomplete DAG CARs
becoming more prevalent, there have been changes to the pinning mode when using
`ipfs dag import`.

Recursive pinning of the entire DAG within an imported CAR is now optional. To
explicitly attempt pinning the DAG referenced by any roots present in the CAR,
you can opt in by using the `--pin-roots` option.

Pinning incomplete DAG will produce an error:

```console
$ curl 'http://127.0.0.1:8080/ipns/docs.ipfs.tech?format=car&dag-scope=entity' > ./partial-entity.car # Kubo 0.21.0 with IPIP-402 (only root block of unixfs dir)
$ ipfs dag import --stats --pin-roots=true ./partial-entity.car
Error pinning QmPDC11yLAbVw3dX5jMeEuSdk4BiVjSd9X87zaYRdVjzW3 FAILED: block was not found locally (offline): ipld: could not find QmPDvrDAz2aHeLjPVQ4uh1neyknUmDpf1GsBzAbpFhS8ro
Imported 1 blocks (1618 bytes)
[exit code 1]
```

### πŸ“ Changelog

### πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘¦ Contributors

0 comments on commit b8ed8b1

Please sign in to comment.