Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build(deps): Bump yaml-unist-parser from 1.3.0 to 1.3.1 #9169

Merged
merged 4 commits into from Sep 10, 2020
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
40 changes: 27 additions & 13 deletions changelog_unreleased/yaml/pr-9143.md
@@ -1,27 +1,41 @@
#### Fix printing doubles a blank line before a comment (#9143 by @sosukesuzuki)
#### Fix comment printing in mapping and sequence (#9143, #9169 by @sosukesuzuki, @fisker, fix in `yaml-unist-parser` by @ikatyang)

<!-- prettier-ignore -->
```yaml
# Input
- foo: 0
bar: 1
- a
# Should indent
- bb

# baz: 2
- quux: 3
---
- a: a
b: b

# Should print one empty line before
- another

# Prettier stable
- foo: 0
bar: 1
- a
# Should indent
- bb

---
- a: a
b: b


# baz: 2
- quux: 3
# Should print one empty line before
- another

# Prettier master
- foo: 0
bar: 1
- a
# Should indent
- bb

# baz: 2
- quux: 3
---
- a: a
b: b

# Should print one empty line before
- another
```
2 changes: 1 addition & 1 deletion cspell.json
Expand Up @@ -401,7 +401,7 @@
"ignoreRegExpList": [
"<!-- prettier-ignore -->\\n(`{3,})\\w*\\n[\\s\\S]+?\\1",
"\\[(\\*{2})?@[-\\w]+?\\1\\]",
"by @[-\\w]+",
"by @[-\\w]+(?:, @[-\\w]+)?",
"\\[`\\w+`\\]",
"ve{2,}r{2,}y",
"ve+r+y+long\\w*",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -81,7 +81,7 @@
"unicode-regex": "3.0.0",
"unified": "9.2.0",
"vnopts": "1.0.2",
"yaml-unist-parser": "1.3.0"
"yaml-unist-parser": "1.3.1"
},
"devDependencies": {
"@babel/core": "7.11.6",
Expand Down
4 changes: 2 additions & 2 deletions tests/yaml/comment/__snapshots__/jsfmt.spec.js.snap
Expand Up @@ -357,7 +357,7 @@ none(2):
=====================================output=====================================
before:

# before.comment
# before.comment
after:
# after.comment

Expand Down Expand Up @@ -512,7 +512,7 @@ printWidth: 80
=====================================output=====================================
- before

# before.comment
# before.comment
- after
# after.comment

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Expand Up @@ -8477,10 +8477,10 @@ yallist@^4.0.0:
resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72"
integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==

yaml-unist-parser@1.3.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/yaml-unist-parser/-/yaml-unist-parser-1.3.0.tgz#f64f1af96171fe4d7eb462e94225d42a6009b60e"
integrity sha512-kF1OS6fi9BzqX+vVC5hp+R5mmrHLH4f19Nx8fAwb08VqUwgFDBPOOu24VZO06nSOur13CGUTgHuaw5RIzpRnCw==
yaml-unist-parser@1.3.1:
version "1.3.1"
resolved "https://registry.yarnpkg.com/yaml-unist-parser/-/yaml-unist-parser-1.3.1.tgz#4305a54d8f8750dfff782bb998ff93d0da538d1a"
integrity sha512-4aHBMpYcnByF8l2OKj5hlBJlxSYIMON8Z1Hm57ymbBL4omXMlGgY+pEf4Di6h2qNT8ZG8seTVvAQYNOa7CZ9eA==
dependencies:
lines-and-columns "^1.1.6"
tslib "^1.10.0"
Expand Down