Skip to content
Open
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
5 changes: 0 additions & 5 deletions .changeset/fix-remote-asset-false-positives.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fix-rename-boundary.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/little-boxes-shave.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/loud-hotels-teach.md

This file was deleted.

10 changes: 0 additions & 10 deletions .changeset/sweet-needles-fetch.md

This file was deleted.

7 changes: 6 additions & 1 deletion packages/codemirror-language-client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @shopify/codemirror-language-client

## 0.7.5

### Patch Changes

- b1bca3f9: Upgrade prettier to v3 (internal)

## 0.7.4

### Patch Changes
Expand Down Expand Up @@ -80,7 +86,6 @@
### Minor Changes

- 73a65e0: Add `{ shouldLint, shouldComplete }` optional params to CodeMirrorLanguageClient's .extension method

- This way linting and completions become optional features that can be turned off / experimented on

- 0ca7963: Add `diagnosticRenderer` and option overrides to public API of CodeMirrorLanguageClient
Expand Down
6 changes: 3 additions & 3 deletions packages/codemirror-language-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shopify/codemirror-language-client",
"version": "0.7.4",
"version": "0.7.5",
"description": "A Language Client for CodeMirror",
"author": "CP Clermont <cp.clermont@shopify.com>",
"homepage": "https://github.com/Shopify/theme-tools/tree/main/packages/codemirror-language-client#readme",
Expand Down Expand Up @@ -51,8 +51,8 @@
"@codemirror/theme-one-dark": "^6.1.2",
"@codemirror/view": "^6.9.2",
"@replit/codemirror-vim": "^6.2.1",
"@shopify/theme-check-docs-updater": "^3.14.0",
"@shopify/theme-language-server-browser": "^2.13.0",
"@shopify/theme-check-docs-updater": "^3.24.0",
"@shopify/theme-language-server-browser": "^2.20.2",
"@shopify/lang-jsonc": "^1.0.1",
"@types/markdown-it": "^13.0.4",
"codemirror": "^6.0.1",
Expand Down
17 changes: 10 additions & 7 deletions packages/liquid-html-parser/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @shopify/liquid-html-parser

## 2.9.2

### Patch Changes

- b1bca3f9: Upgrade prettier to v3 (internal)

## 2.9.1

### Patch Changes
Expand Down Expand Up @@ -59,12 +65,10 @@
- d9dbc265: - Support parsing incomplete content_for tags in completion context
- Support content_for param completion
- 2db3047f: Support `render` param completion based on liquid docs

- If you defined liquid doc parameters on a snippet, they will appear as completion options
for parameters when rendered by a `render` tag.

- 261c2958: Support liquid doc inner tags completion + hover

- `@param`, `@description`, `@example` will support code completion
whenever being typed inside of `doc` tag
- `@param`, `@description`, `@example` can be hovered to show their
Expand Down Expand Up @@ -181,17 +185,17 @@
- 636895f: Add support for unclosed HTML Element nodes inside branching code

**Breaking changes**

- `HtmlDanglingMarkerOpen` nodes are folded into `HtmlElement` nodes

- You can identify a node without its closing tag by looking at `blockEndPosition`

```js
node.source.slice(node.blockEndPosition.start, node.blockEndPosition.end) === '';
node.source.slice(
node.blockEndPosition.start,
node.blockEndPosition.end,
) === "";
```

**Why the change**?

- `HtmlDanglingMarkerOpen` nodes did not have children, since we added support for nodes without closing markers, we removed that node type entirely.

### Minor Changes
Expand All @@ -209,7 +213,6 @@
### Minor Changes

- 0d71145: Add `nodes` property to RawMarkupKind to allow for subtree visiting

- Partially breaking in the sense where Liquid (not LiquidHTML) syntax errors will be reported from within scripts, styles, and JSON blobs

## 1.0.0
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.9.1",
"version": "2.9.2",
"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: 8 additions & 3 deletions packages/prettier-plugin-liquid/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @shopify/prettier-plugin-liquid

## 1.10.2

### Patch Changes

- b1bca3f9: Upgrade prettier to v3 (internal)
- Updated dependencies [b1bca3f9]
- @shopify/liquid-html-parser@2.9.2

## 1.10.1

### Patch Changes
Expand Down Expand Up @@ -55,7 +63,6 @@
### Minor Changes

- 8ff89592: 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

Expand Down Expand Up @@ -200,7 +207,6 @@
### Minor Changes

- a07a064: Add `captureWhitespaceSensitivity` configuration option.

- When `strict` (default), behaves as before: treats the child nodes of `{% capture var %}` child nodes as strictly whitespace sensitive, therefore does not reformat contents.
- When `ignore` (new), makes it behave like tags that are not whitespace sensitive. Warning: blindly running this will alter the string value of variables captured by the capture tag.

Expand Down Expand Up @@ -367,7 +373,6 @@
```

The heuristic we're going for is the following:

- Only supported inside a LiquidBranch (if,else,when)
- At most 2 of the same type (2 dangling open, or 2 dangling close)

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.10.1",
"version": "1.10.2",
"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 @@ -59,7 +59,7 @@
"tsconfig-paths": "^3.14.1"
},
"dependencies": {
"@shopify/liquid-html-parser": "^2.9.1",
"@shopify/liquid-html-parser": "^2.9.2",
"html-styles": "^1.0.0"
}
}
22 changes: 10 additions & 12 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.24.0

### Patch Changes

- Updated dependencies [346cc150]
- Updated dependencies [2df8b65e]
- Updated dependencies [bc8002ba]
- Updated dependencies [b1bca3f9]
- @shopify/theme-check-common@3.24.0

## 3.23.1

### Patch Changes
Expand Down Expand Up @@ -442,7 +452,6 @@
- 03b41e1: Add support for the schemas manifest on Shopify/theme-liquid-docs

Shopify/theme-liquid-docs now supports composable JSON schemas (with relative paths). To solve the `blocks/*.liquid` file match JSON schema overload depending on the context (`app` or `theme`), we defined two manifests that describe the schemas required by your solution and define the fileMatch rules:

- [manifest_theme.json](https://github.com/Shopify/theme-liquid-docs/blob/main/schemas/manifest_theme.json)
- [manifest_theme_app_extension.json](https://github.com/Shopify/theme-liquid-docs/blob/main/schemas/manifest_theme.json)

Expand Down Expand Up @@ -544,7 +553,6 @@
What is is: A TypeScript rewrite of [Theme Check](https://github.com/Shopify/theme-check).

But... _why_? A couple of reasons:

- To lint Liquid files, we prefer _one_ Abstract Syntax Tree (AST) per file. Not one Liquid AST _and_ one HTML AST.
- Theme Check Ruby had weird duplicated checks because of that (such as `ParserBlockingJavaScript` and `ParserBlockingScriptTag`)
- For that we reused the `@shopify/liquid-html-parser` we wrote for the prettier plugin.
Expand Down Expand Up @@ -638,7 +646,6 @@
### Minor Changes

- 2cf7a11: Rename and alias a couple of checks

- `DeprecatedFilters` -> `DeprecatedFilter`
- `DeprecatedTags` -> `DeprecatedTag`
- Alias `LiquidHTMLSyntaxError` with `SyntaxError` and `HtmlParsingError`
Expand Down Expand Up @@ -808,7 +815,6 @@
- 8e76424: Add support for `.theme-check.yml` config files

**New features**:

- Developers can write their own checks and publish them to [npm](https://npmjs.com)

Modules that follow the `@scope/theme-check-*` or `theme-check-*` naming conventions are automatically loaded.
Expand All @@ -825,16 +831,13 @@
- `theme-check:theme-app-extension` for theme app extensions

**Removed features**:

- `include_categories: []`
- `exclude_categories: []`

**Replaced features**:

- `require: []` this can be used to load unconventional (or private) `theme-check-js` checks. Ruby checks are not supported.

**Breaking changes**:

- Custom checks written in Ruby won't work Theme Check in TypeScript
- The `*` (star) glob in `ignore` configurations does not capture the forward slash (`/`) unless at the end of the pattern.

Expand Down Expand Up @@ -939,9 +942,7 @@
- 71e6b44: Add support for fixes and suggestions

**New**: `context.report` now accepts two new properties:

- `fix: Fixer`, accepts a callback that is given a corrector and produces transformations that are deemed **safe to apply without confirmation** on the initial document.

- JSON checks will receive a [`JSONCorrector` (API)](packages/common/src/fixes/correctors/json-corrector.ts)
- LiquidHTML checks will receive a [`StringCorrector` (API)](packages/common/src/fixes/correctors/string-corrector)

Expand Down Expand Up @@ -996,7 +997,6 @@
Under the hood, corrector calls will be converted into a list of `Fix` objects.

One can implement a `FixApplicator` (a async function that takes a `SourceCode` and `Fix` objects) to apply fixes in different contexts.

- In Node.js, we'll implement a `FixApplicator` that applies the fixes to the initial file and then save the changes to disk.
- In the Language Server, we'll implement `FixApplicator`s that turn the `Fix`es into `TextEdit` objects.

Expand Down Expand Up @@ -1059,14 +1059,12 @@
- f4a2f27: Simplify public API

Breaking changes:

- `Theme` is `SourceCode<S>[]` instead of `{ files: Map<string, SourceCode<S>> }`
- `SourceCode` no longer has a `relativePath` property
- `toSourceCode` no longer takes a `relativePath` as argument
- `Config` has a `root` property

- 37fc98a: Add dependencies to public API

- `fileExists(absolutePath: string): Promise<boolean>` returns true when a file exists
- `getDefaultTranslations(): Promise<JSONObject>` returns the parsed JSON contents of the default translations file

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.23.1",
"version": "3.24.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": "3.23.1"
"@shopify/theme-check-common": "3.24.0"
}
}
Loading