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

feat: use store-info resource #72

Merged
merged 1 commit into from
Nov 5, 2024
Merged

feat: use store-info resource #72

merged 1 commit into from
Nov 5, 2024

Conversation

kchung
Copy link
Collaborator

@kchung kchung commented Oct 31, 2024

The square.store info global is deprecated and will be removed in favor the store-info resource. The store-info resource should improve cacheability

See breaking changes documentation

Changes

  • Use the store-info resource

@kchung kchung requested a review from AustinWu666 October 31, 2024 23:05
@AustinWu666 AustinWu666 marked this pull request as ready for review November 1, 2024 16:00
Copy link
Contributor

@AustinWu666 AustinWu666 left a comment

Choose a reason for hiding this comment

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

Thanks for helping update the Brisk! I looked up the mise repo and found that it doesn't use square.store.* anywhere.

@kchung kchung force-pushed the store-info-resource branch from 5f89747 to 89cf20c Compare November 4, 2024 22:06
@@ -47,7 +47,7 @@
{% endblock %}
</head>

{% set defaultFulfillment = (square.store.default_item_fulfillment|split(',')[0])|default('SHIPMENT') %}
{% set defaultFulfillment = (store_info.default_item_fulfillment|split(',')[0])|default('SHIPMENT') %}
Copy link
Contributor

Choose a reason for hiding this comment

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

Here where do we actually get the store-info schema reference from?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Now that i can get it to resolve now let me test it out, I think it works because the "parent" template has access to this

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yeah, as long as the parent who is extending this file pulls it in, it should be able to access it. i had to update my PR to add store-info to all pages since all pages extend this file

Copy link
Contributor

Choose a reason for hiding this comment

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

awesome, thanks!

@kchung kchung force-pushed the store-info-resource branch from 89cf20c to 6b57130 Compare November 4, 2024 22:58
@@ -47,7 +47,7 @@
{% endblock %}
</head>

{% set defaultFulfillment = (square.store.default_item_fulfillment|split(',')[0])|default('SHIPMENT') %}
{% set defaultFulfillment = (store_info.default_item_fulfillment|split(',')[0])|default('SHIPMENT') %}
Copy link
Contributor

Choose a reason for hiding this comment

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

awesome, thanks!

@kchung kchung merged commit e396063 into alpha Nov 5, 2024
3 checks passed
@kchung kchung deleted the store-info-resource branch November 5, 2024 17:25
Copy link

github-actions bot commented Nov 5, 2024

🎉 This PR is included in version 1.0.0-alpha.15 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

bashunaimiroy added a commit that referenced this pull request Nov 20, 2024
* alpha:
  fix: use `seller_preferred_fulfillment` for default fulfillment (#73)
  feat: use store-info resource (#72)
  fix: Item filters not working and resolve the filter name mismatch (#70)
  fix: fix integrity missing cross origin anonymous (#69)
  build(dependencies): update vulnerable packages (#68)
  fix: add integrity to cdn scripts and remove unused (#67)
  chore: add integrity to cdn scripts and remove unused (#66)
  ci(github-actions): use specific semantic-release version (#63)
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.

2 participants