@sv443-network/userutils 6.2.0 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @sv443-network/userutils
2
2
 
3
+ ## 7.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - fadebf0: Removed the function `insertAfter()` because the DOM API already has the method [`insertAdjacentElement()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/insertAdjacentElement) that has the same functionality and even four positions to pick from.
8
+ To get the same behavior as `insertAfter(refElem, newElem)`, you can use `refElem.insertAdjacentElement("afterend", newElem)`
9
+
10
+ ### Minor Changes
11
+
12
+ - ca6ff58: Added option `checkInterval` to SelectorObserver to check on interval instead of on mutation
13
+ - 1e2015c: Added `DataStoreSerializer` class for centralized and much easier and safer de-/serialization of any number of DataStore instances
14
+ - 5190f0b: SelectorObserver's `addListener()` now returns an unsubscribe function to more easily remove a listener
15
+ - e1d467c: Added function `computeHash()` to calculate the hash / checksum of a string
16
+ - 948ac89: DataStore: made `runMigrations`, `encodeData` and `decodeData` public and added `encodingEnabled` method
17
+ - d7cdac0: Made `randomId()` default to using Math.random() and added the parameter `enhancedEntropy` to revert back to the much slower but also much more entropic implementation
18
+ - 287b006: Added ability to change DataStore storage engine from default "GM" to "localStorage" and "sessionStorage"
19
+
20
+ ## 6.3.0
21
+
22
+ ### Minor Changes
23
+
24
+ - fa09004: Made `openInNewTab()` use `GM.openInTab` by default and fall back to the old behavior.
25
+ Also added `background` param to specify if the tab should get focus when opened.
26
+
3
27
  ## 6.2.0
4
28
 
5
29
  ### Minor Changes