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

fix: fix uri encode #429

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

fix: fix uri encode #429

wants to merge 1 commit into from

Conversation

maxdeichmann
Copy link
Member

@maxdeichmann maxdeichmann commented Oct 8, 2024

Important

Fixes URI encoding in encodeQueryParams by encoding keys and values with encodeURIComponent and handling Date objects.

  • Behavior:
    • Fixes URI encoding in encodeQueryParams function in utils.ts.
    • Encodes both keys and values using encodeURIComponent.
    • Converts Date objects to ISO strings before encoding.
  • Misc:
    • Removes use of URLSearchParams in encodeQueryParams.

This description was created by Ellipsis for a4b75ab. It will automatically update as commits are pushed.

Copy link

vercel bot commented Oct 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
langfuse-js ✅ Ready (Inspect) Visit Preview Oct 8, 2024 11:31pm

Copy link

@ellipsis-dev ellipsis-dev bot 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 to me! Reviewed everything up to a4b75ab in 10 seconds

More details
  • Looked at 32 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. langfuse-core/src/utils.ts:116
  • Draft comment:
    Consider using a more concise approach to filter out null values directly in the map function for better readability and performance.
  • Reason this comment was not posted:
    Confidence changes required: 33%
    The current implementation of encodeQueryParams correctly encodes both keys and values, including handling Date objects. However, it can be optimized for readability and performance by directly filtering out null values in the map function.

Workflow ID: wflow_CNBGOoRaJU1bTQMN


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

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.

1 participant