@atlaskit/react-ufo 3.6.5 → 3.6.6
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,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/ufo-interaction-ignore
|
|
2
2
|
|
|
3
|
+
## 3.6.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#144081](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/144081)
|
|
8
|
+
[`ef2a781b069a3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ef2a781b069a3) -
|
|
9
|
+
FF cleanup - ufo_support_other_resource_type_js
|
|
10
|
+
|
|
3
11
|
## 3.6.5
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -23,9 +23,7 @@ var isCacheableType = (0, _selfMeasurements.withProfiling)(function isCacheableT
|
|
|
23
23
|
if (alwaysCacheableTypes.includes(type)) {
|
|
24
24
|
return true;
|
|
25
25
|
}
|
|
26
|
-
|
|
27
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
28
|
-
if (type === 'other' && url.includes('.js') && (0, _platformFeatureFlags.fg)('ufo_support_other_resource_type_js')) {
|
|
26
|
+
if (type === 'other' && url.includes('.js')) {
|
|
29
27
|
return true;
|
|
30
28
|
}
|
|
31
29
|
return false;
|
|
@@ -56,18 +54,10 @@ var hasAccessToResourceSize = (0, _selfMeasurements.withProfiling)(function hasA
|
|
|
56
54
|
var getReportedInitiatorTypes = (0, _selfMeasurements.withProfiling)(function getReportedInitiatorTypes(xhrEnabled) {
|
|
57
55
|
var ufoConfig = (0, _config.getConfig)();
|
|
58
56
|
if (!(ufoConfig !== null && ufoConfig !== void 0 && ufoConfig.allowedResources)) {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
if (xhrEnabled) {
|
|
62
|
-
return ['script', 'link', 'fetch', 'other', 'xmlhttprequest'];
|
|
63
|
-
}
|
|
64
|
-
return ['script', 'link', 'fetch', 'other'];
|
|
65
|
-
} else {
|
|
66
|
-
if (xhrEnabled) {
|
|
67
|
-
return ['script', 'link', 'fetch', 'xmlhttprequest'];
|
|
68
|
-
}
|
|
69
|
-
return ['script', 'link', 'fetch'];
|
|
57
|
+
if (xhrEnabled) {
|
|
58
|
+
return ['script', 'link', 'fetch', 'other', 'xmlhttprequest'];
|
|
70
59
|
}
|
|
60
|
+
return ['script', 'link', 'fetch', 'other'];
|
|
71
61
|
}
|
|
72
62
|
return ufoConfig.allowedResources;
|
|
73
63
|
});
|
|
@@ -147,9 +137,7 @@ var getResourceTimings = exports.getResourceTimings = (0, _selfMeasurements.with
|
|
|
147
137
|
if (initiatorType === 'xmlhttprequest' && (xhrFilter === undefined || xhrFilter(name) === false)) {
|
|
148
138
|
return;
|
|
149
139
|
}
|
|
150
|
-
if (initiatorType === 'other' && !name.includes('.js')
|
|
151
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
152
|
-
(0, _platformFeatureFlags.fg)('ufo_support_other_resource_type_js')) {
|
|
140
|
+
if (initiatorType === 'other' && !name.includes('.js')) {
|
|
153
141
|
return;
|
|
154
142
|
}
|
|
155
143
|
var url = resourceTypes.includes(initiatorType) ? sanitiseEndpoints(name) : mapResources(name);
|
|
@@ -13,9 +13,7 @@ const isCacheableType = withProfiling(function isCacheableType(url, type) {
|
|
|
13
13
|
if (alwaysCacheableTypes.includes(type)) {
|
|
14
14
|
return true;
|
|
15
15
|
}
|
|
16
|
-
|
|
17
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
18
|
-
if (type === 'other' && url.includes('.js') && fg('ufo_support_other_resource_type_js')) {
|
|
16
|
+
if (type === 'other' && url.includes('.js')) {
|
|
19
17
|
return true;
|
|
20
18
|
}
|
|
21
19
|
return false;
|
|
@@ -46,18 +44,10 @@ const hasAccessToResourceSize = withProfiling(function hasAccessToResourceSize(u
|
|
|
46
44
|
const getReportedInitiatorTypes = withProfiling(function getReportedInitiatorTypes(xhrEnabled) {
|
|
47
45
|
const ufoConfig = getConfigUFO();
|
|
48
46
|
if (!(ufoConfig !== null && ufoConfig !== void 0 && ufoConfig.allowedResources)) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
if (xhrEnabled) {
|
|
52
|
-
return ['script', 'link', 'fetch', 'other', 'xmlhttprequest'];
|
|
53
|
-
}
|
|
54
|
-
return ['script', 'link', 'fetch', 'other'];
|
|
55
|
-
} else {
|
|
56
|
-
if (xhrEnabled) {
|
|
57
|
-
return ['script', 'link', 'fetch', 'xmlhttprequest'];
|
|
58
|
-
}
|
|
59
|
-
return ['script', 'link', 'fetch'];
|
|
47
|
+
if (xhrEnabled) {
|
|
48
|
+
return ['script', 'link', 'fetch', 'other', 'xmlhttprequest'];
|
|
60
49
|
}
|
|
50
|
+
return ['script', 'link', 'fetch', 'other'];
|
|
61
51
|
}
|
|
62
52
|
return ufoConfig.allowedResources;
|
|
63
53
|
});
|
|
@@ -143,9 +133,7 @@ export const getResourceTimings = withProfiling(function getResourceTimings(inte
|
|
|
143
133
|
if (initiatorType === 'xmlhttprequest' && (xhrFilter === undefined || xhrFilter(name) === false)) {
|
|
144
134
|
return;
|
|
145
135
|
}
|
|
146
|
-
if (initiatorType === 'other' && !name.includes('.js')
|
|
147
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
148
|
-
fg('ufo_support_other_resource_type_js')) {
|
|
136
|
+
if (initiatorType === 'other' && !name.includes('.js')) {
|
|
149
137
|
return;
|
|
150
138
|
}
|
|
151
139
|
const url = resourceTypes.includes(initiatorType) ? sanitiseEndpoints(name) : mapResources(name);
|
|
@@ -16,9 +16,7 @@ var isCacheableType = withProfiling(function isCacheableType(url, type) {
|
|
|
16
16
|
if (alwaysCacheableTypes.includes(type)) {
|
|
17
17
|
return true;
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
21
|
-
if (type === 'other' && url.includes('.js') && fg('ufo_support_other_resource_type_js')) {
|
|
19
|
+
if (type === 'other' && url.includes('.js')) {
|
|
22
20
|
return true;
|
|
23
21
|
}
|
|
24
22
|
return false;
|
|
@@ -49,18 +47,10 @@ var hasAccessToResourceSize = withProfiling(function hasAccessToResourceSize(url
|
|
|
49
47
|
var getReportedInitiatorTypes = withProfiling(function getReportedInitiatorTypes(xhrEnabled) {
|
|
50
48
|
var ufoConfig = getConfigUFO();
|
|
51
49
|
if (!(ufoConfig !== null && ufoConfig !== void 0 && ufoConfig.allowedResources)) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
if (xhrEnabled) {
|
|
55
|
-
return ['script', 'link', 'fetch', 'other', 'xmlhttprequest'];
|
|
56
|
-
}
|
|
57
|
-
return ['script', 'link', 'fetch', 'other'];
|
|
58
|
-
} else {
|
|
59
|
-
if (xhrEnabled) {
|
|
60
|
-
return ['script', 'link', 'fetch', 'xmlhttprequest'];
|
|
61
|
-
}
|
|
62
|
-
return ['script', 'link', 'fetch'];
|
|
50
|
+
if (xhrEnabled) {
|
|
51
|
+
return ['script', 'link', 'fetch', 'other', 'xmlhttprequest'];
|
|
63
52
|
}
|
|
53
|
+
return ['script', 'link', 'fetch', 'other'];
|
|
64
54
|
}
|
|
65
55
|
return ufoConfig.allowedResources;
|
|
66
56
|
});
|
|
@@ -140,9 +130,7 @@ export var getResourceTimings = withProfiling(function getResourceTimings(intera
|
|
|
140
130
|
if (initiatorType === 'xmlhttprequest' && (xhrFilter === undefined || xhrFilter(name) === false)) {
|
|
141
131
|
return;
|
|
142
132
|
}
|
|
143
|
-
if (initiatorType === 'other' && !name.includes('.js')
|
|
144
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
145
|
-
fg('ufo_support_other_resource_type_js')) {
|
|
133
|
+
if (initiatorType === 'other' && !name.includes('.js')) {
|
|
146
134
|
return;
|
|
147
135
|
}
|
|
148
136
|
var url = resourceTypes.includes(initiatorType) ? sanitiseEndpoints(name) : mapResources(name);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/react-ufo",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.6",
|
|
4
4
|
"description": "Parts of React UFO that are publicly available",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -136,9 +136,6 @@
|
|
|
136
136
|
"ufo-calc-speed-index": {
|
|
137
137
|
"type": "boolean"
|
|
138
138
|
},
|
|
139
|
-
"ufo_support_other_resource_type_js": {
|
|
140
|
-
"type": "boolean"
|
|
141
|
-
},
|
|
142
139
|
"ufo_return_relative_request_start": {
|
|
143
140
|
"type": "boolean"
|
|
144
141
|
},
|