diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 37fcefa..5fdd883 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.0.0" + ".": "1.1.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 592bfc7..aa9098e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,95 @@ # Changelog +## [1.1.0](https://github.com/tinify/tinify-cli/compare/v1.0.0...v1.1.0) (2026-12-03) + + +### Features + +* --concurrency sets how many images are compressed at once ([a06085a](https://github.com/tinify/tinify-cli/commit/a06085a78464ed1498a3120d5de6740fa1f9bbb4)) +* add `tinify version` ([29ecf01](https://github.com/tinify/tinify-cli/commit/29ecf016129c763a7cb1d9a35cf1f198a57b1573)) +* add the record of compressed images ([75a7a19](https://github.com/tinify/tinify-cli/commit/75a7a19d285d9766dd3ace72b26f1b38164771f2)) +* compressFiles stops on abort, after the writes in progress ([f9c8061](https://github.com/tinify/tinify-cli/commit/f9c80616b8bb56d2696d33ebc2c8dc8f5c07cd3b)) +* count skipped images in the summary, and warn about ambiguous pairs ([0d2814c](https://github.com/tinify/tinify-cli/commit/0d2814ce0e6cfab5e28ec1d6df1145da7fc020ec)) +* Ctrl-C, kill and a closed terminal never leave a half-written image ([17da4ef](https://github.com/tinify/tinify-cli/commit/17da4ef05a4990b681638611951f2d62f519c098)) +* identify as TinifyCLI/<version> in the User-Agent of every API request ([a140405](https://github.com/tinify/tinify-cli/commit/a140405466601f01191afde18a88566102673546)) +* leave an image alone when Tinify can't make it smaller ([8258d87](https://github.com/tinify/tinify-cli/commit/8258d876b257b6bf2040099d5b636a3120389fd8)) +* leave hidden files, node_modules and photo libraries out of folder walks ([bccb376](https://github.com/tinify/tinify-cli/commit/bccb3768f3a79af45ec8327e75eafc6093cf6d49)) +* point `tinify register` to tinypng.com/developers instead of creating a key ([e7e35cf](https://github.com/tinify/tinify-cli/commit/e7e35cf4169552e9c1d6a860b246fd550d07f6ac)) +* release a Windows binary ([54b332c](https://github.com/tinify/tinify-cli/commit/54b332c73687f4eec9e785345374e2c53b2ed05b)) +* skip --convert=best images whose earlier result is there, before the upload ([7adc01e](https://github.com/tinify/tinify-cli/commit/7adc01e3f232b18310c957214415414b758e4718)) +* skip an image whose result already exists instead of failing it ([da5dd42](https://github.com/tinify/tinify-cli/commit/da5dd423a388481b9c32600a842628b75890e19c)) +* skip images tinify already compressed, and add --recompress ([f93db0e](https://github.com/tinify/tinify-cli/commit/f93db0ea5c88cd42320392b7ca8d03e69512641e)) +* skip the files a system keeps for itself while walking a folder ([7c671d7](https://github.com/tinify/tinify-cli/commit/7c671d70f2c347c95f215fc2aa0d8e17099b2722)) +* under --output, keep the folders below the one the named paths share ([7c671d7](https://github.com/tinify/tinify-cli/commit/7c671d70f2c347c95f215fc2aa0d8e17099b2722)) + + +### Bug Fixes + +* --recompress still tells a --convert=best result from its original ([822c042](https://github.com/tinify/tinify-cli/commit/822c042ac1bc76cfee40faf7723a994d6ef46641)) +* a dry run to S3 doesn't need AWS keys ([82ba81a](https://github.com/tinify/tinify-cli/commit/82ba81ac80a79e4da0cf3475d32bbbe8e35d4512)) +* a file reached twice keeps its path from the outermost folder ([b4711e8](https://github.com/tinify/tinify-cli/commit/b4711e8b23b4e30ecbf976895f1fb00ad6f55bc8)) +* a folder that won't take results only fails the images going there ([9e8fb25](https://github.com/tinify/tinify-cli/commit/9e8fb25add5748c06f43c785b903947db1e0943c)) +* a missing path or an unreadable folder fails only itself, and the run exits 1 ([43234cc](https://github.com/tinify/tinify-cli/commit/43234ccdde35ab9f0dee4f6392128731f4f69048)) +* a named folder tinify can't read fails only itself on macOS too ([3b78080](https://github.com/tinify/tinify-cli/commit/3b78080dfbe2e7e868ff43a2994eddab39a03b97)) +* a path name too long for the file system stops the run too ([43d1ce7](https://github.com/tinify/tinify-cli/commit/43d1ce7dc9fc9d643f5690dd80764e3de43cad5a)) +* a path you name that doesn't exist stops the run before any upload ([7c671d7](https://github.com/tinify/tinify-cli/commit/7c671d70f2c347c95f215fc2aa0d8e17099b2722)) +* a stop ends tinify even while a reader holds up the JSON ([6af845b](https://github.com/tinify/tinify-cli/commit/6af845bd3af8eff86c2e1e2c307eb1b4d29a4ce1)) +* a stop on Windows ends tinify with 128 + the signal's number ([28fe705](https://github.com/tinify/tinify-cli/commit/28fe70542d9bec31a8a9de085bbb3b3cc25cb0d1)) +* a symlink to nothing where a result goes fails before the upload ([7ed3f31](https://github.com/tinify/tinify-cli/commit/7ed3f31e1cd197f4586701ac2091a55d3b55c337)) +* also ignore a closed pipe reported as EOF on Windows ([2bbe8ef](https://github.com/tinify/tinify-cli/commit/2bbe8efeb1640f427d8c10a84701f0f8aa9090ff)) +* audit findings in compression, S3 output and config ([549365a](https://github.com/tinify/tinify-cli/commit/549365aa08bde31f0e897ea922ce3e0baac36b38)) +* check --output before uploading, and keep owner and group on replace ([29c55eb](https://github.com/tinify/tinify-cli/commit/29c55eb796cd3597afb1c57784434f604394f4a8)) +* check TINIFY_API_ENDPOINT only for runs that call the API ([14cef21](https://github.com/tinify/tinify-cli/commit/14cef21dfcfd5cc511bbe66231d1a94752d4ef75)) +* Ctrl-C at the progress bar and a closed terminal stop tinify safely too ([6d90399](https://github.com/tinify/tinify-cli/commit/6d903995c742741b42fd334962cdf4f50061ccd6)) +* describe --verbose in the help text as it now behaves ([6b879ad](https://github.com/tinify/tinify-cli/commit/6b879ad5f33a5281e6d056e211e1b96b787fa3fd)) +* don't compress the --output folder again when it's inside an input folder ([a5da811](https://github.com/tinify/tinify-cli/commit/a5da811b1e146fa5817ce12df951b82643d97f1a)) +* don't crash when the reader of tinify's output stops early ([087f31d](https://github.com/tinify/tinify-cli/commit/087f31d33a3825ee42975d2f6ffd98a2808d4b2f)) +* dry runs report results that a real run would refuse ([c234eb1](https://github.com/tinify/tinify-cli/commit/c234eb1c81092fc4c09d96d0d85d5ee03760d0a5)) +* dry runs show where results go with --output ([59a4023](https://github.com/tinify/tinify-cli/commit/59a40235b9a2a584478f2485e476f7f6337b9c31)) +* give new result files the original's permissions ([295137e](https://github.com/tinify/tinify-cli/commit/295137ec5ec7882ac646a39de840e5838b3525ed)) +* give outputPath in full when --output is relative ([02da933](https://github.com/tinify/tinify-cli/commit/02da93312225686e27d85a0293bbc81faf60a30a)) +* hold tinify's warnings while the progress bar draws ([e13a337](https://github.com/tinify/tinify-cli/commit/e13a33734c91f409c3defd1e98524e0bce9d0441)) +* JSON that can't be written makes tinify exit 1 ([668746e](https://github.com/tinify/tinify-cli/commit/668746e4a31b21d2e89331b35dce98762ebede45)) +* judge and report a result by its downloaded bytes, not its Content-Length ([7db53c8](https://github.com/tinify/tinify-cli/commit/7db53c8b5cfa98e5a3b0947306007c3bd8c3cedc)) +* keep --output paths the same whatever a walk leaves out ([43d1ce7](https://github.com/tinify/tinify-cli/commit/43d1ce7dc9fc9d643f5690dd80764e3de43cad5a)) +* keep the original when converting to its own format doesn't make it smaller ([bc77602](https://github.com/tinify/tinify-cli/commit/bc77602c85bd82bdd389670ce718fa086b0fad04)) +* name converted JPEGs .jpg, and compress a .jpg converted to JPEG in place ([f5372a2](https://github.com/tinify/tinify-cli/commit/f5372a2564405db0cf46f16da74fe5578d3a2d9a)) +* name failures by their full path, and images in the terminal from the current folder ([214fd0c](https://github.com/tinify/tinify-cli/commit/214fd0ce58eca2fa05ccaae6e5edf07b8b196b20)) +* never remove a file another process put in place of a failed new file ([7522932](https://github.com/tinify/tinify-cli/commit/75229326c252a39b43b92ccc0f89c7943fb1261a)) +* never replace a file other than the image being compressed ([d94feaf](https://github.com/tinify/tinify-cli/commit/d94feaf806a134733fab2e5d0f91ee773df73927)) +* no stop listener is left behind when compressing throws at once ([7ab9ff5](https://github.com/tinify/tinify-cli/commit/7ab9ff507eac26702ed4e1bbf2d2c730204420bc)) +* one failed first S3 upload no longer stops the run ([daba1c7](https://github.com/tinify/tinify-cli/commit/daba1c796c7223cbee351e18d331519305519cc5)) +* piped JSON output is never cut short ([bce5328](https://github.com/tinify/tinify-cli/commit/bce5328c280caf65d76ff3c3dbd2507555a09dcc)) +* print per-file errors after the progress bar stops, and drop the bar with --verbose ([8c8f3c1](https://github.com/tinify/tinify-cli/commit/8c8f3c1e0ecf05efd4538396d278fd7a5e35a33d)) +* print the whole JSON report from the binary when stdout is a pipe ([2197dde](https://github.com/tinify/tinify-cli/commit/2197ddeadb88ab3b9b80ea25bf7bd9789c102ea9)) +* read a config file saved with a byte-order mark ([e5c9ec9](https://github.com/tinify/tinify-cli/commit/e5c9ec9088bb89f6b67934a12fd49486db561b6e)) +* recognise S3:// in any case ([a6f56b6](https://github.com/tinify/tinify-cli/commit/a6f56b63b4255076bf61cbf261d1b89f4bf29527)) +* recognise the input by its real path, never another file by its inode ([b607b12](https://github.com/tinify/tinify-cli/commit/b607b129b78405f906cd241cc53ae82bd277a7d4)) +* refuse an image that --output leads back to, instead of replacing it ([7c671d7](https://github.com/tinify/tinify-cli/commit/7c671d70f2c347c95f215fc2aa0d8e17099b2722)) +* refuse to replace a write-protected file ([ae1197e](https://github.com/tinify/tinify-cli/commit/ae1197e58b20c5640f728dec4f86e8ebaba0c35e)) +* say how many images were copied to --output, not that they were skipped ([7c671d7](https://github.com/tinify/tinify-cli/commit/7c671d70f2c347c95f215fc2aa0d8e17099b2722)) +* say which config file can't be read instead of 'no API key found' ([7a5517f](https://github.com/tinify/tinify-cli/commit/7a5517fe7ddd5340d3b511193ba5a5895765b40e)) +* say which images a stop caught during their upload ([e033089](https://github.com/tinify/tinify-cli/commit/e033089a992f12f4f9be0d2967b1e12f9ad864aa)) +* show negative sizes in KB and MB ([33bb7f1](https://github.com/tinify/tinify-cli/commit/33bb7f1959cdd87eb10351769c4f8300202d444a)) +* skip the --output folder when it's named as an input, as a shell glob does ([950f29d](https://github.com/tinify/tinify-cli/commit/950f29d22ddb7e86d358c4343bec9e5668939c5a)) +* stop the run when a result's folder won't take new files ([1e64606](https://github.com/tinify/tinify-cli/commit/1e6460610ffb304541dc038a605ec8e689e0f150)) +* the first failed S3 upload stops the run again, naming both causes ([8991cd5](https://github.com/tinify/tinify-cli/commit/8991cd5607930f9267460de485d82f02cdfac303)) +* under --convert=best, a result another image wrote this run is a collision, not a skip ([be8ac5c](https://github.com/tinify/tinify-cli/commit/be8ac5c85833f58a593a6f03097990eea971328f)) +* upload an image reached through a symlink only once ([7874d4a](https://github.com/tinify/tinify-cli/commit/7874d4adfebf9a9be8b52f5cddc3217c3d1e8c9f)) +* waiting for a free upload slot no longer grows memory with each image ([e8ed078](https://github.com/tinify/tinify-cli/commit/e8ed07875b9c978321fd4704dd75fa44b0b8764f)) +* walk folders with hundreds of thousands of images ([d7ac0e7](https://github.com/tinify/tinify-cli/commit/d7ac0e791ac4c27d8c7dfbdea5e1f1ea110cb625)) +* with --convert=best, refuse a result whose path leads back to the image ([43d1ce7](https://github.com/tinify/tinify-cli/commit/43d1ce7dc9fc9d643f5690dd80764e3de43cad5a)) +* work on drives where realpath fails with EISDIR ([78991dc](https://github.com/tinify/tinify-cli/commit/78991dce856d2ddef794c7912f9a267d4244f424)) +* write into the input only if it's still the file that was uploaded ([94196db](https://github.com/tinify/tinify-cli/commit/94196db036ffe6199d9fa9ad10e03696d01213f8)) +* write results into the image, and never over a file created meanwhile ([0164c46](https://github.com/tinify/tinify-cli/commit/0164c460d140cbcb7e55ab5fefcf8d6b2011e98e)) +* write the result when a replaced file's owner can't be kept, with a warning ([4fc878a](https://github.com/tinify/tinify-cli/commit/4fc878a670896cf382fc9c35f635442ea403150e)) + + +### Reverts + +* a failed new file is removed without checking it's still ours ([edee102](https://github.com/tinify/tinify-cli/commit/edee102d80d224c065870a519bb74cf4f269cb7e)) +* write into the input without checking it's still the file uploaded ([3f102ce](https://github.com/tinify/tinify-cli/commit/3f102cecdf1896a674d7ef4f8dfaad6eaf97c118)) + ## [1.0.0](https://github.com/tinify/tinify-cli/releases/tag/v1.0.0) Initial release. diff --git a/package.json b/package.json index 6207e42..5feb8a9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tinify/cli", - "version": "1.0.0", + "version": "1.1.0", "description": "Compress, convert and resize images from the command line with the Tinify API", "license": "MIT", "repository": {