From 2b23924b2f17e8f5760e9beb44f1ffb1298e5b29 Mon Sep 17 00:00:00 2001 From: Nikita Barsukov Date: Tue, 3 Dec 2024 11:31:31 +0300 Subject: [PATCH] chore(demo): update outdated info for documentation page `Browser Support` --- .browserslistrc | 12 ---------- package-lock.json | 14 +++++++++--- package.json | 4 ++++ .../browser-support.component.ts | 22 ++++++++++--------- 4 files changed, 27 insertions(+), 25 deletions(-) delete mode 100644 .browserslistrc diff --git a/.browserslistrc b/.browserslistrc deleted file mode 100644 index 2670476e5..000000000 --- a/.browserslistrc +++ /dev/null @@ -1,12 +0,0 @@ -# Desktop -Chrome >= 74 -Firefox >= 87 -Safari >= 12.1 -Opera >= 62 -Edge >= 74 - -# Mobile -ChromeAndroid >= 90 -FirefoxAndroid >= 99 -iOS >= 12.2 -OperaMobile >= 64 diff --git a/package-lock.json b/package-lock.json index 1f7f76031..36967f001 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26,6 +26,7 @@ "@nx/rollup": "20.1.4", "@nx/workspace": "20.1.4", "@taiga-ui/auto-changelog-config": "0.235.1", + "@taiga-ui/browserslist-config": "0.235.1", "@taiga-ui/commitlint-config": "0.235.1", "@taiga-ui/cspell-config": "0.235.1", "@taiga-ui/eslint-plugin-experience": "0.235.1", @@ -11729,6 +11730,13 @@ "auto-changelog": "2.5.0" } }, + "node_modules/@taiga-ui/browserslist-config": { + "version": "0.235.1", + "resolved": "https://registry.npmjs.org/@taiga-ui/browserslist-config/-/browserslist-config-0.235.1.tgz", + "integrity": "sha512-hU5TeUEp3jEBmuTvG/IlD6LTFoxcrKSAueuLN1RmQKu3IL7qrKxwVZFGevNgFS8dnhH3iV9hV96TrbM0jEUuww==", + "dev": true, + "license": "Apache-2.0" + }, "node_modules/@taiga-ui/cdk": { "version": "4.17.0", "resolved": "https://registry.npmjs.org/@taiga-ui/cdk/-/cdk-4.17.0.tgz", @@ -17078,9 +17086,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001685", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001685.tgz", - "integrity": "sha512-e/kJN1EMyHQzgcMEEgoo+YTCO1NGCmIYHk5Qk8jT6AazWemS5QFKJ5ShCJlH3GZrNIdZofcNCEwZqbMjjKzmnA==", + "version": "1.0.30001686", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001686.tgz", + "integrity": "sha512-Y7deg0Aergpa24M3qLC5xjNklnKnhsmSyR/V89dLZ1n0ucJIFNs7PgR2Yfa/Zf6W79SbBicgtGxZr2juHkEUIA==", "dev": true, "funding": [ { diff --git a/package.json b/package.json index 045982145..82f60b555 100644 --- a/package.json +++ b/package.json @@ -71,6 +71,9 @@ "stylelint --fix" ] }, + "browserslist": [ + "extends @taiga-ui/browserslist-config" + ], "prettier": "@taiga-ui/prettier-config", "stylelint": { "extends": [ @@ -97,6 +100,7 @@ "@nx/rollup": "20.1.4", "@nx/workspace": "20.1.4", "@taiga-ui/auto-changelog-config": "0.235.1", + "@taiga-ui/browserslist-config": "0.235.1", "@taiga-ui/commitlint-config": "0.235.1", "@taiga-ui/cspell-config": "0.235.1", "@taiga-ui/eslint-plugin-experience": "0.235.1", diff --git a/projects/demo/src/pages/documentation/browser-support/browser-support.component.ts b/projects/demo/src/pages/documentation/browser-support/browser-support.component.ts index bd878722c..94fef4681 100644 --- a/projects/demo/src/pages/documentation/browser-support/browser-support.component.ts +++ b/projects/demo/src/pages/documentation/browser-support/browser-support.component.ts @@ -12,19 +12,21 @@ import {TuiAddonDoc} from '@taiga-ui/addon-doc'; }) export default class BrowserSupportComponent { protected readonly desktopBrowsers = [ - {name: 'Google Chrome', version: '74+'}, - {name: 'Mozilla Firefox', version: '87+'}, - {name: 'Safari', version: '12.1+'}, - {name: 'Opera', version: '62+'}, - {name: 'Edge (Chromium)', version: '74+'}, + {name: 'Google Chrome', version: '88+'}, + {name: 'Mozilla Firefox', version: '120+'}, + {name: 'Safari', version: '13.1+'}, + {name: 'Opera', version: '74+'}, + {name: 'Edge', version: '88+'}, + {name: 'Yandex Browser', version: '21.2+'}, {name: 'Microsoft Internet Explorer', version: null}, - {name: 'Edge (EdgeHTML)', version: null}, ] as const; protected readonly mobileBrowsers = [ - {name: 'Google Chrome', version: '90+'}, - {name: 'Mozilla Firefox', version: '99+'}, - {name: 'Safari', version: '12.2+'}, - {name: 'Opera', version: '64+'}, + {name: 'Google Chrome', version: '88+'}, + {name: 'Mozilla Firefox', version: '120+'}, + {name: 'Safari', version: '13.4+'}, + {name: 'Opera', version: '63+'}, + {name: 'Samsung Mobile', version: '15+'}, + {name: 'Yandex Browser', version: '21.2+'}, ]; }