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

Missing autofix for jQuery.sap.getUriParameters #530

Open
flovogt opened this issue Feb 11, 2025 · 1 comment
Open

Missing autofix for jQuery.sap.getUriParameters #530

flovogt opened this issue Feb 11, 2025 · 1 comment
Labels
autofix An issue related to the autofix capabilities enhancement New feature or request

Comments

@flovogt
Copy link
Member

flovogt commented Feb 11, 2025

Missing autofix for jQuery.sap.getUriParameters

jQuery.sap.getUriParameters is deprecated and replaced by native browser APIs. Therefore an autofix should be offered by UI5 linter.

Deprecated Usage

var currentParams = jQuery.sap.getUriParameters();
var paramsByUrl = jQuery.sap.getUriParameters("/service?x=1&y=2&z=true");

Recommended Usage

var currentParams = new URLSearchParams(window.location.search);
var paramsByUrl = new URL("/service?x=1&y=2&z=true").searchParams;
@flovogt flovogt added autofix An issue related to the autofix capabilities enhancement New feature or request labels Feb 11, 2025
@flovogt
Copy link
Member Author

flovogt commented Feb 11, 2025

Will be implemented in CPOUI5FOUNDATION-990.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autofix An issue related to the autofix capabilities enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant