-
Notifications
You must be signed in to change notification settings - Fork 286
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
Update usage of abandoned package #8094
Labels
P1
Medium priority
PHP
QA: Eng
Requires specialized QA by an engineer
Type: Infrastructure
Engineering infrastructure & tooling
Comments
aaemnnosttv
added
P1
Medium priority
Type: Infrastructure
Engineering infrastructure & tooling
PHP
labels
Jan 16, 2024
IB ✅ |
18 tasks
QA:Eng verified ✅
|
13 tasks
I did a bit of extra testing here just because this has bitten us before when used in an environment without the Confirmed that
Confirmed
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
P1
Medium priority
PHP
QA: Eng
Requires specialized QA by an engineer
Type: Infrastructure
Engineering infrastructure & tooling
Feature Description
The
true/punycode
package is no longer maintained and should be replaced.Its repository suggests using
symfony/polyfill-intl-idn
as the recommended maintained replacement which is already installed as a dependency ofguzzlehttp/guzzle
. We should update our usage of the old package to use the proper PHP internals where safely polyfilled by the Symfony package.Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
true/punycode
package should be removed as a dependencyidn_to_ascii
andidn_to_utf8
symfony/polyfill-intl-idn
package should be requiredImplementation Brief
symfony/polyfill-intl-idn
v1.19.0 as a direct PHP dependency (require
) incomposer.json
.includes/Core/Util/URL.php
, refactor the class to replace the usage ofGoogle\Site_Kit_Dependencies\TrueBV\Punycode
with the native alternatives. which will be safely polyfilled by the aforementioned package.Punycode::PREFIX
,xn--
as a const fieldPunycode_PREFIX
in the class.$punycode->decode
withidn_to_utf8
.$punycode->decode
withidn_to_ascii
.true/punycode
package fromcomposer.json
Test Coverage
QA Brief
permute_site_hosts
behaviour has not changed.Changelog entry
true/punycode
package withsymfony/polyfill-intl-idn
.The text was updated successfully, but these errors were encountered: