Skip to content
This repository was archived by the owner on Dec 6, 2022. It is now read-only.

Commit aa4c2ca

Browse files
authored
Bump @guardian/libs to latest major version (#1591)
* bump @guardian/libs pinned to latest major version in devDeps and to latest in peerDeps * add changeset * update yarn.lock * bump @guardian/libs to v9 * add specialReportAlt case to dev kitchen editorial button * add specialReportAlt case to dev kitchen quote icon * add ts-lib and web-vitals as dev deps to eslint plugins and dev kitchen * update changeset to reflect actual version
1 parent 660a9bf commit aa4c2ca

8 files changed

Lines changed: 44 additions & 18 deletions

File tree

.changeset/gold-keys-swim.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@guardian/eslint-plugin-source-foundations': major
3+
'@guardian/eslint-plugin-source-react-components': major
4+
'@guardian/source-react-components-development-kitchen': major
5+
---
6+
7+
Bump @guardian/libs to `^9.0.0`

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"@emotion/react": "11.0.0",
4444
"@guardian/eslint-config": "^2.0.1",
4545
"@guardian/eslint-config-typescript": "^1.0.9",
46-
"@guardian/libs": "3.0.0",
46+
"@guardian/libs": "9.0.0",
4747
"@guardian/prettier": "^2.1.4",
4848
"@guardian/tsconfig": "^0.1.4",
4949
"@nrwl/cli": "14.0.5",

packages/@guardian/eslint-plugin-source-foundations/package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,16 @@
2828
"devDependencies": {
2929
"@guardian/eslint-config": "^1.0.0",
3030
"@guardian/eslint-config-typescript": "^1.0.0",
31-
"@guardian/libs": "^3.0.0",
31+
"@guardian/libs": "9.0.0",
3232
"@types/estree": "^0.0.51",
3333
"rollup": "^2.75.4",
3434
"rollup-plugin-ts": "^2.0.7",
35-
"typescript": "~4.6.4"
35+
"tslib": "^2.4.0",
36+
"typescript": "~4.6.4",
37+
"web-vitals": "^2.0.0"
3638
},
3739
"peerDependencies": {
38-
"@guardian/libs": "^3.0.0",
40+
"@guardian/libs": "^9.0.0",
3941
"@guardian/source-foundations": "^7.0.0",
4042
"eslint": "^8.0.0"
4143
},

packages/@guardian/eslint-plugin-source-react-components/package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,16 @@
2727
"devDependencies": {
2828
"@guardian/eslint-config": "^1.0.0",
2929
"@guardian/eslint-config-typescript": "^1.0.0",
30-
"@guardian/libs": "^3.0.0",
30+
"@guardian/libs": "9.0.0",
3131
"@types/estree": "^0.0.51",
3232
"rollup": "^2.75.4",
3333
"rollup-plugin-ts": "^2.0.7",
34-
"typescript": "~4.6.4"
34+
"tslib": "^2.4.0",
35+
"typescript": "~4.6.4",
36+
"web-vitals": "^2.0.0"
3537
},
3638
"peerDependencies": {
37-
"@guardian/libs": "^3.0.0",
39+
"@guardian/libs": "^9.0.0",
3840
"@guardian/source-react-components": "^9.0.0",
3941
"eslint": "^8.0.0"
4042
},

packages/@guardian/source-react-components-development-kitchen/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@
1818
"mini-svg-data-uri": "^1.3.3",
1919
"npm-run-all": "^4.1.5",
2020
"rollup": "^2.75.4",
21-
"rollup-plugin-ts": "^2.0.7"
21+
"rollup-plugin-ts": "^2.0.7",
22+
"tslib": "^2.4.0",
23+
"web-vitals": "^2.0.0"
2224
},
2325
"peerDependencies": {
2426
"@emotion/react": "^11.0.0",
25-
"@guardian/libs": "^3.0.0",
27+
"@guardian/libs": "^9.0.0",
2628
"@guardian/source-foundations": "^7.0.0",
2729
"@guardian/source-react-components": "^9.0.0",
2830
"react": "^17.0.1"

packages/@guardian/source-react-components-development-kitchen/src/editorial-button/styles.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
neutral,
1515
news,
1616
opinion,
17+
palette,
1718
specialReport,
1819
sport,
1920
} from '@guardian/source-foundations';
@@ -160,6 +161,10 @@ export const decideFont = (
160161
return css`
161162
color: ${specialReport[400]};
162163
`;
164+
case ArticleSpecial.SpecialReportAlt:
165+
return css`
166+
color: ${palette.specialReportAlt[200]};
167+
`;
163168
}
164169
}
165170
};

