@vpmedia/simplify 1.50.0 → 1.51.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,3 +1,13 @@
1
+ ## [1.51.0] - 2025-12-16
2
+
3
+ ### 🐛 Bug Fixes
4
+
5
+ - Added missing fallback value to get url param
6
+
7
+ ### ⚙️ Miscellaneous Tasks
8
+
9
+ - Release
10
+ - *(release)* V1.51.0
1
11
  ## [1.50.0] - 2025-12-16
2
12
 
3
13
  ### ⚙️ Miscellaneous Tasks
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vpmedia/simplify",
3
- "version": "1.50.0",
3
+ "version": "1.51.0",
4
4
  "description": "@vpmedia/simplify",
5
5
  "author": "Andras Csizmadia <andras@vpmedia.hu> (www.vpmedia.hu)",
6
6
  "license": "MIT",
@@ -12,7 +12,7 @@ const urlSearchParams = new URLSearchParams(window.location.search);
12
12
  export const getURLParam = (key, defaultValue = null, isSanitize = true) => {
13
13
  const paramValue = urlSearchParams.get(key);
14
14
  if (paramValue === null || paramValue === undefined) {
15
- return null;
15
+ return defaultValue;
16
16
  }
17
17
  if (isSanitize) {
18
18
  return sanitizeURLParam(paramValue);