json-sort-cli 2.1.5 → 2.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -29
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -110,69 +110,69 @@ Accidental version bump during migration to sourcehut. Sorry about that.
|
|
|
110
110
|
|
|
111
111
|
## 1.11.0 (2019-01-20)
|
|
112
112
|
|
|
113
|
-
-
|
|
114
|
-
-
|
|
113
|
+
- Various documentation and setup tweaks after we migrated to monorepo
|
|
114
|
+
- Setup refresh: updated dependencies and all config files using automated tools
|
|
115
115
|
|
|
116
116
|
## 1.10.0 (2018-12-26)
|
|
117
117
|
|
|
118
|
-
-
|
|
119
|
-
-
|
|
120
|
-
-
|
|
121
|
-
-
|
|
122
|
-
-
|
|
123
|
-
-
|
|
118
|
+
- Added `-s` (`--silent`) flag ([294dc8b](https://gitlab.com/codsen/codsen/tree/master/packages/json-sort-cli/commits/294dc8b))
|
|
119
|
+
- Address single/plural cases in unsortable files ([345d3d1](https://gitlab.com/codsen/codsen/tree/master/packages/json-sort-cli/commits/345d3d1))
|
|
120
|
+
- Exclude DS_Store and other system files by default ([02f0b31](https://gitlab.com/codsen/codsen/tree/master/packages/json-sort-cli/commits/02f0b31))
|
|
121
|
+
- Labeling improvement ([f81653d](https://gitlab.com/codsen/codsen/tree/master/packages/json-sort-cli/commits/f81653d))
|
|
122
|
+
- Setup improvements, unit tests and deep sort ([5dff488](https://gitlab.com/codsen/codsen/tree/master/packages/json-sort-cli/commits/5dff488))
|
|
123
|
+
- Silent mode, more unit tests and improved reporting ([f43fcca](https://gitlab.com/codsen/codsen/tree/master/packages/json-sort-cli/commits/f43fcca))
|
|
124
124
|
|
|
125
125
|
## 1.9.0 (2018-08-19)
|
|
126
126
|
|
|
127
127
|
- 💥 Temporarily removing the `nyc` because it broke the ava builds after switching to Babel v.7
|
|
128
|
-
-
|
|
128
|
+
- Updated all dependencies and refreshed the readme
|
|
129
129
|
|
|
130
130
|
## 1.8.0 (2018-06-11)
|
|
131
131
|
|
|
132
|
-
-
|
|
133
|
-
-
|
|
132
|
+
- `v5` ESLint is sensitive if being called on files that don't exist. Previously we were quite liberal about the locations of unit test files. Our ESLint configs were targeting multiple locations, attempting to find some unit tests. Now this approach will cause errors so we moved all unit test files to `/test/` folder.
|
|
133
|
+
- Also, temporarily removing `ava` ESLint plugin because it broke on ESLin `v.5`.
|
|
134
134
|
|
|
135
135
|
## 1.7.0 (2018-06-11)
|
|
136
136
|
|
|
137
137
|
GitHub sold us out. In the meantime, we:
|
|
138
138
|
|
|
139
|
-
-
|
|
140
|
-
-
|
|
141
|
-
-
|
|
139
|
+
- Migrated to BitBucket (to host repo + perform CI) and Codacy (for code quality audit)
|
|
140
|
+
- Dropped BitHound (RIP) and Travis
|
|
141
|
+
- Removed `package-lock`
|
|
142
142
|
|
|
143
143
|
## 1.6.0 (2018-05-29)
|
|
144
144
|
|
|
145
|
-
-
|
|
145
|
+
- Excluded `.DS_Store` and other system files by default
|
|
146
146
|
|
|
147
147
|
## 1.5.0 (2018-05-27)
|
|
148
148
|
|
|
149
|
-
-
|
|
150
|
-
-
|
|
151
|
-
-
|
|
152
|
-
-
|
|
149
|
+
- Sorts dot files too, as long as they pass the JSON parser and don't contain evil extensions like `yml`, `yaml` or `toml`.
|
|
150
|
+
- Restored `-s`/`--silent` mode. When it's on, only report of two lines is shown: successful and failed counts. When it's off (default), one row per sorted file output after each attempt to sort (successful or not), then the same report of two line in the end is shown.
|
|
151
|
+
- Unit tests for all modes: `--version`, `--help`, `-tabs`.
|
|
152
|
+
- Support for broken JSON files. If the file is broken and parser throws an error, that error will be reported in the report but other files won't be affected by this.
|
|
153
153
|
- 💥 Removed `-d`/`--dry` mode. It's too much hassle to maintain it, after all, the operation performed on files is not deleting anything. Dry mode is normally used for risky operations, to test first. In our case there's no risk. Files come out the same, just with sorted keys.
|
|
154
154
|
|
|
155
155
|
## 1.4.0 (2018-05-23)
|
|
156
156
|
|
|
157
|
-
-
|
|
158
|
-
-
|
|
159
|
-
-
|
|
160
|
-
-
|
|
161
|
-
-
|
|
162
|
-
-
|
|
157
|
+
- Added unit tests. First time ever I pulled off completely async test files, [writen](https://github.com/sindresorhus/tempy) in some random temporary folder somewhere within the system folders. This is first the first CLI app of mine that has proper unit tests.
|
|
158
|
+
- Input is deeply traversed now and all plain objects no matter how deep are sorted.
|
|
159
|
+
- Removed Babel and whole transpiling process.
|
|
160
|
+
- Removed [Listr](https://www.npmjs.com/package/listr) and silent mode option. Silent mode is the only and default mode now.
|
|
161
|
+
- Removed `package-lock.json` and `.editorconfig`
|
|
162
|
+
- Set up [Prettier](https://prettier.io/)
|
|
163
163
|
|
|
164
164
|
## 1.3.0 (2018-01-30)
|
|
165
165
|
|
|
166
|
-
-
|
|
166
|
+
- Added `-s` or `--silent` flag. When enabled, shows only one row's output. Handy when there are many files.
|
|
167
167
|
|
|
168
168
|
## 1.2.0 (2017-12-14)
|
|
169
169
|
|
|
170
|
-
-
|
|
170
|
+
- Now if input contains only folder's name, non-JSON's are filtered-out. Basically, now this CLI is dumb-proofed, you can feed any paths and globs, containing or not containing JSON's.
|
|
171
171
|
|
|
172
172
|
## 1.1.0 (2017-12-11)
|
|
173
173
|
|
|
174
|
-
-
|
|
174
|
+
- Now serving transpiled code, aiming at Node `v.4`
|
|
175
175
|
|
|
176
176
|
## 1.0.0 (2017-10-12)
|
|
177
177
|
|
|
178
|
-
-
|
|
178
|
+
- First public release
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "json-sort-cli",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.6",
|
|
4
4
|
"description": "Command line app to deep sort JSON files, retains package.json special key order",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"app",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"ast-monkey-traverse": "^3.1.
|
|
62
|
+
"ast-monkey-traverse": "^3.1.2",
|
|
63
63
|
"chalk": "^5.1.2",
|
|
64
64
|
"fs-extra": "^10.1.0",
|
|
65
65
|
"globby": "^13.1.2",
|