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

Bump esi/utility from 1.3.x-dev to 2.0.0 #6

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Mar 4, 2024

Bumps esi/utility from 1.3.x-dev to 2.0.0.

Release notes

Sourced from esi/utility's releases.

v2.0.0

Full Changelog: ericsizemore/utility@v1.3.0...v2.0.0 & https://github.com/ericsizemore/utility/blob/master/CHANGELOG.md

Some Highlights:

2.0.0 (2024-03-04)

  • Utility has undergone a complete restructuring.
  • src/Utility/Utility.php no longer exists. The class has been broken down into smaller classes or "components":
    • src/Utility/Arrays.php
    • src/Utility/Conversion.php
    • src/Utility/Dates.php
    • src/Utility/Environment.php
    • src/Utility/Filesystem.php
    • src/Utility/Image.php
    • src/Utility/Numbers.php
    • src/Utility/Strings.php
  • Made a great improvement in code coverage/testing
  • Effort to improve documentation, which can be found in docs/ or online here

v1.3.0

1.3.0 (2023-12-11)

  • currentUrl() no longer has any parameters, and just returns the URL string.
    • currentUrl(bool $parse = false) is now just currentUrl()
    • Just run parse_url(Utility::currentUrl()) if that functionality is needed.
  • serverHttpVars() deprecated, just use getallheaders() instead.
    • Added ralouphie/getallheaders as a polyfill, for situations where the SAPI is not Apache
    • serverHttpVars() will just return the getallheaders() output
  • Removed deprecated statusHeader()
  • Code cleanup per PHPCS and PHPScrutinizer
    • Small refactoring of some functions, such as currentUrl and isReallyWritable
  • Attempt at increasing test coverage.
  • Further cleanup to try and adhere to PSR-12.
    • Adding information into README.md for PHPDoc related guidelines, in an effort to adhere to PSR-5 and PSR-19.

Full Changelog: ericsizemore/utility@v1.2.0...v1.3.0

Changelog

Sourced from esi/utility's changelog.

2.0.0 (2024-03-04)

  • Utility has undergone a complete restructuring.
  • src/Utility/Utility.php no longer exists. The class has been broken down into smaller classes or "components":
    • src/Utility/Arrays.php
    • src/Utility/Conversion.php
    • src/Utility/Dates.php
    • src/Utility/Environment.php
    • src/Utility/Filesystem.php
    • src/Utility/Image.php
    • src/Utility/Numbers.php
    • src/Utility/Strings.php
  • Made a great improvement in code coverage/testing
  • Effort to improve documentation, which can be found in docs/ or online here
  • Filesystem::lineCounter() (Utility::lineCounter() in Utility < 2.0) no longer has a $skipEmpty parameter. It will now always skip empty lines.
    • Replaced the use of file() with SplFileObject and flags SplFileObject::READ_AHEAD | SplFileObject::SKIP_EMPTY | SplFileObject::DROP_NEW_LINE
      • Should be more efficient, especially for larger files.
  • Numbers::sizeFormat() (Utility::sizeFormat() in Utility < 2.0) has a new option:
    • Numbers::sizeFormat(int $bytes, int $precision = 0, string $system = 'binary'): string
    • System can be one of 'binary' or 'metric' and it determines the base/mod for the formatting.
  • Updated tests to use PHPUnit's CoversClass and DataProvider attributes.
    • Changed $this to self:: in tests when calling PHPUnit methods
  • Updated composer.json to support PHP 8.2 - 8.4
    • Added PHPStan strict rules to dev dependencies
    • Updated workflows to introduce testing on PHP 8.4
  • Bump copyright year.
  • New constants added to the Conversion class:
    /**
     * @var int EARTH_RADIUS          Earth's radius, in meters.
     * @var int METERS_TO_KILOMETERS  Used in the conversion of meters to kilometers.
     * @var int METERS_TO_MILES       Used in the conversion of meters to miles.
     */
    public const EARTH_RADIUS = 6_370_986;
    public const METERS_TO_KILOMETERS = 1000;
    public const METERS_TO_MILES = 1609.344;
  • These are mainly used in the Conversion::haversineDistance() function at the moment.

  • New constant added to the Dates class:

    /**
     * Regex used to validate a given timestamp.
     *
     * @var string VALIDATE_TIMESTAMP_REGEX
     */
    public const VALIDATE_TIMESTAMP_REGEX = '/^\d{8,11}$/';
  • Added new constants to the Environment class:
</tr></table> 

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [esi/utility](https://github.com/ericsizemore/utility) from 1.3.x-dev to 2.0.0.
- [Release notes](https://github.com/ericsizemore/utility/releases)
- [Changelog](https://github.com/ericsizemore/utility/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ericsizemore/utility/commits/v2.0.0)

---
updated-dependencies:
- dependency-name: esi/utility
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Copy link
Owner

@ericsizemore ericsizemore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will require changes to the main Counter class.

Copy link
Author

dependabot bot commented on behalf of github Mar 4, 2024

Looks like esi/utility is up-to-date now, so this is no longer needed.

@dependabot dependabot bot closed this Mar 4, 2024
@dependabot dependabot bot deleted the dependabot/composer/esi/utility-2.0.0 branch March 4, 2024 11:44
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.

None yet

1 participant