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 incorrect string validation for URL #261

Conversation

coditva
Copy link

@coditva coditva commented Jan 6, 2023

The getCookies and setCookie functions can handle URL objects. They used to handle it in v4.0.0 but it seems since 4.1.1, validations were added which don't allow using URL object. PR: #193

This change updates the validations to allow both string and object.

@salesforce-cla
Copy link

salesforce-cla bot commented Jan 6, 2023

Thanks for the contribution! Before we can merge this, we need @coditva to sign the Salesforce.com Contributor License Agreement.

@coditva
Copy link
Author

coditva commented Jan 6, 2023

It seems there's some error with the CLA bot. I've signed the CLA, but the status is not updated.

Let me know how to proceed here.

image

@awaterma
Copy link
Member

awaterma commented Nov 3, 2023

Can you rebase your pull request against the 5.x branch? And resubmit? We are close to a release of that version of tough-cookie. Thank you!

@colincasey
Copy link
Contributor

@coditva did you need this change backported for 4.x? the master branch is now targeting our upcoming 5.x release.

@coditva
Copy link
Author

coditva commented Feb 5, 2024

@colincasey @awaterma It'll be awesome if it was back-ported since it broke in 4.x and we're also using 4.x. But if that's not something that you're targeting/maintaining then I'll be open to getting this merged in 5.x. Thanks!

colincasey added a commit that referenced this pull request Feb 5, 2024
This is a version of PR #261 that is compatible with our v5 TypeScript code.
@colincasey colincasey changed the base branch from master to backport_fix_for_v4.1 April 26, 2024 19:19
@colincasey colincasey merged commit 50e69bf into salesforce:backport_fix_for_v4.1 Apr 26, 2024
1 check passed
renovate bot referenced this pull request in Unleash/unleash May 8, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [tough-cookie](https://togithub.com/salesforce/tough-cookie) |
[`4.1.3` ->
`4.1.4`](https://renovatebot.com/diffs/npm/tough-cookie/4.1.3/4.1.4) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/tough-cookie/4.1.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/tough-cookie/4.1.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/tough-cookie/4.1.3/4.1.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/tough-cookie/4.1.3/4.1.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>salesforce/tough-cookie (tough-cookie)</summary>

###
[`v4.1.4`](https://togithub.com/salesforce/tough-cookie/releases/tag/v4.1.4)

[Compare
Source](https://togithub.com/salesforce/tough-cookie/compare/v4.1.3...v4.1.4)

https://www.npmjs.com/package/tough-cookie/v/4.1.4

#### What's Changed

- Add local alias for `toString` by
[@&#8203;corvidism](https://togithub.com/corvidism) in
[https://github.com/salesforce/tough-cookie/pull/409](https://togithub.com/salesforce/tough-cookie/pull/409)
- Fix incorrect string validation for URL by
[@&#8203;coditva](https://togithub.com/coditva) in
[https://github.com/salesforce/tough-cookie/pull/261](https://togithub.com/salesforce/tough-cookie/pull/261)

#### New Contributors

- [@&#8203;corvidism](https://togithub.com/corvidism) made their first
contribution in
[https://github.com/salesforce/tough-cookie/pull/409](https://togithub.com/salesforce/tough-cookie/pull/409)
- [@&#8203;coditva](https://togithub.com/coditva) made their first
contribution in
[https://github.com/salesforce/tough-cookie/pull/261](https://togithub.com/salesforce/tough-cookie/pull/261)

**Full Changelog**:
salesforce/tough-cookie@v4.1.3...v4.1.4

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 7pm every weekday,before 5am
every weekday" in timezone Europe/Madrid, Automerge - At any time (no
schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNDAuMTAiLCJ1cGRhdGVkSW5WZXIiOiIzNy4zNDAuMTAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants