Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #38617

Re: 3rd party scripts

From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: 3rd party scripts
Date 2020-07-28 18:25 +0200
Organization PointedEars Software (PES)
Message-ID <3062290.aeNJFYEL58@PointedEars.de> (permalink)
References <DcidnQsjheuu04LCnZ2dnUU7-QXNnZ2d@westnet.com.au>

Show all headers | View raw


Andrew Poulos wrote:

> I have a website that uses 3rd party code (anime.js, driver.js...) The
> site works as expected but I have to manually check the 3rd party
> sources to see if there are any updates.
> 
> Then if there is an update I have to check what it is, download it, and
> then test the website with it.
> 
> Is this the nature of using 3rd party code or is there some "automated"
> way to handle it?

The way this works now *protects* you because your code may become 
incompatible to the third-party code if it is updated.

In theory, there is semantic versioning, with which developers can make 
updates to their code and indicate that the new version only fixes bugs or 
introduces new features, but does not break any existing code:

- A change from version 1.4.21 to 1.4.22 would indicate that only bugs were
  fixed.

- A change from version 1.4.21 to 1.5.3 would indicate that new features
  were introduced in a backwards-compatible way, and some bugs were fixed.

- A change from version 1.4.21 to 2.0.2 would indicate that breaking changes
  have been introduced, and that old code would probably have to be updated
  before it can be used with the new version

Then it would be possible to refer to a major version and always use the 
newest version of the library, e.g.

  https://example.com/lib-1.js

This could be equivalent (by server-side redirect) to

  https://example.com/lib-1.4.22.js

if the most recent version of the 1.x series is 1.4.22.

This would be similar to how GNU/Linux handles C dynamically linked library 
references.  (A symlink to the newest/preferred version of the library is 
created.)

But not all developers know about or observe semantic versioning, so unless 
the developers of your third-party library do, you have to find a way to 
keep yourself up to date.  One possibility is to subscribe to a newsletter, 
code repository, or social media site of the library, if there is one.

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
<https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

3rd party scripts Andrew Poulos <ap_prog@hotmail.com> - 2020-07-28 07:59 +1000
  Re: 3rd party scripts "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2020-07-28 01:14 +0200
  Re: 3rd party scripts "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-07-27 18:19 -0700
    Re: 3rd party scripts "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-07-27 18:21 -0700
  Re: 3rd party scripts Arno Welzel <usenet@arnowelzel.de> - 2020-07-28 04:38 +0200
  Re: 3rd party scripts Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2020-07-28 18:25 +0200
    Re: 3rd party scripts Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2020-08-05 10:43 +0200

csiph-web