Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

All notable changes to BareDOM will be documented in this file.

## [2.6.0] - 2026-04-30

### Added

- **Cancelable change-request events** — Seven input components now fire a cancelable `change-request` event before applying user-initiated value changes. Call `preventDefault()` to block the update (enables controlled component patterns in framework adapters). Components: x-slider, x-text-area, x-select, x-combobox, x-currency-field, x-tabs, x-pagination.

### Fixed

- **x-context-menu** — Escape key and click-outside now correctly dismiss the menu. Handlers moved from the overlay layer (which has `pointer-events: none`) to document-level listeners.
- **x-button** — Fixed missing press events on mobile Safari. Added `touch-action: manipulation` and `-webkit-tap-highlight-color: transparent` to the internal button element (reset by `all: unset`).
- **x-carousel demo** — Control panel now uses correct BareDOM event names (`x-switch-change`, `x-form-field-input`, `select-change`, `press`) instead of native DOM events.
- **x-welcome-tour test** — Added missing `^js` type hint to fix Closure Advanced compilation warning.
- **x-combobox** — Fixed undefined category in demo gallery (changed from `"input"` to `"form"`).

## [2.5.0] - 2026-04-29

### Added
Expand Down
2 changes: 1 addition & 1 deletion build.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
(:require [clojure.tools.build.api :as b]))

(def lib 'com.github.avanelsas/baredom)
(def version "2.5.0")
(def version "2.6.0")
(def class-dir "target/classes")
(def jar-file (format "target/%s-%s.jar" (name lib) version))
(def pom-file (format "target/classes/META-INF/maven/%s/%s/pom.xml"
Expand Down
2 changes: 1 addition & 1 deletion deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
:deploy {:deps {slipset/deps-deploy {:mvn/version "0.2.1"}}
:mvn/repos {"clojars" {:url "https://repo.clojars.org/"}}
:exec-fn deps-deploy.deps-deploy/deploy
:exec-args {:artifact "target/baredom-2.5.0.jar"
:exec-args {:artifact "target/baredom-2.6.0.jar"
:installer :remote}}}}
6 changes: 3 additions & 3 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ BareDOM can be consumed three ways: as a **ClojureScript source dependency** (Cl
Add BareDOM to your `deps.edn`:

```clojure
{:deps {com.github.avanelsas/baredom {:mvn/version "2.5.0"}}}
{:deps {com.github.avanelsas/baredom {:mvn/version "2.6.0"}}}
```

Or in your `shadow-cljs.edn` dependencies:

```clojure
:dependencies [[com.github.avanelsas/baredom "2.5.0"]]
:dependencies [[com.github.avanelsas/baredom "2.6.0"]]
```

Then require component namespaces directly and call their `init!` function once at startup:
Expand Down Expand Up @@ -76,7 +76,7 @@ Add the npm package to your `package.json`:
```json
{
"dependencies": {
"@vanelsas/baredom": "^2.5.0"
"@vanelsas/baredom": "^2.6.0"
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@
"bugs": {
"url": "https://github.com/avanelsas/baredom/issues"
},
"version": "2.5.0",
"version": "2.6.0",
"sideEffects": [
"./dist/*.js"
],
Expand Down
Loading