spin.js icon indicating copy to clipboard operation
spin.js copied to clipboard

please make sure newest versions are CDNs.

Open andreacfromtheapp opened this issue 5 years ago • 7 comments

hi,

first things first: thanks for this great lib! so nimble and simple!

I would love to include it from cdnjs but it's stuck at version 2.3.2 . I don't want to use npm, only the

but CDNs have only the older version. I know this may be out of your control, but as the author would be nice to make sure CDNs are aligned with master releases.

please and thank you

andreacfromtheapp avatar Jan 02 '20 14:01 andreacfromtheapp

+1

WingGithub avatar Jan 09 '20 19:01 WingGithub

I'm not sure how the old version got on cdnjs in the first place, nor do I know how to update it there.

theodorejb avatar Feb 26 '20 17:02 theodorejb

in https://github.com/cdnjs/cdnjs you can check the package configuration under ajax/lib/NAME/package.json, and based on https://github.com/cdnjs/cdnjs/blob/master/CONTRIBUTING-WIP.md if that make sense. Also we know that updates via git has some issues, make sure to use update via npm.

xtuc avatar May 05 '20 21:05 xtuc

Even if one does not want to use CDN and downloads js,css directly from the page https://spin.js.org/ the js script causes errors in the console; Please remove the line export { Spinner }; from the webpage release ! I don't mean to be demanding, and I am grateful for the author's work, but it should work out of the box, without a hint that the developer has not tested their own library in CDN mode :-)

joe-oli avatar Jul 19 '20 06:07 joe-oli

@joe-oli The website already had a link to the UMD module, but I updated it now to make it more prominent next to the ESM link.

theodorejb avatar Jul 19 '20 22:07 theodorejb

Projects on GitHub can be retrieved via the jsDelivr CDN. For example, https://cdn.jsdelivr.net/gh/fgnass/[email protected]/

This project is already on NPM, and anything in NPM is available via the UNPKG CDN. For example, https://unpkg.com/browse/[email protected]/

Here's how it could be retrieved via libman for ASP.Net projects (selecting a sub-set of files):

{
  "provider": "unpkg",
  "library": "[email protected]",
  "destination": "wwwroot/lib/spin-js/",
  "files": [
    "CHANGELOG.md",
    "LICENSE.md",
    "README.md",
    "spin.css",
    "spin.js" 
  ]
},

RobJohnston avatar Jul 28 '20 13:07 RobJohnston

@joe-oli The website already had a link to the UMD module

I think what @joe-oli is referring to, is even the latest version 4.1.1 eg via this link. Just including this in a browser... in vanilla fashion, immediately gives this error: `Unexpected token 'export' (at spin.min.js:1:2805) ?

PandaWood avatar May 16 '22 13:05 PandaWood