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

Bump @slack/types and consume event payloads from it #2223

Merged
merged 2 commits into from
Aug 30, 2024

Conversation

filmaj
Copy link
Contributor

@filmaj filmaj commented Aug 29, 2024

This PR removes event payload types from bolt-js, as they were added to @slack/types. A few straggling types were left to maintain backwards compatibility.

Copy link

codecov bot commented Aug 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.59%. Comparing base (1508366) to head (436a9c4).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2223   +/-   ##
=======================================
  Coverage   81.59%   81.59%           
=======================================
  Files          19       19           
  Lines        1646     1646           
  Branches      464      464           
=======================================
  Hits         1343     1343           
  Misses        194      194           
  Partials      109      109           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@filmaj filmaj changed the title wip refactor with new incoming types Bump @slack/types and consume event payloads from it Aug 30, 2024
@filmaj filmaj marked this pull request as ready for review August 30, 2024 13:33
@filmaj filmaj requested a review from a team August 30, 2024 13:33
@filmaj filmaj added semver:patch TypeScript-specific dependencies Pull requests that update a dependency file labels Aug 30, 2024
@filmaj filmaj added this to the 3.21.2 milestone Aug 30, 2024
Copy link
Contributor

@WilliamBergamin WilliamBergamin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 💯

@filmaj filmaj merged commit abbe82c into main Aug 30, 2024
15 checks passed
@filmaj filmaj deleted the event-payloads-from-types branch August 30, 2024 14:41
/**
* A Slack Events API event wrapped in the standard envelope.
*
* This describes the entire JSON-encoded body of a request from Slack's Events API.
*/
export interface EnvelopedEvent<Event = BasicSlackEvent> extends StringIndexed {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@filmaj This export removal caused a breaking change for existing apps that rely on the type: #2243 Can we revert this change at least for 3.x series?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file semver:patch TypeScript-specific
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants