@vpmedia/simplify 1.62.0 โ†’ 1.63.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,39 @@
1
+ ## [1.63.0] - 2026-01-28
2
+
3
+ ### ๐Ÿ’ผ Other
4
+
5
+ - *(deps)* Bump dependency versions
6
+ - *(deps)* Bump dependency versions
7
+ - *(deps)* Bump dependency versions
8
+ - *(deps)* Bump dependency versions
9
+ - *(deps)* Bump dependency versions
10
+ - *(deps)* Bump dependency versions
11
+ - *(deps)* Bump dependency versions
12
+ - *(deps)* Bump dependency versions
13
+ - *(deps)* Bump dependency versions
14
+ - *(deps)* Bump dependency versions
15
+ - *(deps)* Bump dependency versions
16
+ - *(deps)* Bump dependency versions
17
+ - *(deps)* Bump dependency versions
18
+ - *(deps)* Bump dependency versions
19
+ - *(deps)* Bump dependency versions
20
+ - *(deps)* Bump dependency versions
21
+ - *(deps)* Bump dependency versions
22
+
23
+ ### ๐Ÿšœ Refactor
24
+
25
+ - Improve fetch retry options and abort usage
26
+
27
+ ### ๐Ÿงช Testing
28
+
29
+ - Optimize vitest performance, use standard config format
30
+
31
+ ### โš™๏ธ Miscellaneous Tasks
32
+
33
+ - Release
34
+ - Use eslint plugin jsdoc typescript flavor
35
+ - Regenerate types
36
+ - *(release)* V1.63.0
1
37
  ## [1.62.0] - 2026-01-14
2
38
 
3
39
  ### ๐Ÿงช Testing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vpmedia/simplify",
3
- "version": "1.62.0",
3
+ "version": "1.63.0",
4
4
  "description": "@vpmedia/simplify",
5
5
  "author": "Andras Csizmadia <andras@vpmedia.hu> (www.vpmedia.hu)",
6
6
  "license": "MIT",
@@ -19,36 +19,31 @@
19
19
  "types": "./types/index.d.ts",
20
20
  "type": "module",
21
21
  "dependencies": {
22
- "eventemitter3": "^5.0.1"
22
+ "eventemitter3": "^5.0.4"
23
23
  },
24
24
  "optionalDependencies": {
25
- "@sentry/browser": "^10.33.0"
25
+ "@sentry/browser": "^10.37.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@commitlint/cli": "^20.3.1",
29
29
  "@commitlint/config-conventional": "^20.3.1",
30
30
  "@eslint/js": "^9.39.2",
31
- "@types/node": "^25.0.8",
32
- "@vitest/coverage-v8": "^4.0.17",
31
+ "@types/node": "^25.0.10",
32
+ "@vitest/coverage-v8": "^4.0.18",
33
33
  "eslint": "^9.39.2",
34
- "eslint-plugin-jsdoc": "^62.0.0",
35
- "eslint-plugin-oxlint": "^1.39.0",
34
+ "eslint-plugin-jsdoc": "^62.4.1",
35
+ "eslint-plugin-oxlint": "^1.42.0",
36
36
  "eslint-plugin-unicorn": "^62.0.0",
37
- "globals": "^17.0.0",
37
+ "globals": "^17.2.0",
38
38
  "jsdom": "^27.4.0",
39
- "oxlint": "^1.39.0",
40
- "oxlint-tsgolint": "^0.11.0",
41
- "prettier": "^3.7.4",
39
+ "msw": "^2.12.7",
40
+ "oxlint": "^1.42.0",
41
+ "oxlint-tsgolint": "^0.11.2",
42
+ "prettier": "^3.8.1",
42
43
  "typescript": "^5.9.3",
43
- "typescript-eslint": "^8.53.0",
44
- "vitest": "^4.0.17"
44
+ "typescript-eslint": "^8.54.0",
45
+ "vitest": "^4.0.18"
45
46
  },
46
- "browserslist": [
47
- "> 0.5%",
48
- "not dead",
49
- "not op_mini all",
50
- "iOS >= 14"
51
- ],
52
47
  "scripts": {
53
48
  "build": "rm -rf types && tsc -p ./tsconfig.build.json",
54
49
  "check": "pnpm build && pnpm lint && pnpm test && pnpm typecheck",
package/src/util/fetch.js CHANGED
@@ -54,12 +54,18 @@ export const fetchRetry = async (resource, fetchOptions, retryOptions) => {
54
54
  while (retryOptions.numTries > 0) {
55
55
  logger.info('request', { resource, fetchOptions, retryOptions });
56
56
  const controller = new AbortController();
57
- const timeoutId = setTimeout(() => controller.abort('Fetch timed out'), retryOptions.timeout);
58
- fetchOptions.signal = controller.signal;
57
+ const timeoutId = setTimeout(
58
+ () => controller.abort(new DOMException('Fetch timed out', 'AbortError')),
59
+ retryOptions.timeout
60
+ );
61
+ const options = {
62
+ ...fetchOptions,
63
+ signal: controller.signal,
64
+ };
59
65
  try {
60
- const response = await fetch(resource, fetchOptions);
66
+ const response = await fetch(resource, options);
61
67
  if (!response.ok) {
62
- throw new FetchError(`Fetch error ${response.status}`, resource, fetchOptions, response);
68
+ throw new FetchError(`Fetch error ${response.status}`, resource, options, response);
63
69
  }
64
70
  logger.info('response', response);
65
71
  return response;
@@ -1 +1 @@
1
- {"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../src/util/fetch.js"],"names":[],"mappings":"AAeA,yBAA0B,CAAC,CAAC;AAE5B;IACE;;;;;;OAMG;IACH,qBALW,MAAM,YACN,MAAM,GAAG,GAAG,GAAG,OAAO,gBACtB,WAAW,YACX,QAAQ,EASlB;IAJC,iCAAwB;IACxB,0BAAgC;IAChC,mBAAwB;IACxB,cAAqC;CAExC;AASM,qCALI,MAAM,GAAG,GAAG,GAAG,OAAO,gBACtB,WAAW,iBACX;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAC,GAC9E,OAAO,CAAC,QAAQ,CAAC,CA4C7B"}
1
+ {"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../src/util/fetch.js"],"names":[],"mappings":"AAeA,yBAA0B,CAAC,CAAC;AAE5B;IACE;;;;;;OAMG;IACH,qBALW,MAAM,YACN,MAAM,GAAG,GAAG,GAAG,OAAO,gBACtB,WAAW,YACX,QAAQ,EASlB;IAJC,iCAAwB;IACxB,0BAAgC;IAChC,mBAAwB;IACxB,cAAqC;CAExC;AASM,qCALI,MAAM,GAAG,GAAG,GAAG,OAAO,gBACtB,WAAW,iBACX;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAC,GAC9E,OAAO,CAAC,QAAQ,CAAC,CAkD7B"}