GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||
GeezerVison is showing github.com — Update dependency hyperscript.org to v0.9.93 by renovate[bot] · Pull Request #139 · developing-today/code Conversation
|
| Package | Change | Age | Confidence |
|---|---|---|---|
| hyperscript.org (source) | 0.9.12 → 0.9.93 |
v0.9.93Bugfixes and follow-ups from the 0.9.90/0.9.91 release:
fetch no longer swallows a trailing as conversion when the URL is a template string, quoted string, or variable - the conversion now applies to the response, not the URL (e.g. fetch /x?q=${y} as JSON)htmx.process is a function)endwhere clause now allowed directly after an in expressioneventsource sends Accept: text/event-stream for Stream conversionsv0.9.92v0.9.91Bugfixes from the 0.9.90 release:
on resize from window / on resize from document — non-Element targets now fall through to the native resize event instead of using a ResizeObserverfor <duration> modifier no longer consumes a following for-in loop${} template expressions hanging the playground iframe due to leftover debug loggingnpx hyperscript.org --validate (and the bun/deno platform scripts) crashing with ERR_MODULE_NOT_FOUND. (#667)v0.9.90Hoooooo doggie, it's been a year of on and off work, and we finally had some time to focus on hyperscript!
This is a major change/upgrade, including restructuring the entire codebase to be much more understandable by my students
as well as anyone else interested in the langauge.
Here we go...
dist/ext/ - dist/hdb.js → dist/ext/hdb.js, same for socket, template, worker, eventsource, tailwinddist/_hyperscript.js is now IIFE (was UMD) - still works with plain <script> tags, no change needed for most usersdist/_hyperscript.esm.js - use this for import statementsprocessNode() deprecated - use process() instead (alias still works)as JSON is now JSON.parse - replace as JSON with as JSONString if you were using it to stringifyValues:JSON and Values:Form removed - use as Values | JSONString and as Values | FormEncodeddefault uses nullish check instead of truthy - no longer overwrites 0 and falsego to url ... deprecated - use go to /path or go to "url" insteadgo to the top of ... scroll form deprecated - use scroll to the top of ... insteadasync keyword removed - had opposite meaning from JavaScript's async, was confusing/* */ block comments removed - enables patterns like /api/* in expressions; use -- or // line comments insteadtransition requires * style refs - transition width → transition *width; transition element #foo → transition #foo'sfetch throws on non-2xx responses by default - add do not throw or use as Response to restore old behavior[@attr] bracket-style attribute access deprecated - use @attr insteadlive, when ... changes, bind features for automatic dependency tracking and UI updatesrender command with <template> elements, ${} interpolation, #for/#if/#else/#end control flowmorph command by @Latent22 - DOM morphing (idiomorph-based) that preserves focus, scroll, form state<template component="name">^name) - scoped to the element, inherited by descendantsopen / close commands - dialogs, details, popovers, fullscreenfocus / blur commands - set or remove keyboard focusempty / clear command - smart clearing of elements, inputs, forms, arrays, sets, mapsreset command - restore form or input to its default valueswap command - exchange values of two assignable expressionsselect command - select text content of inputs/textareasask / answer commands - prompt(), alert(), confirm() wrappersspeak command - text-to-speech via Web Speech APIbreakpoint command in core - pauses in browser DevTools without needing hdb extensiontoggle between attributes - toggle between [@data-state='active'] and [@data-state='inactive']toggle <target> between <val1>, <val2> and <valN> - cycle any writable value through N values: toggle *display of #panel between 'none' and 'flex', toggle $mode between 'edit', 'preview' and 'publish'where, sorted by, mapped to, split by, joined byclipboard and selection magic symbolson resize synthetic event (via ResizeObserver)on first click modifier - fires event handler only onceview transition command - wrap DOM updates in the View Transitions APIintercept feature - service worker DSL for caching strategies and offline support--validate CLI tool - npx hyperscript.org --validate scans HTML files for parse errorshyperscript-max bundle - dist/_hyperscript-max.js includes core + all extensions in a single filehtmx:after:process event in addition to htmx:load
process() detects when _= attribute changed (via script hash) and reinitializes automaticallycleanup() API - _hyperscript.cleanup(elt) removes all event listeners, disconnects observers, clears timers, recursively cleans children. Called automatically before reinitialization.hyperscript:before:init, hyperscript:after:init, hyperscript:before:cleanup, hyperscript:after:cleanup fired per element. before:init is cancelable via preventDefault().data-hyperscript-powered attribute - set on all initialized elements for fast querying and morph compatibilityconfig.logAll - when true, logs all hyperscript events to console (matches htmx's logAll)|: #myForm as Values | JSONStringas JSON parses a JSON string, as JSONString stringifies, as FormEncoded URL-encodeswhen clause on remove and hide commands (async-safe, matching add/show)scroll to command for scrolling elements into view (replaces scroll form of go)repeat ... until x end and repeat ... while x end bottom-tested loopsignoring case modifier on comparisonsbetween comparison - if x is between 1 and 10starts with / ends with comparisonsput null into @attr removes the attribute#id, .class, <query/>) are writable via .replaceWith()set supports array concatenation - set arr to arr + [1, 2]and/or with proper async promise handlingllms-full.txt - LLM-friendly documentation endpoint at /llms-full.txtnode-hyperscript.js, deno-hyperscript.js, bun-hyperscript.js for running .hs files outside the browserAttributeRef not stripping single-quoted valuesElementCollection.id getter calling className as a methodadd, remove, toggle not working with ElementCollections as targetsrepeat erroring on undefined iterator (now skips gracefully)v0.9.14and/or expressionsappend command handles DOM elements properly~) in query selectors$= selectors-10px)v0.9.13📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
24f4eec to
34537bb
Compare
There was an error while loading. Please reload this page.
|
Important Review skippedBot user detected. To trigger a single review, invoke the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
34537bb to
f88d69b
Compare
f88d69b to
3d14ed8
Compare
2d347a2 to
81ccf7a
Compare
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.