Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions .changeset/app-block-paths-in-block-tags.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/attr-equals-whitespace.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/cyclic-extends.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/docs-cache-atomic-writes.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/graph-rebuild-after-error.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/liquid-unclosed-block-end.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/offense-end-at-eof.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/standalone-section-tag.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/trailing-pipes-autofix.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/web-components-without-assets.md

This file was deleted.

16 changes: 16 additions & 0 deletions packages/liquid-html-parser/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# @shopify/liquid-html-parser

## 2.11.0

### Minor Changes

- 286b04fb: Accept canonical app block paths in `{% block %}` tags.

The parser accepts `shopify://apps/<app>/blocks/<handle>/<uuid>` as a block type and keeps rejecting malformed app paths. `LiquidSyntaxError` reports arguments and content on app block paths, because app blocks render with the settings their app provides. `block.name` stays allowed.

App block paths do not produce local theme-file document links or dependencies in the theme graph.

### Patch Changes

- 84a458be: Parse HTML attributes with whitespace around `=` (`data-ratio = '{{ r }}'`, `srcset= "…"`) as one attribute, as browsers do, instead of splitting the value into junk attributes.
- c0ae8785: Fix the end of an unclosed block in `{% liquid %}`. It ended past the end of the template, as if its end tag came after the last line. It now ends where the last line does, as an unclosed block outside `{% liquid %}` does.
- af297bab: Parse `section` as a standalone tag. Removes the hybrid block form, whose forward scan for `{% endsection %}` made files with many `section` tags parse in quadratic time.

## 2.10.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/liquid-html-parser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shopify/liquid-html-parser",
"version": "2.10.2",
"version": "2.11.0",
"description": "Liquid HTML parser by Shopify",
"author": "CP Clermont <cp.clermont@shopify.com>",
"homepage": "https://github.com/Shopify/theme-tools/tree/main/packages/liquid-html-parser#readme",
Expand Down
11 changes: 11 additions & 0 deletions packages/prettier-plugin-liquid/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @shopify/prettier-plugin-liquid

## 1.11.3

### Patch Changes

- Patch bump because it depends on @shopify/liquid-html-parser
- Updated dependencies [286b04fb]
- Updated dependencies [84a458be]
- Updated dependencies [c0ae8785]
- Updated dependencies [af297bab]
- @shopify/liquid-html-parser@2.11.0

## 1.11.2

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/prettier-plugin-liquid/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shopify/prettier-plugin-liquid",
"version": "1.11.2",
"version": "1.11.3",
"description": "Prettier Liquid/HTML plugin by Shopify",
"author": "CP Clermont <cp.clermont@shopify.com>",
"homepage": "https://github.com/Shopify/theme-tools/tree/main/packages/prettier-plugin-liquid#readme",
Expand Down Expand Up @@ -61,7 +61,7 @@
"tsconfig-paths": "^3.14.1"
},
"dependencies": {
"@shopify/liquid-html-parser": "workspace:^2.10.2",
"@shopify/liquid-html-parser": "workspace:^2.11.0",
"html-styles": "^1.0.0"
}
}
10 changes: 10 additions & 0 deletions packages/theme-check-browser/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @shopify/theme-check-browser

## 3.31.0

### Patch Changes

- Updated dependencies [286b04fb]
- Updated dependencies [d9c843c3]
- Updated dependencies [af297bab]
- Updated dependencies [c81fc198]
- @shopify/theme-check-common@3.31.0

## 3.30.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/theme-check-browser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shopify/theme-check-browser",
"version": "3.30.1",
"version": "3.31.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"license": "MIT",
Expand All @@ -26,6 +26,6 @@
"type-check": "tsc --noEmit"
},
"dependencies": {
"@shopify/theme-check-common": "workspace:3.30.1"
"@shopify/theme-check-common": "workspace:3.31.0"
}
}
21 changes: 21 additions & 0 deletions packages/theme-check-common/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# @shopify/theme-check-common

## 3.31.0

### Minor Changes

- 286b04fb: Accept canonical app block paths in `{% block %}` tags.

The parser accepts `shopify://apps/<app>/blocks/<handle>/<uuid>` as a block type and keeps rejecting malformed app paths. `LiquidSyntaxError` reports arguments and content on app block paths, because app blocks render with the settings their app provides. `block.name` stays allowed.

App block paths do not produce local theme-file document links or dependencies in the theme graph.

### Patch Changes

- d9c843c3: Fix the line and character of an offense that ends at the end of a file. They were one character short, or on the previous line when the file ends with a newline.
- af297bab: Parse `section` as a standalone tag. Removes the hybrid block form, whose forward scan for `{% endsection %}` made files with many `section` tags parse in quadratic time.
- c81fc198: Fix the autofix for a filter chain that ends in several pipes (`{{ x | upcase | | }}`): LiquidHTMLSyntaxError now reports one trailing-pipe offense that removes them all, instead of two overlapping fixes that couldn't be applied together.
- Updated dependencies [286b04fb]
- Updated dependencies [84a458be]
- Updated dependencies [c0ae8785]
- Updated dependencies [af297bab]
- @shopify/liquid-html-parser@2.11.0

## 3.30.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/theme-check-common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shopify/theme-check-common",
"version": "3.30.1",
"version": "3.31.0",
"license": "MIT",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -26,7 +26,7 @@
"type-check": "tsc --noEmit"
},
"dependencies": {
"@shopify/liquid-html-parser": "workspace:2.10.2",
"@shopify/liquid-html-parser": "workspace:2.11.0",
"cross-fetch": "^4.0.0",
"jsonc-parser": "^3.2.0",
"line-column": "^1.0.2",
Expand Down
11 changes: 11 additions & 0 deletions packages/theme-check-docs-updater/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @shopify/theme-check-docs-updater

## 3.31.0

### Patch Changes

- fca4a62b: Update the docs cache as a whole. Each update downloads into a new folder and swaps it in, so a failed download keeps the old docs and is retried on the next run, and files removed upstream no longer linger.
- Updated dependencies [286b04fb]
- Updated dependencies [d9c843c3]
- Updated dependencies [af297bab]
- Updated dependencies [c81fc198]
- @shopify/theme-check-common@3.31.0

## 3.30.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/theme-check-docs-updater/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shopify/theme-check-docs-updater",
"version": "3.30.1",
"version": "3.31.0",
"description": "Scripts to initialize theme-check data with assets from the theme-liquid-docs repo.",
"main": "dist/index.js",
"author": "Albert Chu <albert.chu@shopify.com>",
Expand Down Expand Up @@ -30,7 +30,7 @@
"type-check": "tsc --noEmit"
},
"dependencies": {
"@shopify/theme-check-common": "workspace:^3.30.1",
"@shopify/theme-check-common": "workspace:^3.31.0",
"env-paths": "^2.2.1",
"node-fetch": "^2.6.11"
},
Expand Down
26 changes: 26 additions & 0 deletions packages/theme-check-node/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# @shopify/theme-check-node

## 3.31.0

### Minor Changes

- 286b04fb: Accept canonical app block paths in `{% block %}` tags.

The parser accepts `shopify://apps/<app>/blocks/<handle>/<uuid>` as a block type and keeps rejecting malformed app paths. `LiquidSyntaxError` reports arguments and content on app block paths, because app blocks render with the settings their app provides. `block.name` stays allowed.

App block paths do not produce local theme-file document links or dependencies in the theme graph.

### Patch Changes

- 04110ed6: Report configs that extend each other instead of hanging while resolving them.
- Updated dependencies [286b04fb]
- Updated dependencies [84a458be]
- Updated dependencies [fca4a62b]
- Updated dependencies [c0ae8785]
- Updated dependencies [d9c843c3]
- Updated dependencies [af297bab]
- Updated dependencies [c81fc198]
- Updated dependencies [02380e2f]
- @shopify/liquid-html-parser@2.11.0
- @shopify/theme-check-common@3.31.0
- @shopify/theme-graph@0.3.6
- @shopify/theme-check-docs-updater@3.31.0

## 3.30.1

