Skip to content

Releases: jokeyrhyme/cdn-sync

1.0.0 - 2017-01-12

11 Jan 23:54
Compare
Choose a tag to compare

Changed

  • BREAKING: require Node.js 4.x or newer, anything older is not supported
  • update async to 2.1.4 (from 0.9.0)
  • update aws-sdk to 2.7.21 (from 2.0.29)
  • update cli to 1.0.1 (from 0.6.5)
  • update findup-sync to 0.4.3 (from 0.1.3)
  • update glob to 7.1.1 (from 4.3.0)
  • update graceful-fs to 4.1.11 (from 3.0.5)
  • update mime to 1.3.4 (from 1.2.11)
  • update mmmagic to 0.4.5 (from 0.3.11)
  • update q to 1.4.1 (from 0.9.7)
  • update underscore to 1.8.3 (from 1.7.0)
  • update z-schema to 3.18.2 (from 3.1.5)

Fixed

  • explicitly ignore dot-files (already implicit default)
  • bump deps and devDeps (fixes #24) (fixes #27)

v0.8.0

01 Dec 19:48
Compare
Choose a tag to compare
  • automatically abort and retry S3 headObject request if it does not succeed in 15 seconds
  • switch from JSLint to ESLint
  • bump dependencies and devDependencies (except for Q)

v0.6.0

27 Aug 07:07
Compare
Choose a tag to compare
  • bump http.globalAgent.maxSockets to Infinity (up from Node's default 5)
  • add additional logging, try/catch guards and watchdog timers to help diagnose weird issues
  • update all npm modules (except for q)

progress bars

11 Jul 18:46
Compare
Choose a tag to compare
  • added progress bars (#20)
  • now sorting files by path (both local and remote) before doing anything else
  • bumped all npm packages (except Q)

headers and scale

18 Nov 04:09
Compare
Choose a tag to compare
  • #10: re-upload files to S3 if the remote headers are wrong
  • various improvements to MIME-type detection
  • fixes for handling CDNs with thousands of files
  • #9: better validation of configuration JSON

`--dry-run` and "gzip-suffix" strategy

26 Aug 12:00
Compare
Choose a tag to compare
  • #4 --dry-run option for peace of mind, any of the following are equivalent

    cdn-sync --dry-run go
    cdn-sync -n go
    cdn-sync go --dry-run
    cdn-sync go -n
    

    These will run all checks and compare local files with remote files, but no changes will be made.

  • new "gzip-suffix" strategy

    • "strategy": ["gzip-suffix"]: files are GZIP deflated and .gz is appended to their filenames, probably not particularly useful by itself
    • "strategy": ["clone", "gzip-suffix"]: as above, but the original (uncompressed) versions are also uploaded, so a single CDN can host both GZIP deflated files and uncompressed files

introducing "gzip" strategy support

10 Aug 07:28
Compare
Choose a tag to compare
  • "strategy": ["gzip"] is now an option for CDN targets
    • this will upload GZIP-deflated versions of all files
    • if you need to support ancient browsers, then you will need separate targets for "clone" and "gzip" and a way to direct compatible browsers to the "gzip" CDN

coming soon

  • automatic correction of remote headers i.e. if GZIP-deflated resources lack Content-Encoding: gzip
  • better documentation and JSON Schema for .cdn-sync.json

3rd and final push for the night :)

08 Aug 11:47
Compare
Choose a tag to compare

fixes

  • #1 broken for local directories with sub-directories

inevitable x.x.1 /sigh

08 Aug 10:35
Compare
Choose a tag to compare

Okay, looks like the CLI interface actually executes with this one, I promise!

initial basic clone-only release

08 Aug 10:22
Compare
Choose a tag to compare

This initial release should be sufficient to replace s3cmd. The only advantages are that this might be faster (through parallel requests, maximum of 5 at once) and that MIME detection should be far better than s3cmd for typical web assets.

known issues

  • doesn't actually run from the CLI
  • will post an update soon to correct this