Releases: Digicreon/muJS
Releases · Digicreon/muJS
1.4.4
Support relative URLs and absolute same-origin URLs.
URLs like "../page.html", "page.html", and "https://same-domain.com/page" are now resolved and intercepted.
Previously, only paths starting with "/" were processed. Uses native URL constructor with same-origin check.
Refactor: code factorization.
Refactor: reduce minified size (progress bar cssText, deduplicate hasAttribute checks)
1.4.3
Debug
Fix View Transition timing and form Content-Type.
mu:after-render,pushStateandscrollran beforestartViewTransition()applied the DOM update. Post-render logic now waits forupdateCallbackDone.- Form POST sent
multipart/form-dataregardless of enctype. Now sends URL-encoded by default, multipart only forenctype="multipart/form-data".
1.4.2
1.4.1
1.4.0
Features
- 9 injection modes:
replace,update,prepend,append,before,after,remove,none,patch - Patch mode: multiple DOM fragments updated in a single response
- Forms: GET and POST, HTML5 validation, custom validation (
mu-validate), quit confirmation (mu-confirm-quit) - HTTP methods:
GET,POST,PUT,PATCH,DELETEviamu-method - Triggers:
click,submit,change,blur,focus,loadviamu-trigger - Debounce (
mu-debounce) and polling (mu-repeat) - Server-Sent Events via
mu-method="sse" - Prefetch on hover (50 ms delay, GET only)
- Independent
mu-historyandmu-scrollcontrols with context-dependent defaults - Scroll restoration on back/forward navigation
- DOM morphing via Idiomorph (optional, auto-detected)
- View Transitions API support (optional, auto-detected)
- Built-in progress bar
- Additive
<head>merging (stylesheets, scripts) - Link filtering: external URLs,
target,download, modifier keys,mu-disabled - Custom events:
mu:init,mu:before-fetch,mu:before-render,mu:after-render,mu:fetch-error
Stats
- Single file, no dependencies
- Source: 59 KB / Minified: 15 KB / Gzipped: 4.9 KB
Browser support
Chrome 66+, Firefox 57+, Safari 12.1+, Edge 79+