Skip to content

skeleton@1.0.4

Choose a tag to compare

@shopify-github-actions-access shopify-github-actions-access released this 22 Feb 21:34
· 964 commits to main since this release
2a97cff

Patch Changes

  • This is an important fix to a bug with 404 routes and path-based i18n projects where some unknown routes would not properly render a 404. This fixes all new projects, but to fix existing projects, add a ($locale).tsx route with the following contents: (#1732) by @blittle

    import {type LoaderFunctionArgs} from '@remix-run/server-runtime';
    
    export async function loader({params, context}: LoaderFunctionArgs) {
      const {language, country} = context.storefront.i18n;
    
      if (
        params.locale &&
        params.locale.toLowerCase() !== `${language}-${country}`.toLowerCase()
      ) {
        // If the locale URL param is defined, yet we still are still at the default locale
        // then the the locale param must be invalid, send to the 404 page
        throw new Response(null, {status: 404});
      }
    
      return null;
    }
  • Add defensive null checks to the default cart implementation in the starter template (#1746) by @blittle

  • 🐛 Fix issue where customer login does not persist to checkout (#1719) by @michenly

    ✨ Add customerAccount option to createCartHandler. Where a ?logged_in=true will be added to the checkoutUrl for cart query if a customer is logged in.

  • Updated dependencies [faeba9f8, 6d585026, fcecfb23, 28864d6f, c0ec7714, 226cf478, 06d9fd91]: