prep release

This commit is contained in:
Carson Gross
2025-11-27 13:20:42 -07:00
parent 0c8dff8e4d
commit 2841257abc
5 changed files with 9 additions and 9 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "htmx.org",
"version": "4.0.0-alpha3",
"version": "4.0.0-alpha4",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "htmx.org",
"version": "4.0.0-alpha3",
"version": "4.0.0-alpha4",
"license": "BSD-0-Clause",
"workspaces": [
"ext/*"

View File

@@ -1,6 +1,6 @@
{
"name": "htmx.org",
"version": "4.0.0-alpha3",
"version": "4.0.0-alpha4",
"description": "A hypermedia-oriented JavaScript library",
"main": "dist/htmx.js",
"module": "dist/htmx.esm.js",

View File

@@ -91,7 +91,7 @@ var htmx = (() => {
__initHtmxConfig() {
this.config = {
version: '4.0.0-alpha3',
version: '4.0.0-alpha4',
logAll: false,
prefix: "",
transitions: true,

View File

@@ -111,7 +111,7 @@ By removing these constraints, htmx completes HTML as a [hypertext](https://en.w
## quick start
```html
<script src="https://cdn.jsdelivr.net/npm/htmx.org@4.0.0-alpha3/dist/htmx.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/htmx.org@4.0.0-alpha4/dist/htmx.min.js"></script>
<!-- have a button POST a click via AJAX -->
<button hx-post="/clicked" hx-swap="outerHTML">
Click Me

View File

@@ -99,13 +99,13 @@ The fastest way to get going with htmx is to load it via a CDN.
Just add this to your head tag and you can get going:
```html
<script src="https://cdn.jsdelivr.net/npm/htmx.org@4.0.0-alpha3/dist/htmx.min.js" integrity="sha384-T2Hqw3k8trI7gNaFicPlFFfP0VgM6zm3dGuzR5cTvJMTE34XvFcjAv0gzTR+ZFDl" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/htmx.org@4.0.0-alpha4/dist/htmx.min.js" integrity="sha384-T2Hqw3k8trI7gNaFicPlFFfP0VgM6zm3dGuzR5cTvJMTE34XvFcjAv0gzTR+ZFDl" crossorigin="anonymous"></script>
```
An unminified version is also available as well:
```html
<script src="https://cdn.jsdelivr.net/npm/htmx.org@4.0.0-alpha3/dist/htmx.js" integrity="sha384-4LZvm91UcI3Mq7So8UwX65qebkqTqvh7OEsjYMJp/Dl6EmNQFJYuqpc6O3+rrZBX" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/htmx.org@4.0.0-alpha4/dist/htmx.js" integrity="sha384-4LZvm91UcI3Mq7So8UwX65qebkqTqvh7OEsjYMJp/Dl6EmNQFJYuqpc6O3+rrZBX" crossorigin="anonymous"></script>
```
While this CDN-based approach is quick and easy, you may want to consider [not using CDNs in production](https://blog.wesleyac.com/posts/why-not-javascript-cdn).
@@ -114,7 +114,7 @@ While this CDN-based approach is quick and easy, you may want to consider [not u
The next easiest way to install htmx is to copy it into your project, an option called [vendoring](@/essays/vendoring.md).
Download `htmx.min.js` <a download href="https://cdn.jsdelivr.net/npm/htmx.org@4.0.0-alpha3/dist/htmx.min.js">from jsDelivr</a>
Download `htmx.min.js` <a download href="https://cdn.jsdelivr.net/npm/htmx.org@4.0.0-alpha4/dist/htmx.min.js">from jsDelivr</a>
and hen add it to the appropriate directory in your project and include it where necessary with a `<script>` tag:
```html
@@ -126,7 +126,7 @@ and hen add it to the appropriate directory in your project and include it where
For npm-style build systems, you can install htmx via [npm](https://www.npmjs.com/):
```sh
npm install htmx.org@4.0.0-alpha3
npm install htmx.org@4.0.0-alpha4
```
After installing, youll need to use appropriate tooling to use `node_modules/htmx.org/dist/htmx.js` (or `.min.js`).