Releases: packdigital/pack-hydrogen-theme-blueprint
Releases · packdigital/pack-hydrogen-theme-blueprint
v1.9.7 Reverts PDP url param set method, adds logic to ignore tracking url params as product options
v1.9.7 Reverts PDP url param set method, adds logic to ignore tracking url params as product options
Latest
- Reverts the use of
useSearchParams
to update the product page url from releasev1.9.4
. If the product page had a url param that wasn't a product option, e.g. tracking url param, the user would be unable to successfully select any variant other than the first one [commit] - Adds additional check to not include common tracking url parameters as possible product options when a product page first loads [commit]
v1.9.6 Renames PackAnalytics, fixes double login analytics events, removes redundant providers from GlobalProvider, fixes loading specific content envs, adds cache control to xml routes, misc cleanup
Update:
- Renames
PackAnalytics
to justAnalytics
to avoid confusion the analytics logic is custom to Pack [commit]
Minor fix:
- Fixes double events firing for login and register analytics events [commit]
- Removes redundant providers left over in
GlobalProvider
[commit] - Fixes loading specific content environments [commit]
- Adds missing
px
to allImage
's with thewidth
attribute [commit]
Improvement:
- Adds cache control to xml routes [commit]
- Updates application error verbiage to limit confusion while in customizer [commit]
Cleanup:
- Misc minor code cleanup [commit]
v1.9.5 Correction to cookie domain used for analytics
v1.9.4 Corrects cart line product url, updates PDP variant url change function, new cart redirect route, minor code cleanup
Minor fix:
- Corrects product url for cart line item [commit]
- Sets PDP variant url change via
useSearchParams
to be more in line with Remix [commit]
New:
- Adds
($locale).cart.$lines
route to account for any cart redirect links [commit]
Minor cleanup:
- Renames
header
schema fieldsmenuItems
tonavItems
andmenuItem
tonavItem
for correct semantics. Adds missing optional chaining in mobile menu. [commit] - Adds additional conditional for rendering quick shop add to cart button [commit]
- Misc minor style tweaks [commit]
- Misc minor code cleanup [commit] [commit]
Routine:
- Updates packages to latest. Locks
cookie
package to0.7.2
to prevent upgrade to 1.0.0 which was causing an infinite loop. AddsSHOP_ID
toremix.env.d
[commit]
v1.9.3 Critical fix to promobar state change, separate GlobalProvider into separate context providers, wrap components in memo for added performance
Critical Fix:
- Fix state change for
Promobar
visibility on scroll to only set state when necessary. Previously, this state change would occur on every pixel with scrolling causing all components that subscribed touseGlobal
to re-render each time. This did not affect page load, rather unnecessarily increased cpu usage with the browser upon scrolling. [commit]
Fix:
- Corrects UI logic from the optimistic selection of product options as links from release v1.8.2. Prevents disabled option links from being optimistically (visibly) selected [commit]
Performance Improvement:
- Separates
GlobalProvider
into separate context providers and updates components that subscribe touseGlobal
with the new accompanying hook. This prevents components from re-rendering based on state change for unrelated state [commit] - Wraps relevant components with
memo
for added memoization and performance improvement [commit]
v1.9.2 Fix article paths without blogs, fix for product item color variant edge case, video element keys, misc cleanup
- Fixes article route update from previous release [commit]
- Previously, all articles were redirected to the path
blogs/$blogHandle/$handle
, but if an article didn't have a blog assigned, navigating to it would result in a 404. This adds back the legacy article route component to account for those legacy articles.
- Previously, all articles were redirected to the path
- Fixes rare edge case with
ProductItem
color variants causing syntax error by optional chaining [commit] - Adds
key
to allvideo
elements to re-render a video if the video src is changed [commit] - Adds
sms:
link support in theMarkdown
url transform [commit] - Adds check for product id as a number in
useProductsByIds
hook [commit] - Cleans up Graphql queries and naming [commit]
- Updates packages to latest [commit]
v1.9.1 Updates Image component for latest Hydrogen versions, fixes add to cart button text shift, adds tel url support for markdown
- Removes the customization within
Image
component. After recent version updates toImage
from@shopify/hydrogen-react
, the customsrcSetOptions
passed in and theisStatic
logic is no longer needed. This will address any lower res images becoming visibly blurry after upgrading to latest versions [commit] - Fixes the "Added To Cart" misalignment in the
AddToCart
button [commit] - Adds a url transform for
tel:
links for support inMarkdown
[commit]
v1.9.0 Non-critical migrations, customizerMeta fix, updated Klaviyo endpoint, code improvements and cleanup
Migration:
- Adds new
($locale).blogs.$blogHandle.$handle
route, which is copy of the original($locale).articles.$handle
route. This is to support the new path pattern for article pages. The original articles route is now just a redirect to the new path [commit] - Per migration notes for latest
@shopify/hydrogen
versions, all instances ofsession.commit()
in routes are removed and instead exists only inserver.ts
. Additional logic is also added intoAppSession
[commit]
Fix:
- Correct the undefined
customizerMeta
returned from the root loader [commit]
Improvement:
- Moves all Providers to inside of
<body>
instead of immediately outside of<html>
[commit] - Updates the Klaviyo subscription logic to instead use their client-side API endpoint which also allows for adding custom properties to a customer profile [commit]
Minor Fix:
- Clear buyer identity for cart on customer log out [commit]
- Correct missing variant title on order page item [commit]
Cleanup:
- Pass selected locale to
<html>
inDocument
[commit] - Update SEO page title to not affix the storefront name if the SEO title comes from Shopify, i.e. products, collections [commit]
- Update the default colors for the
TestimonialSlider
section [commit] - Adds missing
id
's forinput
's on account forms to be paired with their accompanying<label>
[commit] - Recategorize sections [commit]
Routine:
- Updates
@remix
and@shopify
packages to latest [commit]
v1.8.2 Improved product groupings logic, useProductsByIds hook, search results page seo fix, misc settings and display updates
New/Improvement:
- Improves PDP product grouping logic by optimizing server load time. It reduces the fetching of grouping products to a singular graphql request and moves product grouping options generation to client-side [commit]
- Adds logic to PDP product option values that link to a new PDP with optimistic selection, visibly selecting the value before the page navigates
- Updates
selectedVariant
in product files to account for edge case from theuseProduct
hook, which temporarily misaligns the selected variant with the actual product after navigation between PDP's
- Adds
useProductsByIds
hook which fetches products through an array of ids. This completely replaces the previous hookuseProductsFromHandles
. The new hook is optimized by using singular graphql request, whereas the deprecated hook sent multiple. [commit] - Updates
useProductGroupingByHandle
to fetch grouping products via ids for aforementioned optimization [commit] - Creates empty cart on page load if no cart has been created. This allows for better analytics tracking where applicable [commit]
Fix:
- Corrects the search page SEO json-ld to use
SearchResultsPage
instead ofCollectionPage
[commit]
Routine:
- Updates all packages to latest [commit]
Minor improvements:
v1.8.1 Lock @headlessui/react to stable package version
Locks @headlessui/react
to stable package version because latest versions have issue with listbox options not being clickable