Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: use .name property instead of .code for errors #2655

Merged
merged 8 commits into from
Aug 14, 2024

Commits on Aug 8, 2024

  1. feat!: use .name property instead of .code for errors

    JavaScript errors have a `.name` property that can be used to
    disambiguate the type of error.
    
    libp2p has used the `.code` property for this until now, but we will
    soon use that field to indicate remote errors, so switch to using
    the `.name` property.
    
    BREAKING CHANGE: The `.code` property has been removed from most errors, use `.name` instead
    achingbrain committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    1039979 View commit details
    Browse the repository at this point in the history
  2. fix: fix kad tests

    achingbrain committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    fc3d25e View commit details
    Browse the repository at this point in the history
  3. chore: more tests

    achingbrain committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    7f53561 View commit details
    Browse the repository at this point in the history
  4. chore: tests and linting

    achingbrain committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    6cb96ea View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2024

  1. Configuration menu
    Copy the full SHA
    599f291 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0cb280a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cadfd7e View commit details
    Browse the repository at this point in the history
  4. chore: fix linting

    achingbrain committed Aug 14, 2024
    Configuration menu
    Copy the full SHA
    e69a21f View commit details
    Browse the repository at this point in the history