Skip to content

Releases: Shopify/theme-tools

@shopify/theme-check-node@3.11.0

07 Mar 16:34
08ab22f
Compare
Choose a tag to compare

Minor Changes

  • 8a0393a: Theme check to ensure liquid doc param names don't collide with reserved words

    • Theme check will report a warning if param name collides with global liquid objects
    • Theme check will report a warning if param name collides with liquid tags
  • c55077e: Split ValidRenderSnippetParams theme check into MissingRenderSnippetParams and UnrecognizedRenderSnippetParams. This allows them to be disabled independantly.

  • a851f37: Add DuplicateRenderSnippetParams theme check

    Introduces a new theme check to detect and report duplicate parameters in Liquid render tags. The check:

    • Identifies duplicate parameter names in render snippets
    • Provides suggestions to remove redundant parameters

Patch Changes

  • Updated dependencies [8a0393a]
  • Updated dependencies [0d96194]
  • Updated dependencies [2135423]
  • Updated dependencies [dafba83]
  • Updated dependencies [c55077e]
  • Updated dependencies [48d4d79]
  • Updated dependencies [a851f37]
    • @shopify/theme-check-common@3.11.0
    • @shopify/theme-check-docs-updater@3.11.0

@shopify/theme-check-docs-updater@3.11.0

07 Mar 16:34
08ab22f
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies [8a0393a]
  • Updated dependencies [0d96194]
  • Updated dependencies [2135423]
  • Updated dependencies [dafba83]
  • Updated dependencies [c55077e]
  • Updated dependencies [48d4d79]
  • Updated dependencies [a851f37]
    • @shopify/theme-check-common@3.11.0

@shopify/theme-check-common@3.11.0

07 Mar 16:33
08ab22f
Compare
Choose a tag to compare

Minor Changes

  • 8a0393a: Theme check to ensure liquid doc param names don't collide with reserved words

    • Theme check will report a warning if param name collides with global liquid objects
    • Theme check will report a warning if param name collides with liquid tags
  • 0d96194: Update MissingRenderSnippetParams to report when alias variable are provided using with/for syntax.

  • 2135423: Update UnrecognizedRenderSnippetParams to report when alias variable are provided using with/for syntax.

  • c55077e: Split ValidRenderSnippetParams theme check into MissingRenderSnippetParams and UnrecognizedRenderSnippetParams. This allows them to be disabled independantly.

  • 48d4d79: Update ValidRenderSnippetParamTypes to report when alias variable are provided using with/for syntax.

  • a851f37: Add DuplicateRenderSnippetParams theme check

    Introduces a new theme check to detect and report duplicate parameters in Liquid render tags. The check:

    • Identifies duplicate parameter names in render snippets
    • Provides suggestions to remove redundant parameters

Patch Changes

  • dafba83: [Internal] Update getSnippetDefinitions and RenderSnippetHoverProvider to account for trimmed newline characters in description and example nodes content.
  • Updated dependencies [de87755]
    • @shopify/liquid-html-parser@2.7.0

@shopify/theme-check-browser@3.11.0

07 Mar 16:33
08ab22f
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies [8a0393a]
  • Updated dependencies [0d96194]
  • Updated dependencies [2135423]
  • Updated dependencies [dafba83]
  • Updated dependencies [c55077e]
  • Updated dependencies [48d4d79]
  • Updated dependencies [a851f37]
    • @shopify/theme-check-common@3.11.0

@shopify/prettier-plugin-liquid@1.9.0

07 Mar 16:33
08ab22f
Compare
Choose a tag to compare

Minor Changes

  • 8ff8959: Adjust LiquidDoc formatting rules for single-line and multi-line examples and descriptions

    • Multi-line content starts on a new line
    • Single-line content is kept on the same line or a new line as it was provided

Patch Changes

  • Updated dependencies [de87755]
    • @shopify/liquid-html-parser@2.7.0

@shopify/liquid-html-parser@2.7.0

07 Mar 16:34
08ab22f
Compare
Choose a tag to compare

Minor Changes

  • de87755: Modify parsing logic to capture leading whitespace on description and example nodes and add a isInline property to indicate whether content was provided inline or on a new line.

@shopify/theme-language-server-node@2.9.1

26 Feb 17:56
b6f65cf
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies [10493c9]
  • Updated dependencies [f130a78]
  • Updated dependencies [1a4482e]
  • Updated dependencies [754f7f6]
  • Updated dependencies [8be7789]
  • Updated dependencies [754f7f6]
    • @shopify/theme-check-node@3.10.0
    • @shopify/theme-language-server-common@2.9.1
    • @shopify/theme-check-docs-updater@3.10.0

@shopify/theme-language-server-common@2.9.1

26 Feb 17:56
b6f65cf
Compare
Choose a tag to compare

Patch Changes

  • 754f7f6: Do not allow liquid doc completion outside snippet files
  • 8be7789: Add hover support for the @description tag
  • Updated dependencies [10493c9]
  • Updated dependencies [10493c9]
  • Updated dependencies [79c9f77]
  • Updated dependencies [f130a78]
  • Updated dependencies [1a4482e]
  • Updated dependencies [5ad43a8]
  • Updated dependencies [79c9f77]
  • Updated dependencies [754f7f6]
  • Updated dependencies [dc8c9fd]
  • Updated dependencies [beccb69]
  • Updated dependencies [9563715]
    • @shopify/liquid-html-parser@2.6.0
    • @shopify/theme-check-common@3.10.0

@shopify/theme-language-server-browser@2.9.1

26 Feb 17:56
b6f65cf
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies [754f7f6]
  • Updated dependencies [8be7789]
    • @shopify/theme-language-server-common@2.9.1

@shopify/theme-check-node@3.10.0

26 Feb 17:56
b6f65cf
Compare
Choose a tag to compare

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
  • 754f7f6: New theme check to ensure doc tag is only used in snippet files

Patch Changes

  • Updated dependencies [10493c9]
  • Updated dependencies [f130a78]
  • Updated dependencies [1a4482e]
  • Updated dependencies [5ad43a8]
  • Updated dependencies [79c9f77]
  • Updated dependencies [754f7f6]
  • Updated dependencies [dc8c9fd]
  • Updated dependencies [beccb69]
    • @shopify/theme-check-common@3.10.0
    • @shopify/theme-check-docs-updater@3.10.0