@alwatr/fetch 5.4.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,16 @@
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
+
6
16
  ## [5.4.0](https://github.com/Alwatr/nanolib/compare/@alwatr/fetch@4.2.1...@alwatr/fetch@5.4.0) (2025-02-18)
7
17
 
8
18
  ## 5.3.0 (2025-02-03)
@@ -59,7 +69,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
59
69
 
60
70
  ### Features
61
71
 
62
- * **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
63
73
 
64
74
  ## 5.0.0 (2024-11-02)
65
75
 
@@ -133,11 +143,11 @@ Co-authored-by: Ali Mihandoost <ali@mihandoost.com>
133
143
 
134
144
  ### Features
135
145
 
136
- * **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
137
147
 
138
148
  ### Code Refactoring
139
149
 
140
- * **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
141
151
 
142
152
  ## [4.1.7](https://github.com/Alwatr/nanolib/compare/@alwatr/fetch@4.1.6...@alwatr/fetch@4.1.7) (2024-10-25)
143
153
 
@@ -158,7 +168,7 @@ Co-authored-by: Ali Mihandoost <ali@mihandoost.com>
158
168
 
159
169
  ### Miscellaneous Chores
160
170
 
161
- - 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
162
172
 
163
173
  ## [4.1.3](https://github.com/Alwatr/nanolib/compare/@alwatr/fetch@4.1.2...@alwatr/fetch@4.1.3) (2024-10-11)
164
174
 
@@ -183,21 +193,21 @@ Co-authored-by: Ali Mihandoost <ali@mihandoost.com>
183
193
  ### Bug Fixes
184
194
 
