Skip to content

Conversation

@WilliamBergamin
Copy link
Contributor

Summary

Python Slack SDK #1598 introduces changes to ensures that all base_url values end with a trailing slash, improving URL construction consistency. This PR introduces changes that make the WebClient match this behavior.

Requirements (place an x in each [ ])

@WilliamBergamin WilliamBergamin added this to the web-api@7.10.0 milestone May 15, 2025
@WilliamBergamin WilliamBergamin self-assigned this May 15, 2025
@WilliamBergamin WilliamBergamin added semver:patch pkg:web-api applies to `@slack/web-api` labels May 15, 2025
@codecov
Copy link

codecov bot commented May 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.67%. Comparing base (31c60f8) to head (343d049).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2243      +/-   ##
==========================================
+ Coverage   92.65%   92.67%   +0.01%     
==========================================
  Files          38       38              
  Lines       10527    10554      +27     
  Branches      677      682       +5     
==========================================
+ Hits         9754     9781      +27     
  Misses        761      761              
  Partials       12       12              
Flag Coverage Δ
cli-hooks 95.23% <ø> (ø)
cli-test 94.76% <ø> (ø)
oauth 77.39% <ø> (ø)
socket-mode 61.82% <ø> (ø)
web-api 97.95% <100.00%> (+<0.01%) ⬆️
webhook 96.65% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member

@zimeg zimeg left a comment

Choose a reason for hiding this comment

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

LGTM! 🚢 💨

This is a nice guard with what's documented so I don't think updates are needed here:
https://tools.slack.dev/node-slack-sdk/web-api#custom-api-url

@WilliamBergamin WilliamBergamin merged commit 233ca6d into main May 16, 2025
57 checks passed
@WilliamBergamin WilliamBergamin deleted the adding-trailing-slash-with-tests-and-edge-cases branch May 16, 2025 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg:web-api applies to `@slack/web-api` semver:patch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants