@bryanbraun bryanbraun released this Jul 2, 2018

Assets 2

Breaking Changes:

None.

Features:

None.

Bug Fixes:

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

@bryanbraun bryanbraun released this Sep 20, 2017 · 5 commits to master since this release

Assets 2

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.

@bryanbraun bryanbraun released this Jun 2, 2017 · 11 commits to master since this release

Assets 2

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

@bryanbraun bryanbraun released this Oct 6, 2016 · 33 commits to master since this release

Assets 2

Includes font optimizations from #70 for a smaller filesize.

@bryanbraun bryanbraun released this Jul 18, 2016 · 38 commits to master since this release

Assets 2

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

@bryanbraun bryanbraun released this Jun 10, 2016 · 40 commits to master since this release

Assets 2

Fixes:

  • #59 - Add support for Node, AMD, & CommonJS (Via UMD)
  • When installing via bower, ignore package.json.

These changes improve compatibility & code inclusion, but should not affect functionality at all.

@bryanbraun bryanbraun released this Apr 30, 2016 · 46 commits to master since this release

Assets 2

Fixes #56, a regression where errors are caused when attempting to add (or remove) anchors from empty html tags.

@bryanbraun bryanbraun released this Feb 13, 2016 · 48 commits to master since this release

Assets 2

Updates include:

  • Resolves #50, by exposing the list of anchored elements at anchors.elements. External code can use this list to do things like building a table of contents or jump-nav.
  • Prevents multiple anchors from being added to the same element (and thus, duplicate elements from being in the elements list)
  • Allows anchors.add and anchors.remove to optionally take an array of elements or a nodeList instead of the selector-string only.
  • Adds anchors.removeAll().
  • Improves tests and updates dev-dependencies.

@bryanbraun bryanbraun released this Jan 24, 2016 · 55 commits to master since this release

Assets 2

Removes the "trim" option, making a the trimming of URL strings part of the default process.
Also updates dev dependencies, organizes tests and makes them more granular.

Compatibility Notice:

If you are updating to 3.0.0, it's possible that a generated URL may change if text that AnchorJS uses to generate the ID had special whitespace characters before or after it. These characters (like newlines and carriage returns) are now being trimmed. Simple spaces were being trimmed before, and thus should not be affected.

@bryanbraun bryanbraun released this Jan 23, 2016 · 60 commits to master since this release

Assets 2

Adds the following features:

  • A new option anchors.options.visible= "touch". This option makes anchors visible via hover on non-touch devices, but always visible on touch devices. See #47.
  • A new option anchors.options.trim = true for trimming whitespace around targeted html text before converting the text into url-friendly IDs. See #43.