Skip to content

Update pitney-bowes to v1.0.0 (async/await)#155

Merged
freshlogic merged 8 commits intomainfrom
update-pitney-bowes
Apr 7, 2026
Merged

Update pitney-bowes to v1.0.0 (async/await)#155
freshlogic merged 8 commits intomainfrom
update-pitney-bowes

Conversation

@freshlogic
Copy link
Copy Markdown
Member

Summary

  • Update pitney-bowes dependency from ~0.3.1 to ~1.0.0
  • Replace callback-based pitneyBowesClient.tracking() with Promise-based call (v1.0.0 is pure async/await)
  • Remove async.retry wrapper — no longer needed
  • Update error message check from 'Not Found' to '404 Not Found' (new HttpError format)

Test plan

  • Verify pitneyBowes carrier tests pass
  • Verify no regressions in other carrier tests

🤖 Generated with Claude Code

- Replace callback-based pitneyBowesClient.tracking() with async/await
- Remove async.retry wrapper (pitney-bowes no longer needs it)
- Update error check from 'Not Found' to '404 Not Found' (HttpError format)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@coveralls
Copy link
Copy Markdown

coveralls commented Apr 7, 2026

Coverage Report for CI Build 24110222990

Coverage increased (+4.5%) to 80.861%

Details

  • Coverage increased (+4.5%) from the base build.
  • Patch coverage: 1 uncovered change across 1 file (89 of 90 lines covered, 98.89%).
  • No coverage regressions found.

Uncovered Changes

File Changed Covered %
carriers/pitneyBowes.js 88 87 98.86%

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 1915
Covered Lines: 1550
Line Coverage: 80.94%
Relevant Branches: 384
Covered Branches: 309
Branch Coverage: 80.47%
Branches in Coverage %: Yes
Coverage Strength: 15.44 hits per line

💛 - Coveralls

freshlogic and others added 7 commits April 7, 2026 18:30
Test tracking events, delivered/shipped detection, city blacklist
filtering, Newgistics carrier name, 404 handling, minDate filtering,
and IMB 31-digit tracking numbers. Uses native fetch mock.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…At fallback

Increases pitneyBowes.js coverage from 85.89% to 88.34% lines,
73.81% to 80.95% branches. Remaining uncovered lines are geocoder
paths that require GOOGLE_API_KEY.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Use eventTimeOffset from the PB API directly instead of geocoding
event locations to determine timezones. Removes async and geography
dependencies from this carrier.

Coverage: 85.89% → 96.72% lines, 73.81% → 90% branches.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
USPS API sometimes returns 503 Service Unavailable for malformed
tracking numbers. Treat it the same as 404 (empty results).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Coverage: 96.72% → 99.18% lines, 90% → 96.77% branches.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@freshlogic freshlogic merged commit fa5f7d6 into main Apr 7, 2026
2 checks passed
@freshlogic freshlogic deleted the update-pitney-bowes branch April 7, 2026 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants