3 ms·
Javascript does. For example: <script src=" https://cdn.jsdelivr.net/npm/lodash@4.17.21/lodash.min.js "></script> Or using the new ES6 "import" syntax: <
by iforgot22 2y ago
Javascript does. For example:
<script src=" https://cdn.jsdelivr.net/npm/lodash@4.17.21/lodash.min.js "></script>
Or using the new ES6 "import" syntax:
<script type="module"> import lodash from 'https://cdn.jsdelivr.net/npm/lodash@4.17.21/+esm' </script>
- xigoi 2y agoThat’s just the CDN’s convention, not a part of the language.
- lolinder 2y agoVersions aren't a concept in most languages at all, so they're bound to be imposed by some external system, be that NPM or CDN. It's part of the language that you can specify a complete URI in an import statement, and a URI for a library really should include a version number somehow.
- iforgot22 2y agoOh yeah I was only referring to how the language specifies which deps you need and where you get them, not the versioning too.