Skip to content

Fix incorrect string validation for URL - #261

Merged
colincasey merged 1 commit into
salesforce:backport_fix_for_v4.1from
postmanlabs:fix/url-string-validation
Apr 26, 2024
Merged

colincasey merged 1 commit into
salesforce:backport_fix_for_v4.1from
postmanlabs:fix/url-string-validation

Conversation

@coditva

@coditva coditva commented Jan 6, 2023 •

Copy link
Copy Markdown

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

salesforce-cla Bot commented Jan 6, 2023

Copy link
Copy Markdown

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

@coditva

coditva commented Jan 6, 2023

Copy link
Copy Markdown
Author

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

@coditva
coditva force-pushed the fix/url-string-validation branch from 77defa6 to 90f2b38 Compare January 6, 2023 10:56
@coditva
coditva force-pushed the fix/url-string-validation branch from 90f2b38 to cf6debd Compare January 6, 2023 11:14
@awaterma

awaterma commented Nov 3, 2023

Copy link
Copy Markdown
Member

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
Copy Markdown
Contributor

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

@coditva

coditva commented Feb 5, 2024

Copy link
Copy Markdown
Author

@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
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