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
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased
🐛 Bugfixes
* Setting `sortArrays` now sorts arrays with mixed item types deterministically: numbers (numerically), booleans and strings first, mappings and nested lists keep their order at the end. Before, such arrays were left in an arbitrary order
* Setting `sortOrderReverse` now also applies to the default sort and to the keys following the keywords of a custom sort. Before, it only worked with `useCustomSortRecursively`
* (closes [#53](https://github.com/pascalre/vscode-yaml-sort/issues/53)) Sort an indented selection, e.g. a part of a list or the children of a nested key, without having to unindent it first. The selection keeps its indentation
* Custom sort no longer removes number, boolean and empty mapping values of custom sort keywords (`apiVersion: 3` became `apiVersion: `), and also orders keywords whose value is `0`, `false`, `null` or an empty string. Documents containing only comments can be sorted now
* (closes [#180](https://github.com/pascalre/vscode-yaml-sort/issues/180)) "Format Document" and format on save no longer apply their changes twice. The formatter now only returns its edits to VS Code and always processes the whole document it was asked to format, instead of the active editor or its selection
* Abort sorting when one of several yaml documents cannot be sorted. Previously the failing document was silently dropped, and a selection that could not be sorted (e.g. an indented section, refs [#53](https://github.com/pascalre/vscode-yaml-sort/issues/53)) was replaced with nothing. The success message is now only shown after the edits were applied
* Keep octal values such as `0755` when the same digits appear earlier in the document. Previously the first occurrence was substituted instead of the matched value, so `z: 0755` became `z: 755`
Expand All @@ -15,6 +19,9 @@

✨ Feature
* (closes [#204](https://github.com/pascalre/vscode-yaml-sort/issues/204)) Add setting `nullStyle` to define how null values are printed (`null`, `Null`, `NULL`, `~` or empty)
📦 Dependencies
* Move `@types/js-yaml` and `@vscode/test-electron` to `devDependencies`, so they are no longer shipped with the extension

# 6.6.4 - Feb 9, 2026
📦 Dependencies
* Update dependencies to latest versions
Expand Down
45 changes: 43 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,13 @@
"watch": "tsc -watch -p ./"
},
"devDependencies": {
"@types/js-yaml": "^4.0.6",
"@types/mocha": "^10.0.4",
"@types/node": "^22.13.10",
"@types/sinon": "^17.0.3",
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0",
"@vscode/test-electron": "^2.1.5",
"coveralls": "3.1.1",
"dependency-cruiser": "^17.0.1",
"eslint": "^8.57.0",
Expand All @@ -301,9 +303,7 @@
"typescript-require": "0.3.0"
},
"dependencies": {
"@types/js-yaml": "^4.0.6",
"@types/vscode": "^1.98.0",
"@vscode/test-electron": "^2.1.5",
"cloudformation-js-yaml-schema": "^0.4.2",
"glob": "^14.0.3",
"homeassistant-js-yaml-schema": "^1.1.0",
Expand Down
Loading
Loading