Skip to content

v0.3.5 - Remove jQuery dependency

Choose a tag to compare

@recca0120 recca0120 released this 12 Jan 12:32
· 20 commits to main since this release
436dac5

Refactoring

Remove jQuery Dependency

  • Replace jQuery with native JavaScript DOM operations
  • Replace jQuery UI Sortable with SortableJS v1.15.6
  • Move all dynamically generated HTML from JavaScript to HTML <template> elements in PHP

Benefits

  • Reduced bundle size (no jQuery/jQuery UI dependencies)
  • Better separation of concerns (HTML in templates, logic in JavaScript)
  • Improved maintainability with modern JavaScript patterns
  • SortableJS provides the same drag-and-drop functionality with smaller footprint

Technical Changes

  • assets/js/admin.js: Rewritten with Vanilla JS
  • assets/js/sortable.min.js: New file (SortableJS v1.15.6)
  • templates/admin/route-form.php: Added 13 HTML templates for dynamic elements
  • includes/WordPress/Admin/Admin.php: Updated script dependencies