1 | # Changelog
|
2 |
|
3 |
|
4 | ## [1.1.0] - 2021-1-6
|
5 |
|
6 | * Newly added [preload extension](https://htmx.org/extensions/preload/) allows you to preload resources for lower
|
7 | latency requests!
|
8 | * Support the `ignore:` modifier for extensions
|
9 | * Updated form variable order inclusion to include the enclosing form *last* so that, in the presence of multiple
|
10 | values, the most relevant value is the most likely to be selected by the server
|
11 | * Support for the [`htmx.ajax()`](https://dev.htmx.org/api/#ajax) javascript function, to issue an htmx-style ajax
|
12 | request from javascript
|
13 | * Removed the following htmx request headers for better cache behavior: `HX-Event-Target`, `HX-Active-Element`,
|
14 | `HX-Active-Element-Name`, `HX-Active-Element-Value`
|
15 | * Added the [`hx-preserve`](https://dev.htmx.org/attributes/hx-preserve) attribute, which allows
|
16 | you to preserve elements across requests (for example, to keep a video element playing properly)
|
17 | * The [path-deps](https://dev.htmx.org/extensions/path-deps/#refresh) now surfaces a small api
|
18 | for refreshing path dependencies manually in javascript
|
19 | * Now support the `from:` clause on [`hx-trigger`](https://dev.htmx.org/attributes/hx-trigger) to
|
20 | allow an element to respond to events on other elements.
|
21 | * Added the `htmx:beforeProcessNode` event, renamed the (previously undocumented) `htmx:processedNode` to `htmx:afterProcessNode`
|
22 | * Added `closest` syntax support for the [`hx-indicator`](https://dev.htmx.org/attributes/hx-indicator) attribute
|
23 | * Added `on load` support for the newest version of [hyperscript](https://hyperscript.org)
|
24 | * Added the `htmx.config.allowEval` configuration value, for CSP compatibility
|
25 | * Bug fixes & improvements
|
26 |
|
27 | ## [1.0.2] - 2020-12-12
|
28 |
|
29 | * Extend all API methods to take a string selector as well as an element
|
30 | * Out of band swap elements need not be top level now
|
31 | * [`hx-swap-oob`](https://htmx.org/attributes/hx-swap-oob) now can accept a CSS selector to retarget with
|
32 |
|
33 | ## [1.0.1] - 2020-12-04
|
34 |
|
35 | * AJAX file upload now correctly fires events, allowing for [a proper progress bar](https://htmx.org/examples/file-upload)
|
36 | * htmx api functions that expect an element now can accept a string selector instead:
|
37 | ```js
|
38 | htmx.on('#form', 'htmx:xhr:progress', function(evt) {
|
39 | htmx.find('#progress').setAttribute('value', evt.detail.loaded/evt.detail.total * 100)
|
40 | });
|
41 | ```
|
42 | * htmx now properly handles the `multiple` attribute on `<select>` elements
|
43 |
|
44 | ## [1.0.0] - 2020-11-24
|
45 |
|
46 | * Bumped the release version :)
|
47 |
|
48 | ## [0.4.1] - 2020-11-23
|
49 |
|
50 | * Fixed bug with title tag support when title tag contained HTML entities
|
51 | * Pass properties for the `loadstart`, `loadend`, `progress`, `abort` events through properly to the htmx equivalents
|
52 |
|
53 | ## [0.4.0] - 2020-11-16
|
54 |
|
55 | * Now support the `HX-Redirect` and `HX-Refresh` response headers for redirecting client side and triggering a page refresh, respectively
|
56 | * `hx-vars` now overrides input values
|
57 | * `<title>` tags in responses will be used to update page titles
|
58 | * All uses of `eval()` have been removed in favor of `Function`
|
59 | * [`hx-vals`](https://htmx.org/attributes/hx-vals) is available as a safe alternative to `hx-vars`. It uses `JSON.parse()` rather than evaluation, if you wish to safely pass user-provided values through to htmx.
|
60 |
|
61 | ## [0.3.0] - 2020-10-27
|
62 |
|
63 | * `hx-trigger` parsing has been rewritten and now supports [trigger filters](https://htmx.org/docs/#trigger-filters) to filter
|
64 | events based on arbitrary javascript expressions
|
65 | * htmx now supports two additional response headers `HX-Trigger-After-Swap` and `HX-Trigger-After-Settle` allowing
|
66 | an event to be triggered after a given life cycle event (instead of before the swap)
|
67 | * The `requestConfig` is now passed out to events surrounding the AJAX life cycle
|
68 | * htmx now evaluates `<script>` tags as javascript when no language is defined on them
|
69 | * A new [`event-header`](https://htmx.org/extensions/event-header) extension, which will include a serialized JSON representation of the triggering event in requests
|
70 |
|
71 | ## [0.2.0] - 2020-9-30
|
72 |
|
73 | * AJAX file upload [support](https://htmx.org/docs#files)
|
74 | * The HTML validation API is [respected](https://htmx.org/docs#validation)
|
75 |
|
76 | ## [0.1.0] - 2020-9-18
|
77 |
|
78 | * *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'`
|
79 | * 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,
|
80 | with the new `swap:<event name>` syntax.
|
81 | * [`hx-target`](https://htmx.org/attributes/hx-target) now supports a `find` syntax to find elements below the element by a CSS selector
|
82 | * htmx plays better with deferred loading and many package managers
|
83 | * 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
|
84 | `htmx:after-on-load`)
|
85 | * [hypeerscript](https://hyperscript.org) is now initialized independently of htmx
|
86 |
|
87 | ## [0.0.8] - 2020-7-8
|
88 |
|
89 | * The `view` modifier on `hx-swap` has been renamed to `show`: `hx-swap='innerHTML show:top'`
|
90 |
|
91 | ## [0.0.7] - 2020-6-30
|
92 |
|
93 | * The [`hx-swap`](https://htmx.org/attributes/hx-swap) attribute now supports two new modifiers:
|
94 | * `scroll` - allows you to scroll the target to the `top` or `bottom`
|
95 | * `view` - allows you to scroll the `top` or `bottom` of the target into view
|
96 | * 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`
|
97 | * 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
|
98 |
|
99 | ## [0.0.6] - 2020-6-20
|
100 |
|
101 | * Custom request/response headers no longer start with the `X-` prefix, which is no longer recommended
|
102 | * empty verb attributes are now allowed and follow the anchor tag semantics (e.g. `<div hx-get></div>`)
|
103 | * nunjuks inline rendering is now supported in the `client-side-templates` extension
|
104 | * the new `ajax-header` extension includes the `X-Requested-With` header
|
105 | * bad JSON is now handled more gracefully
|
106 | * `hx-swap="none"` will cause no swap to take place <https://github.com/bigskysoftware/htmx/issues/89>
|
107 | * `hx-trigger` now supports a `throttle` modifier <https://github.com/bigskysoftware/htmx/issues/88>
|
108 | * the focused element is preserved if possible after a replacement
|
109 | * perf improvements for large DOM trees with sparse `hx-` annotations
|
110 |
|
111 | ## [0.0.4] - 2020-5-24
|
112 |
|
113 | * Extension mechanism added
|
114 | * SSE support added
|
115 | * WebSocket support added
|
116 |
|
117 | ## [0.0.3] - 2020-5-17
|
118 |
|
119 | * Renamed to htmx
|
120 | * A bug fix for the `hx-prompt` attribute
|
121 | * A bug fix for multiple `hx-swap-oob` attributes
|
122 | * Moved the default CSS indicator injection into its own sheet to avoid breaking
|
123 | * Added the `htmx.config.includeIndicatorStyles` configuration option so people can opt out of injecting the indicator CSS
|
124 |
|
125 |
|
126 | ## [0.0.1] - 2020-5-15
|
127 |
|
128 | * Initial release (originally named kutty)
|
129 |
|
\ | No newline at end of file |