Skip to content

Latest commit

 

History

History
291 lines (209 loc) · 9.38 KB

changelog.md

File metadata and controls

291 lines (209 loc) · 9.38 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

3.3.2

Fixed

  • Adds .js file extension to all internal imports

3.3.1

Updated

  • ios100vhFix : add back export

3.3.0

Fixed

  • Add Typescript support
  • Package json - Set type : module : A17 helpers are now forced to be treated like mjs files (ES modules)

3.2.6

Updated

  • JSDoc : add JSDoc documentation to remaining helpers

3.2.5

Fixed

  • responsiveImageSizes : Fix test of empty sizes object

Updated

  • SplitText : Use now the toChars utility to split the string by chars.
  • JSDoc : add JSDoc basic documentation to most of the individual helpers

Added

  • toChars : Split text by Chars utility : more complete utility to split a string by a separator.

3.2.4

Added

  • SplitText : Split text by Chars, Words or Lines

3.2.3

Updated

  • Ran npm outdated and npm update
  • Moved jest-environment-jsdom to devDependencies from dependencies

3.2.2

Fixed

  • Export path of some helpers

3.2.1

Updated

  • Updated responsiveImageSrcset test for custom sizes

3.2.0

Added

  • responsiveImageSizes
  • responsiveImageSrcset

3.1.2

  • package.json repository url update

3.1.1

  • read me updates

3.1.0

Updated

  • setFocusOnTarget
  • focusTrap

Added

  • isVisible
  • getFocusableElements
  • listeners (listeners.add() and listeners.remove())
  • nl2br
  • removeEmoji
  • removeHTMLentities
  • removeNoneASCIICharacters
  • removeNonePrintableCharacters
  • replaceAccentedCharacters

Along with tests for each.

3.0.3

  • Update resized: attempt to fire a resize (and so resized and mediaQueryUpdated) events on Firefox text scaling - which doesn't fire a native resize event. This was an issue because as you text scale, you will also likely be changing your visible breakpoint, as you go up in text size, you'll likely go down in breakpoint.

3.0.2

  • Update ios100vhFix: get the greater of document.documentElement.clientHeight versus window.innerHeight to fix incorrect height when the browser UI is hiding on iOS15 and above.

3.0.1

  • updated outdated packages
  • fix typo in orientationChangeFix test

3.0.0

  • added Code of Conduct
  • removed Rollup
  • oritentationChangeFix renamed to orientationChangeFix.
  • removed
  • updated
    • focusTrap and setFocusOnTarget will clean up its tabindex attribute if they had to set it to focus
    • getMetaContentByName returns null of no meta tag found
  • tests added or updated for:
    • cookieHandler
    • copyTextToClipboard
    • debounce
    • focusDisplayHandler
    • focusTrap
    • getMetaContentByName
    • getOffset
    • ios100vhFix
    • isBreakpoint
    • orientationChangeFix
    • resized
    • setFocusOnTarget
  • incomplete tests have "todo" set
    • ajaxRequest
    • jsonpRequest
    • messages
    • responsiveImageUpdate
    • sendEventToSegmentio
    • store
  • wiki links updated

2.1.4

  • getCurrentMediaQuery now replaces out " in returned current breakpoint CSS variable
  • isBreakpoint can now accept a list of breakpoints to check against (doesn't need a global)

2.1.3

  • Update Production bundle

2.1.2

  • queryStringHandler : dont replace plus signs from query strings

2.1.1

  • store.js add better comment on this utility

2.1.0

  • store.js add new tiny library to help you manage state across your application. Inspired by great libraries like Vuex and Redux and based on Beedle. For more informations, see demo : http://bp7store.dev.area17.com/

2.0.2

  • resized helper updated to capture current media query being ""

2.0.1

  • updates isBreakpoint breakpoints to use shorthand breakpoint names: 'xs', 'md', 'lg', 'xl', 'xxl' (in line with A17 boilerplate 7.1.0 and A17 Tailwind plugins)

2.0.0

  • removes deprecated and useless utilities:
    • forEach gone (just use native forEach)
    • scrollToY (just use native with options)
    • triggerCustomEvent (use native: node.dispatchEvent(new CustomEvent('event:name', { detail: { foo: 'bar' } }));)
  • adds:
    • ios100vhFix - adds a --1vh CSS var to the :root for CSS usage to counter iOS frustrating 100vh change when the browser chrome disappears
    • responsiveImageUpdate - updates image sizes attribute on resized to make Safari recalc which source to use from the srcset
    • manageBehaviors and createBehavior from the boilerplate to create and manage behaviors, this version has the initial data bindings development
  • updates to:
    • setFocusOnTarget
    • resized to sends breakpoint info on resized and sets current media query on load
    • getCurrentMediaQuery reads breakpoint info from a CSS variable --breakpoint
    • focusTrap gets cleaned up
    • ajaxRequest can now send JSON forms

1.0.3

  • query string character replacement updated in .fromObject() in queryStringHandler to match fixedEncodeURIComponent at MDN:encodeURIComponent

1.0.2

  • resized sends its event to the window and not the document for backwards compatibility

1.0.1

  • Deprecated helpers are no longer used inside other helpers. If you're using scrolled you'll need to read event.detail.last and event.detail.prev (and not event.data.xxxx)

1.0.0

  • Support is IE11+, Safari 10+, Edge, recent Chrome, recent FF to bring into line with A17 FE Boilerplate (and no longer IE9+, Safari 6+).
  • Deprecation notices on:
    • forEach
    • manageBehaviors
    • triggerCustomEvent

0.8.4

  • Added scrolled - a custom event to track requestAnimationFrame limited scroll events

0.8.3

  • Fix focusTrap incorrectly removing events

0.8.2

  • Update compiled version

0.8.1

  • Added focusTrap and focusDisplayHandler to the index.js so this can be imported into your app

0.8.0

  • Added focusTrap and focusDisplayHandler to trap keyboard tab focus within an element and to help style keyboard focus states

0.7.2

  • ajaxRequest returns the request so you can abort it in your project function

0.7.1

  • Scroll to Y : call the onComplete callback even if not scrolling

0.7.0

  • Add rollup.js for compile the package. Now Everything is compiled. (Don't forget to compile it then push npm if you are updating it)

0.6.8

  • Added isBreakpoint helper to query if a breakpoint is active

0.6.6 and 0.6.7

  • Updated copyTextToClipboard as recent browser updates stopped it working

0.6.5

  • Updated lazyLoad to v2.1.1 inline with updates to that lib

0.6.4

  • Updated package-lock.json

0.6.2 and 0.6.3

  • Updated lazyLoad to init correctly

0.6.1

  • Updated lazyLoad to v2.1.0 inline with updates to that lib

0.6.0

  • Links to Wiki updated
  • Missing semicolons on imports added
  • Files with tabs as spaces converted to spaces for spaces
  • Added .editorconfig
  • Alphabetised index.js

0.5.1

  • Renamed message to messages, updated message--hide to s-hide

0.5.0

  • Added fontLoadObserver

0.4.2

  • Refactored debounce

0.4.1

  • Added default success message to copyTextToClipboard

0.4.0

0.3.6

  • Updated manageBehaviors to not have warning typo...

0.3.5

  • Updated manageBehaviors to warn when behavior fails to init and not trap JS errors from inside a behavior

0.3.4

  • Added forEach to loop querySelectorAll nodes

0.3.3

  • getOffset returns a full fixed getBoundingClientRect output (position with scroll) so includes bottom, right, width and height now

0.3.2

  • resized checks for and sets window.A17.currentMediaQuery when media query changes

0.3.1

  • Added jsdom an jsdom-global (https://github.com/rstacruz/jsdom-global) to devDependencies to test DOM events in Mocha tests.
  • Added .updateParameter() method to queryStringHandler helper Wiki
  • Added new setFocusOnTarget helper Wiki (with test)
  • Added new copyTextToClipboard helper Wiki (no test, not sure how to test..)

0.3.0

  • Merge turnObjectToQueryString and turnQueryStringToObject into queryStringHandler as .toObject() and .fromObject() methods
  • Add new debounce helper Wiki

0.2.1

Changed dependencies from a17.helpers format to module

0.2.0

Add all the helpers from original version

0.1.0

Basic structure and testing function