@pplancq/react-template 2.0.0 → 2.0.1

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,17 @@
1
+ ## @pplancq/react-template [2.0.1](https://github.com/pplancq/dev-tools/compare/@pplancq/react-template@2.0.0...@pplancq/react-template@2.0.1) (2024-11-11)
2
+
3
+ ### Bug Fixes
4
+
5
+ * **deps:** update dependency react-router-dom to ^6.28.0 ([5b0ed65](https://github.com/pplancq/dev-tools/commit/5b0ed656f6fbe1fbcbcee4a33636841ebc16e646))
6
+ * **deps:** update react-query mono repo to ^5.59.20 ([f147aba](https://github.com/pplancq/dev-tools/commit/f147aba053a9921888639870ac5d47933a4054d6))
7
+
8
+
9
+ ### Dependencies
10
+
11
+ * **@pplancq/eslint-config:** upgraded to 4.0.1
12
+ * **@pplancq/postcss-config:** upgraded to 2.1.3
13
+ * **@pplancq/webpack-config:** upgraded to 1.6.1
14
+
1
15
  ## @pplancq/react-template [2.0.0](https://github.com/pplancq/dev-tools/compare/@pplancq/react-template@1.9.1...@pplancq/react-template@2.0.0) (2024-11-08)
2
16
 
3
17
  ### ⚠ BREAKING CHANGES
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pplancq/react-template",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "license": "MIT",
5
5
  "description": "react template",
6
6
  "author": "pplancq <paul.plancq@outlook.fr>",
@@ -37,12 +37,12 @@
37
37
  ],
38
38
  "dependencies": {
39
39
  "@hookform/resolvers": "^3.9.1",
40
- "@tanstack/react-query": "^5.59.15",
41
- "@tanstack/react-query-devtools": "^5.59.15",
40
+ "@tanstack/react-query": "^5.59.20",
41
+ "@tanstack/react-query-devtools": "^5.59.20",
42
42
  "react": "^18.3.1",
43
43
  "react-dom": "^18.3.1",
44
44
  "react-hook-form": "^7.53.1",
45
- "react-router-dom": "^6.27.0",
45
+ "react-router-dom": "^6.28.0",
46
46
  "yup": "^1.4.0"
47
47
  },
48
48
  "devDependencies": {
@@ -61,24 +61,24 @@
61
61
  "@types/react-dom": "^18.3.1",
62
62
  "@vitejs/plugin-react": "^4.3.3",
63
63
  "@vitest/coverage-v8": "^2.1.4",
64
- "concurrently": "^9.0.1",
64
+ "concurrently": "^9.1.0",
65
65
  "eslint": "^9.14.0",
66
66
  "eslint-plugin-prettier": "^5.2.1",
67
67
  "husky": "^9.1.6",
68
68
  "jsdom": "^25.0.1",
69
69
  "lint-staged": "^15.2.10",
70
- "msw": "^2.5.1",
70
+ "msw": "^2.6.2",
71
71
  "prettier": "^3.3.3",
72
72
  "stylelint": "^16.10.0",
73
73
  "stylelint-prettier": "^5.0.2",
74
74
  "tsc-files": "^1.1.4",
75
75
  "typescript": "^5.6.3",
76
- "vite-plugin-svgr": "^4.2.0",
77
- "vite-tsconfig-paths": "^5.0.1",
76
+ "vite-plugin-svgr": "^4.3.0",
77
+ "vite-tsconfig-paths": "^5.1.0",
78
78
  "vitest": "^2.1.4",
79
79
  "vitest-axe": "^1.0.0-pre.3",
80
80
  "vitest-sonar-reporter": "^2.0.0",
81
- "webpack": "^5.95.0",
81
+ "webpack": "^5.96.1",
82
82
  "webpack-cli": "^5.1.4",
83
83
  "webpack-dev-server": "^5.1.0"
84
84
  },
@@ -86,7 +86,7 @@
86
86
  "node": ">=20.12.2"
87
87
  },
88
88
  "volta": {
89
- "node": "20.18.0",
89
+ "node": "22.11.0",
90
90
  "npm": "10.9.0"
91
91
  },
92
92
  "browserslist": {
@@ -8,8 +8,8 @@
8
8
  * - Please do NOT serve this file on production.
9
9
  */
10
10
 
11
- const PACKAGE_VERSION = '2.5.2'
12
- const INTEGRITY_CHECKSUM = '07a8241b182f8a246a7cd39894799a9e'
11
+ const PACKAGE_VERSION = '2.6.4'
12
+ const INTEGRITY_CHECKSUM = 'ca7800994cc8bfb5eb961e037c877074'
13
13
  const IS_MOCKED_RESPONSE = Symbol('isMockedResponse')
14
14
  const activeClientIds = new Set()
15
15
 
@@ -192,12 +192,14 @@ async function getResponse(event, client, requestId) {
192
192
  const requestClone = request.clone()
193
193
 
194
194
  function passthrough() {
195
- const headers = Object.fromEntries(requestClone.headers.entries())
196
-
197
- // Remove internal MSW request header so the passthrough request
198
- // complies with any potential CORS preflight checks on the server.
199
- // Some servers forbid unknown request headers.
200
- delete headers['x-msw-intention']
195
+ // Cast the request headers to a new Headers instance
196
+ // so the headers can be manipulated with.
197
+ const headers = new Headers(requestClone.headers)
198
+
199
+ // Remove the "accept" header value that marked this request as passthrough.
200
+ // This prevents request alteration and also keeps it compliant with the
201
+ // user-defined CORS policies.
202
+ headers.delete('accept', 'msw/passthrough')
201
203
 
202
204
  return fetch(requestClone, { headers })
203
205
  }