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

bugfix & setup to replace 3p helpers incrementally #178

Merged
merged 1 commit into from
Jul 11, 2022

Conversation

bc-evan-johnson
Copy link
Contributor

What? Why?

The previous iteration of these helper replacements broke backwards compatibility in a couple of previously-unknown edge cases.

Note: The helper replacements will be enabled in future PRs.

How was it tested?

Additional unit test cases have been added. Both the new and old versions pass the new test cases.


cc @bigcommerce/storefront-team

},
], done);
});
// it('accepts SafeString paths', (done) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't it be supported now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The old option helper (and also get) only works with SafeString for top-level properties, not nested properties, so this test will fail on the old version.

@@ -11,7 +11,7 @@ const helpersList = [
'dynamicComponent',
'encodeHtmlEntities',
'for',
'get',
// 'get',
Copy link
Contributor

Choose a reason for hiding this comment

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

Lets maybe enable 1 helper here? Maybe get

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let's start with moment and option.

@jairo-bc jairo-bc merged commit 3ae6c88 into bigcommerce:master Jul 11, 2022
This was referenced Jul 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants