Skip to content

chore: release 1.7.0 - #56

Merged
Sreini merged 2 commits into
masterfrom
release/1.7.0
Nov 4, 2026
Merged

Sreini merged 2 commits into
masterfrom
release/1.7.0

Conversation

@Sreini

@Sreini Sreini commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Promotes the Format constants entry out of Unreleased and bumps VERSION from 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 a Check if properly tagged step 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 VERSION in lib/Tinify.php matches it. That constant only feeds the User-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.

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.
@Sreini
Sreini merged commit 3b48d05 into master Nov 4, 2026
25 checks passed
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.

1 participant