Skip to content

Releases: bryanbraun/anchorjs

4.3.1

e0f62eb
Compare
Choose a tag to compare

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

4.3.0

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

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

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

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

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

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

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

6f1a5ee
Compare
Choose a tag to compare

Includes font optimizations from #70 for a smaller filesize.

3.2.1

688c1be
Compare
Choose a tag to compare

Fixes #67 - A bug where bundling AnchorJS with other scripts could cause 'use script' declarations to apply to external code.