[Tech Debt] Remove dependency on jquery
#3658
Labels
dependencies
Pull requests that update a dependency file
help wanted
Community development is encouraged
technical debt
If not paid, jeapardizes long-term success and maintainability of the repository.
jQuery is an open-source JavaScript library designed to simplify client-side scripting of HTML. It provides an API for interacting with HTML documents, handling events, animating elements, and making AJAX requests.
To reduce memory usage and bundle size, and improve performance, jquery should be abandoned in favor of native built-in methods. In addition any dependencies that rely on jQuery should similarly be re-assessed, migrated, and removed.
Also requires a campaign to alert any plugins that rely on jQuery that they'll need to explicitly declare that dependency.
Current dependency:
"jquery": "^3.5.0",
Note that a pre-requisite to removing the
jquery
dependency is to also remove our dependency on flot_charts: https://github.com/opensearch-project/OpenSearch-Dashboards/blob/main/packages/osd-ui-shared-deps/flot_charts/API.mdMigration plan:
jquery.flot
usage and remove as bundled shared dependency #4267vis_type_timeline
to Vega-Lite or deprecate #3389timeline
plugin to Vega-Lite or deprecate #3388jquery
andflot_charts
fromosd-ui-shared-deps
packagejquery
usage inconsole
plugin with native methods #3679jquery
usage indiscover
plugin with native methodsjquery
usage inopensearch_dashboards_legacy
plugin with native methodsjquery
usage inregion_map
andtile_map
plugins with native methodsjquery
usage intimeline
plugin with native methodsvis_type_timeline
to Vega-Lite or deprecate #3389 OR replacejquery
usage invis_type_timeline
plugin with native methodsjquery
usage invis_type_timeseries
plugin with native methods #3682jquery
usage invis_type_vega
plugin with native methods #3683jquery
usage invis_type_visLib
plugin with native methodsjquery
and@types/jquery
dependenciesThe text was updated successfully, but these errors were encountered: