@alwatr/fetch 5.3.0 → 5.5.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
@@ -3,6 +3,51 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [5.5.0](https://github.com/Alwatr/nanolib/compare/@alwatr/fetch@5.4.0...@alwatr/fetch@5.5.0) (2025-03-06)
7
+
8
+ ### Miscellaneous Chores
9
+
10
+ * update username casing in changelog entries ([9722ac9](https://github.com/Alwatr/nanolib/commit/9722ac9a078438a4e8ebfa5826ea70e0e3a52ca6)) by @
11
+
12
+ ### Dependencies update
13
+
14
+ * bump the development-dependencies group across 1 directory with 11 updates ([720c395](https://github.com/Alwatr/nanolib/commit/720c3954da55c929fe8fb16957121f4c51fb7f0c)) by @dependabot[bot]
15
+
16
+ ## [5.4.0](https://github.com/Alwatr/nanolib/compare/@alwatr/fetch@4.2.1...@alwatr/fetch@5.4.0) (2025-02-18)
17
+
18
+ ## 5.3.0 (2025-02-03)
19
+
20
+ ### Miscellaneous Chores
21
+
22
+ * edit README ([3860b3d](https://github.com/Alwatr/nanolib/commit/3860b3df48ab82dc479d5236c2e8579df614aabf)) by @
23
+
24
+ ### Dependencies update
25
+
26
+ * bump the development-dependencies group across 1 directory with 11 updates ([cb79d07](https://github.com/Alwatr/nanolib/commit/cb79d072a57c79e1c01abff1a293d6757bb65350)) by @
27
+ * update typescript and @types/node to version 5.7.3 and 22.13.0 respectively across multiple packages ([ddab05b](https://github.com/Alwatr/nanolib/commit/ddab05b5d767c30191f36a065e4bc88744e8e3fe)) by @
28
+
29
+ ## 5.2.1 (2024-11-07)
30
+
31
+ ### Bug Fixes
32
+
33
+ * **fetch:** refine error handling in fetchJson to improve response error structure ([2942563](https://github.com/Alwatr/nanolib/commit/29425639c268f091711ab195a4285e49b762e497)) by @
34
+
35
+ ## 5.2.0 (2024-11-06)
36
+
37
+ ### Features
38
+
39
+ * **fetch:** improve error handling for fetch responses and JSON parsing ([8692bb1](https://github.com/Alwatr/nanolib/commit/8692bb1123e8b3a6d6f8aea20464c55b344da9d2)) by @
40
+
41
+ ## 5.0.0 (2024-11-02)
42
+
43
+ ### ⚠ BREAKING CHANGES
44
+
45
+ * To simplify version management and ensure consistency, all nanolib packages now use the same version as @alwatr/nanolib. This may require updates to your project's dependencies.
46
+
47
+ ### Code Refactoring
48
+
49
+ * use the same version as @alwatr/nanolib ([60eb860](https://github.com/Alwatr/nanolib/commit/60eb860a0e33dfffe2d1d95e63ce54c60876be06)) by @
50
+
6
51
  ## [5.3.0](https://github.com/Alwatr/nanolib/compare/v5.2.1...v5.3.0) (2025-02-03)
7
52
 
8
53
  ### Miscellaneous Chores
@@ -24,7 +69,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
24
69
 
25
70
  ### Features
26
71
 
27
- * **fetch:** improve error handling for fetch responses and JSON parsing ([8692bb1](https://github.com/Alwatr/nanolib/commit/8692bb1123e8b3a6d6f8aea20464c55b344da9d2)) by @AliMD
72
+ * **fetch:** improve error handling for fetch responses and JSON parsing ([8692bb1](https://github.com/Alwatr/nanolib/commit/8692bb1123e8b3a6d6f8aea20464c55b344da9d2)) by @alimd
28
73
 
29
74
  ## 5.0.0 (2024-11-02)
30
75
 
@@ -98,11 +143,11 @@ Co-authored-by: Ali Mihandoost <ali@mihandoost.com>
98
143
 
99
144
  ### Features
100
145
 
101
- * **fetch:** use @alwatr/http-primer for types and http codes ([6fe993a](https://github.com/Alwatr/nanolib/commit/6fe993ac0f395a4c0c6ad3b2caa48a2986cc850f)) by @AliMD
146
+ * **fetch:** use @alwatr/http-primer for types and http codes ([6fe993a](https://github.com/Alwatr/nanolib/commit/6fe993ac0f395a4c0c6ad3b2caa48a2986cc850f)) by @alimd
102
147
 
103
148
  ### Code Refactoring
104
149
 
105
- * **fetch:** update HTTP headers content-type to use MimeTypes constant ([c3862fc](https://github.com/Alwatr/nanolib/commit/c3862fc6a643da97dacbd15bcf5d3351caaaf269)) by @AliMD
150
+ * **fetch:** update HTTP headers content-type to use MimeTypes constant ([c3862fc](https://github.com/Alwatr/nanolib/commit/c3862fc6a643da97dacbd15bcf5d3351caaaf269)) by @alimd
106
151
 
107
152
  ## [4.1.7](https://github.com/Alwatr/nanolib/compare/@alwatr/fetch@4.1.6...@alwatr/fetch@4.1.7) (2024-10-25)
108
153
 
@@ -123,7 +168,7 @@ Co-authored-by: Ali Mihandoost <ali@mihandoost.com>
123
168
 
124
169
  ### Miscellaneous Chores
125
170
 
126
- - include LICENSE and LEGAL files to publish ([09f366f](https://github.com/Alwatr/nanolib/commit/09f366f680bfa9fb26acb2cd1ccbc68c5a9e9ad8)) by @AliMD
171
+ - include LICENSE and LEGAL files to publish ([09f366f](https://github.com/Alwatr/nanolib/commit/09f366f680bfa9fb26acb2cd1ccbc68c5a9e9ad8)) by @alimd
127
172
 
128
173
  ## [4.1.3](https://github.com/Alwatr/nanolib/compare/@alwatr/fetch@4.1.2...@alwatr/fetch@4.1.3) (2024-10-11)
129
174
 
@@ -148,21 +193,21 @@ Co-authored-by: Ali Mihandoost <ali@mihandoost.com>
148
193
  ### Bug Fixes
149
194
 
150
195
  - all dependeny topology ([1c17f34](https://github.com/Alwatr/nanolib/commit/1c17f349adf3e98e2a80ab2da4f0f81028dc9c5f)) by @mohammadhonarvar
151
- - **fetch:** remove unused import from fetch core module ([28ec726](https://github.com/Alwatr/nanolib/commit/28ec7269322f90dba02fbb33e4e622db42169368)) by @AliMD
196
+ - **fetch:** remove unused import from fetch core module ([28ec726](https://github.com/Alwatr/nanolib/commit/28ec7269322f90dba02fbb33e4e622db42169368)) by @alimd
152
197
 
153
198
  ### Code Refactoring
154
199
 
155
- - **fetch:** update fetch package to use @alwatr/parse-duration for timeout and retryDelay durations ([1108c54](https://github.com/Alwatr/nanolib/commit/1108c547e43f2c65f46d65b58dd19cee9abd2fd7)) by @AliMD
156
- - **fetch:** Update logger import and initialization ([1f0451c](https://github.com/Alwatr/nanolib/commit/1f0451c9fec81b875736135778cdd4150556ba97)) by @AliMD
157
- - **fetch:** use new DictionaryReq type ([a8149cf](https://github.com/Alwatr/nanolib/commit/a8149cff114da7c7ce9a335c837ae794904fa3ca)) by @AliMD
158
- - update Dictionary type definitions ([c94cbc4](https://github.com/Alwatr/nanolib/commit/c94cbc4523864e2cc47828ccf5508b68945ac2b8)) by @AliMD
159
- - use new type-helper global types and remove all import types ([08b5d08](https://github.com/Alwatr/nanolib/commit/08b5d08c03c7c315382337239de0426462f384b8)) by @AliMD
160
- - **wait:** rename package to delay ([cf8c45c](https://github.com/Alwatr/nanolib/commit/cf8c45cf3f5b61fdd4b1b1c7f744c4eb3e230016)) by @AliMD
200
+ - **fetch:** update fetch package to use @alwatr/parse-duration for timeout and retryDelay durations ([1108c54](https://github.com/Alwatr/nanolib/commit/1108c547e43f2c65f46d65b58dd19cee9abd2fd7)) by @alimd
201
+ - **fetch:** Update logger import and initialization ([1f0451c](https://github.com/Alwatr/nanolib/commit/1f0451c9fec81b875736135778cdd4150556ba97)) by @alimd
202
+ - **fetch:** use new DictionaryReq type ([a8149cf](https://github.com/Alwatr/nanolib/commit/a8149cff114da7c7ce9a335c837ae794904fa3ca)) by @alimd
203
+ - update Dictionary type definitions ([c94cbc4](https://github.com/Alwatr/nanolib/commit/c94cbc4523864e2cc47828ccf5508b68945ac2b8)) by @alimd
204
+ - use new type-helper global types and remove all import types ([08b5d08](https://github.com/Alwatr/nanolib/commit/08b5d08c03c7c315382337239de0426462f384b8)) by @alimd
205
+ - **wait:** rename package to delay ([cf8c45c](https://github.com/Alwatr/nanolib/commit/cf8c45cf3f5b61fdd4b1b1c7f744c4eb3e230016)) by @alimd
161
206
 
162
207
  ### Miscellaneous Chores
163
208
 
164
209
  - **fetch:** change the license to AGPL-3.0 ([edf9069](https://github.com/Alwatr/nanolib/commit/edf9069608bd276b85c9ac937e33ad225c5921a9)) by @ArmanAsadian
165
- - Update build and lint scripts ([392d0b7](https://github.com/Alwatr/nanolib/commit/392d0b71f446bce336b0256119a80f07aff794ba)) by @AliMD
210
+ - Update build and lint scripts ([392d0b7](https://github.com/Alwatr/nanolib/commit/392d0b71f446bce336b0256119a80f07aff794ba)) by @alimd
166
211
 
167
212
  ### Dependencies update
168
213
 
@@ -180,13 +225,13 @@ Co-authored-by: Ali Mihandoost <ali@mihandoost.com>
180
225
 
181
226
  ### Code Refactoring
182
227
 
183
- - **fetch:** handle fetchJson error responses properly ([ae8fe24](https://github.com/Alwatr/nanolib/commit/ae8fe244aca17f235c4347ff1fd10070a410340c)) by @AliMD
184
- - **fetch:** update query parameters handling ([939b3d5](https://github.com/Alwatr/nanolib/commit/939b3d52998ec7b3f5c32ff5438b649148109ede)) by @AliMD
228
+ - **fetch:** handle fetchJson error responses properly ([ae8fe24](https://github.com/Alwatr/nanolib/commit/ae8fe244aca17f235c4347ff1fd10070a410340c)) by @alimd
229
+ - **fetch:** update query parameters handling ([939b3d5](https://github.com/Alwatr/nanolib/commit/939b3d52998ec7b3f5c32ff5438b649148109ede)) by @alimd
185
230
 
186
231
  ### Dependencies update
187
232
 
188
233
  - bump the development-dependencies group across 1 directory with 10 updates ([9ed98ff](https://github.com/Alwatr/nanolib/commit/9ed98ffd0668d5a36e255c82edab3af53bffda8f)) by @dependabot[bot]
189
- - update ([c36ed50](https://github.com/Alwatr/nanolib/commit/c36ed50f68da2f5608ccd96119963a16cfacb4ce)) by @AliMD
234
+ - update ([c36ed50](https://github.com/Alwatr/nanolib/commit/c36ed50f68da2f5608ccd96119963a16cfacb4ce)) by @alimd
190
235
 
191
236
  ## [3.1.8](https://github.com/Alwatr/nanolib/compare/@alwatr/fetch@3.1.7...@alwatr/fetch@3.1.8) (2024-08-31)
192
237
 
@@ -202,7 +247,7 @@ Co-authored-by: Ali Mihandoost <ali@mihandoost.com>
202
247
 
203
248
  ### Dependencies update
204
249
 
205
- - update all dependencies ([1e0c30e](https://github.com/Alwatr/nanolib/commit/1e0c30e6a3a8e19deb5185814e24ab6c08dca573)) by @AliMD
250
+ - update all dependencies ([1e0c30e](https://github.com/Alwatr/nanolib/commit/1e0c30e6a3a8e19deb5185814e24ab6c08dca573)) by @alimd
206
251
 
207
252
  ## [3.1.5](https://github.com/Alwatr/nanolib/compare/@alwatr/fetch@3.1.4...@alwatr/fetch@3.1.5) (2024-07-04)
208
253
 
@@ -214,7 +259,7 @@ Co-authored-by: Ali Mihandoost <ali@mihandoost.com>
214
259
 
215
260
  ### Dependencies update
216
261
 
217
- - upgrade ([6dbd300](https://github.com/Alwatr/nanolib/commit/6dbd300642c9bcc9e7d0b281e244bf1b06eb1c38)) by @AliMD
262
+ - upgrade ([6dbd300](https://github.com/Alwatr/nanolib/commit/6dbd300642c9bcc9e7d0b281e244bf1b06eb1c38)) by @alimd
218
263
 
219
264
  ## [3.1.3](https://github.com/Alwatr/nanolib/compare/@alwatr/fetch@3.1.2...@alwatr/fetch@3.1.3) (2024-04-25)
220
265
 
@@ -228,11 +273,11 @@ Co-authored-by: Ali Mihandoost <ali@mihandoost.com>
228
273
 
229
274
  ### Bug Fixes
230
275
 
231
- - exported types by add .js extensions to all imports ([fc3d83e](https://github.com/Alwatr/nanolib/commit/fc3d83e8f375da97ba276314b2e6966aa82c9b3f)) by @AliMD
276
+ - exported types by add .js extensions to all imports ([fc3d83e](https://github.com/Alwatr/nanolib/commit/fc3d83e8f375da97ba276314b2e6966aa82c9b3f)) by @alimd
232
277
 
233
278
  ### Miscellaneous Chores
234
279
 
235
- - **deps:** update ([1a45030](https://github.com/Alwatr/nanolib/commit/1a450305440b710a300787d4ca24b1ed8c6a39d7)) by @AliMD
280
+ - **deps:** update ([1a45030](https://github.com/Alwatr/nanolib/commit/1a450305440b710a300787d4ca24b1ed8c6a39d7)) by @alimd
236
281
 
237
282
  ## [3.1.0](https://github.com/Alwatr/nanolib/compare/@alwatr/fetch@3.0.0...@alwatr/fetch@3.1.0) (2024-01-24)
238
283
 
@@ -242,7 +287,7 @@ Co-authored-by: Ali Mihandoost <ali@mihandoost.com>
242
287
 
243
288
  ### Bug Fixes
244
289
 
245
- - **fetch:** better error handling on handleRetryPattern\_ when user is offline ([b867f30](https://github.com/Alwatr/nanolib/commit/b867f30b3eba529ec1aae0026f0ded252ce54332)) by @AliMD
290
+ - **fetch:** better error handling on handleRetryPattern\_ when user is offline ([b867f30](https://github.com/Alwatr/nanolib/commit/b867f30b3eba529ec1aae0026f0ded252ce54332)) by @alimd
246
291
 
247
292
  ### Code Refactoring
248
293
 
@@ -258,10 +303,10 @@ Co-authored-by: Ali Mihandoost <ali@mihandoost.com>
258
303
 
259
304
  ### Features
260
305
 
261
- - **fetch:** alwatrAuth ([28e365c](https://github.com/Alwatr/nanolib/commit/28e365c839b0ea80060c0f44ed4dc4473468d5c4)) by @AliMD
306
+ - **fetch:** alwatrAuth ([28e365c](https://github.com/Alwatr/nanolib/commit/28e365c839b0ea80060c0f44ed4dc4473468d5c4)) by @alimd
262
307
  - **fetch:** move from last repo ([4b86bb5](https://github.com/Alwatr/nanolib/commit/4b86bb542af296c91bc1db36b4e08fdbad501db2)) by @njfamirm
263
- - **fetch:** Update fetch type definitions with document ([38398cc](https://github.com/Alwatr/nanolib/commit/38398cc33f311a569a53cc3e06c3191e17dbd45b)) by @AliMD
308
+ - **fetch:** Update fetch type definitions with document ([38398cc](https://github.com/Alwatr/nanolib/commit/38398cc33f311a569a53cc3e06c3191e17dbd45b)) by @alimd
264
309
 
265
310
  ### Code Refactoring
266
311
 
267
- - **fetch:** review and update everything ([61ec38b](https://github.com/Alwatr/nanolib/commit/61ec38b2fde28ba26a7973fcd60a30c861faf4dd)) by @AliMD
312
+ - **fetch:** review and update everything ([61ec38b](https://github.com/Alwatr/nanolib/commit/61ec38b2fde28ba26a7973fcd60a30c861faf4dd)) by @alimd
package/dist/main.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /* @alwatr/fetch v5.3.0 */
1
+ /* @alwatr/fetch v5.5.0 */
2
2
  "use strict";
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -35,7 +35,7 @@ var import_http_primer = require("@alwatr/http-primer");
35
35
  var import_logger = require("@alwatr/logger");
36
36
  var import_package_tracer = require("@alwatr/package-tracer");
37
37
  var import_parse_duration = require("@alwatr/parse-duration");
38
- __dev_mode__: import_package_tracer.packageTracer.add("@alwatr/fetch", "5.3.0");
38
+ __dev_mode__: import_package_tracer.packageTracer.add("@alwatr/fetch", "5.5.0");
39
39
  var logger_ = /* @__PURE__ */ (0, import_logger.createLogger)("@alwatr/fetch");
40
40
  var globalThis_ = /* @__PURE__ */ (0, import_global_this.getGlobalThis)();
41
41
  var cacheStorage_;
@@ -247,5 +247,4 @@ function fetch(options) {
247
247
  fetch,
248
248
  fetchJson
249
249
  });
250
- /*! For license information please see main.cjs.LEGAL.txt */
251
250
  //# sourceMappingURL=main.cjs.map
package/dist/main.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /* @alwatr/fetch v5.3.0 */
1
+ /* @alwatr/fetch v5.5.0 */
2
2
 
3
3
  // src/main.ts
4
4
  import { HttpStatusCodes as HttpStatusCodes2 } from "@alwatr/http-primer";
@@ -10,7 +10,7 @@ import { HttpStatusCodes, MimeTypes } from "@alwatr/http-primer";
10
10
  import { createLogger } from "@alwatr/logger";
11
11
  import { packageTracer } from "@alwatr/package-tracer";
12
12
  import { parseDuration } from "@alwatr/parse-duration";
13
- __dev_mode__: packageTracer.add("@alwatr/fetch", "5.3.0");
13
+ __dev_mode__: packageTracer.add("@alwatr/fetch", "5.5.0");
14
14
  var logger_ = /* @__PURE__ */ createLogger("@alwatr/fetch");
15
15
  var globalThis_ = /* @__PURE__ */ getGlobalThis();
16
16
  var cacheStorage_;
@@ -221,5 +221,4 @@ export {
221
221
  fetch,
222
222
  fetchJson
223
223
  };
224
- /*! For license information please see main.mjs.LEGAL.txt */
225
224
  //# sourceMappingURL=main.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alwatr/fetch",
3
- "version": "5.3.0",
3
+ "version": "5.5.0",
4
4
  "description": "Enhanced fetch API with cache strategy, retry pattern, timeout, helper methods and enhanced types.",
5
5
  "author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>",
6
6
  "keywords": [
@@ -72,20 +72,20 @@
72
72
  "clean": "rm -rfv dist *.tsbuildinfo"
73
73
  },
74
74
  "dependencies": {
75
- "@alwatr/delay": "^5.3.0",
76
- "@alwatr/global-this": "^5.3.0",
77
- "@alwatr/http-primer": "^5.3.0",
78
- "@alwatr/logger": "^5.3.0",
79
- "@alwatr/package-tracer": "^5.3.0",
80
- "@alwatr/parse-duration": "^5.3.0"
75
+ "@alwatr/delay": "^5.5.0",
76
+ "@alwatr/global-this": "^5.5.0",
77
+ "@alwatr/http-primer": "^5.5.0",
78
+ "@alwatr/logger": "^5.5.0",
79
+ "@alwatr/package-tracer": "^5.5.0",
80
+ "@alwatr/parse-duration": "^5.5.0"
81
81
  },
82
82
  "devDependencies": {
83
- "@alwatr/nano-build": "^5.3.0",
83
+ "@alwatr/nano-build": "^5.5.0",
84
84
  "@alwatr/prettier-config": "^5.0.0",
85
85
  "@alwatr/tsconfig-base": "^5.0.0",
86
- "@alwatr/type-helper": "^5.3.0",
86
+ "@alwatr/type-helper": "^5.4.0",
87
87
  "jest": "^29.7.0",
88
- "typescript": "^5.7.3"
88
+ "typescript": "^5.8.2"
89
89
  },
90
- "gitHead": "9cfb80ed0666355887d8e3865fc75311420ac371"
90
+ "gitHead": "fdf8e6de77cca359465110a75ff18faff0649a95"
91
91
  }
File without changes
File without changes