Skip to content

v1.2.2

Latest

Choose a tag to compare

@5PK 5PK released this 28 Oct 19:38
· 1 commit to main since this release
034b2e3

What's new in 1.2.2

A patch release with one fix for synced assets. It has the same code as 1.2.2-beta.0.

npm install -g @agility/cli@latest

Fixes

  • Text assets arrived double-gzipped on the target — the CDN serves small text files (.html, .htm, .css, .js, .txt, .log) gzip-encoded, and the CLI saved those compressed bytes to agility-files/ as if they were the file. On upload the Management API compressed them again, so the target asset was gzipped twice and a browser couldn't use it. Downloads are now decoded per Content-Encoding (gzip, deflate, br), so agility-files/ holds the original file and the target gets a byte-identical copy. (PROD-2987, #246)
  • Error responses saved as assets — any non-2xx response is now rejected instead of being written to disk as the asset, and a partly written file is removed if the download or decoding fails. (PROD-2987, #246)

Already-affected assets

This fix stops new double-gzipped uploads. It doesn't repair assets that an earlier version already uploaded: they're unchanged on the source, so a sync skips them. To fix one, re-upload the original file on the target, or make the sync treat it as changed (for example, re-upload the file on the source) and sync again with 1.2.2.

Full changelog: v1.2.1...v1.2.2