Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Prototype.js with native JavaScript #613

Merged
merged 4 commits into from
Jul 8, 2023

Conversation

basil
Copy link
Member

@basil basil commented May 12, 2023

See JENKINS-70906. Jenkins core currently uses Prototype 1.7, released on November 15, 2010. The latest version is Prototype 1.7.3, released on September 22, 2015. When an attempt was made to upgrade to 1.7.3 in 2018 in JENKINS-49319, the change had to be reverted. Since this library has been unmaintained for the past 8 years, this PR removes any usages of it in favor of native JavaScript APIs. To test this, I installed this plugin on a custom build of Jenkins that had Prototype ripped out (a local project branch), and generated several Declarative snippets on the snippets page, stepping through the new code in the debugger to ensure it was working as intended.

@basil
Copy link
Member Author

basil commented May 29, 2023

Note that the maintainers appear to be cherry-picking PRs, as #618 was merged and released before this PR despite this PR being filed first.

@basil basil requested a review from a team June 27, 2023 17:30
@olamy olamy enabled auto-merge (squash) July 8, 2023 20:01
@olamy olamy merged commit 077ad19 into jenkinsci:master Jul 8, 2023
13 of 14 checks passed
@MarkEWaite
Copy link
Contributor

Could this have the developer label added so that it will be released? We're making good progress on the Prototype.js replacement project, with this as one of the high visibility plugins that still needs a release.

@basil basil deleted the remove-prototype branch July 14, 2023 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants