htmx.org 2.0.3 → 2.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -10,12 +10,12 @@
10
10
  ## introduction
11
11
 
12
12
  htmx allows you to access [AJAX](https://htmx.org/docs#ajax), [CSS Transitions](https://htmx.org/docs#css_transitions),
13
- [WebSockets](https://htmx.org/docs#websockets) and [Server Sent Events](https://htmx.org/docs#sse)
13
+ [WebSockets](https://htmx.org/extensions/ws/) and [Server Sent Events](https://htmx.org/extensions/sse/)
14
14
  directly in HTML, using [attributes](https://htmx.org/reference#attributes), so you can build
15
15
  [modern user interfaces](https://htmx.org/examples) with the [simplicity](https://en.wikipedia.org/wiki/HATEOAS) and
16
16
  [power](https://www.ics.uci.edu/~fielding/pubs/dissertation/rest_arch_style.htm) of hypertext
17
17
 
18
- htmx is small ([~14k min.gz'd](https://unpkg.com/htmx.org/dist/)),
18
+ htmx is small ([~14k min.gz'd](https://cdn.jsdelivr.net/npm/htmx.org/dist/)),
19
19
  [dependency-free](https://github.com/bigskysoftware/htmx/blob/master/package.json) &
20
20
  [extendable](https://htmx.org/extensions)
21
21
 
@@ -32,7 +32,7 @@ By removing these arbitrary constraints htmx completes HTML as a
32
32
  ## quick start
33
33
 
34
34
  ```html
35
- <script src="https://unpkg.com/htmx.org@2.0.3"></script>
35
+ <script src="https://cdn.jsdelivr.net/npm/htmx.org@2.0.5/dist/htmx.min.js"></script>
36
36
  <!-- have a button POST a click via AJAX -->
37
37
  <button hx-post="/clicked" hx-swap="outerHTML">
38
38
  Click Me
@@ -99,8 +99,6 @@ At this point you can modify `/src/htmx.js` to add features, and then add tests
99
99
  htmx uses the [mocha](https://mochajs.org/) testing framework, the [chai](https://www.chaijs.com/) assertion framework
100
100
  and [sinon](https://sinonjs.org/releases/v9/fake-xhr-and-server/) to mock out AJAX requests. They are all OK.
101
101
 
102
- You can also run live tests and demo of the WebSockets and Server-Side Events extensions with `npm run ws-tests`
103
-
104
102
  ## haiku
105
103
 
106
104
  *javascript fatigue:<br/>
@@ -17,7 +17,7 @@
17
17
 
18
18
  /**
19
19
  * @param {HTMLElement} elt
20
- * @param {number} respCode
20
+ * @param {number} respCodeNumber
21
21
  * @returns {HTMLElement | null}
22
22
  */
23
23
  function getRespCodeTarget(elt, respCodeNumber) {