Does use of frameworks require updates?

Asked

Viewed 31 times

0

Hello

I’m using some frames like Bootstrap, jQuery and Owl Carousel and I wonder if I need to update my code whenever these frameworks update their versions.

It is safe, in the sense of breaking my code, to use these frameworks?

Thank you!

1 answer

1


Only if you update the versions you use in the application.

When you install these frameworks as a dependency on your application you define which exact version you want to use. New versions of frameworks will not interfere with your application unless you manually update them. This independence between versions is much more evident when you use a dependency manager and frameworks use semantic versioning.

You only need to change your application code when you choose to update dependencies and changes that have been made between the current and new versions are incompatible. Many changes made to frameworks are retro compatible and can be updated without fear.

It is up to you first to decide whether the dependencies update is necessary and, if so, to analyze what has changed in these versions and to check whether something has become incompatible with your application. Checking the CHANGELOG file usually facilitates this, since it usually brings a summary of all the changes made in each version.

  • Interesting Anderson. I didn’t know that I could choose the version according to the dependency I have and download it. But, what if I use a CDN? How am I using in jQuery.

  • @Psycintra E in the CDN URL you are using does not include the version?

  • Yes, there’s a version. But in the next update of the same, being CDN, it will update alone if my site is on the Web, or I need to go there, nail and change?

  • @Psycintra Will always request from CDN the version you entered. It will only change if you manually change the URL.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.