Skip to content

Conversation

@ChristophWurst
Copy link
Member

Migrating away will be hard. But so is updating to v3. As briefly discussed at the last contributor week it's time to deprecate the global variable, at least. This won't be a breaking change but devs can start to think about their migration path, while we also have some time to fix our code.

Maybe this sounds crazy, but what if we announce that jQuery will be upgraded to v3 in Nextcloud 21? This would be a soft-break. Like most scripts will still work. But some might need fine adjustments. And then completely remove the global variable in a later release?

cc @nextcloud/javascript

@rullzer
Copy link
Member

rullzer commented Feb 10, 2020

Upgrading will also be hard.
So I'm not sure yet what we'll do.

In any case this is a good step!

@ChristophWurst
Copy link
Member Author

Upgrading will also be hard.

Depends. Biggest breaking change I've seen is when the load event ($(function() { ... })) fires. The rest is reasonable to fix.

@ChristophWurst
Copy link
Member Author

We can also announce the upgrade. And if it doesn't work we don't do it. But better to announce and have people migrate away than having to break it short notice.

@ChristophWurst ChristophWurst force-pushed the techdebt/deprecate-global-jquery branch 2 times, most recently from f015155 to 5526aa7 Compare February 10, 2020 15:52
@rullzer rullzer force-pushed the techdebt/deprecate-global-jquery branch from 5526aa7 to c7583c4 Compare February 11, 2020 07:36
@rullzer
Copy link
Member

rullzer commented Feb 11, 2020

/compile amend /

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
@npmbuildbot-nextcloud npmbuildbot-nextcloud bot force-pushed the techdebt/deprecate-global-jquery branch from c7583c4 to 328f967 Compare February 11, 2020 07:39
@ChristophWurst ChristophWurst added the pending documentation This pull request needs an associated documentation update label Feb 11, 2020
@rullzer rullzer merged commit 74fc9a4 into master Feb 11, 2020
@rullzer rullzer deleted the techdebt/deprecate-global-jquery branch February 11, 2020 09:35
@ChristophWurst ChristophWurst added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews pending documentation This pull request needs an associated documentation update labels Apr 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish javascript technical debt

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants