@area17/a17-helpers
Advanced tools
Comparing version 0.8.4 to 1.0.0
{ | ||
"name": "@area17/a17-helpers", | ||
"version": "0.8.4", | ||
"version": "1.0.0", | ||
"description": "A js helper package", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -21,2 +21,6 @@ # A17 JS Helpers | ||
### Note | ||
From v1.0.0 onwards browser support is IE11+, Safari 10+, Edge 12+, Chrome 24+ and FF 29+. If you need IE9 level support, use v0.8.4. | ||
## Developing | ||
@@ -56,2 +60,9 @@ | ||
**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** | ||
@@ -58,0 +69,0 @@ * Added `scrolled` - a custom event to track requestAnimationFrame limited scroll events |
@@ -5,2 +5,4 @@ // import * as Behaviors from '../behaviors'; | ||
console.warn('Deprecation notice: manageBehaviors\nConsider using `manageBehaviors` from inside of A17 Boilerplate `frontend/js/functions/manageBehaviors.js`'); | ||
const activeBehaviors = {}; | ||
@@ -7,0 +9,0 @@ |
var forEach = function (array, callback, scope) { | ||
console.warn('Deprecation notice: forEach\nConsider using Array.prototype.forEach or NodeList.prototype.forEach\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach\nhttps://developer.mozilla.org/en-US/docs/Web/API/NodeList/forEach\n(A17 Boilerplate polyfills NodeList.prototype.forEach)'); | ||
// Doc: https://code.area17.com/a17/a17-helpers/wikis/forEach | ||
@@ -9,1 +10,2 @@ for (let i = 0; i < array.length; i++) { | ||
export default forEach; | ||
@@ -8,4 +8,6 @@ var purgeProperties = function(obj) { | ||
} | ||
// alternatives considered: https://jsperf.com/deleting-properties-from-an-object | ||
}; | ||
export default purgeProperties; |
@@ -7,2 +7,7 @@ var queryStringHandler = { | ||
toObject(url) { | ||
/* | ||
URLSearchParams doesn't work in IE11 :-( | ||
https://caniuse.com/#search=URLSearchParams | ||
*/ | ||
if (typeof url !== 'string') { | ||
@@ -9,0 +14,0 @@ return {}; |
var scrollToY = function(options) { | ||
// Doc: https://code.area17.com/a17/a17-helpers/wikis/scrollToY | ||
/* | ||
CSS `scroll-behavior: smooth;` is under consideration for edge | ||
And JavaScript scroll with options isn't well supported | ||
*/ | ||
var settings = { | ||
@@ -5,0 +13,0 @@ el: document, |
var triggerCustomEvent = function(el, type, data) { | ||
console.warn('Deprecation notice: triggerCustomEvent\nConsider using CustomEvent\nhttps://developer.mozilla.org/en-US/docs/Web/API/CustomEvent\n(A17 Boilerplate polyfills for IE11)'); | ||
// Doc: https://code.area17.com/a17/a17-helpers/wikis/triggerCustomEvent | ||
@@ -3,0 +5,0 @@ |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
98900
2653
1
166