Explorar o código

Version Packages

github-actions[bot] hai 1 ano
pai
achega
874c61ad5f
Modificáronse 3 ficheiros con 22 adicións e 20 borrados
  1. 0 19
      .changeset/smooth-jeans-bake.md
  2. 21 0
      CHANGELOG.md
  3. 1 1
      package.json

+ 0 - 19
.changeset/smooth-jeans-bake.md

@@ -1,19 +0,0 @@
----
-"@sv443-network/userutils": minor
----
-
-Initial release - Features:
-- `onSelector()` to call a listener once a selector is found in the DOM
-- `autoPlural()` to automatically pluralize a string
-- `clamp()` to clamp a number between a min and max value
-- `pauseFor()` to pause the execution of a function for a given amount of time
-- `debounce()` to call a function only once, after a given amount of time
-- `getUnsafeWindow()` to get the unsafeWindow object or fall back to the regular window object
-- `insertAfter()` to insert an element as a sibling after another element
-- `addParent()` to add a parent element around another element
-- `addGlobalStyle()` to add a global style to the page
-- `preloadImages()` to preload images into the browser cache for faster loading later on
-- `fetchAdvanced()` as a wrapper around the fetch API with a timeout option
-- `openInNewTab()` to open a link in a new tab
-- `interceptEvent()` to conditionally intercept events registered by `addEventListener()` on any given EventTarget object
-- `interceptWindowEvent()` to conditionally intercept events registered by `addEventListener()` on the window object

+ 21 - 0
CHANGELOG.md

@@ -0,0 +1,21 @@
+# @sv443-network/userutils
+
+## 0.1.0
+
+### Minor Changes
+
+- 9206f6e: Initial release - Features:
+  - `onSelector()` to call a listener once a selector is found in the DOM
+  - `autoPlural()` to automatically pluralize a string
+  - `clamp()` to clamp a number between a min and max value
+  - `pauseFor()` to pause the execution of a function for a given amount of time
+  - `debounce()` to call a function only once, after a given amount of time
+  - `getUnsafeWindow()` to get the unsafeWindow object or fall back to the regular window object
+  - `insertAfter()` to insert an element as a sibling after another element
+  - `addParent()` to add a parent element around another element
+  - `addGlobalStyle()` to add a global style to the page
+  - `preloadImages()` to preload images into the browser cache for faster loading later on
+  - `fetchAdvanced()` as a wrapper around the fetch API with a timeout option
+  - `openInNewTab()` to open a link in a new tab
+  - `interceptEvent()` to conditionally intercept events registered by `addEventListener()` on any given EventTarget object
+  - `interceptWindowEvent()` to conditionally intercept events registered by `addEventListener()` on the window object

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "@sv443-network/userutils",
-  "version": "0.0.1",
+  "version": "0.1.0",
   "description": "Library with various utilities for userscripts - register listeners for when CSS selectors exist, intercept events, modify the DOM more easily and more ",
   "main": "dist/index.js",
   "module": "dist/index.mjs",