packages/@guardian/source-react-components-development-kitchen/src/quote-icon/QuoteIcon.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
lifestyle,
99
news,
1010
opinion,
11+
palette,
1112
specialReport,
1213
sport,
1314
} from '@guardian/source-foundations';
@@ -57,6 +58,13 @@ const quoteColor = (format: ArticleFormat) => {
5758
}
5859
`;
5960
}
61+
case ArticleSpecial.SpecialReportAlt: {
62+
return css`
63+
svg {
64+
fill: ${palette.specialReportAlt[200]};
65+
}
66+
`;
67+
}
6068
case ArticleSpecial.Labs: {
6169
return css`
6270
svg {

yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2639,15 +2639,10 @@
26392639
eslint-plugin-import "2.26.0"
26402640
eslint-plugin-prettier "4.0.0"
26412641

2642-
"@guardian/libs@3.0.0":
2643-
version "3.0.0"
2644-
resolved "https://registry.npmjs.org/@guardian/libs/-/libs-3.0.0.tgz#d54813f12f77cede9ee681033f251383ea379acd"
2645-
integrity sha512-s2NEuE+rX2IyQohFWjKA0OV2GT7HPmh/2QO7cXaZirvMAhrgmEDXu7MSfHfqaLJybpDskUCyik6Yo73qgfnJdg==
2646-
2647-
"@guardian/libs@^3.0.0":
2648-
version "3.9.0"
2649-
resolved "https://registry.yarnpkg.com/@guardian/libs/-/libs-3.9.0.tgz#330ef270b87f0262e09a5f9964b916c21d1f987a"
2650-
integrity sha512-2i/AvgeIVCdowSJuc/RnXVBZUROjNT48EbdQY5OtUSzgcR0o1EFoibVX7OAd6Y4nIFHULbx5XDhnH1ymYSSYlA==
2642+
"@guardian/libs@9.0.0":
2643+
version "9.0.0"
2644+
resolved "https://registry.yarnpkg.com/@guardian/libs/-/libs-9.0.0.tgz#bb16cbfa4b367d2488e45dfab5d86add893eb028"
2645+
integrity sha512-VTNP04HisGts8ebnigRwsT255Wcf4ask9puc0AeP29Fj93Hs0rVkh8TAZ5VHEZ5ncNARiJTGAKc7ahatd7QYGQ==
26512646

26522647
"@guardian/prettier@^2.1.4":
26532648
version "2.1.4"
@@ -15789,6 +15784,11 @@ web-namespaces@^1.0.0:
1578915784
resolved "https://registry.npmjs.org/web-namespaces/-/web-namespaces-1.1.4.tgz#bc98a3de60dadd7faefc403d1076d529f5e030ec"
1579015785
integrity sha512-wYxSGajtmoP4WxfejAPIr4l0fVh+jeMXZb08wNc0tMg6xsfZXj3cECqIK0G7ZAqUq0PP8WlMDtaOGVBTAWztNw==
1579115786

15787+
web-vitals@^2.0.0:
15788+
version "2.1.4"
15789+
resolved "https://registry.yarnpkg.com/web-vitals/-/web-vitals-2.1.4.tgz#76563175a475a5e835264d373704f9dde718290c"
15790+
integrity sha512-sVWcwhU5mX6crfI5Vd2dC4qchyTqxV8URinzt25XqVh+bHEPGH4C3NPrNionCP7Obx59wrYEbNlw4Z8sjALzZg==
15791+
1579215792
webidl-conversions@^3.0.0:
1579315793
version "3.0.1"
1579415794
resolved "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871"

0 commit comments

Comments
 (0)