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-multiaddr
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v12.4.1
Choose a base ref
...
head repository: multiformats/js-multiaddr
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v12.4.2
Choose a head ref
  • 2 commits
  • 23 files changed
  • 2 contributors

Commits on Jun 16, 2025

  1. fix: skip validation when encapsulating/decapsulating (#420)

    Shifts expensive validation to `validate` function which gives the user more control over operations take place.
    
    Skips validation when we create a multiaddr from an existing multiaddr.
    
    Adds an internal `validate` method that can perform explicit validation.
    
    For example we currently run multiple regex passes over IP addresses when creating new multiaddrs which can cause CPU bottlenecks.
    
    Running the benchmark added in this PR it's an order of magnitude faster.
    achingbrain authored Jun 16, 2025
    Configuration menu
    Copy the full SHA
    c208caf View commit details
    Browse the repository at this point in the history
  2. chore(release): 12.4.2 [skip ci]

    ## [12.4.2](v12.4.1...v12.4.2) (2025-06-16)
    
    ### Bug Fixes
    
    * skip validation when encapsulating/decapsulating ([#420](#420)) ([c208caf](c208caf))
    semantic-release-bot committed Jun 16, 2025
    Configuration menu
    Copy the full SHA
    bf98189 View commit details
    Browse the repository at this point in the history
Loading