@quark-fw/plugin-react 0.1.27 → 0.1.28

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quark-fw/plugin-react",
3
- "version": "0.1.27",
3
+ "version": "0.1.28",
4
4
  "main": "src/index.ts",
5
5
  "types": "src/index.ts",
6
6
  "type": "module",
@@ -22,8 +22,8 @@
22
22
  "access": "public"
23
23
  },
24
24
  "dependencies": {
25
- "@quark-fw/atom": "0.1.27",
26
- "@quark-fw/plugin": "0.1.27",
25
+ "@quark-fw/atom": "0.1.28",
26
+ "@quark-fw/plugin": "0.1.28",
27
27
  "@trpc/client": "~11.18.0",
28
28
  "@types/react-dom": "^19.2.3",
29
29
  "express": "^5.2.1",
@@ -36,8 +36,8 @@
36
36
  "@mantine/dates": "^9.0.0",
37
37
  "@mantine/modals": "^9.0.0",
38
38
  "@mantine/notifications": "^9.0.0",
39
- "@quark-fw/core": "0.1.27",
40
- "@quark-fw/store": "0.1.27",
39
+ "@quark-fw/core": "0.1.28",
40
+ "@quark-fw/store": "0.1.28",
41
41
  "@vitejs/plugin-react": "^5.1.0",
42
42
  "react": "^19.2.4",
43
43
  "react-dom": "^19.2.4",
@@ -154,6 +154,9 @@ export default function getRenderMiddleware({ vite }: GetRenderMiddlewareArgs) {
154
154
  }
155
155
 
156
156
  res.status(seo.status ?? (page ? 200 : 404));
157
+ // res.write не ставит тип сам, а с nosniff (securityHeadersMiddleware)
158
+ // браузер без него показывает страницу текстом
159
+ res.setHeader("Content-Type", "text/html; charset=utf-8");
157
160
 
158
161
  // hreflang-кластер: каждая локаль + x-default на дефолтную.
159
162
  // Относительный canonical (например /tbilisi?page=2) задаёт путь