Skip to content

Commit

Permalink
chore: release v0.15.0 (#266)
Browse files Browse the repository at this point in the history
* chore: release v0.15.0

* add more tips
  • Loading branch information
MarcoPolo authored Feb 24, 2025
1 parent 4d1f355 commit 30b45fb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
15 changes: 12 additions & 3 deletions v015-MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@

## Migration tips for v0.15

- If your use case supports it, prefer `append` to append a Component to a
Multiaddr rather than using `Encapsulate`. It's much faster as it does not do
a defensive copy.
- If appending a `*Component` to a `Multiaddr`, prefer the
`Multiaddr.AppendComponent` method as it will perform a nil pointer check on
the `*Component` before appending. If you know a `*Component` is not nil, you
may use `append` normally.
- the `Multiaddr` type is simply a `[]Component`.
- You can use `append` when you have a `Component`.
- You can use `for range` loops.
- If your use case supports it, prefer `append` or `AppendComponent` to append a
Component to a Multiaddr rather than using `Encapsulate` or `Join`. It's much
faster as it does not do a defensive copy.
- Likewise, to join two Multiaddrs, `append` will perform better than
`Encapsulate` or `Join`.
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "v0.14.0"
"version": "v0.15.0"
}

0 comments on commit 30b45fb

Please sign in to comment.