Skip to content

Conversation

@AaronDDM
Copy link
Collaborator

Investigated GitHub issue #673 regarding URL encoding. The investigation concluded that the issue is not a legitimate bug in the current SDK, as the setQueryStrings method correctly handles URL encoding.

This PR adds a comprehensive suite of tests to events.spec.ts to validate URL construction and encoding. These tests cover basic encoding, special characters, array parameters, metadata pairs, and ensure no double-encoding occurs, thus preventing future regressions related to URL query parameter handling.

License

I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.


Open in Cursor Open in Web

cursoragent and others added 2 commits September 28, 2025 18:44
Co-authored-by: aaron.d <aaron.d@nylas.com>
Co-authored-by: aaron.d <aaron.d@nylas.com>
@cursor
Copy link

cursor bot commented Sep 28, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@playerzero-ai
Copy link

playerzero-ai bot commented Sep 28, 2025

nylas + PlayerZero

View more in PlayerZero
updated: Sep 28 @ 08:02 PM UTC

Remove redundant URL encoding tests and update description.

Co-authored-by: aaron.d <aaron.d@nylas.com>
Co-authored-by: aaron.d <aaron.d@nylas.com>
@codecov
Copy link

codecov bot commented Sep 28, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.42%. Comparing base (2bd4fc7) to head (6ab3e1a).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #674   +/-   ##
=======================================
  Coverage   96.42%   96.42%           
=======================================
  Files          37       37           
  Lines         812      812           
  Branches       72       72           
=======================================
  Hits          783      783           
  Misses         26       26           
  Partials        3        3           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@leebenson
Copy link

@AaronDDM, thanks for working on this!

Re:

The investigation concluded that the issue is not a legitimate bug in the current SDK, as the setQueryStrings method correctly handles URL encoding.

I'm trying to pinpoint why I would be seeing this error in my specific environment.

FWIW, I'm running into this inside a Hono endpoint, running via the Cloudflare Vite plugin inside a developer simulated Workers environment.

I did need to update to the latest plugin and wrangler version in order to pick up the requisite Node-compatible APIs. I'm not yet sure if there's something specific about that environment that would be causing URL composition to work differently.

@AaronDDM
Copy link
Collaborator Author

AaronDDM commented Sep 29, 2025 via email

@leebenson
Copy link

leebenson commented Sep 29, 2025 via email

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.

4 participants