@alwatr/fetch 4.1.5 → 4.1.7

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,18 +3,26 @@
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
+ ## [4.1.7](https://github.com/Alwatr/nanolib/compare/@alwatr/fetch@4.1.6...@alwatr/fetch@4.1.7) (2024-10-25)
7
+
8
+ **Note:** Version bump only for package @alwatr/fetch
9
+
10
+ ## [4.1.6](https://github.com/Alwatr/nanolib/compare/@alwatr/fetch@4.1.5...@alwatr/fetch@4.1.6) (2024-10-12)
11
+
12
+ **Note:** Version bump only for package @alwatr/fetch
13
+
6
14
  ## [4.1.5](https://github.com/Alwatr/nanolib/compare/@alwatr/fetch@4.1.4...@alwatr/fetch@4.1.5) (2024-10-11)
7
15
 
8
16
  ### Code Refactoring
9
17
 
10
- * prevent side-effects ([01e00e1](https://github.com/Alwatr/nanolib/commit/01e00e191385cc92b28677df0c01a085916ae677)) by @mohammadhonarvar
11
- * use new `global-this` package ([42510b9](https://github.com/Alwatr/nanolib/commit/42510b9ae0e385206a902db093d188949f1cb84e)) by @mohammadhonarvar
18
+ - prevent side-effects ([01e00e1](https://github.com/Alwatr/nanolib/commit/01e00e191385cc92b28677df0c01a085916ae677)) by @mohammadhonarvar
19
+ - use new `global-this` package ([42510b9](https://github.com/Alwatr/nanolib/commit/42510b9ae0e385206a902db093d188949f1cb84e)) by @mohammadhonarvar
12
20
 
13
21
  ## [4.1.4](https://github.com/Alwatr/nanolib/compare/@alwatr/fetch@4.1.3...@alwatr/fetch@4.1.4) (2024-10-11)
14
22
 
15
23
  ### Miscellaneous Chores
16
24
 
17
- * include LICENSE and LEGAL files to publish ([09f366f](https://github.com/Alwatr/nanolib/commit/09f366f680bfa9fb26acb2cd1ccbc68c5a9e9ad8)) by @AliMD
25
+ - include LICENSE and LEGAL files to publish ([09f366f](https://github.com/Alwatr/nanolib/commit/09f366f680bfa9fb26acb2cd1ccbc68c5a9e9ad8)) by @AliMD
18
26
 
19
27
  ## [4.1.3](https://github.com/Alwatr/nanolib/compare/@alwatr/fetch@4.1.2...@alwatr/fetch@4.1.3) (2024-10-11)
20
28
 
@@ -24,7 +32,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
24
32
 
25
33
  ### Dependencies update
26
34
 
27
- * bump the development-dependencies group with 10 updates ([fa4aaf0](https://github.com/Alwatr/nanolib/commit/fa4aaf04c907ecae06aa14000ce35216170c15ad)) by @dependabot[bot]
35
+ - bump the development-dependencies group with 10 updates ([fa4aaf0](https://github.com/Alwatr/nanolib/commit/fa4aaf04c907ecae06aa14000ce35216170c15ad)) by @dependabot[bot]
28
36
 
29
37
  ## [4.1.1](https://github.com/Alwatr/nanolib/compare/@alwatr/fetch@4.1.0...@alwatr/fetch@4.1.1) (2024-10-08)
30
38
 
@@ -34,30 +42,30 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
34
42
 
35
43
  ### Features
36
44
 
37
- * use `package-tracer` ([cc3c5f9](https://github.com/Alwatr/nanolib/commit/cc3c5f9c1a3d03f0d81b46835665f16a0426fd0d)) by @mohammadhonarvar
45
+ - use `package-tracer` ([cc3c5f9](https://github.com/Alwatr/nanolib/commit/cc3c5f9c1a3d03f0d81b46835665f16a0426fd0d)) by @mohammadhonarvar
38
46
 
39
47
  ### Bug Fixes
40
48
 
41
- * all dependeny topology ([1c17f34](https://github.com/Alwatr/nanolib/commit/1c17f349adf3e98e2a80ab2da4f0f81028dc9c5f)) by @mohammadhonarvar
42
- * **fetch:** remove unused import from fetch core module ([28ec726](https://github.com/Alwatr/nanolib/commit/28ec7269322f90dba02fbb33e4e622db42169368)) by @AliMD
49
+ - all dependeny topology ([1c17f34](https://github.com/Alwatr/nanolib/commit/1c17f349adf3e98e2a80ab2da4f0f81028dc9c5f)) by @mohammadhonarvar
50
+ - **fetch:** remove unused import from fetch core module ([28ec726](https://github.com/Alwatr/nanolib/commit/28ec7269322f90dba02fbb33e4e622db42169368)) by @AliMD
43
51
 
44
52
  ### Code Refactoring
45
53
 
46
- * **fetch:** update fetch package to use @alwatr/parse-duration for timeout and retryDelay durations ([1108c54](https://github.com/Alwatr/nanolib/commit/1108c547e43f2c65f46d65b58dd19cee9abd2fd7)) by @AliMD
47
- * **fetch:** Update logger import and initialization ([1f0451c](https://github.com/Alwatr/nanolib/commit/1f0451c9fec81b875736135778cdd4150556ba97)) by @AliMD
48
- * **fetch:** use new DictionaryReq type ([a8149cf](https://github.com/Alwatr/nanolib/commit/a8149cff114da7c7ce9a335c837ae794904fa3ca)) by @AliMD
49
- * update Dictionary type definitions ([c94cbc4](https://github.com/Alwatr/nanolib/commit/c94cbc4523864e2cc47828ccf5508b68945ac2b8)) by @AliMD
50
- * use new type-helper global types and remove all import types ([08b5d08](https://github.com/Alwatr/nanolib/commit/08b5d08c03c7c315382337239de0426462f384b8)) by @AliMD
51
- * **wait:** rename package to delay ([cf8c45c](https://github.com/Alwatr/nanolib/commit/cf8c45cf3f5b61fdd4b1b1c7f744c4eb3e230016)) by @AliMD
54
+ - **fetch:** update fetch package to use @alwatr/parse-duration for timeout and retryDelay durations ([1108c54](https://github.com/Alwatr/nanolib/commit/1108c547e43f2c65f46d65b58dd19cee9abd2fd7)) by @AliMD
55
+ - **fetch:** Update logger import and initialization ([1f0451c](https://github.com/Alwatr/nanolib/commit/1f0451c9fec81b875736135778cdd4150556ba97)) by @AliMD
56
+ - **fetch:** use new DictionaryReq type ([a8149cf](https://github.com/Alwatr/nanolib/commit/a8149cff114da7c7ce9a335c837ae794904fa3ca)) by @AliMD
57
+ - update Dictionary type definitions ([c94cbc4](https://github.com/Alwatr/nanolib/commit/c94cbc4523864e2cc47828ccf5508b68945ac2b8)) by @AliMD
58
+ - use new type-helper global types and remove all import types ([08b5d08](https://github.com/Alwatr/nanolib/commit/08b5d08c03c7c315382337239de0426462f384b8)) by @AliMD
59
+ - **wait:** rename package to delay ([cf8c45c](https://github.com/Alwatr/nanolib/commit/cf8c45cf3f5b61fdd4b1b1c7f744c4eb3e230016)) by @AliMD
52
60
 
53
61
  ### Miscellaneous Chores
54
62
 
55
- * **fetch:** change the license to AGPL-3.0 ([edf9069](https://github.com/Alwatr/nanolib/commit/edf9069608bd276b85c9ac937e33ad225c5921a9)) by @ArmanAsadian
56
- * Update build and lint scripts ([392d0b7](https://github.com/Alwatr/nanolib/commit/392d0b71f446bce336b0256119a80f07aff794ba)) by @AliMD
63
+ - **fetch:** change the license to AGPL-3.0 ([edf9069](https://github.com/Alwatr/nanolib/commit/edf9069608bd276b85c9ac937e33ad225c5921a9)) by @ArmanAsadian
64
+ - Update build and lint scripts ([392d0b7](https://github.com/Alwatr/nanolib/commit/392d0b71f446bce336b0256119a80f07aff794ba)) by @AliMD
57
65
 
58
66
  ### Dependencies update
59
67
 
60
- * bump @types/node ([3d80fed](https://github.com/Alwatr/nanolib/commit/3d80fedaf720af792feb060c2f81c737ebb84e11)) by @dependabot[bot]
68
+ - bump @types/node ([3d80fed](https://github.com/Alwatr/nanolib/commit/3d80fedaf720af792feb060c2f81c737ebb84e11)) by @dependabot[bot]
61
69
 
62
70
  ## [4.0.1](https://github.com/Alwatr/nanolib/compare/@alwatr/fetch@4.0.0...@alwatr/fetch@4.0.1) (2024-09-21)
63
71
 
@@ -67,23 +75,23 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
67
75
 
68
76
  ### ⚠ BREAKING CHANGES
69
77
 
70
- * **fetch:** queryParametters renamed to queryParams
78
+ - **fetch:** queryParametters renamed to queryParams
71
79
 
72
80
  ### Code Refactoring
73
81
 
74
- * **fetch:** handle fetchJson error responses properly ([ae8fe24](https://github.com/Alwatr/nanolib/commit/ae8fe244aca17f235c4347ff1fd10070a410340c)) by @AliMD
75
- * **fetch:** update query parameters handling ([939b3d5](https://github.com/Alwatr/nanolib/commit/939b3d52998ec7b3f5c32ff5438b649148109ede)) by @AliMD
82
+ - **fetch:** handle fetchJson error responses properly ([ae8fe24](https://github.com/Alwatr/nanolib/commit/ae8fe244aca17f235c4347ff1fd10070a410340c)) by @AliMD
83
+ - **fetch:** update query parameters handling ([939b3d5](https://github.com/Alwatr/nanolib/commit/939b3d52998ec7b3f5c32ff5438b649148109ede)) by @AliMD
76
84
 
77
85
  ### Dependencies update
78
86
 
79
- * bump the development-dependencies group across 1 directory with 10 updates ([9ed98ff](https://github.com/Alwatr/nanolib/commit/9ed98ffd0668d5a36e255c82edab3af53bffda8f)) by @dependabot[bot]
80
- * update ([c36ed50](https://github.com/Alwatr/nanolib/commit/c36ed50f68da2f5608ccd96119963a16cfacb4ce)) by @AliMD
87
+ - bump the development-dependencies group across 1 directory with 10 updates ([9ed98ff](https://github.com/Alwatr/nanolib/commit/9ed98ffd0668d5a36e255c82edab3af53bffda8f)) by @dependabot[bot]
88
+ - update ([c36ed50](https://github.com/Alwatr/nanolib/commit/c36ed50f68da2f5608ccd96119963a16cfacb4ce)) by @AliMD
81
89
 
82
90
  ## [3.1.8](https://github.com/Alwatr/nanolib/compare/@alwatr/fetch@3.1.7...@alwatr/fetch@3.1.8) (2024-08-31)
83
91
 
84
92
  ### Miscellaneous Chores
85
93
 
86
- * Update package.json exports for [@alwatr](https://github.com/alwatr) packages ([dacb362](https://github.com/Alwatr/nanolib/commit/dacb362b145e3c51b4aba00ff643687a3fac11d2)) by @
94
+ - Update package.json exports for [@alwatr](https://github.com/alwatr) packages ([dacb362](https://github.com/Alwatr/nanolib/commit/dacb362b145e3c51b4aba00ff643687a3fac11d2)) by @
87
95
 
88
96
  ## [3.1.7](https://github.com/Alwatr/nanolib/compare/@alwatr/fetch@3.1.6...@alwatr/fetch@3.1.7) (2024-08-31)
89
97
 
@@ -93,19 +101,19 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
93
101
 
94
102
  ### Dependencies update
95
103
 
96
- * update all dependencies ([1e0c30e](https://github.com/Alwatr/nanolib/commit/1e0c30e6a3a8e19deb5185814e24ab6c08dca573)) by @AliMD
104
+ - update all dependencies ([1e0c30e](https://github.com/Alwatr/nanolib/commit/1e0c30e6a3a8e19deb5185814e24ab6c08dca573)) by @AliMD
97
105
 
98
106
  ## [3.1.5](https://github.com/Alwatr/nanolib/compare/@alwatr/fetch@3.1.4...@alwatr/fetch@3.1.5) (2024-07-04)
99
107
 
100
108
  ### Dependencies update
101
109
 
102
- * update all dependencies ([0e908b4](https://github.com/Alwatr/nanolib/commit/0e908b476a6b976ec2447f864c8cafcbb8a0f099)) by @
110
+ - update all dependencies ([0e908b4](https://github.com/Alwatr/nanolib/commit/0e908b476a6b976ec2447f864c8cafcbb8a0f099)) by @
103
111
 
104
112
  ## [3.1.4](https://github.com/Alwatr/nanolib/compare/@alwatr/fetch@3.1.3...@alwatr/fetch@3.1.4) (2024-05-12)
105
113
 
106
114
  ### Dependencies update
107
115
 
108
- * upgrade ([6dbd300](https://github.com/Alwatr/nanolib/commit/6dbd300642c9bcc9e7d0b281e244bf1b06eb1c38)) by @AliMD
116
+ - upgrade ([6dbd300](https://github.com/Alwatr/nanolib/commit/6dbd300642c9bcc9e7d0b281e244bf1b06eb1c38)) by @AliMD
109
117
 
110
118
  ## [3.1.3](https://github.com/Alwatr/nanolib/compare/@alwatr/fetch@3.1.2...@alwatr/fetch@3.1.3) (2024-04-25)
111
119
 
@@ -119,11 +127,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
119
127
 
120
128
  ### Bug Fixes
121
129
 
122
- * exported types by add .js extensions to all imports ([fc3d83e](https://github.com/Alwatr/nanolib/commit/fc3d83e8f375da97ba276314b2e6966aa82c9b3f)) by @AliMD
130
+ - exported types by add .js extensions to all imports ([fc3d83e](https://github.com/Alwatr/nanolib/commit/fc3d83e8f375da97ba276314b2e6966aa82c9b3f)) by @AliMD
123
131
 
124
132
  ### Miscellaneous Chores
125
133
 
126
- * **deps:** update ([1a45030](https://github.com/Alwatr/nanolib/commit/1a450305440b710a300787d4ca24b1ed8c6a39d7)) by @AliMD
134
+ - **deps:** update ([1a45030](https://github.com/Alwatr/nanolib/commit/1a450305440b710a300787d4ca24b1ed8c6a39d7)) by @AliMD
127
135
 
128
136
  ## [3.1.0](https://github.com/Alwatr/nanolib/compare/@alwatr/fetch@3.0.0...@alwatr/fetch@3.1.0) (2024-01-24)
129
137
 
package/dist/main.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /* @alwatr/fetch v4.1.5 */
1
+ /* @alwatr/fetch v4.1.7 */
2
2
  "use strict";
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -33,7 +33,7 @@ var import_global_this = require("@alwatr/global-this");
33
33
  var import_logger = require("@alwatr/logger");
34
34
  var import_package_tracer = require("@alwatr/package-tracer");
35
35
  var import_parse_duration = require("@alwatr/parse-duration");
36
- __dev_mode__: import_package_tracer.packageTracer.add("@alwatr/fetch", "4.1.5");
36
+ __dev_mode__: import_package_tracer.packageTracer.add("@alwatr/fetch", "4.1.7");
37
37
  var logger_ = /* @__PURE__ */ (0, import_logger.createLogger)("@alwatr/fetch");
38
38
  var globalThis_ = /* @__PURE__ */ (0, import_global_this.getGlobalThis)();
39
39
  var cacheStorage_;
package/dist/main.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /* @alwatr/fetch v4.1.5 */
1
+ /* @alwatr/fetch v4.1.7 */
2
2
 
3
3
  // src/core.ts
4
4
  import { delay } from "@alwatr/delay";
@@ -6,7 +6,7 @@ import { getGlobalThis } from "@alwatr/global-this";
6
6
  import { createLogger } from "@alwatr/logger";
7
7
  import { packageTracer } from "@alwatr/package-tracer";
8
8
  import { parseDuration } from "@alwatr/parse-duration";
9
- __dev_mode__: packageTracer.add("@alwatr/fetch", "4.1.5");
9
+ __dev_mode__: packageTracer.add("@alwatr/fetch", "4.1.7");
10
10
  var logger_ = /* @__PURE__ */ createLogger("@alwatr/fetch");
11
11
  var globalThis_ = /* @__PURE__ */ getGlobalThis();
12
12
  var cacheStorage_;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alwatr/fetch",
3
- "version": "4.1.5",
3
+ "version": "4.1.7",
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,19 +72,19 @@
72
72
  "clean": "rm -rfv dist *.tsbuildinfo"
73
73
  },
74
74
  "dependencies": {
75
- "@alwatr/delay": "^1.0.5",
76
- "@alwatr/global-this": "^1.0.0",
77
- "@alwatr/logger": "^4.0.5",
78
- "@alwatr/package-tracer": "^1.0.5",
79
- "@alwatr/parse-duration": "^1.1.5"
75
+ "@alwatr/delay": "^1.0.7",
76
+ "@alwatr/global-this": "^1.0.2",
77
+ "@alwatr/logger": "^4.0.7",
78
+ "@alwatr/package-tracer": "^1.0.7",
79
+ "@alwatr/parse-duration": "^1.1.7"
80
80
  },
81
81
  "devDependencies": {
82
- "@alwatr/nano-build": "^2.0.1",
82
+ "@alwatr/nano-build": "^2.0.3",
83
83
  "@alwatr/prettier-config": "^1.0.6",
84
- "@alwatr/tsconfig-base": "^1.3.2",
85
- "@alwatr/type-helper": "^2.0.2",
84
+ "@alwatr/tsconfig-base": "^1.3.3",
85
+ "@alwatr/type-helper": "^2.0.3",
86
86
  "jest": "^29.7.0",
87
87
  "typescript": "^5.6.3"
88
88
  },
89
- "gitHead": "e474bb77657795c7b476fa3e98c219373ee45c2e"
89
+ "gitHead": "a1e430a02f9a5711fc43f19012091bcd8806c4f9"
90
90
  }
package/src/main.test.js CHANGED
@@ -1,4 +1,4 @@
1
- import {fetch, fetchJson} from '@alwatr/fetch'
1
+ import {fetch, fetchJson} from '@alwatr/fetch';
2
2
 
3
3
  describe('fetch with search params', () => {
4
4
  it('should make a GET request to the specified URL', async () => {
@@ -29,7 +29,7 @@ describe('fetch json', () => {
29
29
  url: 'http://httpbin.org/post',
30
30
  method: 'POST',
31
31
  bodyJson: {
32
- a: 2
32
+ a: 2,
33
33
  },
34
34
  cacheStrategy: 'network_only',
35
35
  };
@@ -38,7 +38,7 @@ describe('fetch json', () => {
38
38
 
39
39
  expect(responseJson.ok).toBe(true);
40
40
  expect(responseJson.json.a).toBe(2);
41
- })
41
+ });
42
42
 
43
43
  it('should make a GET request to the specified URL and parse json and handle 404 status code', async () => {
44
44
  const options = {