I think it is a little bit too early to think about jQuery-3, it was released only 4 months ago and jQuery-2 is still well maintained (jQuery-1 is even still).
As a consequence (wrt Debian) sao can only be part of next stable if it supports jquery3 (or if there is a maintainable, not too complicated patchset). Otherwise I will have to remove the current package in NEW (https://ftp-master.debian.org/new/tryton-sao_4.0.5-1.html).
Ask Debian to support multiple versions of library. This is crazy for a distribution to require softwares to migrate to a new major library in few months.
* Cédric Krier: " [#5925 (closed)] Please update sao to work with jquery3" (Wed, 02
Nov 2016 13:48:33 +0100):
> Cédric Krier <cedric.krier@b2ck.com> added the comment:
>
> Ask Debian to support multiple versions of library. This is crazy for a
> distribution to require softwares to migrate to a new major library in few
> months.
Debian has limited resources and the support of multiple versions of jquery so
far seems not to be an option.
NB: Debian tries to support releases security-wise for at least 5 years [0],
which is quite a challenging task.
Reading the relevant threads gives me the impression, that there could be evtl.
quite few changes to be done in sao. At least it seems that the removed APIs
are deprecated since quite a long time. So it would rather be a move to a
more sane code...
From [1]:
> jQuery 3.x is supposed to be mostly backwards compatible with 1.x,
> however there a few breaking changes such as removal of APIs that were
> already marked as deprecated in 1.x, and change of behaviour on edge
> cases.
>
> jQuery 3.0 was release back in June, so in principle affected upstreams
> had at least a few months to deal with any fallout. If that's not the
> case, you can refer upstream to this upgrade guide, which documents the
> details:
>
> https://jquery.com/upgrade-guide/3.0/
and from [2]:
> Despite the 3.0 version number, we anticipate that these releases shouldn’t
> be too much trouble when it comes to upgrading existing code. Yes, there are
> a few “breaking changes” that justified the major version bump, but we’re
> hopeful the breakage doesn’t actually affect that many people.
>
> To assist with upgrading, we have a brand new 3.0 Upgrade Guide. And the
> jQuery Migrate 3.0 plugin will help you to identify compatibility issues in
> your code. Your feedback on the changes will help us greatly, so please try
> it out on your existing code and plugins!
> Korbinian Preisler <Timitos@virtual-things.biz> added the comment:
>
> there is already an issue about that:
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=680282
>
> But it does not look like there is much interest in solving this issue
Call it interest or call it manpower. As usual everyone is invited to contribute.
I just give a quick test on the jQuery migrate plugin and jQuery3. After loading the login page I get the following error on the console:
Error: Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3
So current bootstrap version is not compatible with jQuery3 and for what I see in [1] bootstrap won't support jQuery3 until version 4, so we must migrate the botstrap library to version4 which is still in alpha [2]
So for me, we should not do anything until all the libraries have stable support of jQuery3.
@yangoon as you were asking for advice, I suggest you to create a Debian package jquery2 that will install jquery-2.* in /usr/share/javascript/jquery-2/
> Sergi Almacellas Abellana <sergi@koolpi.com> added the comment:
>
> I just give a quick test on the jQuery migrate plugin and jQuery3. After
> loading the login page I get the following error on the console:
>
> Error: Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but
> lower than version 3
>
> So current bootstrap version is not compatible with jQuery3 and for what I
> see in [1] bootstrap won't support jQuery3 until version 4, so we must
> migrate the botstrap library to version4 which is still in alpha [2]
I followed up on Debian and was told, that bootstrap 3.3.7 (which is for some days in testing [1]) supports jquery3.
As the versioned dependencies just were changed in sao trunk to disregard minor versions, bootstrap should upgrade anyway to at least that version. Could you perhaps run your quick test with upgraded bootstrap again?
Even if bootstrap-3.3.7 works with jQuery-3, it does not mean that sao will work with jQuery-3. I strongly discourage to package sao with dependencies that does not respect the declaration. In such case, we will have to reject any issue submitted which uses the wrong dependencies.
jQuery 2.x is no more supported now. I could not find the announce but it is stated on the website: https://jquery.com/
I also found that latest Bootstrap v3 release have been fixed to work with jQuery 3.x
So I guess it is time to upgrade.
Here is review36011002 which should allow to use jQuery3.
There are some changes needed. I'm thinking about creating separate issue for each one because some are indeed issue which are not detected with jQuery2.
> There are some changes needed. I'm thinking about creating separate issue for each one because some are indeed issue which are not detected with jQuery2.
If some of this issues are bugs and should be backported to older versions I think we must create a separate issue and fix the issue for released versions.