@github/browser-support 1.1.0 → 1.2.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.
- package/README.md +4 -2
- package/lib/arraylike-at.d.ts.map +1 -1
- package/lib/arraylike-at.js +9 -5
- package/lib/arraylike-at.js.map +1 -1
- package/lib/form-requestsubmit.d.ts +5 -0
- package/lib/form-requestsubmit.d.ts.map +1 -0
- package/lib/form-requestsubmit.js +27 -0
- package/lib/form-requestsubmit.js.map +1 -0
- package/lib/index.d.ts +29 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +19 -7
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
# browser-support
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This library allows websites to maintain compatibility with older browsers, which do not implement newer features. It does so using [polyfills](https://developer.mozilla.org/en-US/docs/Glossary/Polyfill) for small new features, plus functions to determine if a browser supports a set of features natively or with polyfills.
|
|
4
|
+
|
|
5
|
+
If you would like to see what features the browser you are currently using implements, you [can visit the documentation site](https://github.github.com/browser-support/) which displays a compatibility table that detects which features are natively supported in your browser.
|
|
4
6
|
|
|
5
7
|
### How is this used on GitHub?
|
|
6
8
|
|
|
7
|
-
We use all of these polyfills on GitHub.com. We also use the `isSupported()` function to determine if the browser
|
|
9
|
+
We use all of these polyfills on GitHub.com. We also use the `isSupported()` function to determine if the browser meets a minimum set of functionality which we expect, browser that return false from `isSupported()` do not send errors or statistics to our backend monitoring.
|
|
8
10
|
|
|
9
11
|
## Installation
|
|
10
12
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arraylike-at.d.ts","sourceRoot":"","sources":["../src/arraylike-at.ts"],"names":[],"mappings":"AAEA,wBAAgB,WAAW,CAAC,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI,CAKtE;AAGD,wBAAgB,WAAW,IAAI,OAAO,
|
|
1
|
+
{"version":3,"file":"arraylike-at.d.ts","sourceRoot":"","sources":["../src/arraylike-at.ts"],"names":[],"mappings":"AAEA,wBAAgB,WAAW,CAAC,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI,CAKtE;AAGD,wBAAgB,WAAW,IAAI,OAAO,CAUrC;AAGD,wBAAgB,YAAY,IAAI,OAAO,CAOtC;AAED,wBAAgB,KAAK,IAAI,IAAI,CAO5B"}
|
package/lib/arraylike-at.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const TypedArray = Reflect.getPrototypeOf(Int8Array);
|
|
2
2
|
export function arrayLikeAt(i) {
|
|
3
3
|
const l = this.length;
|
|
4
4
|
i = Math.trunc(i) || 0;
|
|
@@ -12,19 +12,23 @@ export function isSupported() {
|
|
|
12
12
|
typeof Array.prototype.at === 'function' &&
|
|
13
13
|
'at' in String.prototype &&
|
|
14
14
|
typeof String.prototype.at === 'function' &&
|
|
15
|
-
'
|
|
16
|
-
|
|
15
|
+
typeof TypedArray === 'function' &&
|
|
16
|
+
'at' in TypedArray.prototype &&
|
|
17
|
+
typeof TypedArray.prototype.at === 'function');
|
|
17
18
|
}
|
|
18
19
|
/*#__PURE__*/
|
|
19
20
|
export function isPolyfilled() {
|
|
20
|
-
return Array.prototype.at === arrayLikeAt &&
|
|
21
|
+
return (Array.prototype.at === arrayLikeAt &&
|
|
22
|
+
String.prototype.at === arrayLikeAt &&
|
|
23
|
+
typeof TypedArray === 'function' &&
|
|
24
|
+
TypedArray.prototype.at === arrayLikeAt);
|
|
21
25
|
}
|
|
22
26
|
export function apply() {
|
|
23
27
|
if (!isSupported()) {
|
|
24
28
|
const defn = { value: arrayLikeAt, writable: true, configurable: true };
|
|
25
29
|
Object.defineProperty(Array.prototype, 'at', defn);
|
|
26
30
|
Object.defineProperty(String.prototype, 'at', defn);
|
|
27
|
-
Object.defineProperty(
|
|
31
|
+
Object.defineProperty(TypedArray, 'at', defn);
|
|
28
32
|
}
|
|
29
33
|
}
|
|
30
34
|
//# sourceMappingURL=arraylike-at.js.map
|
package/lib/arraylike-at.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arraylike-at.js","sourceRoot":"","sources":["../src/arraylike-at.ts"],"names":[],"mappings":"AAAA,MAAM,
|
|
1
|
+
{"version":3,"file":"arraylike-at.js","sourceRoot":"","sources":["../src/arraylike-at.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,GAAG,OAAO,CAAC,cAAc,CAAC,SAAS,CAAgC,CAAA;AAEnF,MAAM,UAAU,WAAW,CAAwB,CAAS;IAC1D,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAA;IACrB,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;IACtB,IAAI,CAAC,GAAG,CAAC;QAAE,CAAC,IAAI,CAAC,CAAA;IACjB,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;AAC9C,CAAC;AAED,aAAa;AACb,MAAM,UAAU,WAAW;IACzB,OAAO,CACL,IAAI,IAAI,KAAK,CAAC,SAAS;QACvB,OAAO,KAAK,CAAC,SAAS,CAAC,EAAE,KAAK,UAAU;QACxC,IAAI,IAAI,MAAM,CAAC,SAAS;QACxB,OAAO,MAAM,CAAC,SAAS,CAAC,EAAE,KAAK,UAAU;QACzC,OAAO,UAAU,KAAK,UAAU;QAChC,IAAI,IAAI,UAAU,CAAC,SAAS;QAC5B,OAAO,UAAU,CAAC,SAAS,CAAC,EAAE,KAAK,UAAU,CAC9C,CAAA;AACH,CAAC;AAED,aAAa;AACb,MAAM,UAAU,YAAY;IAC1B,OAAO,CACL,KAAK,CAAC,SAAS,CAAC,EAAE,KAAK,WAAW;QAClC,MAAM,CAAC,SAAS,CAAC,EAAE,KAAK,WAAW;QACnC,OAAO,UAAU,KAAK,UAAU;QAChC,UAAU,CAAC,SAAS,CAAC,EAAE,KAAK,WAAW,CACxC,CAAA;AACH,CAAC;AAED,MAAM,UAAU,KAAK;IACnB,IAAI,CAAC,WAAW,EAAE,EAAE;QAClB,MAAM,IAAI,GAAG,EAAC,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAC,CAAA;QACrE,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;QAClD,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;QACnD,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;KAC9C;AACH,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare function requestSubmit(this: HTMLFormElement, submitter?: HTMLButtonElement | HTMLInputElement | null): void;
|
|
2
|
+
export declare function isSupported(): boolean;
|
|
3
|
+
export declare function isPolyfilled(): boolean;
|
|
4
|
+
export declare function apply(): void;
|
|
5
|
+
//# sourceMappingURL=form-requestsubmit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-requestsubmit.d.ts","sourceRoot":"","sources":["../src/form-requestsubmit.ts"],"names":[],"mappings":"AAAA,wBAAgB,aAAa,CAC3B,IAAI,EAAE,eAAe,EACrB,SAAS,GAAE,iBAAiB,GAAG,gBAAgB,GAAG,IAAW,GAC5D,IAAI,CAcN;AAED,wBAAgB,WAAW,IAAI,OAAO,CAErC;AAED,wBAAgB,YAAY,IAAI,OAAO,CAEtC;AAED,wBAAgB,KAAK,IAAI,IAAI,CAI5B"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export function requestSubmit(submitter = null) {
|
|
2
|
+
const event = new SubmitEvent('submit', { bubbles: true, cancelable: true, submitter });
|
|
3
|
+
let input;
|
|
4
|
+
if (submitter && submitter.name) {
|
|
5
|
+
input = Object.assign(document.createElement('input'), {
|
|
6
|
+
type: 'hidden',
|
|
7
|
+
hidden: true,
|
|
8
|
+
name: submitter.name,
|
|
9
|
+
value: submitter.value
|
|
10
|
+
});
|
|
11
|
+
this.append(input);
|
|
12
|
+
}
|
|
13
|
+
this.checkValidity() && !this.dispatchEvent(event) && this.submit();
|
|
14
|
+
input?.remove();
|
|
15
|
+
}
|
|
16
|
+
export function isSupported() {
|
|
17
|
+
return 'requestSubmit' in HTMLFormElement.prototype && typeof HTMLFormElement.prototype.requestSubmit === 'function';
|
|
18
|
+
}
|
|
19
|
+
export function isPolyfilled() {
|
|
20
|
+
return HTMLFormElement.prototype.requestSubmit === requestSubmit;
|
|
21
|
+
}
|
|
22
|
+
export function apply() {
|
|
23
|
+
if (!isSupported()) {
|
|
24
|
+
HTMLFormElement.prototype.requestSubmit = requestSubmit;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=form-requestsubmit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-requestsubmit.js","sourceRoot":"","sources":["../src/form-requestsubmit.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,aAAa,CAE3B,YAAyD,IAAI;IAE7D,MAAM,KAAK,GAAG,IAAI,WAAW,CAAC,QAAQ,EAAE,EAAC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAC,CAAC,CAAA;IACrF,IAAI,KAAK,CAAA;IACT,IAAI,SAAS,IAAI,SAAS,CAAC,IAAI,EAAE;QAC/B,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE;YACrD,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,IAAI;YACZ,IAAI,EAAE,SAAS,CAAC,IAAI;YACpB,KAAK,EAAE,SAAS,CAAC,KAAK;SACvB,CAAC,CAAA;QACF,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;KACnB;IACD,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,MAAM,EAAE,CAAA;IACnE,KAAK,EAAE,MAAM,EAAE,CAAA;AACjB,CAAC;AAED,MAAM,UAAU,WAAW;IACzB,OAAO,eAAe,IAAI,eAAe,CAAC,SAAS,IAAI,OAAO,eAAe,CAAC,SAAS,CAAC,aAAa,KAAK,UAAU,CAAA;AACtH,CAAC;AAED,MAAM,UAAU,YAAY;IAC1B,OAAO,eAAe,CAAC,SAAS,CAAC,aAAa,KAAK,aAAa,CAAA;AAClE,CAAC;AAED,MAAM,UAAU,KAAK;IACnB,IAAI,CAAC,WAAW,EAAE,EAAE;QAClB,eAAe,CAAC,SAAS,CAAC,aAAa,GAAG,aAAa,CAAA;KACxD;AACH,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,3 +1,32 @@
|
|
|
1
|
+
import * as abortSignalAbort from './abortsignal-abort.js';
|
|
2
|
+
import * as abortSignalTimeout from './abortsignal-timeout.js';
|
|
3
|
+
import * as aggregateError from './aggregateerror.js';
|
|
4
|
+
import * as arrayAt from './arraylike-at.js';
|
|
5
|
+
import * as cryptoRandomUUID from './crypto-randomuuid.js';
|
|
6
|
+
import * as elementReplaceChildren from './element-replacechildren.js';
|
|
7
|
+
import * as eventAbortSignal from './event-abortsignal.js';
|
|
8
|
+
import * as formRequestSubmit from './form-requestsubmit.js';
|
|
9
|
+
import * as objectHasOwn from './object-hasown.js';
|
|
10
|
+
import * as promiseAllSettled from './promise-allsettled.js';
|
|
11
|
+
import * as promiseAny from './promise-any.js';
|
|
12
|
+
import * as requestIdleCallback from './requestidlecallback.js';
|
|
13
|
+
import * as stringReplaceAll from './string-replaceall.js';
|
|
14
|
+
export declare const baseSupport: boolean;
|
|
15
|
+
export declare const polyfills: {
|
|
16
|
+
abortSignalAbort: typeof abortSignalAbort;
|
|
17
|
+
abortSignalTimeout: typeof abortSignalTimeout;
|
|
18
|
+
aggregateError: typeof aggregateError;
|
|
19
|
+
arrayAt: typeof arrayAt;
|
|
20
|
+
cryptoRandomUUID: typeof cryptoRandomUUID;
|
|
21
|
+
elementReplaceChildren: typeof elementReplaceChildren;
|
|
22
|
+
eventAbortSignal: typeof eventAbortSignal;
|
|
23
|
+
formRequestSubmit: typeof formRequestSubmit;
|
|
24
|
+
objectHasOwn: typeof objectHasOwn;
|
|
25
|
+
promiseAllSettled: typeof promiseAllSettled;
|
|
26
|
+
promiseAny: typeof promiseAny;
|
|
27
|
+
requestIdleCallback: typeof requestIdleCallback;
|
|
28
|
+
stringReplaceAll: typeof stringReplaceAll;
|
|
29
|
+
};
|
|
1
30
|
export declare function isSupported(): boolean;
|
|
2
31
|
export declare function isPolyfilled(): boolean;
|
|
3
32
|
export declare function apply(): void;
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,wBAAwB,CAAA;AAC1D,OAAO,KAAK,kBAAkB,MAAM,0BAA0B,CAAA;AAC9D,OAAO,KAAK,cAAc,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAA;AAC5C,OAAO,KAAK,gBAAgB,MAAM,wBAAwB,CAAA;AAC1D,OAAO,KAAK,sBAAsB,MAAM,8BAA8B,CAAA;AACtE,OAAO,KAAK,gBAAgB,MAAM,wBAAwB,CAAA;AAC1D,OAAO,KAAK,iBAAiB,MAAM,yBAAyB,CAAA;AAC5D,OAAO,KAAK,YAAY,MAAM,oBAAoB,CAAA;AAClD,OAAO,KAAK,iBAAiB,MAAM,yBAAyB,CAAA;AAC5D,OAAO,KAAK,UAAU,MAAM,kBAAkB,CAAA;AAC9C,OAAO,KAAK,mBAAmB,MAAM,0BAA0B,CAAA;AAC/D,OAAO,KAAK,gBAAgB,MAAM,wBAAwB,CAAA;AAE1D,eAAO,MAAM,WAAW,SAuClB,CAAA;AAEN,eAAO,MAAM,SAAS;;;;;;;;;;;;;;CAcrB,CAAA;AAED,wBAAgB,WAAW,YAO1B;AAED,wBAAgB,YAAY,YAI3B;AAED,wBAAgB,KAAK,SAIpB"}
|
package/lib/index.js
CHANGED
|
@@ -5,11 +5,13 @@ import * as arrayAt from './arraylike-at.js';
|
|
|
5
5
|
import * as cryptoRandomUUID from './crypto-randomuuid.js';
|
|
6
6
|
import * as elementReplaceChildren from './element-replacechildren.js';
|
|
7
7
|
import * as eventAbortSignal from './event-abortsignal.js';
|
|
8
|
+
import * as formRequestSubmit from './form-requestsubmit.js';
|
|
8
9
|
import * as objectHasOwn from './object-hasown.js';
|
|
9
10
|
import * as promiseAllSettled from './promise-allsettled.js';
|
|
10
11
|
import * as promiseAny from './promise-any.js';
|
|
11
12
|
import * as requestIdleCallback from './requestidlecallback.js';
|
|
12
|
-
|
|
13
|
+
import * as stringReplaceAll from './string-replaceall.js';
|
|
14
|
+
export const baseSupport = typeof Blob === 'function' &&
|
|
13
15
|
typeof PerformanceObserver === 'function' &&
|
|
14
16
|
typeof Intl === 'object' &&
|
|
15
17
|
typeof MutationObserver === 'function' &&
|
|
@@ -39,8 +41,16 @@ const baseSupport = typeof Blob === 'function' &&
|
|
|
39
41
|
// ES2022
|
|
40
42
|
// 'at' in String.prototype && // Polyfilled
|
|
41
43
|
// 'at' in Array.prototype && // Polyfilled
|
|
44
|
+
// 'hasOwn' in Object && // Polyfilled
|
|
45
|
+
// ESNext
|
|
46
|
+
// 'abort' in AbortSignal && // Polyfilled
|
|
47
|
+
// 'timeout' in AbortSignal && // Polyfilled
|
|
48
|
+
// typeof AggregateError === 'function' && // Polyfilled
|
|
49
|
+
// 'randomUUID' in crypto && // Polyfilled
|
|
50
|
+
// 'replaceChildren' in Element.prototype && // Polyfilled
|
|
51
|
+
// 'requestIdleCallback' in window && // Polyfilled
|
|
42
52
|
true;
|
|
43
|
-
const polyfills =
|
|
53
|
+
export const polyfills = {
|
|
44
54
|
abortSignalAbort,
|
|
45
55
|
abortSignalTimeout,
|
|
46
56
|
aggregateError,
|
|
@@ -48,24 +58,26 @@ const polyfills = [
|
|
|
48
58
|
cryptoRandomUUID,
|
|
49
59
|
elementReplaceChildren,
|
|
50
60
|
eventAbortSignal,
|
|
61
|
+
formRequestSubmit,
|
|
51
62
|
objectHasOwn,
|
|
52
63
|
promiseAllSettled,
|
|
53
64
|
promiseAny,
|
|
54
|
-
requestIdleCallback
|
|
55
|
-
|
|
65
|
+
requestIdleCallback,
|
|
66
|
+
stringReplaceAll
|
|
67
|
+
};
|
|
56
68
|
export function isSupported() {
|
|
57
69
|
return (baseSupport &&
|
|
58
|
-
polyfills.every(polyfill => {
|
|
70
|
+
Object.values(polyfills).every(polyfill => {
|
|
59
71
|
polyfill.isSupported();
|
|
60
72
|
}));
|
|
61
73
|
}
|
|
62
74
|
export function isPolyfilled() {
|
|
63
|
-
return polyfills.every(polyfill => {
|
|
75
|
+
return Object.values(polyfills).every(polyfill => {
|
|
64
76
|
polyfill.isPolyfilled();
|
|
65
77
|
});
|
|
66
78
|
}
|
|
67
79
|
export function apply() {
|
|
68
|
-
for (const polyfill of polyfills) {
|
|
80
|
+
for (const polyfill of Object.values(polyfills)) {
|
|
69
81
|
polyfill.apply();
|
|
70
82
|
}
|
|
71
83
|
}
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,wBAAwB,CAAA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YACxC,QAAQ,CAAC,WAAW,EAAE,CAAA;QACxB,CAAC,CAAC,CACH,CAAA;AACH,CAAC;AAED,MAAM,UAAU,YAAY;IAC1B,OAAO,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE;QAC/C,QAAQ,CAAC,YAAY,EAAE,CAAA;IACzB,CAAC,CAAC,CAAA;AACJ,CAAC;AAED,MAAM,UAAU,KAAK;IACnB,KAAK,MAAM,QAAQ,IAAI,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE;QAC/C,QAAQ,CAAC,KAAK,EAAE,CAAA;KACjB;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@github/browser-support",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Polyfills and Capable Browser detection",
|
|
5
5
|
"homepage": "https://github.github.io/browser-support",
|
|
6
6
|
"bugs": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"lint": "eslint . --ignore-path .gitignore",
|
|
28
28
|
"pretest": "npm run build",
|
|
29
29
|
"test": "npm run lint && karma start test/karma.config.cjs",
|
|
30
|
-
"
|
|
30
|
+
"prepack": "npm run build",
|
|
31
31
|
"postpublish": "npm publish --ignore-scripts --@github:registry='https://npm.pkg.github.com'"
|
|
32
32
|
},
|
|
33
33
|
"prettier": "@github/prettier-config",
|