|
| 1 | +--- |
| 2 | +title: "Changelog" |
| 3 | +description: "Track what's new in Driver.js. See the latest features, changes, and fixes shipping in each release, plus what's currently in the works." |
| 4 | +groupTitle: "Introduction" |
| 5 | +sort: 7 |
| 6 | +--- |
| 7 | + |
| 8 | +The _Unreleased_ section lists changes that are merged and will ship in the next |
| 9 | +release. Once a release is published, these entries move under a versioned |
| 10 | +heading. |
| 11 | + |
| 12 | +## Unreleased |
| 13 | + |
| 14 | +### Added |
| 15 | + |
| 16 | +- `animationDuration` config to control how long the highlight transition takes. |
| 17 | + ([#104](https://github.com/nilbuild/driver.js/issues/104)) |
| 18 | +- `allowScroll` config to lock body scroll while a tour is active. |
| 19 | +- `onDoneClick` hook, fired when the done button on the final step is clicked. |
| 20 | + ([#500](https://github.com/nilbuild/driver.js/issues/500)) |
| 21 | + |
| 22 | +### Changed |
| 23 | + |
| 24 | +- <span class="breaking-badge">Breaking</span> Popover footer buttons are now styled |
| 25 | + through the `driver-popover-footer-btn` class instead of the |
| 26 | + `.driver-popover-footer button` selector. Buttons you add through `onPopoverRender` |
| 27 | + no longer inherit the default styling automatically. Add the |
| 28 | + `driver-popover-footer-btn` class to opt in, or leave it off to apply your own |
| 29 | + styles. The built-in next/previous buttons carry the class out of the box. |
| 30 | + ([#555](https://github.com/nilbuild/driver.js/issues/555)) |
| 31 | +- Custom buttons added through `onPopoverRender` now receive their own click |
| 32 | + events. Only the built-in next, previous, and close buttons have their default |
| 33 | + action intercepted by the library. |
| 34 | +- The popover exposes `driver-popover-side-*` and `driver-popover-align-*` |
| 35 | + classes so you can target its position from CSS, and the arrow positioning was |
| 36 | + rewritten for more accurate placement. |
| 37 | +- Dropped the CSS `:has()` selector for broader browser compatibility. |
| 38 | + ([#586](https://github.com/nilbuild/driver.js/issues/586)) |
| 39 | + |
| 40 | +### Fixed |
| 41 | + |
| 42 | +- Document event listener leak in `onDriverClick` that left handlers attached |
| 43 | + after the tour was destroyed. |
| 44 | + ([#452](https://github.com/nilbuild/driver.js/issues/452)) |
| 45 | + |
| 46 | +## 1.5.0 |
| 47 | + |
| 48 | +### Added |
| 49 | + |
| 50 | +- `getNextStep` method on the driver API. |
| 51 | + ([#420](https://github.com/nilbuild/driver.js/issues/420)) |
| 52 | +- `driver-popover-done-btn` class on the next button when it acts as the done |
| 53 | + button on the final step. ([#610](https://github.com/nilbuild/driver.js/issues/610)) |
| 54 | + |
| 55 | +### Changed |
| 56 | + |
| 57 | +- The `onDestroyed` hook now receives the final tour state. |
| 58 | + ([#553](https://github.com/nilbuild/driver.js/issues/553)) |
| 59 | +- Removed the unicode characters from the default button labels. |
| 60 | + |
| 61 | +### Fixed |
| 62 | + |
| 63 | +- The tour no longer closes when pressing the left arrow on the first step. |
| 64 | + ([#564](https://github.com/nilbuild/driver.js/issues/564)) |
| 65 | +- Removed the button text-shadow that left ghost text behind. |
| 66 | + ([#605](https://github.com/nilbuild/driver.js/issues/605)) |
| 67 | +- `onNextClick` now fires when advancing the tour through an overlay click. |
| 68 | + ([#576](https://github.com/nilbuild/driver.js/issues/576)) |
| 69 | + |
| 70 | +For the release notes of other versions, see the |
| 71 | +[GitHub releases](https://github.com/nilbuild/driver.js/releases) page. |
| 72 | + |
| 73 | +## Migrating from 0.x to 1.x |
| 74 | + |
| 75 | +Driver.js 1.x is a major release with a new API and architecture. See the |
| 76 | +[Migrate to 1.x](/docs/migrating-from-0x) guide for a step-by-step walkthrough |
| 77 | +of the import, configuration, and API changes. |
0 commit comments