# Changelog

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

## [1.9.2]

- Call inline event handlers with the element as `this`, as the browser does natively (#137)

## [1.9.1]

- Restore backwards compatibility in `insertTemplate`: accept a *position* string as the 4th argument again (legacy `insertTemplate(query, template, data, position)` signature), normalized to `{ position }`. The `options` object (`{ position, sanitize }`) introduced in 1.8.4 (#113) silently broke callers using the old string form.

## [1.9.0]

- New set of helpers: `debounce`, `throttle`, `deepMerge`, `pick`, `omit`, `getProperties` (#123)
- Migrate tests from Jest to Vitest (#125)

## [1.8.4]

- Parameterize `sanitize` option in `render` and `insertTemplate` (#113)
- Deep sanitization in `sanitize` helper: accept arrays and objects recursively (#113)

## [1.8.3]

- Use same `sanitize` config in Templates too (#112)

## [1.8.2]

- Allow `use` tag by default in sanitize (#109)
- Allow old signature in `insertHTML` helper to facilitate migrations (#110)
- Fix `sanitize`: returns an empty string rather than of undefined (#111)

## [1.8.1]

- Ajax error handling (#106)
- Skip sanitize empty strings (#108)

## [1.8.0]

- Sanitize only template variables instead of entire output (#101)
- Allow the `insertHTML` helper to render HTML without sanitization (#102)
- Introduce new `sanitize` helper (#103)
- Introduce new `insertTemplate` helper (#104)

## [1.7.0]

- XSS prevention in `insertHTML` and the Templates system (#99, #100)

## [1.6.0]

- Introduce new `style` helper (#95)

## [1.5.0]

- Allow `on` helper to accept options (#90)

## [1.4.0]

- `toggleClass` accepts a boolean to force add/remove given class (#79)

## [1.3.0]

- Refactor `getParams` and `setParams` helpers (#75)
- Remove `setUrl` helper (#75)
- `insertHTML` supports to render *Element* instances

## [1.2.0]

- New `back` helper (#72, #73)
- Allow to create elements without attributes: `elem('p')`

## [1.1.1]

- Fix automatic `preventDefault()` conditions (#68)

## [1.1.0]

- Add `findParent` and `findParents` helpers (#66)
- Automatic `preventDefault()` only for submit inputs (#67)

## [1.0.1]

- `on` performs `preventDefault()` on click events only for interactive elements (#65)

## [1.0.0]

- Allow `ajax` functions to receive params as `formData`
- Support handling array of classes in classes helpers
- Remove `show` and `hide` helpers
- Set `currentElem` and `currentEvent` when using the `on` helper
- Support `requestSubmit` on `submit` helper
- Add tests and CI

## [0.10.0]

- New Logo, Branding and Starter Kits
- New helpers: `removeAttr` and `removeData`
- Documentation revamp

## [0.9.0]

- Add Turbo support

## [0.8.1]

- `findAll` returns an array for single elements

## [0.8.0]

- Add Ajax helpers: `ajax`, `get` and `post`
- `serialize` works with objects too
- Use `findAll` in `show`, `hide` and `on`

[1.9.2]: https://github.com/ralixjs/ralix/compare/v1.9.1...v1.9.2
[1.9.1]: https://github.com/ralixjs/ralix/compare/v1.9.0...v1.9.1
[1.9.0]: https://github.com/ralixjs/ralix/compare/v1.8.4...v1.9.0
[1.8.4]: https://github.com/ralixjs/ralix/compare/v1.8.3...v1.8.4
[1.8.3]: https://github.com/ralixjs/ralix/compare/v1.8.2...v1.8.3
[1.8.2]: https://github.com/ralixjs/ralix/compare/v1.8.1...v1.8.2
[1.8.1]: https://github.com/ralixjs/ralix/compare/v1.8.0...v1.8.1
[1.8.0]: https://github.com/ralixjs/ralix/compare/v1.7.0...v1.8.0
[1.7.0]: https://github.com/ralixjs/ralix/compare/v1.6.0...v1.7.0
[1.6.0]: https://github.com/ralixjs/ralix/compare/v1.5.0...v1.6.0
[1.5.0]: https://github.com/ralixjs/ralix/compare/v1.4.0...v1.5.0
[1.4.0]: https://github.com/ralixjs/ralix/compare/v1.3.0...v1.4.0
[1.3.0]: https://github.com/ralixjs/ralix/compare/v1.2.0...v1.3.0
[1.2.0]: https://github.com/ralixjs/ralix/compare/v1.1.1...v1.2.0
[1.1.1]: https://github.com/ralixjs/ralix/compare/v1.1.0...v1.1.1
[1.1.0]: https://github.com/ralixjs/ralix/compare/v1.0.1...v1.1.0
[1.0.1]: https://github.com/ralixjs/ralix/compare/v1.0.0...v1.0.1
[1.0.0]: https://github.com/ralixjs/ralix/compare/v0.10.0...v1.0.0
[0.10.0]: https://github.com/ralixjs/ralix/compare/v0.9.0...v0.10.0
[0.9.0]: https://github.com/ralixjs/ralix/compare/v0.8.1...v0.9.0
[0.8.1]: https://github.com/ralixjs/ralix/compare/v0.8.0...v0.8.1
[0.8.0]: https://github.com/ralixjs/ralix/compare/v0.7.4...v0.8.0
