Skip to content

Fix GraphQL empty selection set with comments - #20504

Merged
fisker merged 3 commits into
prettier:3.10.xfrom
fisker:selections-dangling-comments
Nov 12, 2026
Merged

fisker merged 3 commits into
prettier:3.10.xfrom
fisker:selections-dangling-comments

Conversation

@fisker

@fisker fisker commented Nov 12, 2026

Copy link
Copy Markdown
Member

Description

Fixes #20502

Checklist

  • I’ve added tests to confirm my change works.
  • (If changing the API or CLI) I’ve documented the changes I’ve made (in the docs/ directory).
  • (If the change is user-facing) I’ve added my changes to changelog_unreleased/*/XXXX.md file following changelog_unreleased/TEMPLATE.md.
  • I’ve read the contributing guidelines.
  • I did not use AI to generate this PR.
  • (If the above is not checked) I have reviewed the AI-generated content before submitting.

@pkg-pr-new

pkg-pr-new Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

yarn add https://pkg.pr.new/@prettier/plugin-hermes@20504.tgz
yarn add https://pkg.pr.new/@prettier/plugin-oxc@20504.tgz
yarn add https://pkg.pr.new/@prettier/plugin-yuku@20504.tgz
yarn add https://pkg.pr.new/prettier@20504.tgz

commit: 5253027

@fisker
fisker marked this pull request as ready for review November 12, 2026 06:52
@fisker
fisker merged commit 190cbd5 into prettier:3.10.x Nov 12, 2026
29 checks passed
@fisker
fisker deleted the selections-dangling-comments branch November 12, 2026 06:59
robbevp pushed a commit to robbevp/website-robbevanpetegem that referenced this pull request Nov 12, 2026
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [prettier](https://prettier.io) ([source](https://github.com/prettier/prettier)) | devDependencies | minor | [`3.9.10` -> `3.10.1`](https://renovatebot.com/diffs/npm/prettier/3.9.10/3.10.1) |

---

### Release Notes

<details>
<summary>prettier/prettier (prettier)</summary>

### [`v3.10.1`](https://github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#3101)

[Compare Source](prettier/prettier@3.10.0...3.10.1)

[diff](prettier/prettier@3.10.0...3.10.1)

##### GraphQL: Fix empty selection set with comments ([#&#8203;20504](prettier/prettier#20504) by [@&#8203;fisker](https://github.com/fisker))

<!-- prettier-ignore -->

```gql
```

### [`v3.10.0`](https://github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#Prettier-3100)

[Compare Source](prettier/prettier@3.9.10...3.10.0)

Error: Comment "x" was not printed. Please report this error!

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS42MS4wIiwidXBkYXRlZEluVmVyIjoiNDEuNjEuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Reviewed-on: https://git.robbevp.be/robbevp/website-robbevanpetegem/pulls/521
sys-support pushed a commit to 3caravelle/renovate that referenced this pull request Nov 16, 2026
This PR contains the following updates:

| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [prettier](https://prettier.io) ([source](https://github.com/prettier/prettier)) | [`3.9.10` → `3.10.1`](https://renovatebot.com/diffs/npm/prettier/3.9.10/3.10.1) | ![age](https://developer.mend.io/api/mc/badges/age/npm/prettier/3.10.1?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/prettier/3.9.10/3.10.1?slim=true) |

---

### Release Notes

<details>
<summary>prettier/prettier (prettier)</summary>

### [`v3.10.1`](https://github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#3101)

[Compare Source](prettier/prettier@3.10.0...3.10.1)

[diff](prettier/prettier@3.10.0...3.10.1)

##### GraphQL: Fix empty selection set with comments ([#&#8203;20504](prettier/prettier#20504) by [@&#8203;fisker](https://github.com/fisker))

<!-- prettier-ignore -->

```gql

# Input
fragment F on Query {
  # x
}

# Prettier 3.10.0
Error: Comment "x" was not printed. Please report this error!

# Prettier 3.10.1
fragment F on Query {
  # x
}
```

### [`v3.10.0`](https://github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#3100)

[Compare Source](prettier/prettier@3.9.10...3.10.0)

[diff](prettier/prettier@3.9.10...3.10.0)

🔗 [Release Notes](https://prettier.io/blog/2026/11/11/3.10.0)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi44MS4zIiwidXBkYXRlZEluVmVyIjoiNDIuODEuMyIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Reviewed-on: https://git.3caravelle.net/3Caravelle/renovate/pulls/65
Co-authored-by: Renovate Bot <renovate-bot@3caravelle.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant