UNPKG

4.42 kBMarkdownView Raw
1# Changelog
2
3
4## [0.4.0] - 2020-11-16
5
6* Now support the `HX-Redirect` and `HX-Refresh` response headers for redirecting client side and triggering a page refresh, respectively
7* `hx-vars` now overrides input values
8* `<title>` tags in responses will be used to update page titles
9* All uses of `eval()` have been removed in favor of `Function`
10* [`hx-vals`](https://htmx.org/attributes/hx-vals) is available as a save alternative to `hx-vars`. It uses `JSON.parse()` rather than evaluation, if you wish to safely pass user-provided values through to htmx.
11
12## [0.3.0] - 2020-10-27
13
14* `hx-trigger` parsing has been rewritten and now supports [trigger filters](https://htmx.org/docs/#trigger-filters) to filter
15 events based on arbitrary javascript expressions
16* htmx now supports two additional response headers `HX-Trigger-After-Swap` and `HX-Trigger-After-Settle` allowing
17 an event to be triggered after a given life cycle event (instead of before the swap)
18* The `requestConfig` is now passed out to events surrounding the AJAX life cycle
19* htmx now evaluates `<script>` tags as javascript when no language is defined on them
20* A new [`event-header`](https://htmx.org/extensions/event-header) extension, which will include a serialized JSON representation of the triggering event in requests
21
22## [0.2.0] - 2020-9-30
23
24* AJAX file upload [support](https://htmx.org/docs#files)
25* The HTML validation API is [respected](https://htmx.org/docs#validation)
26
27## [0.1.0] - 2020-9-18
28
29* *BREAKING CHANGE*: The SSE attribute [`hx-sse`](https://htmx.org/attributes/hx-sse/) and the Web Sockets attribute [`hx-ws`](https://htmx.org/attributes/hx-ws) have changed syntax to now use colon separators: `hx-sse='connect:/chat swap:message'`
30* The SSE attribute [`hx-sse`](https://htmx.org/attributes/hx-sse/) allows for swapping content directly on an event, in addition to triggering an htmx element,
31with the new `swap:<event name>` syntax.
32* [`hx-target`](https://htmx.org/attributes/hx-target) now supports a `find` syntax to find elements below the element by a CSS selector
33* htmx plays better with deferred loading and many package managers
34* All htmx events are dispatched in both camelCase as well as kebab-case, for better compatibility with AlpineJS and other frameworks. (e.g. `htmx:afterOnLoad` will also be triggered as
35`htmx:after-on-load`)
36* [hypeerscript](https://hyperscript.org) is now initialized independently of htmx
37
38## [0.0.8] - 2020-7-8
39
40* The `view` modifier on `hx-swap` has been renamed to `show`: `hx-swap='innerHTML show:top'`
41
42## [0.0.7] - 2020-6-30
43
44* The [`hx-swap`](https://htmx.org/attributes/hx-swap) attribute now supports two new modifiers:
45 * `scroll` - allows you to scroll the target to the `top` or `bottom`
46 * `view` - allows you to scroll the `top` or `bottom` of the target into view
47* The [`hx-push-url`](https://htmx.org/attributes/hx-push-url) attribute now can optionally take a URL to push, in addition to `true` and `false`
48* Added the [`hx-vars`](https://htmx.org/attributes/hx-vars) attribute that allows you to dynamically add to the parameters that will be submitted with a request
49
50## [0.0.6] - 2020-6-20
51
52* Custom request/response headers no longer start with the `X-` prefix, which is no longer recommended
53* empty verb attributes are now allowed and follow the anchor tag semantics (e.g. `<div hx-get></div>`)
54* nunjuks inline rendering is now supported in the `client-side-templates` extension
55* the new `ajax-header` extension includes the `X-Requested-With` header
56* bad JSON is now handled more gracefully
57* `hx-swap="none"` will cause no swap to take place <https://github.com/bigskysoftware/htmx/issues/89>
58* `hx-trigger` now supports a `throttle` modifier <https://github.com/bigskysoftware/htmx/issues/88>
59* the focused element is preserved if possible after a replacement
60* perf improvements for large DOM trees with sparse `hx-` annotations
61
62## [0.0.4] - 2020-5-24
63
64* Extension mechanism added
65* SSE support added
66* WebSocket support added
67
68## [0.0.3] - 2020-5-17
69
70* Renamed to htmx
71* A bug fix for the `hx-prompt` attribute
72* A bug fix for multiple `hx-swap-oob` attributes
73* Moved the default CSS indicator injection into its own sheet to avoid breaking
74* Added the `htmx.config.includeIndicatorStyles` configuration option so people can opt out of injecting the indicator CSS
75
76
77## [0.0.1] - 2020-5-15
78
79* Initial release (originally named kutty)
\No newline at end of file