-
Notifications
You must be signed in to change notification settings - Fork 2
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
Automat 0.3 changes #194
Automat 0.3 changes #194
Conversation
e18ad2f
to
eb02758
Compare
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.
@tompretty ah thanks - yes almost certainly. I probably need to add the babel plugin - will take a look. Update: this should be okay now. |
6736e20
to
4057d5c
Compare
This includes switching to the v2 of automat client libraries, and loading the epic as an ES module. See also: guardian/support-dotcom-components#194 https://github.com/guardian/automat-client-v2/ https://docs.google.com/document/d/1CVkWvCo5SlJjedPmv0Uh6gQ6mwFsGydE2RvZzo6uxGk/edit?usp=sharing
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.
Looks great - I very excited for this one! 🚀
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.
💯 Looks great!
This includes switching to the v2 of automat client libraries, and loading the epic as an ES module. See also: guardian/support-dotcom-components#194 https://github.com/guardian/automat-client-v2/ https://docs.google.com/document/d/1CVkWvCo5SlJjedPmv0Uh6gQ6mwFsGydE2RvZzo6uxGk/edit?usp=sharing
This is required to use the emotion cache, which Automat uses as part of its shadow dom support. In addition, Source uses @emotion/core and standardising helps avoid having to load both. Note, an interesting discussion on the differences between emotion and @emotion/core can be found here: emotion-js/emotion#1883.
Currently failing on .? and ?? operators.
4057d5c
to
64c3e37
Compare
This includes switching to the v2 of automat client libraries, and loading the epic as an ES module. See also: guardian/support-dotcom-components#194 https://github.com/guardian/automat-client-v2/ https://docs.google.com/document/d/1CVkWvCo5SlJjedPmv0Uh6gQ6mwFsGydE2RvZzo6uxGk/edit?usp=sharing
DO NOT MERGE - required changes in platforms first. guardian/dotcom-rendering#1758 and also the Frontend PR which must be merged at the same time (so we'll have a few minutes with no subs/contributions banners on Frontend).
What does this change?
Various changes to support the newer automat clients. See:
https://docs.google.com/document/d/1CVkWvCo5SlJjedPmv0Uh6gQ6mwFsGydE2RvZzo6uxGk/edit?userstoinvite=tom.forbes%40guardian.co.uk&ts=5f16bd85&actionButton=1#
https://github.com/guardian/automat-client-v2/
for more info here.
The summary is:
emotion
to@emotion/core
@guardian/automat-deps
to help ensure react/emotion versions safeemotion
andemotion-theming
)How to test
Run the tests, and also test with Frontend or DCR.
How can we measure success?
Able to support modules on Frontend (as a separate change but this is a step towards that).
Have we considered potential risks?
I haven't tested the banners yet.