Skip to content

@shopify/theme-check-common@3.10.0

Compare
Choose a tag to compare
@github-actions github-actions released this 26 Feb 17:56
· 46 commits to main since this release
b6f65cf

Minor Changes

  • 10493c9: New UnusedDocParam theme-check rule

    • Theme check will verify that parameters defined within a snippet's doc header are used within the body
  • f130a78: Introduce a new theme check which validates the types of parameters passed to snippets against the liquidDoc header.

    • Reports type mismatches
    • Suggests autofixes (replace with default or remove value)
    • Skips type checking for variable lookups
    • Skips type checking for unknown parameters
    • Skips type checking for unknown types
  • 1a4482e: New theme checks to validate liquid doc params

    • UniqueDocParamNames will check if param names are unique within the doc tag
    • ValidDocParamTypes will check if the param types defined in the doc tag are supported
  • 79c9f77: Update getSnippetDefinition definition property to return implicit description if provided.

    Implicit descriptions are provided as text before any annotations @ are provided. This overrides any @description annotations.

  • 754f7f6: New theme check to ensure doc tag is only used in snippet files

Patch Changes

  • 5ad43a8: Fixed issue with normalize method not working properly on windows due to not replacing backslashes with forward slashes
  • dc8c9fd: Add RemoteAsset allowedDomains check to validate CDN and approved domain usage for better performance and developer experience
  • beccb69: Fixed local blocks validation to not consider preset blocks as containing local blocks when a name is present
  • Updated dependencies [10493c9]
  • Updated dependencies [79c9f77]
  • Updated dependencies [9563715]
    • @shopify/liquid-html-parser@2.6.0