Repository navigation
chore: release 1.7.0 - #56
Merged
Merged
Conversation
Promotes the Format constants entry out of Unreleased and bumps VERSION. The change is additive -- new constants, no signature or behaviour change -- so this is a minor release. Note that unlike the other client libraries, this repo has no publish job: Packagist derives the released version from the git tag, and nothing verifies that VERSION in lib/Tinify.php matches that tag. The constant only feeds the User-Agent, so a mismatch would not break callers, but it would misreport the client version to the API indefinitely. Keep the two in step when tagging.
The README only showed compression, so the constants added in 1.7.0 had no example outside the API docs site. Adds a convert example using Tinify\Format, the multiple-types case, and a note that the plain strings still work.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Promotes the
Formatconstants entry out ofUnreleasedand bumpsVERSIONfrom 1.6.4 to 1.7.0.The change being released (#50) is additive — new string constants, no signature or behaviour change, existing callers passing raw media-type strings are unaffected — so this is a minor release.
Note on how this repo releases
Unlike the other five client libraries, tinify-php has no publish job. The others gate on
startsWith(github.ref, 'refs/tags')and run aCheck if properly taggedstep that fails the build when the version in the manifest doesn't match the tag.Here, Packagist derives the released version from the git tag, and nothing verifies that
VERSIONinlib/Tinify.phpmatches it. That constant only feeds theUser-Agent(Tinify/1.7.0 PHP/...), so a mismatch wouldn't break callers — it would just misreport the client version to the API indefinitely. Worth keeping the two in step when tagging, or adding the same check the other repos have.