Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update DCR Dependencies (workspaces prep) #3443

Merged
merged 16 commits into from Sep 22, 2021

Conversation

OllysCoding
Copy link
Contributor

@OllysCoding OllysCoding commented Sep 21, 2021

What does this change?

Update all DCR dependencies & dev dependencies in line with the allowances of the package.json.

Fixes related to package updates:

  • Remove unused props (ESLint Error)
  • Use @ts-expect-error for new typescript errors which couldn't be resolved

Why?

When we pull DCR & AR into yarn workspaces in the root of the monorepo, our lock files will be lost. By upgrading our packages to the most recent minor/patch versions available, when a new lock file is created, we'll have already fixed any associated bugs.

@github-actions
Copy link

github-actions bot commented Sep 21, 2021

Size Change: +1.59 kB (0%)

Total Size: 943 kB

Filename Size Change
dist/922.js 3.59 kB -13 B (0%)
dist/922.legacy.js 3.7 kB -13 B (0%)
dist/974.js 21.1 kB -20 B (0%)
dist/974.legacy.js 21.1 kB -20 B (0%)
dist/atomIframe.js 1.72 kB -7 B (0%)
dist/atomIframe.legacy.js 1.98 kB -5 B (0%)
dist/braze-web-sdk-core.js 36.1 kB -9 B (0%)
dist/braze-web-sdk-core.legacy.js 36.1 kB -9 B (0%)
dist/coreVitals.legacy.js 6.29 kB +27 B (0%)
dist/dynamicImport.js 2.83 kB +12 B (0%)
dist/dynamicImport.legacy.js 3.12 kB +15 B (0%)
dist/elements-CalloutBlockComponent.js 5.85 kB +10 B (0%)
dist/elements-CalloutBlockComponent.legacy.js 6.2 kB +16 B (0%)
dist/elements-DocumentBlockComponent.js 574 B -3 B (-1%)
dist/elements-DocumentBlockComponent.legacy.js 604 B -3 B (0%)
dist/elements-InteractiveBlockComponent.js 2.58 kB -17 B (-1%)
dist/elements-InteractiveBlockComponent.legacy.js 2.68 kB -20 B (-1%)
dist/elements-InteractiveContentsBlockElement.js 1.9 kB +13 B (+1%)
dist/elements-InteractiveContentsBlockElement.legacy.js 1.98 kB +12 B (+1%)
dist/elements-MapEmbedBlockComponent.js 1.54 kB -16 B (-1%)
dist/elements-MapEmbedBlockComponent.legacy.js 1.6 kB -17 B (-1%)
dist/elements-RichLinkComponent.legacy.js 3.34 kB -1 B (0%)
dist/elements-SpotifyBlockComponent.js 1.47 kB -17 B (-1%)
dist/elements-SpotifyBlockComponent.legacy.js 1.53 kB -17 B (-1%)
dist/elements-VideoFacebookBlockComponent.js 1.55 kB -20 B (-1%)
dist/elements-VideoFacebookBlockComponent.legacy.js 1.6 kB -17 B (-1%)
dist/elements-VineBlockComponent.legacy.js 601 B -3 B (0%)
dist/elements-YoutubeBlockComponent.js 2.1 kB -10 B (0%)
dist/elements-YoutubeBlockComponent.legacy.js 2.18 kB -13 B (-1%)
dist/embedIframe.js 1.72 kB -2 B (0%)
dist/embedIframe.legacy.js 1.98 kB -7 B (0%)
dist/frontend.server.js 296 kB +2.31 kB (+1%)
dist/GetMatchStats.js 3.29 kB -1 B (0%)
dist/GetMatchStats.legacy.js 3.36 kB +1 B (0%)
dist/guardian-braze-components-banner.js 9.85 kB +2 B (0%)
dist/guardian-braze-components-banner.legacy.js 9.86 kB +2 B (0%)
dist/guardian-braze-components-end-of-article.js 6.54 kB +15 B (0%)
dist/guardian-braze-components-end-of-article.legacy.js 6.54 kB +15 B (0%)
dist/MostViewedFooterData.js 6.35 kB -7 B (0%)
dist/MostViewedFooterData.legacy.js 6.45 kB -6 B (0%)
dist/MostViewedRightWrapper.js 5.65 kB -11 B (0%)
dist/MostViewedRightWrapper.legacy.js 5.9 kB -15 B (0%)
dist/newsletterEmbedIframe.js 1.68 kB -6 B (0%)
dist/newsletterEmbedIframe.legacy.js 1.93 kB -6 B (0%)
dist/OnwardsLower.js 11.4 kB -20 B (0%)
dist/OnwardsLower.legacy.js 11.7 kB -22 B (0%)
dist/OnwardsUpper.js 12.5 kB -8 B (0%)
dist/OnwardsUpper.legacy.js 12.7 kB -7 B (0%)
dist/ophan.js 7.06 kB +26 B (0%)
dist/ophan.legacy.js 7.26 kB +22 B (0%)
dist/react.js 147 kB -299 B (0%)
dist/react.legacy.js 152 kB -263 B (0%)
dist/sentryLoader.js 3.1 kB +14 B (0%)
dist/sentryLoader.legacy.js 5.8 kB +31 B (+1%)
dist/shimport.js 2.75 kB -2 B (0%)
dist/shimport.legacy.js 2.76 kB -1 B (0%)
dist/SignInGateMain.js 1.86 kB -4 B (0%)
dist/SignInGateMain.legacy.js 1.9 kB -4 B (0%)
ℹ️ View Unchanged
Filename Size
dist/coreVitals.js 3.58 kB
dist/EditionDropdown.js 695 B
dist/EditionDropdown.legacy.js 704 B
dist/elements-InstagramBlockComponent.js 435 B
dist/elements-InstagramBlockComponent.legacy.js 453 B
dist/elements-RichLinkComponent.js 3.3 kB
dist/elements-VineBlockComponent.js 586 B
dist/ga.js 3.71 kB
dist/ga.legacy.js 3.95 kB
dist/sentry.js 675 B
dist/sentry.legacy.js 686 B

