mirror of
https://github.com/bigskysoftware/htmx.git
synced 2026-01-25 05:06:13 +00:00
prep release
This commit is contained in:
4
package-lock.json
generated
4
package-lock.json
generated
@@ -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/*"
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -91,7 +91,7 @@ var htmx = (() => {
|
||||
|
||||
__initHtmxConfig() {
|
||||
this.config = {
|
||||
version: '4.0.0-alpha3',
|
||||
version: '4.0.0-alpha4',
|
||||
logAll: false,
|
||||
prefix: "",
|
||||
transitions: true,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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, you’ll need to use appropriate tooling to use `node_modules/htmx.org/dist/htmx.js` (or `.min.js`).
|
||||
|
||||
Reference in New Issue
Block a user