Skip to content

v0.1.17

Choose a tag to compare

@github-actions github-actions released this 20 Oct 16:04
· 4 commits to main since this release

Added

  • The pages of metaobjects are served. With templates/metaobject/<type>.json (or .liquid) in the theme, /pages/<type>/<handle> renders the entry, with the global metaobject, ?view= and a per-entry template_suffix in the data. shopify://metaobjects/ links lead there, and metaobject.system.url is nil for a type without a template, as on a store whose definition has no web pages.
  • A 404 page says why. The server answers it with an x-lsf-not-found header (no route, unknown resource, no template) and logs the reason, so a test can fail on it.
  • shopify_asset_url files are served. vendor/qrcode.js is the MIT qrcode.js library that Shopify serves, so a gift card draws its QR code. The other documented files are small local stand-ins: shopify_common.js formats money, the others only warn in the console.

Fixed

  • metaobject and metaobject_list settings are metaobjects, not the string of the template: a handle, type.handle, type/handle or a gid://shopify/Metaobject/ id.
  • The search follows sort_by: relevance, price-ascending and price-descending, with the other results after the products under a price order, as Shopify does. search.sort_by says which order applies and search.sort_options lists those three.
  • 'now' | date: '%N' differs between calls. Each 'now' reads the clock again, as on Shopify, so ids built from it no longer repeat. With a fixed now in the data, each read is one nanosecond after the previous one: renders stay reproducible.

What's Changed

  • fix: lift the limits of 0.1.16 found on a real theme by @0xtlt in #8

Full Changelog: v0.1.16...v0.1.17