compressed-size-action

@OllysCoding OllysCoding changed the title [WIP]Prepare workspaces update dcr deps [WIP] Update DCR Dependencies (workspaces prep) Sep 21, 2021
@LinusU
Copy link

LinusU commented Sep 21, 2021

@OllysCoding we have published a new version of node-fetch (2.6.4) with the issue fixed, and we also have added a test case so that it won't break again! Sorry for the inconvenience!

@OllysCoding
Copy link
Contributor Author

@LinusU Cheers mate!

@OllysCoding OllysCoding marked this pull request as ready for review September 21, 2021 16:42
@OllysCoding OllysCoding changed the title [WIP] Update DCR Dependencies (workspaces prep) Update DCR Dependencies (workspaces prep) Sep 21, 2021
Copy link
Contributor

@lucymonie lucymonie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just have some questions about removal of props - was this to do with the unused props error that you mentioned in your notes? They seem to be in use.

@@ -86,7 +86,6 @@ const Headline: React.FC<{
headlineText: string;
standfirst: string;
pillar: Theme;
starRating?: number;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the reason that star rating has been removed as part of this work?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This prop was not used anywhere within the topMetaLiveblog component, after updating, ESLint identified it and threw an error as unused prop.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Despite it being passed in by a parent component, it isn't used within the component, making it redundant)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, got it.

@@ -97,7 +97,6 @@ export const ShowcaseInterview = () => (
theme: Pillar.Culture,
}}
tags={[]}
isShowcase={true}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wondering why this is getting removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While the data is passed into the component, the prop isn't actually consumed anywhere within it, meaning it's essentially redundant, causing ESLint to throw an error

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻

Copy link
Contributor

@marjisound marjisound left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed the following packages may need another update as they're not on their maximum semver version. Could you please have a look at them?

eslint-plugin-react
aws-sdk
@guardian/src-text-input
@guardian/src-text-area
@guardian/src-radio
@guardian/src-link
@guardian/src-icons
@guardian/src-foundations
@guardian/src-ed-lines
@guardian/src-button

@OllysCoding
Copy link
Contributor Author

Thanks @marjisound, for eslint-plugin-react and aws-sdk I've checked and these two are okay. I have now updated all source libs!

@OllysCoding OllysCoding merged commit 141ab07 into main Sep 22, 2021
@OllysCoding OllysCoding deleted the olly/prepare-workspaces-update-dcr-deps branch September 22, 2021 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants