zipline icon indicating copy to clipboard operation
zipline copied to clipboard

What was changed in 2.0?

Open acflint opened this issue 1 year ago • 3 comments

Hi folks, excited to see an update published! Do you have a change log of what's included in 2.0? Any breaking changes? Thanks so much.

acflint avatar Mar 25 '24 13:03 acflint

Hey @acflint since I was behind most changes I could give you a short summary:

  • The zip_tricks dependency (older and Hippocratic-licensed) has been replaced with zip_kit (modernized zip_tricks under standard MIT license)
  • Consequently, the minimum required Ruby version is now 2.6 as this is what zip_kit requires
  • zipline uses write_file and picks the deflate/stored mode for you automatically
  • The HTTP streaming parts are now serviced by zip_kit, not zipline itself - as this potentially allows better compat with things such as ActionController::Live and different webservers
  • If your webserver is likely to buffer your response there will be a message in the Rails log
  • If an error occurs during streaming, likewise: an error will be printed to the Rails log explaining what went wrong

In the works: there is some groundwork for continuing if a file fails to fetch from remote storage (to proceed to the next file). It looks like it would be appropriate to add a changelog, I will tackle that after #104 is done

julik avatar Apr 17 '24 08:04 julik

Thanks @julik! Those sound like exciting changes. Does the API or usage change at all? Or should this be a simple upgrade?

acflint avatar Apr 17 '24 13:04 acflint

Should be a simple upgrade

julik avatar Apr 17 '24 15:04 julik