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

chore(deps/composer): bump neoncitylights/media-type from 1.0.0 to 2.1.0 #37

Closed

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 22, 2024

Bumps neoncitylights/media-type from 1.0.0 to 2.1.0.

Release notes

Sourced from neoncitylights/media-type's releases.

v2.1.0

Features

  • MediaType now has a new method, minimize( $isSupported ). This method allows returning a consistent essence as a string, depending on what category the media type is and whether the user agent supports the media type. For example, if the media type is a JavaScript type, then it will consistently return "text/javascript".

Documentation

  • Fixes minor phpDoc annotation issues within MediaType. Specifically:
    • Removes redundant @return annotations that are already specified from return typehints
    • Removes redundant @param annotation from getParameterValue()
    • Adds missing @see annotation to isAudioOrVideo() method in reference to a WHATWG Standard link

v2.0.0

Features

  • MediaTypeParser is a new parser that is more compliant to WHATWG Mime Sniffing Standard. The following differences include:
    • validates for Unicode ranges of HTTP codepoints and HTTP quoted-string codepoints
    • normalizes the type and subtype to ASCII lowercase
    • is more forgiving with surrounding HTTP whitespace codepoints
    • accounts for HTTP-quoted strings in parameter values, and normalizes such values
    • will error out when the type or subtype is empty
  • MediaType now implements the native Stringable interface (introduced by PHP 8.1).
  • MediaType now includes built-in predicate methods for checking what group the media type belongs to:
    • isImage()
    • isAudioOrVideo()
    • isFont()
    • isZipBased()
    • isArchive()
    • isXml()
    • isHtml()
    • isScriptable()
    • isJavaScript()
    • isJson()

Bug fixes

  • MediaType::__toString() now correctly serializes HTTP parameter values that contain HTTP-quoted strings.

Breaking changes

  • The package now requires PHP 8.1 or higher, and the native intl extension.
  • The following classes are now marked as final:
    • MediaType
    • MediaTypeParser
    • MediaTypeParseException
  • The MediaType class now has public and readonly properties. Access these instead:
    • $mediaType->type replaces MediaType->getType() (removed)
    • $mediaType->subType replaces MediaType->getSubType() (removed)
    • $mediaType->parameters replaces MediaType->getParameters() (removed)
  • MediaType::newFromString() is removed. Instead, create a new MediaTypeParser instance and call parseOrNull().

... (truncated)

Changelog

Sourced from neoncitylights/media-type's changelog.

2.1.0 (2024-03-27)

Features

  • MediaType now has a new method, minimize( $isSupported ). This method allows returning a consistent essence as a string, depending on what category the media type is and whether the user agent supports the media type. For example, if the media type is a JavaScript type, then it will consistently return "text/javascript".

Documentation

  • Fixes minor phpDoc annotation issues within MediaType. Specifically:
    • Removes redundant @return annotations that are already specified from return typehints
    • Removes redundant @param annotation from getParameterValue()
    • Adds missing @see annotation to isAudioOrVideo() method in reference to a WHATWG Standard link

2.0.0 (2023-12-11)

Features

  • MediaTypeParser is a new parser that is more compliant to WHATWG Mime Sniffing Standard. The following differences include:
    • validates for Unicode ranges of HTTP codepoints and HTTP quoted-string codepoints
    • normalizes the type and subtype to ASCII lowercase
    • is more forgiving with surrounding HTTP whitespace codepoints
    • accounts for HTTP-quoted strings in parameter values, and normalizes such values
    • will error out when the type or subtype is empty
  • MediaType now implements the native Stringable interface (introduced by PHP 8.1).
  • MediaType now includes built-in predicate methods for checking what group the media type belongs to:
    • isImage()
    • isAudioOrVideo()
    • isFont()
    • isZipBased()
    • isArchive()
    • isXml()
    • isHtml()
    • isScriptable()
    • isJavaScript()
    • isJson()

Bug fixes

  • MediaType::__toString() now correctly serializes HTTP parameter values that contain HTTP-quoted strings.

Breaking changes

  • The package now requires PHP 8.1 or higher, and the native intl extension.
  • The following classes are now marked as final:
    • MediaType
    • MediaTypeParser
    • MediaTypeParseException
  • The MediaType class now has public and readonly properties. Access these instead:
    • $mediaType->type replaces MediaType->getType() (removed)
    • $mediaType->subType replaces MediaType->getSubType() (removed)

... (truncated)

Commits
  • 00ebf2e feat: release v2.1.0 (#44)
  • 78d06cc docs: remove redundant @param annotation (#43)
  • d878e57 docs: fix minor phpDoc annotation issues within MediaType (#42)
  • 40a67da feat: support minimizing media types (#41)
  • 52320ec docs(MediaType): specify array type in @param annotation (#35)
  • 9fdcddf chore: basic cleanup (#34)
  • 53fc91f docs: update URL redirects in README.md (#33)
  • 9c274b6 docs: +CHANGELOG.md to prepare for v2.0.0 release (#32)
  • 49c8487 chore: mark classes as final where applicable (#27)
  • ceb2af3 chore: mark properties as public+readonly in MediaType (#31)
  • Additional commits viewable in compare view

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 [neoncitylights/media-type](https://github.com/neoncitylights/php-media-type) from 1.0.0 to 2.1.0.
- [Release notes](https://github.com/neoncitylights/php-media-type/releases)
- [Changelog](https://github.com/neoncitylights/php-media-type/blob/main/CHANGELOG.md)
- [Commits](neoncitylights/php-media-type@v1.0.0...v2.1.0)

---
updated-dependencies:
- dependency-name: neoncitylights/media-type
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Copy link
Contributor Author

dependabot bot commented on behalf of github Apr 22, 2024

The following labels could not be found: t-dependencies, pkg-composer.

Copy link
Contributor Author

dependabot bot commented on behalf of github Jun 24, 2024

Superseded by #39.

@dependabot dependabot bot closed this Jun 24, 2024
@dependabot dependabot bot deleted the dependabot/composer/neoncitylights/media-type-2.1.0 branch June 24, 2024 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants