-
Notifications
You must be signed in to change notification settings - Fork 662
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
web-api(fix): Update p-retry package #1772
Conversation
Thanks for the contribution! Before we can merge this, we need @cotsupa to sign the Salesforce Inc. Contributor License Agreement. |
Thanks for the PR! I as well have tried to update this package, but in v6 (and many of |
@filmaj Just by changing the interface to type, it seems like the following error can be resolved. How about we just make changes to the interface without updating p-retry? node_modules/@slack/web-api/dist/retry-policies.d.ts:5:39 - error TS2312: An interface can only extend an object type or intersection of object types with statically known members.
5 export interface RetryOptions extends OperationOptions {
~~~~~~~~~~~~~~~~
Found 1 error in node_modules/@slack/web-api/dist/retry-policies.d.ts:5 |
I'm actually not fully understanding how the dependencies work in this case. It seems like we are using this Feel free to try whatever changes you think would work and pass the tests; I am curious to see how one could resolve the issues. I recall spending an hour or two trying to fix this stuff a few months ago and failed to figure it out. |
This issue may be resolved without upgrading p-retry. I'd like you to merge this commit. I think it'd be better to solve the upgrade of p-retry separately from this issue. |
@cotsupa can you explain where the |
@filmaj $ npm ls @types/retry
@[email protected] /Path/local-package
├─┬ @[email protected]
│ └─┬ @types/[email protected]
│ └── @types/[email protected]
└─┬ @slack/[email protected]
└─┬ [email protected]
└── @types/[email protected] In export type OperationOptions = WrapOptions | number[]; Accepting this commit or writing |
Yes I would feel better about explicitly depending upon the relevant types package instead of assuming it would come in via a transient dependency. Another concern I have is that the latest From the library perspective it comes in via the
|
Thank you for your acceptance. I have committed the fix to add it to the dependencies, so please check it. |
@filmaj Please confirm this commit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left one small tweak suggestion, but LGTM otherwise.
Co-authored-by: Fil Maj <[email protected]>
@filmaj Thanks for the suggestion. Please check again! |
Lol I see why you locked to a specific version of the types now 🤦 if you can revert that last commit I swear we will get this merge. My apologies |
@filmaj Thanks for the comment. Please check again! |
Released on npm as 7.0.3! Thanks so much. Full release is here: https://github.com/slackapi/node-slack-sdk/releases/tag/%40slack%2Fweb-api%407.0.3 |
Summary
When using web-api, @types/retry may conflict and build may not be possible, so I updated the p-retry package to v6.
Requirements (place an
x
in each[ ]
)