-
Notifications
You must be signed in to change notification settings - Fork 54
Conversation
Checkout your storybook preview here http://psammead-preview.tools.bbc.co.uk/4420 |
Bump package versions for psammead, psammead-amp-geo, psammead-brand, psammead-bulleted-list, psammead-bulletin, psammead-byline, psammead-caption, psammead-consent-banner, psammead-content-anchor, psammead-copyright, psammead-embed-error, psammead-episode-list, psammead-figure, psammead-grid, psammead-heading-index, psammead-headings, psammead-image-placeholder, psammead-image, psammead-inline-link, psammead-live-label, psammead-media-indicator, psammead-media-player, psammead-most-read, psammead-navigation, psammead-oembed, psammead-paragraph, psammead-play-button, psammead-podcast-promo, psammead-radio-schedule, psammead-script-link, psammead-section-label, psammead-sitewide-links, psammead-social-embed, psammead-story-promo-list, psammead-story-promo, psammead-timestamp, psammead-topic-tags, psammead-useful-links, psammead-visually-hidden-text, psammead-timestamp-container, moment-timezone-include, psammead-assets, psammead-calendars, psammead-detokeniser, psammead-locales, psammead-rich-text-transforms, psammead-storybook-helpers, psammead-styles, psammead-test-helpers, web-vitals,
Updates changelogs for psammead, psammead-amp-geo, psammead-brand, psammead-bulleted-list, psammead-bulletin, psammead-byline, psammead-caption, psammead-consent-banner, psammead-content-anchor, psammead-copyright, psammead-embed-error, psammead-episode-list, psammead-figure, psammead-grid, psammead-heading-index, psammead-headings, psammead-image-placeholder, psammead-image, psammead-inline-link, psammead-live-label, psammead-media-indicator, psammead-media-player, psammead-most-read, psammead-navigation, psammead-oembed, psammead-paragraph, psammead-play-button, psammead-podcast-promo, psammead-radio-schedule, psammead-script-link, psammead-section-label, psammead-sitewide-links, psammead-social-embed, psammead-story-promo-list, psammead-story-promo, psammead-timestamp, psammead-topic-tags, psammead-useful-links, psammead-visually-hidden-text, psammead-timestamp-container, moment-timezone-include, psammead-assets, psammead-calendars, psammead-detokeniser, psammead-locales, psammead-rich-text-transforms, psammead-storybook-helpers, psammead-styles, psammead-test-helpers, web-vitals
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one point on peer dependnecies, otherwise I think this is good to merge looks like some dependencies for psammead-timestamp-container
need pinning again looking at the failing tests
"@bbc/psammead-styles": "^7.2.2" | ||
"@bbc/psammead-styles": "^7.2.2", | ||
"@emotion/styled": "^11.0.0", | ||
"react": "^17.0.1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how do these dev dependencies work with the peer dependencies here? I guess the peer dependencies declare that you can integrate and use this package with a project (Simorgh in our case) that uses Emotion styled > 11 and react > 16.9 ? Should we change the react one to be react 17? I imagine this will be needed across all packages
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think if we do then we introduce a backwards-incompatible breaking change because consumers who haven't upgraded to React v17 won't be able to use new versions of Psammead components.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for this Jonathan
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Go ahead and Bump, ᴮᵘᵐᵖ!
Overall change:
Upgrades a lot of packages.
Updates all minor and patch dependencies and the following major dependencies:
Consists of several Renovate PRs:
Also adds a new dependency
many-pkg
that runs checks onpostinstall
to flag problems with ourpackage.json
files. Running this check onpostinstall
was inspired by Chakra UI's approach.Running
many-pkg
highlighted some problems such as dependency mismatches across packages and peerDeps not being installed in devDeps. These issues were fixed in this PR.Code changes:
Adds new root dependency
many-pkg
and 2 new scripts:check:pkgs
- run this to validate ourpackage.json
files using these checks. Runs onpostinstall
fix:pkgs
- run this to auto-fix problems highlighted by runningcheck:pkgs
mkdirp
v1 breaking changesUsed in moment-timezone-include package
What changed?
More details - https://www.npmjs.com/package/mkdirp/v/1.0.0#use-this-module-mkdirp-1x-if
Changes needed
None. We didn't use callbacks - are using mkdirp.sync and we use a supported version of Node.
object-hash
v2 breaking changesUsed in moment-timezone-include package
What changed?
More details - https://github.com/puleos/object-hash#v200
Changes needed
None.
eslint-config-prettier
v8 breaking changesUsed in root package
What changed?
More details
Changes needed
None.
@testing-library/react-hooks
v5 breaking changesUsed in root package
What changed?
suppressErrors
removedMore details
Changes needed
None.