185
195
  - all dependeny topology ([1c17f34](https://github.com/Alwatr/nanolib/commit/1c17f349adf3e98e2a80ab2da4f0f81028dc9c5f)) by @mohammadhonarvar
186
- - **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
187
197
 
188
198
  ### Code Refactoring
189
199
 
190
- - **fetch:** update fetch package to use @alwatr/parse-duration for timeout and retryDelay durations ([1108c54](https://github.com/Alwatr/nanolib/commit/1108c547e43f2c65f46d65b58dd19cee9abd2fd7)) by @AliMD
191
- - **fetch:** Update logger import and initialization ([1f0451c](https://github.com/Alwatr/nanolib/commit/1f0451c9fec81b875736135778cdd4150556ba97)) by @AliMD
192
- - **fetch:** use new DictionaryReq type ([a8149cf](https://github.com/Alwatr/nanolib/commit/a8149cff114da7c7ce9a335c837ae794904fa3ca)) by @AliMD
193
- - update Dictionary type definitions ([c94cbc4](https://github.com/Alwatr/nanolib/commit/c94cbc4523864e2cc47828ccf5508b68945ac2b8)) by @AliMD
194
- - use new type-helper global types and remove all import types ([08b5d08](https://github.com/Alwatr/nanolib/commit/08b5d08c03c7c315382337239de0426462f384b8)) by @AliMD
195
- - **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
196
206
 
197
207
  ### Miscellaneous Chores
198
208
 
199
209
  - **fetch:** change the license to AGPL-3.0 ([edf9069](https://github.com/Alwatr/nanolib/commit/edf9069608bd276b85c9ac937e33ad225c5921a9)) by @ArmanAsadian
200
- - 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
201
211
 
202
212
  ### Dependencies update
203
213
 
@@ -215,13 +225,13 @@ Co-authored-by: Ali Mihandoost <ali@mihandoost.com>
215
225
 
216
226
  ### Code Refactoring
217
227
 
218
- - **fetch:** handle fetchJson error responses properly ([ae8fe24](https://github.com/Alwatr/nanolib/commit/ae8fe244aca17f235c4347ff1fd10070a410340c)) by @AliMD
219
- - **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
220
230
 
221
231
  ### Dependencies update
222
232
 
223
233
  - bump the development-dependencies group across 1 directory with 10 updates ([9ed98ff](https://github.com/Alwatr/nanolib/commit/9ed98ffd0668d5a36e255c82edab3af53bffda8f)) by @dependabot[bot]
224
- - update ([c36ed50](https://github.com/Alwatr/nanolib/commit/c36ed50f68da2f5608ccd96119963a16cfacb4ce)) by @AliMD
234
+ - update ([c36ed50](https://github.com/Alwatr/nanolib/commit/c36ed50f68da2f5608ccd96119963a16cfacb4ce)) by @alimd
225
235
 
226
236
  ## [3.1.8](https://github.com/Alwatr/nanolib/compare/@alwatr/fetch@3.1.7...@alwatr/fetch@3.1.8) (2024-08-31)
227
237
 
@@ -237,7 +247,7 @@ Co-authored-by: Ali Mihandoost <ali@mihandoost.com>
237
247
 
238
248
  ### Dependencies update
239
249
 
240
- - 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
241
251
 
242
252
  ## [3.1.5](https://github.com/Alwatr/nanolib/compare/@alwatr/fetch@3.1.4...@alwatr/fetch@3.1.5) (2024-07-04)
243
253
 
@@ -249,7 +259,7 @@ Co-authored-by: Ali Mihandoost <ali@mihandoost.com>
249
259
 
250
260
  ### Dependencies update
251
261
 
252
- - upgrade ([6dbd300](https://github.com/Alwatr/nanolib/commit/6dbd300642c9bcc9e7d0b281e244bf1b06eb1c38)) by @AliMD
262
+ - upgrade ([6dbd300](https://github.com/Alwatr/nanolib/commit/6dbd300642c9bcc9e7d0b281e244bf1b06eb1c38)) by @alimd
253
263
 
254
264
  ## [3.1.3](https://github.com/Alwatr/nanolib/compare/@alwatr/fetch@3.1.2...@alwatr/fetch@3.1.3) (2024-04-25)
255
265
 
@@ -263,11 +273,11 @@ Co-authored-by: Ali Mihandoost <ali@mihandoost.com>
263
273
 
264
274
  ### Bug Fixes
265
275
 
266
- - 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
267
277
 
268
278
  ### Miscellaneous Chores
269
279
 
270
- - **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
271
281
 
272
282
  ## [3.1.0](https://github.com/Alwatr/nanolib/compare/@alwatr/fetch@3.0.0...@alwatr/fetch@3.1.0) (2024-01-24)
273
283
 
@@ -277,7 +287,7 @@ Co-authored-by: Ali Mihandoost <ali@mihandoost.com>
277
287
 
278
288
  ### Bug Fixes
279
289
 
280
- - **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
281
291
 
282
292
  ### Code Refactoring
283
293
 
@@ -293,10 +303,10 @@ Co-authored-by: Ali Mihandoost <ali@mihandoost.com>
293
303
 
294
304
  ### Features
295
305
 
296
- - **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
297
307
  - **fetch:** move from last repo ([4b86bb5](https://github.com/Alwatr/nanolib/commit/4b86bb542af296c91bc1db36b4e08fdbad501db2)) by @njfamirm
298
- - **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
299
309
 
300
310
  ### Code Refactoring
301
311
 
302
- - **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.4.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.4.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_;
package/dist/main.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /* @alwatr/fetch v5.4.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.4.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_;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alwatr/fetch",
3
- "version": "5.4.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.4.0",
76
- "@alwatr/global-this": "^5.4.0",
77
- "@alwatr/http-primer": "^5.4.0",
78
- "@alwatr/logger": "^5.4.0",
79
- "@alwatr/package-tracer": "^5.4.0",
80
- "@alwatr/parse-duration": "^5.4.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.4.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": "074be0d0fe780bf929e163045f8f598cd2697636"
90
+ "gitHead": "fdf8e6de77cca359465110a75ff18faff0649a95"
91
91
  }