Skip to content

Commit

Permalink
Update browser support policy (#2154)
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-baer authored Jun 16, 2023
1 parent ddf6e90 commit eef360c
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 42 deletions.
10 changes: 5 additions & 5 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# The browsers that are explicitly supported
chrome >= 63
chrome >= 73
firefox >= 67
safari >= 11.1
ios_saf >= 11.3
safari >= 12.1
ios_saf >= 12.2
edge >= 79
opera >= 50
samsung >= 8.2
opera >= 60
samsung >= 11.1

# The features that the script checks for
supports css-grid and supports object-entries and supports es6-module-dynamic-import
16 changes: 16 additions & 0 deletions .changeset/tough-ants-tan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
'@sumup/cna-template': major
'@sumup/circuit-ui': major
---

Updated the list of supported browsers:

| Browser | Previous | New |
| ---------------- | -------- | ----- |
| Chrome | 63+ | 73+ |
| Firefox | 67+ | 67+ |
| Edge | 79+ | 79+ |
| Safari iOS | 11.0+ | 12.2+ |
| Safari macOS | 11.1+ | 12.1+ |
| Opera | 50+ | 60+ |
| Samsung Internet | 8.2+ | 11.1+ |
22 changes: 0 additions & 22 deletions docs/contributing/5-browser-support-for-contributors.mdx

This file was deleted.

12 changes: 6 additions & 6 deletions docs/introduction/4-browser-support.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ import { Meta, Intro } from '../../.storybook/components';

## Browser support policy

Circuit UI supports all browsers that support [dynamic module imports](https://caniuse.com/es6-module-dynamic-import):
Circuit UI supports all browsers that support [dynamic module imports](https://caniuse.com/es6-module-dynamic-import) and [`Object.fromEntries`](https://caniuse.com/mdn-javascript_builtins_object_fromentries):

| Browser | Version |
| ---------------- | ------- |
| Chrome | 63+ |
| Chrome | 73+ |
| Firefox | 67+ |
| Edge | 79+ |
| Safari iOS | 11.0+ |
| Safari macOS | 11.1+ |
| Opera | 50+ |
| Samsung Internet | 8.2+ |
| Safari iOS | 12.2+ |
| Safari macOS | 12.1+ |
| Opera | 60+ |
| Samsung Internet | 11.1+ |

Circuit UI does not need to be transpiled when bundling your application (unless you need to support legacy browsers: see below).

Expand Down
2 changes: 1 addition & 1 deletion packages/circuit-ui/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"noUnusedParameters": true,
"resolveJsonModule": true,
"strict": true,
"target": "es2017"
"target": "es2019"
},
"include": [
"components/**/*",
Expand Down
2 changes: 1 addition & 1 deletion packages/cna-template/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "es2017",
"target": "es2019",
"module": "commonjs",
"declaration": true,
"strict": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/design-tokens/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"outDir": "./dist",
"resolveJsonModule": true,
"strict": true,
"target": "es2017"
"target": "es2019"
},
"include": [
"tests/**/*",
Expand Down
10 changes: 5 additions & 5 deletions packages/icons/.browserslistrc
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# The browsers that are explicitly supported
chrome >= 63
chrome >= 73
firefox >= 67
safari >= 11.1
ios_saf >= 11.3
safari >= 12.1
ios_saf >= 12.2
edge >= 79
opera >= 50
samsung >= 8.2
opera >= 60
samsung >= 11.1

# The features that the script checks for
supports css-grid and supports object-entries and supports es6-module-dynamic-import
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"outDir": "./dist/es",
"resolveJsonModule": true,
"strict": true,
"target": "es2017"
"target": "es2019"
},
"include": ["**/*"],
"exclude": [
Expand Down

0 comments on commit eef360c

Please sign in to comment.