Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

fix: replace err-code with CodeError #334

Merged
merged 2 commits into from
Feb 22, 2023

Conversation

tabcat
Copy link
Contributor

@tabcat tabcat commented Jan 9, 2023

Replaces err-code with CodeError

Related: js-libp2p#1269

Was not sure how to update dependencies

Changes (affect interface-mocks package only)

  • uses CodeError in place of err-code

Blockers

@tabcat tabcat changed the title refactor: replace err-code with CodeError chore: replace err-code with CodeError Jan 10, 2023
@tabcat tabcat force-pushed the refactor/code-error branch from 843a672 to 5ff0b0b Compare January 10, 2023 04:21
@wemeetagain
Copy link
Member

Approach looks good. What part are you unsure of here?

@tabcat
Copy link
Contributor Author

tabcat commented Jan 13, 2023

@wemeetagain the dependencies were locked (couldnt update them). do you know how they are bumped? Will take a closer look if you arent familiar.

@wemeetagain
Copy link
Member

Sorry, I'm not familiar. I thought you'd be able to just update the relevant package.json

@tabcat
Copy link
Contributor Author

tabcat commented Jan 13, 2023

I'll try again

@tabcat
Copy link
Contributor Author

tabcat commented Jan 14, 2023

Yea I'm not able to update dependencies without editing package dependencies manually. Would be good to know why before I push changes.

@tabcat
Copy link
Contributor Author

tabcat commented Jan 24, 2023

@achingbrain Do you know what is going on here? I'm not able to install/update deps with npm install, just me?

@p-shahi
Copy link
Member

p-shahi commented Feb 15, 2023

@mpetrunic would you be able to help? @tabcat mentions "I'm not sure how to bump the js-libp2p-interfaces package in js-libp2p-interfaces/packages/interface-mocks."

@mpetrunic
Copy link
Member

@mpetrunic would you be able to help? @tabcat mentions "I'm not sure how to bump the js-libp2p-interfaces package in js-libp2p-interfaces/packages/interface-mocks."

I don't understand whats the issue is. PR installed deps and executed tests without an issue.
We don't update workspace package versions as they are updated by release-please

@tabcat
Copy link
Contributor Author

tabcat commented Feb 15, 2023

Yea I'm not able to update dependencies without editing package dependencies manually. Would be good to know why before I push changes.

@mpetrunic I wanted to know why the packages could not be updated before making changes. It sounds like they don't need to be changed at all so I will mark for review.

@tabcat
Copy link
Contributor Author

tabcat commented Feb 15, 2023

Will err-code going to be removed from interface-mocks automatically? @mpetrunic

@tabcat tabcat marked this pull request as ready for review February 15, 2023 14:04
@mpetrunic
Copy link
Member

Will err-code going to be removed from interface-mocks automatically? @mpetrunic

nope, I've removed that :)

@tabcat tabcat force-pushed the refactor/code-error branch from b4d96ae to b45e261 Compare February 15, 2023 15:24
@tabcat
Copy link
Contributor Author

tabcat commented Feb 15, 2023

It looks like the error was caused by a errCode line being added upstream which after a merge caused the error. Pushing fix soon.

tabcat and others added 2 commits February 15, 2023 09:35
Replaces [err-code](https://github.com/IndigoUnited/js-err-code/blob/master/index.js) with [CodeError](libp2p#314)

Related: [js-libp2p#1269](libp2p/js-libp2p#1269)

Changes

- removes err-code from dependencies
- adds @libp2p/[email protected] to dependencies
- uses CodeError in place of err-code
@tabcat tabcat force-pushed the refactor/code-error branch from b45e261 to 2d2261c Compare February 15, 2023 15:36
@p-shahi p-shahi requested a review from mpetrunic February 16, 2023 06:47
@p-shahi
Copy link
Member

p-shahi commented Feb 21, 2023

Seems good to merge?

@mpetrunic mpetrunic changed the title chore: replace err-code with CodeError fix: replace err-code with CodeError Feb 22, 2023
@mpetrunic mpetrunic merged commit a909d41 into libp2p:master Feb 22, 2023
github-actions bot pushed a commit that referenced this pull request Feb 22, 2023
## [@libp2p/interface-mocks-v9.1.2](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/interface-mocks-v9.1.1...@libp2p/interface-mocks-v9.1.2) (2023-02-22)

### Bug Fixes

* replace err-code with CodeError ([#334](#334)) ([a909d41](a909d41)), closes [js-libp2p#1269](libp2p/js-libp2p#1269)
@github-actions
Copy link

🎉 This PR is included in version @libp2p/interface-mocks-v9.1.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants