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


Groups > comp.lang.javascript > #38667

Re: 3rd party scripts

Path csiph.com!3.eu.feeder.erje.net!feeder.erje.net!news.mb-net.net!open-news-network.org!.POSTED.120.232.197.178.dynamic.wless.lssmb00p-cgnat.res.cust.swisscom.ch!not-for-mail
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: 3rd party scripts
Date Wed, 05 Aug 2020 10:43:17 +0200
Organization PointedEars Software (PES)
Lines 42
Message-ID <7831474.NyiUUSuA9g@PointedEars.de> (permalink)
References <DcidnQsjheuu04LCnZ2dnUU7-QXNnZ2d@westnet.com.au> <3062290.aeNJFYEL58@PointedEars.de>
Reply-To Thomas 'PointedEars' Lahn <cljs@PointedEars.de>
Mime-Version 1.0
Content-Type text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding 7Bit
Injection-Info gwaiyur.mb-net.net; posting-host="120.232.197.178.dynamic.wless.lssmb00p-cgnat.res.cust.swisscom.ch:178.197.232.120"; logging-data="9137"; mail-complaints-to="abuse@open-news-network.org"
User-Agent KNode/4.14.10
Cancel-Lock sha1:86DiuTtZB7K8KhaxkOkM3cPOci4=
X-User-ID U2FsdGVkX19DpqqHS0qpT+pr4TfYU0oB+BvQye0dn6JwlqLuWGTtOA==
Face iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXTxa4RFk5dUWANED8PFEfy7+MGBiW+n3ZNF/QuAAACaElEQVQ4jVXUwVOcMBQG8Dc7Rc4PUntdWV2uxjDpGaGeozOp1woar4jd5t/v9wLstMwsA/ntlxdCAgUc1hjTc9/JCZfGoo3wG3HdmdAWrIJRHe7GM/TmpY5VFefuVcAkkPbLIaN8rmPmjloyZxgyR3GuJ4K0AGtJ2htz8o7yqikm759fldQXaMpbDzjKAG+8v+AugVTOPO5DOjLvGtUYQwh0CPjnVMyGd+8/GfUB5nLKJDD2aLDh5HYyMDJGDwQIo2ZmZcKbowNmAdB/AzyFhrmF2MHRb0QJJfaAnwGB6orZhoykLzJtGwF/xpYxI1dswomiUj3gTuAIqCn/4C7cULwGNBtwMTk3Y4LfKB5YUaOKBKYtpplm7u0vip8tU1NWWyI/7XdcSuIDoMt6rVHMWT0DbjHPGqDqZVSa6zleLcUTcIKLoMv3ueJluALtAo9B302zPPlrtiVScRdCjXvVh3e3JpYa/jjkuC9N+LrBMlz/eAN4eQijX2EdLo6c5tGGHwLyHFtXk89dDGHwCVhG9T0S/j55AhRZgkMCmUQXJ49TnS1wnQDvw0eAh9ICeMmEFbCnPMFzjAvsWoEWEFdYEx+S0MoUZ1gT1wId8+AF3Bl2OoEu906AUHx5VLw/gXYg/x84loOah/2UYNrgiwSwGO7RfUzVBbx/kgpckumGOi6QirtD6gkLTitbnxNol47S2jVc2vsN5kPqaAHT8uUdAJM4v/DanjYOwmUjWznGfwB7sGtAtor5BgofDuzaRj4kSQAqDakTsKORa3Q3xKi3gE1fhl71KRMqrdZ2AWNNg/YOhQyrVBnb+i+nEg4bsDA+egAAAABJRU5ErkJggg==
X-Face %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&.<b';Md8`dH6iqhT)6C^.Px|[=M@7=Ik[_w<%n1Up"LPQNu2m8|L!/3iby{-]A+#YE}Kl{Cw$\U!kD%K}\2jz"QQP6Uqr],./"?;=4v
Xref csiph.com comp.lang.javascript:38667

Show key headers only | View raw


Thomas 'PointedEars' Lahn wrote:

> 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.

I forgot the reference: <https://semver.org/>

But apparently (from my professional experience) the more common way today 
is to use semantic versioning in your build system, often based on Node.js, 
like Bower or plain npm, build the third-party library together with your 
code, and then refer to the minified (and potentially source-mapped) version 
of that:

<https://docs.npmjs.com/about-semantic-versioning>

-- 
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 | 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