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 #702

Merged
merged 1 commit into from
Jun 26, 2023

Conversation

basil
Copy link
Member

@basil basil commented May 11, 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), went to the Pipeline Editor, verified that correct syntax and syntax errors were correctly flagged, tried out each sample, and generated several snippets on the snippets page.

@basil basil requested a review from a team as a code owner May 11, 2023 23:54
@basil
Copy link
Member Author

basil commented May 29, 2023

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

@car-roll
Copy link
Contributor

We are planning to review all the prototype.js PRs at the same time.

@jglick jglick added the bug label Jun 26, 2023
@jglick jglick merged commit 8ff0c1b into jenkinsci:master Jun 26, 2023
@basil basil mentioned this pull request Jun 26, 2023
@basil
Copy link
Member Author

basil commented Jun 26, 2023

Logical merge conflict with #683, fixed in #733.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants