- Add
onBeforeBuildResponse
hook for doing tasks that need to happen before the HTML/response is generated. - Add
prependTitleSegment
.
- Add
hxSwapOob
andrawHxSwapOob
attributes.
- Add
allowEmptyString
option toFormDataHelpers.getString
, and make sure that empty strings are treated asNone
by default. - Handle
on
andoff
values forFormDataHelpers.getBool
.
- Fix issue with Vite transform and CSS files with imports.
- Move to using a generic JSX transform.
These versions are now required:
rescript@>=11.1.0-rc.2
@rescript/core@>=1.0.0
rescript-bun@>=0.4.1
- Add
SwapClass
to ResX client actions.
- BREAKING: Restructure hx handler code.
- Add
Security
module, and move HTML escaping to use Bun's builtinescapeHTML
. - BREAKING: Change types of
domProps.method
anddomProps.action
. - Add
formAction
handler support. - Prefix HTMX handler routes automatically.
- Alias
domProps
in the right place so we get completion.
- Add
renderSyncToString
API.
- Bind basic version of
hxTarget
.
- Upgrade
rescript-bun
to0.3.0
.
- Add
onBeforeSendResponse
hook.
- Escape title segments.
- Fix bug with races in appending content to
<head>
.
- Create target directory if it doesn't already exist.
- Remove unused
server
inrenderConfig
.
- Support removing elements with client actions.
- Fix issue with children in JSX.
- Fix dependency on
rescript-bun
. - Add
BunUtils.URLSearchParams.copy
helper. - Rename handler creators:
get
->hxGet
,makeGet
->makeHxGetIdentifier
,implementGet
->implementHxGetIdentifier
. Same for post/put/delete/patch.
- Add
hxGet/Post/Put/Delete/Patch
helpers suitable for when you need to handle cyclic dependencies.
- Include all files in package.
- Fix package name in
rescript.json
. - Fix various smaller things.