@github/browser-support 4.2.2 → 4.3.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 +23 -0
- package/lib/index.d.ts +0 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -2
- package/lib/index.js.map +1 -1
- package/package.json +1 -2
package/README.md
CHANGED
|
@@ -36,6 +36,29 @@ npm install
|
|
|
36
36
|
npm test
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
+
## Upgrading browser-support in Dotcom
|
|
40
|
+
|
|
41
|
+
During upgrades, it is crucial to ensure that browser error reporting to Sentry is not disrupted. Use the following steps to validate this functionality:
|
|
42
|
+
|
|
43
|
+
### Review lab testing
|
|
44
|
+
- Create a PR to upgrade the `browser-support` version in Dotcom.
|
|
45
|
+
- Trigger a browser error from your `review-lab` instance and confirm it is reported in Sentry:
|
|
46
|
+
- Append `#b00m` to your `review-lab` URL (e.g. `https://branchname.review-lab.github.com#b00m`) and refresh the page.
|
|
47
|
+
- Confirm the error is reported in [review-lab Sentry](https://github.sentry.io/issues/?environment=review-lab&groupStatsPeriod=auto&project=1890375&query=b00m&referrer=issue-list&statsPeriod=5m).
|
|
48
|
+
- Perform these steps in Chrome, Firefox, Edge, and Opera. Note: Errors are currently not reported in Safari due to an [open issue](https://github.com/github/web-systems/issues/3162).
|
|
49
|
+
|
|
50
|
+
### Production deployment
|
|
51
|
+
|
|
52
|
+
- Check the [browser-reporting](https://app.datadoghq.com/monitors/168685099) monitor.
|
|
53
|
+
- If the rate of reported browser errors drops, the monitor will trigger an alert in the [#web-systems-ops](https://github-grid.enterprise.slack.com/archives/C046W1V95FV) channel.
|
|
54
|
+
- After deploying to canary:
|
|
55
|
+
- Trigger a browser error by appending `#b00m` to your URL.
|
|
56
|
+
- Confirm the error is reported in [canary Sentry](https://github.sentry.io/issues/?environment=canary&groupStatsPeriod=auto&project=1890375&query=b00m&referrer=issue-list&statsPeriod=5m).
|
|
57
|
+
- After deploying to production:
|
|
58
|
+
- Trigger a browser error by appending `#b00m` to your URL.
|
|
59
|
+
- Confirm the error is reported in [production Sentry](https://github.sentry.io/issues/?environment=production&groupStatsPeriod=auto&project=1890375&query=b00m&referrer=issue-list&statsPeriod=5m).
|
|
60
|
+
- Check the [browser-reporting monitor](https://app.datadoghq.com/monitors/168685099) to ensure there are no anomalies in the error reporting rate.
|
|
61
|
+
|
|
39
62
|
## Contributing
|
|
40
63
|
|
|
41
64
|
### Adding polyfills
|
package/lib/index.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ import * as navigatorClipboard from './navigator-clipboard.js';
|
|
|
4
4
|
import * as withResolvers from './promise-withResolvers.js';
|
|
5
5
|
import * as requestIdleCallback from './requestidlecallback.js';
|
|
6
6
|
import * as popover from '@oddbird/popover-polyfill/fn';
|
|
7
|
-
import * as dialogToggleEvents from 'dialog-toggle-events-polyfill/fn';
|
|
8
7
|
import * as commandAndCommandFor from 'invokers-polyfill/fn';
|
|
9
8
|
export declare const baseSupport: boolean;
|
|
10
9
|
export declare const polyfills: {
|
|
@@ -14,7 +13,6 @@ export declare const polyfills: {
|
|
|
14
13
|
requestIdleCallback: typeof requestIdleCallback;
|
|
15
14
|
withResolvers: typeof withResolvers;
|
|
16
15
|
popover: typeof popover;
|
|
17
|
-
dialogToggleEvents: typeof dialogToggleEvents;
|
|
18
16
|
commandAndCommandFor: typeof commandAndCommandFor;
|
|
19
17
|
};
|
|
20
18
|
export declare function isSupported(): boolean;
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,oBAAoB,CAAA;AACnD,OAAO,KAAK,sBAAsB,MAAM,8BAA8B,CAAA;AACtE,OAAO,KAAK,kBAAkB,MAAM,0BAA0B,CAAA;AAC9D,OAAO,KAAK,aAAa,MAAM,4BAA4B,CAAA;AAC3D,OAAO,KAAK,mBAAmB,MAAM,0BAA0B,CAAA;AAC/D,OAAO,KAAK,OAAO,MAAM,8BAA8B,CAAA;AACvD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,oBAAoB,CAAA;AACnD,OAAO,KAAK,sBAAsB,MAAM,8BAA8B,CAAA;AACtE,OAAO,KAAK,kBAAkB,MAAM,0BAA0B,CAAA;AAC9D,OAAO,KAAK,aAAa,MAAM,4BAA4B,CAAA;AAC3D,OAAO,KAAK,mBAAmB,MAAM,0BAA0B,CAAA;AAC/D,OAAO,KAAK,OAAO,MAAM,8BAA8B,CAAA;AACvD,OAAO,KAAK,oBAAoB,MAAM,sBAAsB,CAAA;AAU5D,eAAO,MAAM,WAAW,SA6BlB,CAAA;AAEN,eAAO,MAAM,SAAS;;;;;;;;CAQrB,CAAA;AAED,wBAAgB,WAAW,YAE1B;AAED,wBAAgB,YAAY,YAE3B;AAED,wBAAgB,KAAK,SAIpB"}
|
package/lib/index.js
CHANGED
|
@@ -4,7 +4,6 @@ import * as navigatorClipboard from './navigator-clipboard.js';
|
|
|
4
4
|
import * as withResolvers from './promise-withResolvers.js';
|
|
5
5
|
import * as requestIdleCallback from './requestidlecallback.js';
|
|
6
6
|
import * as popover from '@oddbird/popover-polyfill/fn';
|
|
7
|
-
import * as dialogToggleEvents from 'dialog-toggle-events-polyfill/fn';
|
|
8
7
|
import * as commandAndCommandFor from 'invokers-polyfill/fn';
|
|
9
8
|
let supportsModalPseudo = false;
|
|
10
9
|
try {
|
|
@@ -50,7 +49,6 @@ export const polyfills = {
|
|
|
50
49
|
requestIdleCallback,
|
|
51
50
|
withResolvers,
|
|
52
51
|
popover,
|
|
53
|
-
dialogToggleEvents,
|
|
54
52
|
commandAndCommandFor,
|
|
55
53
|
};
|
|
56
54
|
export function isSupported() {
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,oBAAoB,CAAA;AACnD,OAAO,KAAK,sBAAsB,MAAM,8BAA8B,CAAA;AACtE,OAAO,KAAK,kBAAkB,MAAM,0BAA0B,CAAA;AAC9D,OAAO,KAAK,aAAa,MAAM,4BAA4B,CAAA;AAC3D,OAAO,KAAK,mBAAmB,MAAM,0BAA0B,CAAA;AAC/D,OAAO,KAAK,OAAO,MAAM,8BAA8B,CAAA;AACvD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,oBAAoB,CAAA;AACnD,OAAO,KAAK,sBAAsB,MAAM,8BAA8B,CAAA;AACtE,OAAO,KAAK,kBAAkB,MAAM,0BAA0B,CAAA;AAC9D,OAAO,KAAK,aAAa,MAAM,4BAA4B,CAAA;AAC3D,OAAO,KAAK,mBAAmB,MAAM,0BAA0B,CAAA;AAC/D,OAAO,KAAK,OAAO,MAAM,8BAA8B,CAAA;AACvD,OAAO,KAAK,oBAAoB,MAAM,sBAAsB,CAAA;AAE5D,IAAI,mBAAmB,GAAG,KAAK,CAAA;AAC/B,IAAI;IACF,oCAAoC;IACpC,mBAAmB,GAAG,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,KAAK,CAAA;CAChE;AAAC,MAAM;IACN,mBAAmB,GAAG,KAAK,CAAA;CAC5B;AAED,MAAM,CAAC,MAAM,WAAW,GACtB,OAAO,UAAU,KAAK,QAAQ;IAC9B,SAAS;IACT,aAAa,IAAI,MAAM;IACvB,SAAS,IAAI,KAAK,CAAC,SAAS;IAC5B,SAAS,IAAI,MAAM,CAAC,SAAS;IAC7B,SAAS;IACT,YAAY,IAAI,OAAO;IACvB,UAAU,IAAI,MAAM,CAAC,SAAS;IAC9B,SAA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@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@github/browser-support",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"description": "Polyfills and Capable Browser detection",
|
|
5
5
|
"homepage": "https://github.github.io/browser-support",
|
|
6
6
|
"bugs": {
|
|
@@ -47,7 +47,6 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@oddbird/popover-polyfill": "^0.5.2",
|
|
50
|
-
"dialog-toggle-events-polyfill": "^1.1.2",
|
|
51
50
|
"invokers-polyfill": "^0.5.2"
|
|
52
51
|
}
|
|
53
52
|
}
|