53

The latest available version of jQuery in the snippet editor is 2.1.1. This was released mid 2014! We're currently on version 2.2.4 and even jQuery 3 is out now with the first patch levels. Or another example, AngularJS. The latest version that can be chosen in the editor is from 2014 too and there is no single version of Angular 2 available.

Could the Stack Overflow team please update this with newer versions of these libraries? (as well as the other libraries if there are newer versions)

35
  • Thanks @TravisJ. I've noted this in my last sentence in my post. ;) But as I said, this is not how it should be. It would be nice to easily provide answers. Not only for me, I think there would be people outside, dropping a maybe good answer because they are too lazy to do this kind of stuff manually, or use tools like jsfiddle instead. It would be better for all to have a good maintained editor here on SO.
    – eisbehr
    Commented Aug 23, 2016 at 20:31
  • 9
    Asking "Why is the snippet editor not gonna be updated/extended anymore?" implies that someone has already decided it won't be updated. Otherwise, you should ask "Is the snippet editor going to be updated?"
    – Louis
    Commented Aug 23, 2016 at 20:38
  • 3
    Well, actually I'm not knowing, if there was an update in the past. But as the editor has no new libraries since 2014, I would assume it is at least not well maintained. And in about two years I think it is okay to ask, if it's not gonna be updated anymore. @Louis
    – eisbehr
    Commented Aug 23, 2016 at 20:40
  • Why is this question getting so many downvotes now? I thought this is what meta is for? Did I asked the wrong thing? Or did I anything else wrong here? At least leave a comments then ...
    – eisbehr
    Commented Aug 23, 2016 at 21:20
  • 2
    Okay, thanks. But what is the point for this? I mean, what is so bad on newer libraries? It should be pretty easy to add too. And specially for libs with new behaviors, like jQuery 3 has, it would be pretty useful for examples. @rene
    – eisbehr
    Commented Aug 23, 2016 at 21:29
  • 1
    @eisbehr Yes, they don't have the time to add things to a piece of code that is not used by everyone and has a reasonable workaround
    – rene
    Commented Aug 23, 2016 at 21:39
  • 1
    also relevant (MSE): Can we have a guaranteed pipeline for responses from Stack Exchange?
    – rene
    Commented Aug 23, 2016 at 21:43
  • 6
    Who knows what will be abadon next I agree with Louis that it's confusing for you to keep insisting someone's already decided not to support this, especially after rene pointed out that it was updated in June.
    – BSMP
    Commented Aug 23, 2016 at 22:19
  • 3
    Are you really asking if jQuery 3 or Angular 2 has become new features / behaviors in it's mayor releases since jQuery 1/2 or Angular 1? Then it would be shocking for you to hear, but yes: there are new and changed things! What do you think new version would be for? Just to have fancy new numbers? I'm not complaining about each patch level. @CodyGray
    – eisbehr
    Commented Aug 24, 2016 at 11:30
  • 2
    Can I use TypeScript in snippets?
    – user663031
    Commented Aug 27, 2016 at 19:05
  • 1
    @guest271314 Thats not the point. I could use jsfiddle too. But it would be way better to have the examples here on SO and not on an external side.
    – eisbehr
    Commented Sep 16, 2016 at 6:27
  • 3
    @guest271314 Yes, sure. You can do many things manually. But I don't want to take research first to find a CDN where these things are hosted in the correct versions, to post an answer. It should be fast and easy. And I think there would be many more people thinking like this. And the functionality is already there, there is only a update of the versions needed, not more. Should be pretty easy to extend.
    – eisbehr
    Commented Sep 16, 2016 at 6:36
  • 2
    @guest271314 Read my question again please. It's not abaout specific versions.
    – eisbehr
    Commented Sep 16, 2016 at 6:44
  • 1
    @guest271314 Sure, I could. But then only me have this available. Everybody else can't still use it. (we should probably stop to spam the comments here)
    – eisbehr
    Commented Sep 16, 2016 at 6:55
  • 2
    What about this question? Why jquery version didn't update to, for example, 3.2.1?
    – diralik
    Commented May 31, 2017 at 13:05

2 Answers 2

15

I've updated the versions for all listed libraries to reflect recent versions available on cdnjs as of November 16th 2018. This also involved switching to cdnjs as the host for jQuery and Angular.js, both of which were previously hosted on Google's cdn.

As part of this, I've restructured the backend a bit; it should be a bit easier to update the version lists in the future. We could even pull versions automatically from the cdnjs API if need-be... However, we may wish to consider an alternative approach: as BradleyDotNet noted, the current setup makes using platforms like the newer Angular prohibitively difficult; if we ever want to see folks using snippets for such platforms, we'll need to look at providing something closer to saved templates rather than relying on the simple script tag insertions which we currently use.

2
  • Hi, Any chance of getting jQuery 3.7.0 into the snippet editor?
    – mplungjan
    Commented May 18, 2023 at 16:28
  • 2
    If you can find someone left on the engineering team to update the list, @mplungjan - I would suggest raising a new issue for visibility
    – Shog9
    Commented May 18, 2023 at 20:36
9

The problem, as I see it, is that there is no standard place to get informed of what versions of which libraries are available on CDNs. There are some out there that get close:

Using an API like those above would, of course, only solve the issue of getting a relatively up-to-date list of versions for the libraries/packages one wishes to support - that's not always an easy decision to make. For instance, Angular is not a monolithic library; you have to chose which modules to include. Choosing which libraries to populate versions for is a different question (and answer).

6
  • 6
    Who needs Angular anyways?
    – user4639281
    Commented Nov 7, 2018 at 18:06
  • @TinyGiant Lots of people, including me :). Granted, Angular in stack snippets sounds... hard. There's a lot that goes into that. Commented Nov 8, 2018 at 1:00
  • @Bradley I was being facetious.
    – user4639281
    Commented Nov 8, 2018 at 2:08
  • It should be a matter of regular updates, not waiting for notifications from elsewhere. jQuery is absurdly out of date still.
    – isherwood
    Commented Dec 21, 2021 at 14:28
  • @isherwood You're probably better off writing a new [feature-request] than commenting on a fellow user's answer. Even Shog doesn't work there any more. My answer here was a suggestion to make it easier on SO employees (and users) so that we wouldn't have to keep requesting new versions; it would be automatic. Commented Dec 21, 2021 at 16:08
  • It was intended as a response to your answer. This isn't my first rodeo. :) Maybe I misunderstood your position on the issue.
    – isherwood
    Commented Dec 21, 2021 at 16:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .