-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
25 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,136 +1,21 @@ | ||
# Change Log | ||
All notable changes to the "sort*js*object*keys" extension will be documented in this file. | ||
|
||
### [0.0.1] | ||
### [1.0.0] | ||
|
||
* Initial release of a testing version | ||
|
||
* Add `Sort JS object keys` command | ||
|
||
* Add `Sort JS object keys (Reverse)` command | ||
|
||
### [0.0.3] | ||
|
||
* Support ES6 shorthand object | ||
|
||
e.g: | ||
```js | ||
{ | ||
user, | ||
password | ||
} | ||
``` | ||
Will be sorted to | ||
```js | ||
{ | ||
password: password, | ||
user: user | ||
} | ||
``` | ||
|
||
* Support value which is multiple lines or have space in it. | ||
* Use babylon + babel/generator to parse and genertate the code | ||
|
||
e.g: | ||
```js | ||
{ | ||
b: new String('b') | ||
.length, | ||
a: new String('a') | ||
} | ||
``` | ||
Will be sorted to | ||
```js | ||
{ | ||
a: new String('a'), | ||
b: new String('b').length | ||
} | ||
``` | ||
* Will automatically add trailing comma if the prevs object has trailing comma | ||
* Support all the existing feature except: | ||
* Auto add tailing comma (Too much bugs for this feature) | ||
* End line comments (Babel can't parse it correctly) | ||
|
||
e.g: | ||
```js | ||
{ | ||
b: 'b', | ||
a: 'a' | ||
} | ||
``` | ||
Will be sorted to | ||
```js | ||
{ | ||
a: 'a', | ||
b: 'b' | ||
} | ||
``` | ||
But this object which already has trailing comma: | ||
```js | ||
{ | ||
b: 'b', | ||
a: 'a', | ||
} | ||
``` | ||
Will be sorted to | ||
```js | ||
{ | ||
a: 'a', | ||
b: 'b', | ||
} | ||
``` | ||
### [0.0.6] | ||
### [0.0.x] | ||
|
||
* Support Array in object | ||
|
||
* Auto indent object if it is not in the first collumn | ||
|
||
* Auto use ES6 short hand value | ||
|
||
### [0.0.7] | ||
|
||
* Support line comments in object | ||
|
||
e.g: | ||
```js | ||
{ | ||
b: 2, | ||
// some comment | ||
a: 1, | ||
// another comment | ||
d: 5, | ||
c: 4, | ||
} | ||
``` | ||
Will be sorted to | ||
```js | ||
{ | ||
// some comment | ||
a: 1, | ||
b: 2, | ||
c: 4, | ||
// another comment | ||
d: 5, | ||
} | ||
``` | ||
|
||
### [0.0.8] | ||
* Initial release of a testing version | ||
|
||
* Fix an indent not correct bug | ||
* Add `Sort JS object keys` command | ||
|
||
### [0.0.9] | ||
* Add `Sort JS object keys (Reverse)` command | ||
|
||
* Support \' in string | ||
* Lots of feature in test version... | ||
|
||
e.g: | ||
```js | ||
{ | ||
b: 'test \'', | ||
c: 'test \' test', | ||
a: '\' test', | ||
} | ||
``` | ||
Will be sorted to | ||
```js | ||
{ | ||
a: '\' test', | ||
b: 'test \'', | ||
c: 'test \' test', | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters