@tramvai/module-render 6.67.0 → 6.68.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.
|
@@ -71,7 +71,7 @@ const bundleResource = async ({ bundle, extractor, pageComponent, fetchWebpackSt
|
|
|
71
71
|
attrs: {
|
|
72
72
|
'data-critical': 'true',
|
|
73
73
|
...(integrities[webpackRuntimeScriptName]
|
|
74
|
-
? { integrity: integrities[webpackRuntimeScriptName] }
|
|
74
|
+
? { integrity: integrities[webpackRuntimeScriptName], crossorigin: 'anonymous' }
|
|
75
75
|
: {}),
|
|
76
76
|
},
|
|
77
77
|
});
|
|
@@ -85,7 +85,7 @@ const bundleResource = async ({ bundle, extractor, pageComponent, fetchWebpackSt
|
|
|
85
85
|
slot: ResourceSlot.HEAD_CORE_STYLES,
|
|
86
86
|
payload: genHref(style),
|
|
87
87
|
attrs: {
|
|
88
|
-
...(integrities[style] ? { integrity: integrities[style] } : {}),
|
|
88
|
+
...(integrities[style] ? { integrity: integrities[style], crossorigin: 'anonymous' } : {}),
|
|
89
89
|
'data-critical': 'true',
|
|
90
90
|
// looks like we don't need this scripts preload at all, but also it is official recommendation for streaming
|
|
91
91
|
// https://github.com/reactwg/react-18/discussions/114
|
|
@@ -97,7 +97,9 @@ const bundleResource = async ({ bundle, extractor, pageComponent, fetchWebpackSt
|
|
|
97
97
|
slot: ResourceSlot.HEAD_CORE_SCRIPTS,
|
|
98
98
|
payload: genHref(script),
|
|
99
99
|
attrs: {
|
|
100
|
-
...(integrities[script]
|
|
100
|
+
...(integrities[script]
|
|
101
|
+
? { integrity: integrities[script], crossorigin: 'anonymous' }
|
|
102
|
+
: {}),
|
|
101
103
|
'data-critical': 'true',
|
|
102
104
|
...scriptTypeAttr,
|
|
103
105
|
},
|
|
@@ -107,7 +109,9 @@ const bundleResource = async ({ bundle, extractor, pageComponent, fetchWebpackSt
|
|
|
107
109
|
slot: ResourceSlot.HEAD_CORE_SCRIPTS,
|
|
108
110
|
payload: genHref(script),
|
|
109
111
|
attrs: {
|
|
110
|
-
...(integrities[script]
|
|
112
|
+
...(integrities[script]
|
|
113
|
+
? { integrity: integrities[script], crossorigin: 'anonymous' }
|
|
114
|
+
: {}),
|
|
111
115
|
'data-critical': 'true',
|
|
112
116
|
...scriptTypeAttr,
|
|
113
117
|
},
|
|
@@ -80,7 +80,7 @@ const bundleResource = async ({ bundle, extractor, pageComponent, fetchWebpackSt
|
|
|
80
80
|
attrs: {
|
|
81
81
|
'data-critical': 'true',
|
|
82
82
|
...(integrities[webpackRuntimeScriptName]
|
|
83
|
-
? { integrity: integrities[webpackRuntimeScriptName] }
|
|
83
|
+
? { integrity: integrities[webpackRuntimeScriptName], crossorigin: 'anonymous' }
|
|
84
84
|
: {}),
|
|
85
85
|
},
|
|
86
86
|
});
|
|
@@ -94,7 +94,7 @@ const bundleResource = async ({ bundle, extractor, pageComponent, fetchWebpackSt
|
|
|
94
94
|
slot: tokensRender.ResourceSlot.HEAD_CORE_STYLES,
|
|
95
95
|
payload: genHref(style),
|
|
96
96
|
attrs: {
|
|
97
|
-
...(integrities[style] ? { integrity: integrities[style] } : {}),
|
|
97
|
+
...(integrities[style] ? { integrity: integrities[style], crossorigin: 'anonymous' } : {}),
|
|
98
98
|
'data-critical': 'true',
|
|
99
99
|
// looks like we don't need this scripts preload at all, but also it is official recommendation for streaming
|
|
100
100
|
// https://github.com/reactwg/react-18/discussions/114
|
|
@@ -106,7 +106,9 @@ const bundleResource = async ({ bundle, extractor, pageComponent, fetchWebpackSt
|
|
|
106
106
|
slot: tokensRender.ResourceSlot.HEAD_CORE_SCRIPTS,
|
|
107
107
|
payload: genHref(script),
|
|
108
108
|
attrs: {
|
|
109
|
-
...(integrities[script]
|
|
109
|
+
...(integrities[script]
|
|
110
|
+
? { integrity: integrities[script], crossorigin: 'anonymous' }
|
|
111
|
+
: {}),
|
|
110
112
|
'data-critical': 'true',
|
|
111
113
|
...scriptTypeAttr,
|
|
112
114
|
},
|
|
@@ -116,7 +118,9 @@ const bundleResource = async ({ bundle, extractor, pageComponent, fetchWebpackSt
|
|
|
116
118
|
slot: tokensRender.ResourceSlot.HEAD_CORE_SCRIPTS,
|
|
117
119
|
payload: genHref(script),
|
|
118
120
|
attrs: {
|
|
119
|
-
...(integrities[script]
|
|
121
|
+
...(integrities[script]
|
|
122
|
+
? { integrity: integrities[script], crossorigin: 'anonymous' }
|
|
123
|
+
: {}),
|
|
120
124
|
'data-critical': 'true',
|
|
121
125
|
...scriptTypeAttr,
|
|
122
126
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/module-render",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.68.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"browser": "lib/browser.js",
|
|
6
6
|
"main": "lib/server.js",
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
"@tinkoff/request-core": "^0.10.0",
|
|
29
29
|
"@tinkoff/request-plugin-protocol-http": "0.15.0",
|
|
30
30
|
"@tinkoff/url": "0.12.1",
|
|
31
|
-
"@tinkoff/user-agent": "0.8.
|
|
32
|
-
"@tramvai/experiments": "6.
|
|
33
|
-
"@tramvai/module-client-hints": "6.
|
|
34
|
-
"@tramvai/module-router": "6.
|
|
35
|
-
"@tramvai/react": "6.
|
|
31
|
+
"@tinkoff/user-agent": "0.8.118",
|
|
32
|
+
"@tramvai/experiments": "6.68.0",
|
|
33
|
+
"@tramvai/module-client-hints": "6.68.0",
|
|
34
|
+
"@tramvai/module-router": "6.68.0",
|
|
35
|
+
"@tramvai/react": "6.68.0",
|
|
36
36
|
"@tramvai/safe-strings": "0.9.0",
|
|
37
|
-
"@tramvai/tokens-render": "6.
|
|
37
|
+
"@tramvai/tokens-render": "6.68.0",
|
|
38
38
|
"@types/loadable__server": "^5.12.6",
|
|
39
39
|
"undici": "^7.16.0"
|
|
40
40
|
},
|
|
@@ -42,14 +42,14 @@
|
|
|
42
42
|
"@tinkoff/dippy": "0.12.3",
|
|
43
43
|
"@tinkoff/react-hooks": "0.5.1",
|
|
44
44
|
"@tinkoff/utils": "^2.1.2",
|
|
45
|
-
"@tramvai/cli": "6.
|
|
46
|
-
"@tramvai/core": "6.
|
|
47
|
-
"@tramvai/module-common": "6.
|
|
48
|
-
"@tramvai/state": "6.
|
|
49
|
-
"@tramvai/test-helpers": "6.
|
|
50
|
-
"@tramvai/tokens-common": "6.
|
|
51
|
-
"@tramvai/tokens-router": "6.
|
|
52
|
-
"@tramvai/tokens-server-private": "6.
|
|
45
|
+
"@tramvai/cli": "6.68.0",
|
|
46
|
+
"@tramvai/core": "6.68.0",
|
|
47
|
+
"@tramvai/module-common": "6.68.0",
|
|
48
|
+
"@tramvai/state": "6.68.0",
|
|
49
|
+
"@tramvai/test-helpers": "6.68.0",
|
|
50
|
+
"@tramvai/tokens-common": "6.68.0",
|
|
51
|
+
"@tramvai/tokens-router": "6.68.0",
|
|
52
|
+
"@tramvai/tokens-server-private": "6.68.0",
|
|
53
53
|
"express": "^4.21.2",
|
|
54
54
|
"react": ">=16.14.0",
|
|
55
55
|
"react-dom": ">=16.14.0",
|