瀏覽代碼

Merge pull request #45 from Sv443-Network/changeset-release/main

Sven Fehler 8 月之前
父節點
當前提交
ba970af6ba

+ 0 - 5
.changeset/bright-snails-flash.md

@@ -1,5 +0,0 @@
----
-"@sv443-network/userutils": minor
----
-
-Added option `checkInterval` to SelectorObserver to check on interval instead of on mutation

+ 0 - 5
.changeset/fair-snakes-tan.md

@@ -1,5 +0,0 @@
----
-"@sv443-network/userutils": minor
----
-
-Added `DataStoreSerializer` class for centralized and much easier and safer de-/serialization of any number of DataStore instances

+ 0 - 5
.changeset/fluffy-comics-think.md

@@ -1,5 +0,0 @@
----
-"@sv443-network/userutils": minor
----
-
-SelectorObserver's `addListener()` now returns an unsubscribe function to more easily remove a listener

+ 0 - 5
.changeset/lazy-fishes-hide.md

@@ -1,5 +0,0 @@
----
-"@sv443-network/userutils": minor
----
-
-Added function `computeHash()` to calculate the hash / checksum of a string

+ 0 - 5
.changeset/short-socks-travel.md

@@ -1,5 +0,0 @@
----
-"@sv443-network/userutils": minor
----
-
-DataStore: made `runMigrations`, `encodeData` and `decodeData` public and added `encodingEnabled` method

+ 0 - 5
.changeset/smooth-maps-attack.md

@@ -1,5 +0,0 @@
----
-"@sv443-network/userutils": minor
----
-
-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

+ 0 - 5
.changeset/tasty-crabs-bow.md

@@ -1,5 +0,0 @@
----
-"@sv443-network/userutils": minor
----
-
-Added ability to change DataStore storage engine from default "GM" to "localStorage" and "sessionStorage"

+ 0 - 6
.changeset/witty-clocks-fry.md

@@ -1,6 +0,0 @@
----
-"@sv443-network/userutils": major
----
-
-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.  
-To get the same behavior as `insertAfter(refElem, newElem)`, you can use `refElem.insertAdjacentElement("afterend", newElem)`

+ 17 - 0
CHANGELOG.md

@@ -1,5 +1,22 @@
 # @sv443-network/userutils
 
+## 7.0.0
+
+### Major Changes
+
+- 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.
+  To get the same behavior as `insertAfter(refElem, newElem)`, you can use `refElem.insertAdjacentElement("afterend", newElem)`
+
+### Minor Changes
+
+- ca6ff58: Added option `checkInterval` to SelectorObserver to check on interval instead of on mutation
+- 1e2015c: Added `DataStoreSerializer` class for centralized and much easier and safer de-/serialization of any number of DataStore instances
+- 5190f0b: SelectorObserver's `addListener()` now returns an unsubscribe function to more easily remove a listener
+- e1d467c: Added function `computeHash()` to calculate the hash / checksum of a string
+- 948ac89: DataStore: made `runMigrations`, `encodeData` and `decodeData` public and added `encodingEnabled` method
+- 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
+- 287b006: Added ability to change DataStore storage engine from default "GM" to "localStorage" and "sessionStorage"
+
 ## 6.3.0
 
 ### Minor Changes

+ 1 - 1
package.json

@@ -1,7 +1,7 @@
 {
   "name": "@sv443-network/userutils",
   "libName": "UserUtils",
-  "version": "6.3.0",
+  "version": "7.0.0",
   "description": "Library with various utilities for userscripts - register listeners for when CSS selectors exist, intercept events, create persistent & synchronous data stores, modify the DOM more easily and more",
   "main": "dist/index.js",
   "module": "dist/index.mjs",