Releases: bryanbraun/anchorjs
Releases · bryanbraun/anchorjs
5.0.0
Breaking Changes:
- The
touch
option on thevisibility
setting has been removed. Now the only visibility settings arehover
andalways
. Sites currently usingtouch
(or any other unsupportedvisibility
option) will fall back to the behavior forhover
. See this comment and this commit.
Features:
- Add support for ESM global imports. See this comment and this commit.
- Center the focus indicator for keyboard users: #192
Other:
4.3.1
4.3.0
4.2.2
4.2.1
4.2.0
Breaking Changes:
None.
Features:
- Added support for LibreJS (see: #99).
- Added an option for customizable
titleText
(see #100). - Added an option for custom base urls (see #101). This is useful for adding anchors to pages with changing content.
- Lots of docs improvements! 📝
Bug Fixes:
- Fixed an issue where anchors didn't behave as expected on web pages that used the
<base>
tag (see #98).
4.1.1
4.1.0
Breaking Changes:
None.
Features:
- Added an option for customizable
ariaLabel
. The default ("Anchor") should be suitable for many cases, but this option allows for translations. - Improves docs.
Bug Fixes:
- Based on the feedback of screenreader users, I changed the default ARIA-text from "Permalink for: <title>" to "Anchor". See #63.
4.0.0
Breaking Changes:
- Any Links or generated IDs containing a
<
or>
character will have them removed. Those characters are not appropriate in IDs because they are part of the CSS language spec. See #81. - We removed
h1
from the default selector applied whenanchors.add()
is called without arguments. Before:h1, h2, h3, h4, h5, h6
. After:h2, h3, h4, h5, h6
. See #75.
Features:
- Added the ability to link to other IDs on the page (like those on wrapper or
<section>
elements). This means you can use AnchorJS for highlighted sections. See the docs, or the related issues: #83 and #87 - Many documentation improvements and clarifications.
Bug Fixes:
- Prevents a console error that would occur when running
add()
on a selector with no elements, followed by a chained method. See #79