@shopify/hydrogen 1.6.7 → 1.6.8
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.
|
@@ -171,7 +171,8 @@ async function processRequest(handleRequest, App, url, request, sessionApi, opti
|
|
|
171
171
|
headers: response.headers,
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
|
-
if (
|
|
174
|
+
if (request.headers.get('oxygen-do-not-stream-response') === 'true' ||
|
|
175
|
+
isBotUA(url, request.headers.get('user-agent'))) {
|
|
175
176
|
response.doNotStream();
|
|
176
177
|
}
|
|
177
178
|
return runSSR({
|
|
@@ -4,54 +4,56 @@
|
|
|
4
4
|
* https://github.com/GoogleChrome/rendertron/blob/6f681688737846b28754fbfdf5db173846a826df/middleware/src/middleware.ts#L24-L41
|
|
5
5
|
*/
|
|
6
6
|
const botUserAgents = [
|
|
7
|
-
'
|
|
8
|
-
'
|
|
7
|
+
'360spider',
|
|
8
|
+
'adsbot-google',
|
|
9
|
+
'adsbot-google-mobile',
|
|
9
10
|
'applebot',
|
|
10
|
-
'Baiduspider',
|
|
11
11
|
'baiduspider',
|
|
12
|
-
'
|
|
13
|
-
'
|
|
14
|
-
'PetalBot',
|
|
15
|
-
'Yisouspider',
|
|
12
|
+
'baiduspider',
|
|
13
|
+
'bingbot',
|
|
16
14
|
'bingbot',
|
|
17
|
-
'
|
|
18
|
-
'BingPreview',
|
|
15
|
+
'bingpreview',
|
|
19
16
|
'bitlybot',
|
|
20
|
-
'
|
|
21
|
-
'
|
|
22
|
-
'
|
|
17
|
+
'bytespider',
|
|
18
|
+
'discordbot',
|
|
19
|
+
'duckduckbot',
|
|
20
|
+
'embedly',
|
|
23
21
|
'facebookcatalog',
|
|
24
22
|
'facebookexternalhit',
|
|
25
|
-
'
|
|
26
|
-
'
|
|
27
|
-
'
|
|
28
|
-
'
|
|
29
|
-
'
|
|
23
|
+
'google-inspectiontool',
|
|
24
|
+
'google-pagerenderer',
|
|
25
|
+
'googlebot',
|
|
26
|
+
'googlebot-image',
|
|
27
|
+
'googlebot-news',
|
|
28
|
+
'googlebot-video',
|
|
29
|
+
'googleother',
|
|
30
30
|
'googleweblight',
|
|
31
31
|
'ia_archive',
|
|
32
|
-
'
|
|
33
|
-
'
|
|
32
|
+
'ia_archiver',
|
|
33
|
+
'linkedinbot',
|
|
34
|
+
'mediapartners-google',
|
|
34
35
|
'outbrain',
|
|
36
|
+
'petalbot',
|
|
35
37
|
'pinterest',
|
|
36
38
|
'quora link preview',
|
|
37
39
|
'redditbot',
|
|
38
40
|
'rogerbot',
|
|
41
|
+
'seoradar',
|
|
39
42
|
'showyoubot',
|
|
40
|
-
'
|
|
41
|
-
'
|
|
42
|
-
'
|
|
43
|
+
'skypeuripreview',
|
|
44
|
+
'slackbot',
|
|
45
|
+
'slurp',
|
|
43
46
|
'sogou',
|
|
44
|
-
'
|
|
45
|
-
'
|
|
47
|
+
'storebot-google',
|
|
48
|
+
'telegrambot',
|
|
46
49
|
'tumblr',
|
|
47
|
-
'
|
|
48
|
-
'
|
|
49
|
-
'
|
|
50
|
-
'
|
|
50
|
+
'twitterbot',
|
|
51
|
+
'vkshare',
|
|
52
|
+
'w3c html2txt',
|
|
53
|
+
'w3c_validator',
|
|
54
|
+
'whatsapp',
|
|
51
55
|
'yandex',
|
|
52
|
-
|
|
53
|
-
'Seoradar',
|
|
54
|
-
'W3C html2txt',
|
|
56
|
+
'yisouspider',
|
|
55
57
|
];
|
|
56
58
|
/**
|
|
57
59
|
* Creates a regex based on the botUserAgents array
|
package/dist/esnext/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const LIB_VERSION = "1.6.
|
|
1
|
+
export declare const LIB_VERSION = "1.6.8";
|
package/dist/esnext/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const LIB_VERSION = '1.6.
|
|
1
|
+
export const LIB_VERSION = '1.6.8';
|