From 52b357089db95cea13411999a6b7913f0f0bc39b Mon Sep 17 00:00:00 2001 From: Carson Gross Date: Thu, 27 Jun 2024 13:40:02 -0600 Subject: [PATCH] bump version and make the esm version "main" --- CHANGELOG.md | 19 +++++++++++++++++++ package.json | 4 ++-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 60d5d516b..c76fd1e2e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,25 @@ * See the [Upgrade Guide](https://htmx.org/migration-guide-htmx-1/) for more details on upgrade steps * The `selectAndSwap()` internal API method was replaced with the public (and much better) [`swap()`](/api/#swap) method +## [2.0.1] - 2024-06-17 + +## [2.0.0] - 2024-06-17 + +* Removed extensions and moved to their own repos linked off of +* The website now supports dark mode! (Thanks [@pokonski](https://github.com/pokonski)!) +* The older, deprecated [SSE & WS](https://v1.htmx.org/docs/#websockets-and-sse) attributes were removed +* Better support for [Web Components & Shadow DOM](https://htmx.org/examples/web-components/) +* HTTP `DELETE` requests now use parameters, rather than form encoded bodies, for their payload (This is in accordance w/ the spec.) +* Module support was split into different files: +* We now provide specific files in `/dist` for the various JavaScript module styles: + * ESM Modules: `/dist/htmx.esm.js` + * AMD Modules: `/dist/htmx.amd.js` + * CJS Modules: `/dist/htmx.cjs.js` + * The `/dist/htmx.js` file continues to be browser-loadable +* The `hx-on` attribute, with its special syntax, has been removed in favor of the less-hacky `hx-on:` syntax. +* See the [Upgrade Guide](https://htmx.org/migration-guide-htmx-1/) for more details on upgrade steps +* The `selectAndSwap()` internal API method was replaced with the public (and much better) [`swap()`](/api/#swap) method + ## [1.9.12] - 2024-04-17 * [IE Fixes](https://github.com/bigskysoftware/htmx/commit/e64238dba3113c2eabe26b1e9e9ba7fe29ba3010) diff --git a/package.json b/package.json index 1127f81e5..14fee40ca 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "AJAX", "HTML" ], - "version": "2.0.0", + "version": "2.0.1", "homepage": "https://htmx.org/", "bugs": { "url": "https://github.com/bigskysoftware/htmx/issues" @@ -20,7 +20,7 @@ "dist/*.js.gz", "editors/jetbrains/htmx.web-types.json" ], - "main": "dist/htmx.min.js", + "main": "dist/htmx.esm.js", "types": "dist/htmx.d.ts", "unpkg": "dist/htmx.min.js", "web-types": "editors/jetbrains/htmx.web-types.json",