From 95e9a75a8cc5b830d1339cdfc25f07e7ce6fb40f Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Sat, 17 Feb 2024 15:36:07 +0000
Subject: [PATCH 1/6] docs: update README.md [skip ci]
---
README.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/README.md b/README.md
index 4ff04ce..109ee21 100644
--- a/README.md
+++ b/README.md
@@ -122,6 +122,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
 Mauro Stepanoski 🤔 💻 |
 Sam "Betty" McKoy 🐛 |
 Peran Osborn 🐛 🤔 |
+  Marcos 🐛 🤔 |
From 2cf94e576331684674e9d6b1f253f08b0ffac30e Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Sat, 17 Feb 2024 15:36:08 +0000
Subject: [PATCH 2/6] docs: update .all-contributorsrc [skip ci]
---
.all-contributorsrc | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/.all-contributorsrc b/.all-contributorsrc
index 336b2d3..a1e8602 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -52,6 +52,16 @@
"bug",
"ideas"
]
+ },
+ {
+ "login": "MarcosRS",
+ "name": "Marcos",
+ "avatar_url": "https://avatars.githubusercontent.com/u/12486814?v=4",
+ "profile": "https://github.com/MarcosRS",
+ "contributions": [
+ "bug",
+ "ideas"
+ ]
}
],
"contributorsPerLine": 7,
From 827fb53c3359181d67166863a63280907df860f0 Mon Sep 17 00:00:00 2001
From: 9swampy
Date: Fri, 5 Apr 2024 20:40:48 +0100
Subject: [PATCH 3/6] Running under Vite still getting process not defined
error so implement guard long-hand akin to as MarcoRS had suggested.
---
README.md | 2 +-
src/index.ts | 7 ++++++-
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 109ee21..b688a5f 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,7 @@
| Statements | Branches | Functions | Lines |
| ----------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
-|  |  |  |  |
+|  |  |  |  |
## Table of Contents
diff --git a/src/index.ts b/src/index.ts
index 7d718f7..00d60e0 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -121,7 +121,12 @@ export const jsDownload = (
export default function useDownloader(
options: UseDownloaderOptions = {}
): UseDownloader {
- const debugMode = process ? !!process?.env?.REACT_APP_DEBUG_MODE : false;
+ let debugMode = false;
+ try {
+ debugMode = process ? !!process?.env?.REACT_APP_DEBUG_MODE : false;
+ } catch {
+ debugMode = false;
+ }
const [elapsed, setElapsed] = useState(0);
const [percentage, setPercentage] = useState(0);
From bde35c20e122ed3e37eac8de4049314922500259 Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Tue, 9 Apr 2024 02:15:27 +0000
Subject: [PATCH 4/6] docs: update README.md [skip ci]
---
README.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/README.md b/README.md
index b688a5f..1d41162 100644
--- a/README.md
+++ b/README.md
@@ -123,6 +123,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
 Sam "Betty" McKoy 🐛 |
 Peran Osborn 🐛 🤔 |
 Marcos 🐛 🤔 |
+  9swampy 🐛 |
From 795998a25771dfe99707e62c3b4c71d8d7cc069d Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Tue, 9 Apr 2024 02:15:28 +0000
Subject: [PATCH 5/6] docs: update .all-contributorsrc [skip ci]
---
.all-contributorsrc | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/.all-contributorsrc b/.all-contributorsrc
index a1e8602..2b807ed 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -62,6 +62,15 @@
"bug",
"ideas"
]
+ },
+ {
+ "login": "9swampy",
+ "name": "9swampy",
+ "avatar_url": "https://avatars.githubusercontent.com/u/523054?v=4",
+ "profile": "https://github.com/9swampy",
+ "contributions": [
+ "bug"
+ ]
}
],
"contributorsPerLine": 7,
From f2895217d1a35e7b33f2db54518d98c67de95c6a Mon Sep 17 00:00:00 2001
From: Olavo Parno
Date: Mon, 8 Apr 2024 23:17:41 -0300
Subject: [PATCH 6/6] chore(release): 1.2.6
---
CHANGELOG.md | 10 ++++++++++
package.json | 2 +-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6b11638..2cae05e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,16 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
+### [1.2.6](https://github.com/the-bugging/react-use-downloader/compare/v1.2.5...v1.2.6) (2024-04-09)
+
+
+### Documentation
+
+* update .all-contributorsrc [skip ci] ([795998a](https://github.com/the-bugging/react-use-downloader/commit/795998a25771dfe99707e62c3b4c71d8d7cc069d))
+* update .all-contributorsrc [skip ci] ([2cf94e5](https://github.com/the-bugging/react-use-downloader/commit/2cf94e576331684674e9d6b1f253f08b0ffac30e))
+* update README.md [skip ci] ([bde35c2](https://github.com/the-bugging/react-use-downloader/commit/bde35c20e122ed3e37eac8de4049314922500259))
+* update README.md [skip ci] ([95e9a75](https://github.com/the-bugging/react-use-downloader/commit/95e9a75a8cc5b830d1339cdfc25f07e7ce6fb40f))
+
### [1.2.5](https://github.com/the-bugging/react-use-downloader/compare/v1.2.3...v1.2.5) (2024-02-17)
diff --git a/package.json b/package.json
index e32ea84..e87a7e6 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "react-use-downloader",
- "version": "1.2.5",
+ "version": "1.2.6",
"description": "Creates a download handler function and gives progress information",
"author": "Olavo Parno",
"license": "MIT",