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

Enforce tilde ranges for packages with type definitions #6971

Merged
merged 3 commits into from
Jan 20, 2023

Conversation

mxdvl
Copy link
Contributor

@mxdvl mxdvl commented Jan 16, 2023

What does this change?

Enforce the ~ tilde range syntax for @types/* packages and their matching source, as this is the only one that guarantees a matching version, as per the DefinitelyTyped contract.

Leave @type packages without a source as-is.

Example of successful run: https://github.com/guardian/dotcom-rendering/actions/runs/3938014495/jobs/6736198283

Why?

Builds on top of #6966 for a stricter check and possibly enforce a CI check to fail

Mismatches in @types packages significantly reduce any type safety gained by using TypeScript.

“visibility is great but it doesn't fix anything.” - @joecowton1 (source)

Closes #6965

Example

Audit of @types/ packages

No main package found

  • @types/gapi.analytics – ^0.0.4
  • @types/google.analytics – ^0.0.42
  • @types/node – ^14.18.36
  • @types/raven-js – ^3.10.0
  • @types/react-test-renderer – 18.0.0
  • @types/twitter-for-web – ^0.0.2
  • @types/webpack-env – ^1.18.0
  • @types/youtube – ^0.0.46

Mismatched versions

  • he – ~1.2 (types ~1.1)
  • webpack-node-externals – ~3.0 (types ~2.5)

Matched dependencies

  • amphtml-validator – ~1.0
  • compression – ~1.7
  • crypto-js – ~4.1
  • dompurify – ~2.3
  • express – ~4.17
  • html-minifier – ~4.0
  • jest – ~24.9
  • jsdom – ~20.0
  • lodash.debounce – ~4.0
  • lodash.get – ~4.4
  • node-fetch – ~2.6
  • react – ~17.0
  • react-dom – ~17.0
  • react-google-recaptcha – ~2.1 (types ~2.1)
  • response-time – ~2.3
  • rimraf – ~3.0
  • sanitize-html – ~2.6
  • uuid – ~8.3
  • webpack-bundle-analyzer – ~4.4

@mxdvl mxdvl requested a review from a team as a code owner January 16, 2023 18:26
@mxdvl mxdvl requested a review from a team January 16, 2023 18:26
@mxdvl mxdvl force-pushed the mxdvl/types-mismatch-fix branch from a887fb1 to cb5be70 Compare January 16, 2023 18:27
@mxdvl mxdvl changed the title chore(deps): remove stub AJV type Enforce tilde ranges for packages with type definitions Jan 16, 2023
@github-actions
Copy link

github-actions bot commented Jan 16, 2023

Size Change: 0 B

Total Size: 2.98 MB

ℹ️ View Unchanged
Filename Size
dotcom-rendering/dist/1042.variant.********************.js 3.27 kB
dotcom-rendering/dist/1121.variant.********************.js 4.72 kB
dotcom-rendering/dist/1129.variant.********************.js 3.41 kB
dotcom-rendering/dist/1285.legacy.********************.js 3.98 kB
dotcom-rendering/dist/1301.modern.********************.js 5.38 kB
dotcom-rendering/dist/1385.legacy.********************.js 4.79 kB
dotcom-rendering/dist/1494.legacy.********************.js 4.2 kB
dotcom-rendering/dist/1530.modern.********************.js 4.42 kB
dotcom-rendering/dist/1562.legacy.********************.js 4.18 kB
dotcom-rendering/dist/1602.variant.********************.js 3.43 kB
dotcom-rendering/dist/1619.variant.********************.js 3.11 kB
dotcom-rendering/dist/1630.legacy.********************.js 3.28 kB
dotcom-rendering/dist/1698.variant.********************.js 2.39 kB
dotcom-rendering/dist/1784.legacy.********************.js 3.81 kB
dotcom-rendering/dist/1880.variant.********************.js 3.79 kB
dotcom-rendering/dist/1917.variant.********************.js 2.53 kB
dotcom-rendering/dist/208.js 2.01 kB
dotcom-rendering/dist/2136.variant.********************.js 4.48 kB
dotcom-rendering/dist/2181.legacy.********************.js 4.84 kB
dotcom-rendering/dist/2183.modern.********************.js 22 kB
dotcom-rendering/dist/2304.variant.********************.js 6.24 kB
dotcom-rendering/dist/2353.modern.********************.js 4.77 kB
dotcom-rendering/dist/2376.legacy.********************.js 4.37 kB
dotcom-rendering/dist/2376.modern.********************.js 4.35 kB
dotcom-rendering/dist/2484.legacy.********************.js 23 kB
dotcom-rendering/dist/2513.legacy.********************.js 2.93 kB
dotcom-rendering/dist/2513.modern.********************.js 2.93 kB
dotcom-rendering/dist/2612.modern.********************.js 4.03 kB
dotcom-rendering/dist/2629.variant.********************.js 23 kB
dotcom-rendering/dist/2679.legacy.********************.js 7.52 kB
dotcom-rendering/dist/2679.modern.********************.js 7.52 kB
dotcom-rendering/dist/2714.variant.********************.js 3.43 kB
dotcom-rendering/dist/2727.legacy.********************.js 3.98 kB
dotcom-rendering/dist/2775.modern.********************.js 5.4 kB
dotcom-rendering/dist/290.legacy.********************.js 10.3 kB
dotcom-rendering/dist/290.modern.********************.js 9.97 kB
dotcom-rendering/dist/2907.modern.********************.js 4.3 kB
dotcom-rendering/dist/3007.modern.********************.js 6.71 kB
dotcom-rendering/dist/3026.legacy.********************.js 3.07 kB
dotcom-rendering/dist/3033.variant.********************.js 3.16 kB
dotcom-rendering/dist/3138.legacy.********************.js 9.03 kB
dotcom-rendering/dist/3138.modern.********************.js 8.46 kB
dotcom-rendering/dist/3360.legacy.********************.js 3.5 kB
dotcom-rendering/dist/3360.modern.********************.js 3.49 kB
dotcom-rendering/dist/3418.modern.********************.js 4.28 kB
dotcom-rendering/dist/3467.legacy.********************.js 7.89 kB
dotcom-rendering/dist/3490.legacy.********************.js 23.8 kB
dotcom-rendering/dist/3490.modern.********************.js 23.8 kB
dotcom-rendering/dist/3490.variant.********************.js 23.7 kB
dotcom-rendering/dist/3584.legacy.********************.js 1.81 kB
dotcom-rendering/dist/3584.modern.********************.js 1.81 kB
dotcom-rendering/dist/3584.variant.********************.js 1.81 kB
dotcom-rendering/dist/3609.legacy.********************.js 3.6 kB
dotcom-rendering/dist/3609.modern.********************.js 3.65 kB
dotcom-rendering/dist/385.legacy.********************.js 5.48 kB
dotcom-rendering/dist/385.modern.********************.js 5.48 kB
dotcom-rendering/dist/3885.legacy.********************.js 5.5 kB
dotcom-rendering/dist/3965.modern.********************.js 4.6 kB
dotcom-rendering/dist/3998.legacy.********************.js 3.58 kB
dotcom-rendering/dist/4031.variant.********************.js 2.55 kB
dotcom-rendering/dist/4145.modern.********************.js 5.08 kB
dotcom-rendering/dist/4180.variant.********************.js 5.05 kB
dotcom-rendering/dist/4292.variant.********************.js 4.86 kB
dotcom-rendering/dist/4402.modern.********************.js 6.7 kB
dotcom-rendering/dist/4444.legacy.********************.js 6.97 kB
dotcom-rendering/dist/463.js 10.5 kB
dotcom-rendering/dist/4653.legacy.********************.js 5.93 kB
dotcom-rendering/dist/4730.variant.********************.js 3.95 kB
dotcom-rendering/dist/4737.modern.********************.js 26.6 kB
dotcom-rendering/dist/4783.variant.********************.js 3.43 kB
dotcom-rendering/dist/4845.modern.********************.js 5.32 kB
dotcom-rendering/dist/4855.legacy.********************.js 4.82 kB
dotcom-rendering/dist/490.js 2.57 kB
dotcom-rendering/dist/4984.modern.********************.js 3.08 kB
dotcom-rendering/dist/4999.legacy.********************.js 3.98 kB
dotcom-rendering/dist/5.js 1.13 kB
dotcom-rendering/dist/5176.modern.********************.js 7.64 kB
dotcom-rendering/dist/5237.variant.********************.js 2.44 kB
dotcom-rendering/dist/5462.variant.********************.js 2.4 kB
dotcom-rendering/dist/551.variant.********************.js 2.51 kB
dotcom-rendering/dist/5578.legacy.********************.js 5.12 kB
dotcom-rendering/dist/5578.modern.********************.js 5.06 kB
dotcom-rendering/dist/560.modern.********************.js 8.07 kB
dotcom-rendering/dist/5928.legacy.********************.js 4.37 kB
dotcom-rendering/dist/5928.modern.********************.js 4.35 kB
dotcom-rendering/dist/597.variant.********************.js 2.4 kB
dotcom-rendering/dist/598.legacy.********************.js 2.93 kB
dotcom-rendering/dist/6131.legacy.********************.js 4.3 kB
dotcom-rendering/dist/6131.modern.********************.js 4.3 kB
dotcom-rendering/dist/6131.variant.********************.js 4.3 kB
dotcom-rendering/dist/6201.variant.********************.js 3.05 kB
dotcom-rendering/dist/6274.legacy.********************.js 2.68 kB
dotcom-rendering/dist/6274.modern.********************.js 2.68 kB
dotcom-rendering/dist/6345.variant.********************.js 4.68 kB
dotcom-rendering/dist/6428.modern.********************.js 4.56 kB
dotcom-rendering/dist/6516.legacy.********************.js 3.41 kB
dotcom-rendering/dist/6516.modern.********************.js 3.45 kB
dotcom-rendering/dist/6695.variant.********************.js 2.55 kB
dotcom-rendering/dist/6771.legacy.********************.js 4.23 kB
dotcom-rendering/dist/6840.legacy.********************.js 6.46 kB
dotcom-rendering/dist/6840.modern.********************.js 6.47 kB
dotcom-rendering/dist/6881.legacy.********************.js 6.2 kB
dotcom-rendering/dist/6881.modern.********************.js 5.69 kB
dotcom-rendering/dist/6928.legacy.********************.js 8.92 kB
dotcom-rendering/dist/7069.variant.********************.js 5.31 kB
dotcom-rendering/dist/7175.legacy.********************.js 3.98 kB
dotcom-rendering/dist/7320.modern.********************.js 3.4 kB
dotcom-rendering/dist/7340.legacy.********************.js 11.6 kB
dotcom-rendering/dist/7349.variant.********************.js 2.54 kB
dotcom-rendering/dist/740.legacy.********************.js 3.2 kB
dotcom-rendering/dist/740.modern.********************.js 3.25 kB
dotcom-rendering/dist/7521.variant.********************.js 11.2 kB
dotcom-rendering/dist/7576.legacy.********************.js 10.1 kB
dotcom-rendering/dist/7576.modern.********************.js 8.57 kB
dotcom-rendering/dist/7635.legacy.********************.js 2.78 kB
dotcom-rendering/dist/7635.modern.********************.js 3.39 kB
dotcom-rendering/dist/8096.variant.********************.js 2.54 kB
dotcom-rendering/dist/8159.variant.********************.js 21.3 kB
dotcom-rendering/dist/8258.legacy.********************.js 7.49 kB
dotcom-rendering/dist/8436.legacy.********************.js 6.75 kB
dotcom-rendering/dist/8500.legacy.********************.js 5.44 kB
dotcom-rendering/dist/855.variant.********************.js 6.87 kB
dotcom-rendering/dist/8558.legacy.********************.js 5.29 kB
dotcom-rendering/dist/8558.modern.********************.js 5.59 kB
dotcom-rendering/dist/8616.variant.********************.js 2.86 kB
dotcom-rendering/dist/8624.modern.********************.js 3.21 kB
dotcom-rendering/dist/8639.legacy.********************.js 3 kB
dotcom-rendering/dist/8757.legacy.********************.js 3.33 kB
dotcom-rendering/dist/8764.modern.********************.js 5.35 kB
dotcom-rendering/dist/8765.modern.********************.js 3.66 kB
dotcom-rendering/dist/8887.legacy.********************.js 3.53 kB
dotcom-rendering/dist/8887.modern.********************.js 3.52 kB
dotcom-rendering/dist/9052.legacy.********************.js 26.3 kB
dotcom-rendering/dist/9163.legacy.********************.js 4.52 kB
dotcom-rendering/dist/9198.variant.********************.js 3.59 kB
dotcom-rendering/dist/9244.legacy.********************.js 4.29 kB
dotcom-rendering/dist/9353.variant.********************.js 2.6 kB
dotcom-rendering/dist/9358.legacy.********************.js 3.66 kB
dotcom-rendering/dist/938.js 9 kB
dotcom-rendering/dist/9591.modern.********************.js 11.5 kB
dotcom-rendering/dist/9710.variant.********************.js 5.82 kB
dotcom-rendering/dist/9789.legacy.********************.js 8.5 kB
dotcom-rendering/dist/9789.modern.********************.js 8.26 kB
dotcom-rendering/dist/9861.variant.********************.js 3.5 kB
dotcom-rendering/dist/9862.modern.********************.js 4.21 kB
dotcom-rendering/dist/9931.modern.********************.js 6.48 kB
dotcom-rendering/dist/AlreadyVisited-importable.legacy.********************.js 1.68 kB
dotcom-rendering/dist/AlreadyVisited-importable.modern.********************.js 1.69 kB
dotcom-rendering/dist/AlreadyVisited-importable.variant.********************.js 388 B
dotcom-rendering/dist/atomIframe.legacy.********************.js 14.4 kB
dotcom-rendering/dist/atomIframe.modern.********************.js 14.4 kB
dotcom-rendering/dist/atomIframe.variant.********************.js 776 B
dotcom-rendering/dist/AudioAtomWrapper-importable.legacy.********************.js 519 B
dotcom-rendering/dist/AudioAtomWrapper-importable.modern.********************.js 482 B
dotcom-rendering/dist/AudioAtomWrapper-importable.variant.********************.js 466 B
dotcom-rendering/dist/bootCmp.legacy.********************.js 38.3 kB
dotcom-rendering/dist/bootCmp.modern.********************.js 34.3 kB
dotcom-rendering/dist/bootCmp.variant.********************.js 8.81 kB
dotcom-rendering/dist/Branding-importable.legacy.********************.js 7.68 kB
dotcom-rendering/dist/Branding-importable.modern.********************.js 7.66 kB
dotcom-rendering/dist/Branding-importable.variant.********************.js 5.13 kB
dotcom-rendering/dist/braze-web-sdk-core.legacy.********************.js 36.9 kB
dotcom-rendering/dist/braze-web-sdk-core.modern.********************.js 36.9 kB
dotcom-rendering/dist/braze-web-sdk-core.variant.********************.js 36.9 kB
dotcom-rendering/dist/BrazeMessaging-importable.legacy.********************.js 5.15 kB
dotcom-rendering/dist/BrazeMessaging-importable.modern.********************.js 4.11 kB
dotcom-rendering/dist/BrazeMessaging-importable.variant.********************.js 2.11 kB
dotcom-rendering/dist/CalloutBlockComponent-importable.legacy.********************.js 5.69 kB
dotcom-rendering/dist/CalloutBlockComponent-importable.modern.********************.js 5.41 kB
dotcom-rendering/dist/CalloutBlockComponent-importable.variant.********************.js 5.73 kB
dotcom-rendering/dist/CalloutEmbedBlockComponent-importable.legacy.********************.js 6.93 kB
dotcom-rendering/dist/CalloutEmbedBlockComponent-importable.modern.********************.js 6.59 kB
dotcom-rendering/dist/CalloutEmbedBlockComponent-importable.variant.********************.js 7 kB
dotcom-rendering/dist/Carousel-importable.legacy.********************.js 4.71 kB
dotcom-rendering/dist/Carousel-importable.modern.********************.js 4.53 kB
dotcom-rendering/dist/Carousel-importable.variant.********************.js 5.26 kB
dotcom-rendering/dist/ChartAtomWrapper-importable.legacy.********************.js 549 B
dotcom-rendering/dist/ChartAtomWrapper-importable.modern.********************.js 550 B
dotcom-rendering/dist/ChartAtomWrapper-importable.variant.********************.js 477 B
dotcom-rendering/dist/CommentCount-importable.legacy.********************.js 3.91 kB
dotcom-rendering/dist/CommentCount-importable.modern.********************.js 3.9 kB
dotcom-rendering/dist/CommentCount-importable.variant.********************.js 1.65 kB
dotcom-rendering/dist/CommercialMetrics-importable.legacy.********************.js 5.37 kB
dotcom-rendering/dist/CommercialMetrics-importable.modern.********************.js 847 B
dotcom-rendering/dist/CommercialMetrics-importable.variant.********************.js 3.94 kB
dotcom-rendering/dist/CoreVitals-importable.legacy.********************.js 3.78 kB
dotcom-rendering/dist/CoreVitals-importable.modern.********************.js 3.57 kB
dotcom-rendering/dist/CoreVitals-importable.variant.********************.js 2.41 kB
dotcom-rendering/dist/debug.js 1.75 kB
dotcom-rendering/dist/DiscussionContainer-importable.legacy.********************.js 4.1 kB
dotcom-rendering/dist/DiscussionContainer-importable.modern.********************.js 3.85 kB
dotcom-rendering/dist/DiscussionContainer-importable.variant.********************.js 3.99 kB
dotcom-rendering/dist/DiscussionMeta-importable.legacy.********************.js 1.97 kB
dotcom-rendering/dist/DiscussionMeta-importable.modern.********************.js 2.05 kB
dotcom-rendering/dist/DiscussionMeta-importable.variant.********************.js 2.09 kB
dotcom-rendering/dist/DocumentBlockComponent-importable.legacy.********************.js 1.63 kB
dotcom-rendering/dist/DocumentBlockComponent-importable.modern.********************.js 1.55 kB
dotcom-rendering/dist/DocumentBlockComponent-importable.variant.********************.js 3.8 kB
dotcom-rendering/dist/dynamicImport.legacy.********************.js 23.2 kB
dotcom-rendering/dist/dynamicImport.modern.********************.js 22.7 kB
dotcom-rendering/dist/dynamicImport.variant.********************.js 2.03 kB
dotcom-rendering/dist/EditionDropdown-importable.legacy.********************.js 2.38 kB
dotcom-rendering/dist/EditionDropdown-importable.modern.********************.js 4.49 kB
dotcom-rendering/dist/EditionDropdown-importable.variant.********************.js 1.37 kB
dotcom-rendering/dist/EmbedBlockComponent-importable.legacy.********************.js 4.16 kB
dotcom-rendering/dist/EmbedBlockComponent-importable.modern.********************.js 2.89 kB
dotcom-rendering/dist/EmbedBlockComponent-importable.variant.********************.js 4.35 kB
dotcom-rendering/dist/embedIframe.legacy.********************.js 14.4 kB
dotcom-rendering/dist/embedIframe.modern.********************.js 14.4 kB
dotcom-rendering/dist/embedIframe.variant.********************.js 778 B
dotcom-rendering/dist/EnhancePinnedPost-importable.legacy.********************.js 3.25 kB
dotcom-rendering/dist/EnhancePinnedPost-importable.modern.********************.js 2.63 kB
dotcom-rendering/dist/EnhancePinnedPost-importable.variant.********************.js 2.26 kB
dotcom-rendering/dist/FetchCommentCounts-importable.legacy.********************.js 5.97 kB
dotcom-rendering/dist/FetchCommentCounts-importable.modern.********************.js 5.38 kB
dotcom-rendering/dist/FetchCommentCounts-importable.variant.********************.js 4.99 kB
dotcom-rendering/dist/FetchOnwardsData-importable.legacy.********************.js 2.74 kB
dotcom-rendering/dist/FetchOnwardsData-importable.modern.********************.js 2.69 kB
dotcom-rendering/dist/FetchOnwardsData-importable.variant.********************.js 2.5 kB
dotcom-rendering/dist/FilterButton-importable.legacy.********************.js 2.91 kB
dotcom-rendering/dist/FilterButton-importable.modern.********************.js 2.33 kB
dotcom-rendering/dist/FilterButton-importable.variant.********************.js 1.1 kB
dotcom-rendering/dist/FilterKeyEventsToggle-importable.legacy.********************.js 770 B
dotcom-rendering/dist/FilterKeyEventsToggle-importable.modern.********************.js 732 B
dotcom-rendering/dist/FilterKeyEventsToggle-importable.variant.********************.js 4.46 kB
dotcom-rendering/dist/FocusStyles-importable.legacy.********************.js 616 B
dotcom-rendering/dist/FocusStyles-importable.modern.********************.js 555 B
dotcom-rendering/dist/FocusStyles-importable.variant.********************.js 509 B
dotcom-rendering/dist/frontend.server.js 435 kB
dotcom-rendering/dist/ga.legacy.********************.js 21.3 kB
dotcom-rendering/dist/ga.modern.********************.js 20.5 kB
dotcom-rendering/dist/ga.variant.********************.js 2.88 kB
dotcom-rendering/dist/GetCricketScoreboard-importable.legacy.********************.js 2.12 kB
dotcom-rendering/dist/GetCricketScoreboard-importable.modern.********************.js 2.05 kB
dotcom-rendering/dist/GetCricketScoreboard-importable.variant.********************.js 2.19 kB
dotcom-rendering/dist/GetMatchNav-importable.legacy.********************.js 7.72 kB
dotcom-rendering/dist/GetMatchNav-importable.modern.********************.js 7.59 kB
dotcom-rendering/dist/GetMatchNav-importable.variant.********************.js 10.3 kB
dotcom-rendering/dist/GetMatchStats-importable.legacy.********************.js 5.29 kB
dotcom-rendering/dist/GetMatchStats-importable.modern.********************.js 4.51 kB
dotcom-rendering/dist/GetMatchStats-importable.variant.********************.js 5.14 kB
dotcom-rendering/dist/GetMatchTabs-importable.legacy.********************.js 2.89 kB
dotcom-rendering/dist/GetMatchTabs-importable.modern.********************.js 2.78 kB
dotcom-rendering/dist/GetMatchTabs-importable.variant.********************.js 3.51 kB
dotcom-rendering/dist/guardian-braze-components-banner.legacy.********************.js 11.8 kB
dotcom-rendering/dist/guardian-braze-components-banner.modern.********************.js 11.6 kB
dotcom-rendering/dist/guardian-braze-components-banner.variant.********************.js 11.8 kB
dotcom-rendering/dist/guardian-braze-components-end-of-article.legacy.********************.js 10.4 kB
dotcom-rendering/dist/guardian-braze-components-end-of-article.modern.********************.js 10.1 kB
dotcom-rendering/dist/guardian-braze-components-end-of-article.variant.********************.js 9.71 kB
dotcom-rendering/dist/GuideAtomWrapper-importable.legacy.********************.js 550 B
dotcom-rendering/dist/GuideAtomWrapper-importable.modern.********************.js 551 B
dotcom-rendering/dist/GuideAtomWrapper-importable.variant.********************.js 475 B
dotcom-rendering/dist/HeaderTopBar-importable.legacy.********************.js 9.95 kB
dotcom-rendering/dist/HeaderTopBar-importable.modern.********************.js 10.9 kB
dotcom-rendering/dist/HeaderTopBar-importable.variant.********************.js 8.22 kB
dotcom-rendering/dist/initDiscussion.legacy.********************.js 45.9 kB
dotcom-rendering/dist/initDiscussion.modern.********************.js 42.8 kB
dotcom-rendering/dist/initDiscussion.variant.********************.js 24.1 kB
dotcom-rendering/dist/InstagramBlockComponent-importable.legacy.********************.js 5.8 kB
dotcom-rendering/dist/InstagramBlockComponent-importable.modern.********************.js 4.65 kB
dotcom-rendering/dist/InstagramBlockComponent-importable.variant.********************.js 3.83 kB
dotcom-rendering/dist/InteractiveBlockComponent-importable.legacy.********************.js 4.49 kB
dotcom-rendering/dist/InteractiveBlockComponent-importable.modern.********************.js 4.33 kB
dotcom-rendering/dist/InteractiveBlockComponent-importable.variant.********************.js 5.79 kB
dotcom-rendering/dist/InteractiveContentsBlockComponent-importable.legacy.********************.js 7.05 kB
dotcom-rendering/dist/InteractiveContentsBlockComponent-importable.modern.********************.js 6.4 kB
dotcom-rendering/dist/InteractiveContentsBlockComponent-importable.variant.********************.js 5.16 kB
dotcom-rendering/dist/islands.legacy.********************.js 46.9 kB
dotcom-rendering/dist/islands.modern.********************.js 43.4 kB
dotcom-rendering/dist/islands.variant.********************.js 24.4 kB
dotcom-rendering/dist/KeyEventsCarousel-importable.legacy.********************.js 2.17 kB
dotcom-rendering/dist/KeyEventsCarousel-importable.modern.********************.js 1.94 kB
dotcom-rendering/dist/KeyEventsCarousel-importable.variant.********************.js 3.91 kB
dotcom-rendering/dist/KnowledgeQuizAtomWrapper-importable.legacy.********************.js 556 B
dotcom-rendering/dist/KnowledgeQuizAtomWrapper-importable.modern.********************.js 558 B
dotcom-rendering/dist/KnowledgeQuizAtomWrapper-importable.variant.********************.js 484 B
dotcom-rendering/dist/LabsHeader-importable.legacy.********************.js 5.21 kB
dotcom-rendering/dist/LabsHeader-importable.modern.********************.js 5.45 kB
dotcom-rendering/dist/LabsHeader-importable.variant.********************.js 4.59 kB
dotcom-rendering/dist/LiveBlogEpic-importable.legacy.********************.js 2.01 kB
dotcom-rendering/dist/LiveBlogEpic-importable.modern.********************.js 4.11 kB
dotcom-rendering/dist/LiveBlogEpic-importable.variant.********************.js 4.22 kB
dotcom-rendering/dist/Liveness-importable.legacy.********************.js 7.53 kB
dotcom-rendering/dist/Liveness-importable.modern.********************.js 6.52 kB
dotcom-rendering/dist/Liveness-importable.variant.********************.js 4.09 kB
dotcom-rendering/dist/MapEmbedBlockComponent-importable.legacy.********************.js 3.04 kB
dotcom-rendering/dist/MapEmbedBlockComponent-importable.modern.********************.js 5.36 kB
dotcom-rendering/dist/MapEmbedBlockComponent-importable.variant.********************.js 3.43 kB
dotcom-rendering/dist/MostViewedFooter-importable.legacy.********************.js 4.88 kB
dotcom-rendering/dist/MostViewedFooter-importable.modern.********************.js 4.8 kB
dotcom-rendering/dist/MostViewedFooter-importable.variant.********************.js 7.03 kB
dotcom-rendering/dist/MostViewedFooterData-importable.legacy.********************.js 7.38 kB
dotcom-rendering/dist/MostViewedFooterData-importable.modern.********************.js 7.25 kB
dotcom-rendering/dist/MostViewedFooterData-importable.variant.********************.js 9.42 kB
dotcom-rendering/dist/MostViewedRightWrapper-importable.legacy.********************.js 5.58 kB
dotcom-rendering/dist/MostViewedRightWrapper-importable.modern.********************.js 5.35 kB
dotcom-rendering/dist/MostViewedRightWrapper-importable.variant.********************.js 5.94 kB
dotcom-rendering/dist/newsletterEmbedIframe.legacy.********************.js 13.4 kB
dotcom-rendering/dist/newsletterEmbedIframe.modern.********************.js 13.4 kB
dotcom-rendering/dist/newsletterEmbedIframe.variant.********************.js 949 B
dotcom-rendering/dist/OnwardsUpper-importable.legacy.********************.js 7.84 kB
dotcom-rendering/dist/OnwardsUpper-importable.modern.********************.js 7.54 kB
dotcom-rendering/dist/OnwardsUpper-importable.variant.********************.js 7.97 kB
dotcom-rendering/dist/ophan.legacy.********************.js 26.8 kB
dotcom-rendering/dist/ophan.modern.********************.js 25.9 kB
dotcom-rendering/dist/ophan.variant.********************.js 7.65 kB
dotcom-rendering/dist/PersonalityQuizAtomWrapper-importable.legacy.********************.js 557 B
dotcom-rendering/dist/PersonalityQuizAtomWrapper-importable.modern.********************.js 558 B
dotcom-rendering/dist/PersonalityQuizAtomWrapper-importable.variant.********************.js 483 B
dotcom-rendering/dist/ProfileAtomWrapper-importable.legacy.********************.js 550 B
dotcom-rendering/dist/ProfileAtomWrapper-importable.modern.********************.js 553 B
dotcom-rendering/dist/ProfileAtomWrapper-importable.variant.********************.js 478 B
dotcom-rendering/dist/PulsingDot-importable.legacy.********************.js 2.43 kB
dotcom-rendering/dist/PulsingDot-importable.modern.********************.js 1.79 kB
dotcom-rendering/dist/PulsingDot-importable.variant.********************.js 1.88 kB
dotcom-rendering/dist/QandaAtomWrapper-importable.legacy.********************.js 548 B
dotcom-rendering/dist/QandaAtomWrapper-importable.modern.********************.js 552 B
dotcom-rendering/dist/QandaAtomWrapper-importable.variant.********************.js 479 B
dotcom-rendering/dist/ReaderRevenueDev-importable.legacy.********************.js 511 B
dotcom-rendering/dist/ReaderRevenueDev-importable.modern.********************.js 495 B
dotcom-rendering/dist/ReaderRevenueDev-importable.variant.********************.js 460 B
dotcom-rendering/dist/readerRevenueDevUtils.legacy.********************.js 3.22 kB
dotcom-rendering/dist/readerRevenueDevUtils.modern.********************.js 2.89 kB
dotcom-rendering/dist/readerRevenueDevUtils.variant.********************.js 3.4 kB
dotcom-rendering/dist/ReaderRevenueLinks-importable.legacy.********************.js 5.36 kB
dotcom-rendering/dist/ReaderRevenueLinks-importable.modern.********************.js 4.99 kB
dotcom-rendering/dist/ReaderRevenueLinks-importable.variant.********************.js 6.42 kB
dotcom-rendering/dist/RecipeMultiplier-importable.legacy.********************.js 2.37 kB
dotcom-rendering/dist/RecipeMultiplier-importable.modern.********************.js 2.23 kB
dotcom-rendering/dist/RecipeMultiplier-importable.variant.********************.js 4.26 kB
dotcom-rendering/dist/relativeTime.legacy.********************.js 13.7 kB
dotcom-rendering/dist/relativeTime.modern.********************.js 13.2 kB
dotcom-rendering/dist/relativeTime.variant.********************.js 1.22 kB
dotcom-rendering/dist/RichLinkComponent-importable.legacy.********************.js 6.81 kB
dotcom-rendering/dist/RichLinkComponent-importable.modern.********************.js 7.35 kB
dotcom-rendering/dist/RichLinkComponent-importable.variant.********************.js 3.89 kB
dotcom-rendering/dist/SecureSignupIframe-importable.legacy.********************.js 3.06 kB
dotcom-rendering/dist/SecureSignupIframe-importable.modern.********************.js 2.76 kB
dotcom-rendering/dist/SecureSignupIframe-importable.variant.********************.js 7.81 kB
dotcom-rendering/dist/sentry.legacy.********************.js 750 B
dotcom-rendering/dist/sentry.modern.********************.js 757 B
dotcom-rendering/dist/sentry.variant.********************.js 718 B
dotcom-rendering/dist/sentryLoader.legacy.********************.js 40 kB
dotcom-rendering/dist/sentryLoader.modern.********************.js 35.7 kB
dotcom-rendering/dist/sentryLoader.variant.********************.js 10.3 kB
dotcom-rendering/dist/SetABTests-importable.legacy.********************.js 3.47 kB
dotcom-rendering/dist/SetABTests-importable.modern.********************.js 3.1 kB
dotcom-rendering/dist/SetABTests-importable.variant.********************.js 5.63 kB
dotcom-rendering/dist/ShareCount-importable.legacy.********************.js 4.04 kB
dotcom-rendering/dist/ShareCount-importable.modern.********************.js 4.01 kB
dotcom-rendering/dist/ShareCount-importable.variant.********************.js 1.76 kB
dotcom-rendering/dist/shimport.legacy.********************.js 9.63 kB
dotcom-rendering/dist/shimport.modern.********************.js 10.1 kB
dotcom-rendering/dist/shimport.variant.********************.js 2.78 kB
dotcom-rendering/dist/ShowHideContainers-importable.legacy.********************.js 1.68 kB
dotcom-rendering/dist/ShowHideContainers-importable.modern.********************.js 1.07 kB
dotcom-rendering/dist/ShowHideContainers-importable.variant.********************.js 729 B
dotcom-rendering/dist/ShowMore-importable.legacy.********************.js 4.6 kB
dotcom-rendering/dist/ShowMore-importable.modern.********************.js 4.5 kB
dotcom-rendering/dist/ShowMore-importable.variant.********************.js 6.02 kB
dotcom-rendering/dist/SignInGateMain.legacy.********************.js 5.27 kB
dotcom-rendering/dist/SignInGateMain.modern.********************.js 4.98 kB
dotcom-rendering/dist/SignInGateMain.variant.********************.js 4.51 kB
dotcom-rendering/dist/SignInGateSelector-importable.legacy.********************.js 4.42 kB
dotcom-rendering/dist/SignInGateSelector-importable.modern.********************.js 4.11 kB
dotcom-rendering/dist/SignInGateSelector-importable.variant.********************.js 4.04 kB
dotcom-rendering/dist/SlotBodyEnd-importable.legacy.********************.js 3.3 kB
dotcom-rendering/dist/SlotBodyEnd-importable.modern.********************.js 2.71 kB
dotcom-rendering/dist/SlotBodyEnd-importable.variant.********************.js 2.75 kB
dotcom-rendering/dist/Snow-importable.legacy.********************.js 7.04 kB
dotcom-rendering/dist/Snow-importable.modern.********************.js 6.42 kB
dotcom-rendering/dist/Snow-importable.variant.********************.js 5.3 kB
dotcom-rendering/dist/SpotifyBlockComponent-importable.legacy.********************.js 2.95 kB
dotcom-rendering/dist/SpotifyBlockComponent-importable.modern.********************.js 5.28 kB
dotcom-rendering/dist/SpotifyBlockComponent-importable.variant.********************.js 3.27 kB
dotcom-rendering/dist/StickyBottomBanner-importable.legacy.********************.js 8.8 kB
dotcom-rendering/dist/StickyBottomBanner-importable.modern.********************.js 7.79 kB
dotcom-rendering/dist/StickyBottomBanner-importable.variant.********************.js 7.37 kB
dotcom-rendering/dist/SubNav-importable.legacy.********************.js 3.66 kB
dotcom-rendering/dist/SubNav-importable.modern.********************.js 3.04 kB
dotcom-rendering/dist/SubNav-importable.variant.********************.js 1.74 kB
dotcom-rendering/dist/SupportTheG-importable.legacy.********************.js 5.32 kB
dotcom-rendering/dist/SupportTheG-importable.modern.********************.js 4.95 kB
dotcom-rendering/dist/SupportTheG-importable.variant.********************.js 6.39 kB
dotcom-rendering/dist/TableOfContents-importable.legacy.********************.js 1.04 kB
dotcom-rendering/dist/TableOfContents-importable.modern.********************.js 3.24 kB
dotcom-rendering/dist/TableOfContents-importable.variant.********************.js 1.25 kB
dotcom-rendering/dist/TimelineAtomWrapper-importable.legacy.********************.js 550 B
dotcom-rendering/dist/TimelineAtomWrapper-importable.modern.********************.js 552 B
dotcom-rendering/dist/TimelineAtomWrapper-importable.variant.********************.js 479 B
dotcom-rendering/dist/TopicFilterBank-importable.legacy.********************.js 1.73 kB
dotcom-rendering/dist/TopicFilterBank-importable.modern.********************.js 1.66 kB
dotcom-rendering/dist/TopicFilterBank-importable.variant.********************.js 2.28 kB
dotcom-rendering/dist/TopRightAdSlot-importable.legacy.********************.js 1.64 kB
dotcom-rendering/dist/TopRightAdSlot-importable.modern.********************.js 1.65 kB
dotcom-rendering/dist/TopRightAdSlot-importable.variant.********************.js 1.79 kB
dotcom-rendering/dist/TweetBlockComponent-importable.legacy.********************.js 824 B
dotcom-rendering/dist/TweetBlockComponent-importable.modern.********************.js 826 B
dotcom-rendering/dist/TweetBlockComponent-importable.variant.********************.js 2.12 kB
dotcom-rendering/dist/UnsafeEmbedBlockComponent-importable.legacy.********************.js 5.81 kB
dotcom-rendering/dist/UnsafeEmbedBlockComponent-importable.modern.********************.js 4.67 kB
dotcom-rendering/dist/UnsafeEmbedBlockComponent-importable.variant.********************.js 3.85 kB
dotcom-rendering/dist/VideoFacebookBlockComponent-importable.legacy.********************.js 3.04 kB
dotcom-rendering/dist/VideoFacebookBlockComponent-importable.modern.********************.js 5.38 kB
dotcom-rendering/dist/VideoFacebookBlockComponent-importable.variant.********************.js 3.45 kB
dotcom-rendering/dist/VineBlockComponent-importable.legacy.********************.js 5.58 kB
dotcom-rendering/dist/VineBlockComponent-importable.modern.********************.js 4.41 kB
dotcom-rendering/dist/VineBlockComponent-importable.variant.********************.js 3.74 kB
dotcom-rendering/dist/YoutubeBlockComponent-importable.legacy.********************.js 7.03 kB
dotcom-rendering/dist/YoutubeBlockComponent-importable.modern.********************.js 6.74 kB
dotcom-rendering/dist/YoutubeBlockComponent-importable.variant.********************.js 6.78 kB

compressed-size-action

@github-actions
Copy link

github-actions bot commented Jan 16, 2023

⚡️ Lighthouse report for the changes in this PR

Lighthouse tested 2 URLs

⚠️ Budget exceeded for 2 of 12 audits.

Report for Article

tested url https://www.theguardian.com/commentisfree/2020/feb/08/hungary-now-for-the-new-right-what-venezuela-once-was-for-the-left

Category Status Expected Actual
First Contentful Paint 1500 1482
Largest Contentful Paint 3000 1953
Time to Interactive 3500 3066
Cumulative Layout Shift ⚠️ 0.002 0.016917
Total Blocking Time 219 153
accessibility 0.97 1.000000

Report for Front

tested url https://www.theguardian.com/uk

Category Status Expected Actual
First Contentful Paint 1500 1405
Largest Contentful Paint 3000 1528
Time to Interactive 3500 2365
Cumulative Layout Shift ⚠️ 0.002 0.020700
Total Blocking Time 716 431
accessibility 0.97 0.980000

Copy link
Contributor Author

@mxdvl mxdvl left a comment

Choose a reason for hiding this comment

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

This should reduce the need for adjusting things like #6967

@mxdvl mxdvl force-pushed the mxdvl/types-mismatch-fix branch 3 times, most recently from fdbced7 to a12762b Compare January 17, 2023 11:12
@mxdvl mxdvl linked an issue Jan 17, 2023 that may be closed by this pull request
30 tasks
@mxdvl mxdvl force-pushed the mxdvl/types-mismatch branch from df51e7c to 453ded8 Compare January 17, 2023 12:39
@mxdvl mxdvl force-pushed the mxdvl/types-mismatch-fix branch from 17235e2 to 4727604 Compare January 17, 2023 12:41
@mxdvl mxdvl merged commit d944d27 into mxdvl/types-mismatch Jan 20, 2023
@mxdvl mxdvl deleted the mxdvl/types-mismatch-fix branch January 20, 2023 09:01
@mxdvl mxdvl mentioned this pull request Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mismatched @types/* packages
1 participant