1.0.1-alpha • Published 1 year ago

unjquery v1.0.1-alpha

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

unjquery

Unleash the power of modern JavaScript

  • 🖼 Interactive Interface
  • ⚙ Backwards Compatible

Philosophy

Warning! We rely on a heuristic that is not using variables alongside with jQuery APIs

Benefits

  • Performance Boost: Eliminate the overhead of jQuery, leading to faster load times and improved responsiveness.
  • Modern Standards: Align your codebase with modern JavaScript standards and best practices.
  • Reduced Dependencies: Simplify your project by removing the need for the jQuery library.

Who is it for?

  • Web developers: Looking to modernize their existing jQuery-based projects.
  • Companies: Seeking to improve the performance and maintainability of their web applications.
  • Educators and Students: Exploring the differences and advantages of vanilla JavaScript over jQuery.

Installation

For maximum compatibility, install volta on your system to get the project's node version automatically whenever you open the project with your editor.

Supported jQuery APIs

AjaxSupportDescription
.getJson()partial
AttributesSupportDescription
.html()partial
.prop()partial
CoreSupportDescription
$(), jQuery()full
.each()partial
.noop()full
.pushStack()partial
CSSSupportDescription
.css()partialonly string properties are supported
.toggleClass()partial
.addClass()partial
.removeClass()partial
.fadeIn()partial
EffectsSupportDescription
.toggle()partial
EventsSupportDescription
.click()partial
ManipulationSupportDescription
.remove()partial
.text()partial
.appendTo()partial
TraversingSupportDescription
.find()partial
.end()partial

Limitations

  • If jquery objects returned by jquery call ($ or jQuery) are assigned to variables, the compiler doesn't touch them.
  • Code generator doesn't keep the correct code lines and messes up comment lines and blocks

Tools & References

Babel

Babel Plugin Handbook

Babel Parser AST Spec

AST Explorer

You Might Not Jquery

Jquery API

Contribution

See Contributing Guide.

License

MIT.

Problems

  • breaking changes in jQuery api versions
  • injecting js, css assets
  • extensible core transformer
  • integrating code-frame