Homepage

Region-specific languages in the context tag, faster array_contains filters, more reliable Liquid tags in loops and partials

November 27, 2026

NEW

  • The context tag accepts a region or script after the language: For example, {% context language: 'en-GB' %}, pt-BR, es-419 or zh-Hant. Translations are looked up under exactly that locale, and fall back to the language when fallbacks are on. An invalid language is reported and no longer applied.

IMPROVED

  • array_contains filters in GraphQL queries are much faster on large tables: They now use the database indexes on record properties, so a query that filters by one or more array_contains conditions no longer reads every record of the table. Results are the same.
  • A value that contains itself fails where it's used, with a clear Liquid error: hash_assign, assign with <<, array_add, array_prepend and hash_add_key no longer reject a hash or array that ends up containing itself. Outputting it, or passing it to json, deep_clone, hash_merge, hash_diff, log or GraphQL arguments, reports value contains itself or is nested too deeply, which {% try %} can catch. Values nested too deeply are reported the same way.
  • The session tag refuses to store a value that contains itself: Previously the value was stored and broke every later request of that visitor.
  • A graphql tag inside a loop or a partial rendered many times looks up its query once per request: A deprecation warning for a short query name is now logged once, not on every iteration.
  • The missing template log entry names the full path and the page: When a page's layout can't be found, the Liquid Missing Template error log entry now shows every path that was looked up (for example, modules/foo/json instead of json) and the page that asked for it.

FIXED

  • {% cache %} handles any expire value: An expire of 0 or below now renders the block without caching. Previously a negative value cached the block for a week. A numeric string such as '300', for example from a constant, now caches for that many seconds, and a value that isn't a number (such as false) renders the block without caching instead of returning a Liquid error. Very large values are capped at one year.
  • Forms inside {% cache %} keep a valid CSRF token: When the same cache tag was rendered more than once in a request (for example, in a loop or a partial rendered several times), the cached output could still contain an earlier request's token, so the form was rejected on submit.
  • {% try %} runs its catch block only for its own error: Inside a loop, an iteration that succeeded after a failed one no longer runs the catch block. A try in a partial that is also rendered inside the same try now catches its error instead of raising it again.
  • {% transaction %} uses its own timeout every time it runs: Previously, a transaction tag in a loop or a partial rendered several times kept the timeout from its first run.
  • admin_background_jobs returns correct dates: created_at was returned as a date around the year 58,000 and failed_at as a bare number, and sorting by created_at or enqueued_at mixed up older and newer jobs.
  • Writing to context.constants or translations returns a Liquid error: For example, c is read-only. Previously it caused a 500 error. context.globals.time_zones is now read-only too.
  • form_for with the removed form_for_type attribute no longer fails: The attribute is ignored.
  • An inline graphql query with only whitespace no longer runs another query: Previously, it could run the query of a graphql partial included earlier in the request.
  • Errors in {% background %} name the right line when the opening tag spans several lines
  • Clearer errors for invalid arguments in sign_in and hash_assign: sign_in with a non-numeric timeout_in_minutes (for example, true or an array) reports timeout_in_minutes must be a number. hash_assign with an array index that is an undefined variable reports that the index is null.

Questions?

We are always happy to help with any questions you may have.

contact us