Skip to content

Releases: bryanbraun/anchorjs

5.0.0

18 Jan 15:47
7f0f6a5
Compare
Choose a tag to compare

Breaking Changes:

  • The touch option on the visibility setting has been removed. Now the only visibility settings are hover and always. Sites currently using touch (or any other unsupported visibility option) will fall back to the behavior for hover. See this comment and this commit.

Features:

Other:

4.3.1

17 Apr 20:45
e0f62eb
Compare
Choose a tag to compare

Includes additional minification, dependency updates, docs fixes, and other minor things. See #173.

4.3.0

22 Oct 04:50
409cc09
Compare
Choose a tag to compare

Features:

  • Prevent   characters from showing up in hash urls (#141)

Other:

  • Linting improvements (#154)
  • Remove extra spaces in strings to improve minification (a102758)
  • Update some devDependencies (#160)
  • Lots of docs improvements and performance optimizations (#145, #147, #152, #163, and more)

See the full commit comparison here.

4.2.2

14 Nov 14:47
44a1851
Compare
Choose a tag to compare

Breaking Changes:

None.

Features:

  • Reduce npm package size (166.1 kB -> 8.3 kB) by specifying only the necessary files. (#124).

Other:

  • Update some devDependencies (#126).
  • Other minor cleanup (#125).

4.2.1

12 Nov 04:26
7557e6f
Compare
Choose a tag to compare

Breaking Changes:

None.

Features:

  • Removes some dead code (#111).
  • Modernize test environment (#115, #118).
  • Update dev dependencies (#113, #122, #123, etc).
  • Adds lots of docs improvements! 📝 (#107, #110, etc)

4.2.0

01 Jan 22:57
65fede0
Compare
Choose a tag to compare

Breaking Changes:

None.

Features:

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

02 Jul 02:26
1bc1d94
Compare
Choose a tag to compare

Breaking Changes:

None.

Features:

None.

Bug Fixes:

  • Handles url-building for text that contains newlines, tabs, backspaces, and vertical tabs. See #94.

4.1.0

20 Sep 06:00
848ef8c
Compare
Choose a tag to compare

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

02 Jun 19:31
bf22c0f
Compare
Choose a tag to compare

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 when anchors.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

3.2.2

06 Oct 03:18
6f1a5ee
Compare
Choose a tag to compare

Includes font optimizations from #70 for a smaller filesize.