Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you know if a JavaScript library you are using will break your code after an upgrade?

So, you are using a bunch of javascript libraries in a website. Your javascript code calls the several APIs, but every once in a while after an upgrade, one of the API changes, and your code breaks, without you knowing it.

How do you prevent this from happening?

I'm mostly interested in javascript, but any answer regarding dynamically typed languages would be valuable.

like image 700
ivo Avatar asked Apr 17 '10 14:04

ivo


1 Answers

I don't think there's much you can do. You always run a risk when updating any piece of software. The best advice is to:

  • Read and understand documentation about upgrading
  • Upgrade in your test environment
  • TEST
  • Roll out live when you are happy there are no regressions
like image 140
Andy Hume Avatar answered Oct 05 '22 22:10

Andy Hume