All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
2.0.0 - 2022-12-14
- UrlLinker is now fully typed.
- BREAKING Return type
string
was added to methodYouthweb\UrlLinker\UrlLinkerInterface::linkUrlsAndEscapeHtml()
. - BREAKING Return type
string
was added to methodYouthweb\UrlLinker\UrlLinkerInterface::linkUrlsInTrustedHtml()
.
- BREAKING The deprecated support for
callable
in the config optionhtmlLinkCreator
was removed, provideClosure
instead - BREAKING The deprecated support for
callable
in the config optionemailLinkCreator
was removed, provideClosure
instead - BREAKING The deprecated support for non-boolean in the config option
allowFtpAddresses
was removed, provideboolean
instead - BREAKING The deprecated support for non-boolean in the config option
allowUpperCaseUrlSchemes
was removed, provideboolean
instead - BREAKING The deprecated method
Youthweb\UrlLinker\UrlLinker::getAllowFtpAddresses()
was removed - BREAKING The deprecated method
Youthweb\UrlLinker\UrlLinker::setAllowFtpAddresses()
was removed - BREAKING The deprecated method
Youthweb\UrlLinker\UrlLinker::getAllowUpperCaseUrlSchemes()
was removed - BREAKING The deprecated method
Youthweb\UrlLinker\UrlLinker::setAllowUpperCaseUrlSchemes()
was removed - BREAKING The deprecated method
Youthweb\UrlLinker\UrlLinker::getHtmlLinkCreator()
was removed - BREAKING The deprecated method
Youthweb\UrlLinker\UrlLinker::setHtmlLinkCreator()
was removed - BREAKING The deprecated method
Youthweb\UrlLinker\UrlLinker::getEmailLinkCreator()
was removed - BREAKING The deprecated method
Youthweb\UrlLinker\UrlLinker::setEmailLinkCreator()
was removed - BREAKING The deprecated method
Youthweb\UrlLinker\UrlLinker::getValidTlds()
was removed - BREAKING The deprecated method
Youthweb\UrlLinker\UrlLinker::setValidTlds()
was removed
1.5.1 - 2022-12-09
- Add tests for PHP 8.3
- Add Codecov for better code coverage
- Providing a
htmlLinkCreator
Closure, that does not return astring
is deprecated, let yourClosure
always return astring
instead. - Providing a
emailLinkCreator
Closure, that does not return astring
is deprecated, let yourClosure
always return astring
instead.
1.5.0 - 2022-12-07
- Add type declarations for attributes, parameters and return values in nearly all classes
- Add tests for PHP 8.1 and 8.2
- Update the IANA TLD list
- Change code style to follow PER
- Move CI tests from Travis-CI to Github Actions
- Providing the config option
htmlLinkCreator
toYouthweb\UrlLinker\UrlLinker::__construct()
ascallable
is deprecated, provide asClosure
instead. - Providing the config option
emailLinkCreator
toYouthweb\UrlLinker\UrlLinker::__construct()
ascallable
is deprecated, provide asClosure
instead. - Providing the config option
allowFtpAddresses
toYouthweb\UrlLinker\UrlLinker::__construct()
not asboolean
is deprecated, provide asboolean
instead. - Providing the config option
allowUpperCaseUrlSchemes
toYouthweb\UrlLinker\UrlLinker::__construct()
not asboolean
is deprecated, provide asboolean
instead. - Implementing
Youthweb\UrlLinker\UrlLinkerInterface::linkUrlsAndEscapeHtml()
without return typestring
is deprecated, addstring
as return type in your implementation instead. - Implementing
Youthweb\UrlLinker\UrlLinkerInterface::linkUrlsInTrustedHtml()
without return typestring
is deprecated, addstring
as return type in your implementation instead.
1.4.0 - 2021-03-05
- Add support for PHP 7.4 and PHP 8.0
- Update the IANA TLD list
- Drop support for PHP 7.2 and 7.3
1.3.0 - 2019-10-10
- Update the IANA TLD list with 20 domains less
- Add support for PHP 7.3
- Drop support for PHP 5.6, 7.0 and 7.1
- Change Code Style to PSR-2
1.2.0 - 2017-08-24
- The provided config option
htmlLinkCreator
toYouthweb\UrlLinker\UrlLinker::__construct()
can be acallable
. - The provided config option
emailLinkCreator
toYouthweb\UrlLinker\UrlLinker::__construct()
can be acallable
. - Updated the IANA TLD list with ~50 more domains
- The test files following PSR-4
- Added a missing
use
forInvalidArgumentException
- Don't use deprecated methods internally
1.1.0 - 2017-04-10
- new constructor in
Youthweb\UrlLinker\UrlLinker
for configuration - add
.gitattributes
file
- Deprecated
Youthweb\UrlLinker\UrlLinker::setAllowFtpAddresses()
- Deprecated
Youthweb\UrlLinker\UrlLinker::getAllowFtpAddresses()
- Deprecated
Youthweb\UrlLinker\UrlLinker::setAllowUpperCaseUrlSchemes()
- Deprecated
Youthweb\UrlLinker\UrlLinker::getAllowUpperCaseUrlSchemes()
- Deprecated
Youthweb\UrlLinker\UrlLinker::setHtmlLinkCreator()
- Deprecated
Youthweb\UrlLinker\UrlLinker::getHtmlLinkCreator()
- Deprecated
Youthweb\UrlLinker\UrlLinker::setEmailLinkCreator()
- Deprecated
Youthweb\UrlLinker\UrlLinker::getEmailLinkCreator()
- Deprecated
Youthweb\UrlLinker\UrlLinker::setValidTlds()
- Deprecated
Youthweb\UrlLinker\UrlLinker::getValidTlds()
1.0.0 - 2016-09-05
- Forked from https://bitbucket.org/kwi/urllinker
- This CHANGELOG.md
- Automated testing and code coverage with travis-ci.org and coveralls.io
- Updated the IANA TLD list
- Add your own supported TLDs
- Add a closure to modify the html link creation
- Add a closure to modify or disable the email link creation
- Updated min. requirements to PHP 5.6
- Moved the config from the constructor to their own getter and setter methods
- Do not encode html characters twice
- Licensed under GPL3