### Patch Changes
Expand Down
10 changes: 5 additions & 5 deletions packages/theme-check-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shopify/theme-check-node",
"version": "3.30.1",
"version": "3.31.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"author": "CP Clermont <cp.clermont@shopify.com>",
Expand Down Expand Up @@ -33,10 +33,10 @@
"type-check": "tsc --noEmit"
},
"dependencies": {
"@shopify/liquid-html-parser": "workspace:2.10.2",
"@shopify/theme-check-common": "workspace:3.30.1",
"@shopify/theme-check-docs-updater": "workspace:3.30.1",
"@shopify/theme-graph": "workspace:^0.3.5",
"@shopify/liquid-html-parser": "workspace:2.11.0",
"@shopify/theme-check-common": "workspace:3.31.0",
"@shopify/theme-check-docs-updater": "workspace:3.31.0",
"@shopify/theme-graph": "workspace:^0.3.6",
"glob": "^8.0.3",
"vscode-uri": "^3.0.7",
"yaml": "^2.8.3"
Expand Down
20 changes: 20 additions & 0 deletions packages/theme-graph/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# shopify/theme-graph

## 0.3.6

### Patch Changes

- 286b04fb: Accept canonical app block paths in `{% block %}` tags.

The parser accepts `shopify://apps/<app>/blocks/<handle>/<uuid>` as a block type and keeps rejecting malformed app paths. `LiquidSyntaxError` reports arguments and content on app block paths, because app blocks render with the settings their app provides. `block.name` stays allowed.

App block paths do not produce local theme-file document links or dependencies in the theme graph.

- 02380e2f: Build the theme graph for a theme without an `assets` folder. `getWebComponentMap` used to reject, so the language server never had a graph for that theme, even after the folder was created.
- Updated dependencies [286b04fb]
- Updated dependencies [84a458be]
- Updated dependencies [c0ae8785]
- Updated dependencies [d9c843c3]
- Updated dependencies [af297bab]
- Updated dependencies [c81fc198]
- @shopify/liquid-html-parser@2.11.0
- @shopify/theme-check-common@3.31.0

## 0.3.5

### Patch Changes
Expand Down
8 changes: 4 additions & 4 deletions packages/theme-graph/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shopify/theme-graph",
"version": "0.3.5",
"version": "0.3.6",
"description": "Shopify Theme Graph as a data structure",
"author": "CP Clermont <cp.clermont@shopify.com>",
"homepage": "https://github.com/Shopify/theme-tools/tree/main/packages/theme-graph#readme",
Expand Down Expand Up @@ -29,14 +29,14 @@
"type-check": "tsc --noEmit"
},
"dependencies": {
"@shopify/liquid-html-parser": "workspace:^2.10.2",
"@shopify/theme-check-common": "workspace:^3.30.1",
"@shopify/liquid-html-parser": "workspace:^2.11.0",
"@shopify/theme-check-common": "workspace:^3.31.0",
"acorn": "^8.14.1",
"acorn-walk": "^8.3.4",
"vscode-uri": "^3.0.7"
},
"devDependencies": {
"@shopify/theme-check-node": "workspace:^3.30.1",
"@shopify/theme-check-node": "workspace:^3.31.0",
"@types/node": "^22.18.8"
}
}
8 changes: 8 additions & 0 deletions packages/theme-language-server-browser/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @shopify/theme-language-server-browser

## 2.23.2

### Patch Changes

- Updated dependencies [286b04fb]
- Updated dependencies [b9a862fb]
- @shopify/theme-language-server-common@2.23.2

## 2.23.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/theme-language-server-browser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shopify/theme-language-server-browser",
"version": "2.23.1",
"version": "2.23.2",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"author": "CP Clermont <cp.clermont@shopify.com>",
Expand All @@ -27,7 +27,7 @@
"type-check": "tsc --noEmit"
},
"dependencies": {
"@shopify/theme-language-server-common": "workspace:2.23.1",
"@shopify/theme-language-server-common": "workspace:2.23.2",
"vscode-languageserver": "^8.0.2"
}
}
Loading
Loading