0.11.0
This commit is contained in:
1 parent
93c8270eee
commit
ef531274f7
3 files changed
+54
-2
No files matched your search
@@ -1,3 +1,55 @@
|
||||
# 0.11.0
|
||||
|
||||
[link](https://github.com/jlongster/prettier/compare/0.0.10...0.11.0)
|
||||
|
||||
Now using minor versions instead of patch versions for the releases.
|
||||
|
||||
* Swap quotes (#355)
|
||||
* Drop jsesc (#357)
|
||||
* Use a Symbol instead of the private dep (#359)
|
||||
* Add parens for default export FunctionExpressions (#345)
|
||||
* Fix export extension output (#361)
|
||||
* Exit with an error if an unknown CLI option is passed (#365)
|
||||
* Warn if using deprecated CLI options (#364)
|
||||
* s/jscodefmt/prettier/ (#370)
|
||||
* Fix CLI options (#369)
|
||||
* Fix some parens cases for UpdateExpressions (#381)
|
||||
* Output strings with the minimum amount of escaped quotes (#390)
|
||||
* Ignore EmptyStatement inside of switch case (#391)
|
||||
* Support multiple standalones in import (#389)
|
||||
* Fix missing semi-colon in for loop and var body (#388)
|
||||
* Fix empty labels (#383)
|
||||
* Fix forced trailing comma (#382)
|
||||
* Empty switch should not have an empty line (#384)
|
||||
* add formatAST() for formatting ASTs directly (#393)
|
||||
* Fix class extends parenthesis (#396)
|
||||
* Fix class inside of binary expression missing parenthesis (#397)
|
||||
* Fix parenthesis in object as left-hand-side of template (#398)
|
||||
* Remove unneeded parens for FunctionExpression inside LogicalExpression (#399)
|
||||
* Remove trailing comma for array destructuring with rest (#400)
|
||||
* Fix +++x (#401)
|
||||
* Also do the class extend parenthesis for class expressions (#403)
|
||||
* Fix various parenthesis issues on the left side of template (#404)
|
||||
* Fix in inside of the first group of a for (#406)
|
||||
* Add parenthesis for arrow function inside of ternary (#408)
|
||||
* Add parenthesis around class expression when left side of call expression (#409)
|
||||
* Ensure computed method names don't lose quotes (#419)
|
||||
* Add parenthesis for yield inside of a conditional (#418)
|
||||
* Add parenthesis around assignment for arrow function body (#422)
|
||||
* Add parenthesis around export default assignments (#423)
|
||||
* Add parenthesis for class expression on left of member expression (#421)
|
||||
* Fix missing parens around object in MemberExpression (#424)
|
||||
* Re-run snapshot tests
|
||||
* Workaround flow bug around trailing comma (#427)
|
||||
* Add parenthesis when class expressions are left of a ternary (#428)
|
||||
* Revert "Workaround flow bug around trailing comma" (#429)
|
||||
* Update commands.md (#430)
|
||||
* Improve vim integration section (#416)
|
||||
* Add glob support to the CLI (#363)
|
||||
* Use babel-code-frame for syntax errors (#367)
|
||||
* Update yarn.lock
|
||||
|
||||
|
||||
# 0.0.10
|
||||
|
||||
[link](https://github.com/jlongster/prettier/compare/0.0.9...0.0.10)
|
||||
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
var prettier=function(){function Se(){Wp=!0;var Pb='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';for(var Nb=0,Lb=Pb.length;Nb<Lb;++Nb)Mp[Nb]=Pb[Nb],Up[Pb.charCodeAt(Nb)]=Nb;Up['-'.charCodeAt(0)]=62,Up['_'.charCodeAt(0)]=63}function Te(Pb){Wp||Se();var Vb=Pb.length,Nb,Lb,Rb,Yb,Ob,Mb;if(0<Vb%4)throw new Error('Invalid string. Length must be a multiple of 4');Ob='='===Pb[Vb-2]?2:'='===Pb[Vb-1]?1:0,Mb=new Xp(3*Vb/4-Ob),Rb=0<Ob?Vb-4:Vb;var Ub=0;for(Nb=0,Lb=0;Nb<Rb;Nb+=4,Lb+=3)Yb=Up[Pb.charCodeAt(Nb)]<<18|Up[Pb.charCodeAt(Nb+1)]<<12|Up[Pb.charCodeAt(Nb+2)]<<6|Up[Pb.charCodeAt(Nb+3)],Mb[Ub++]=255&Yb>>16,Mb[Ub++]=255&Yb>>8,Mb[Ub++]=255&Yb;return 2===Ob?(Yb=Up[Pb.charCodeAt(Nb)]<<2|Up[Pb.charCodeAt(Nb+1)]>>4,Mb[Ub++]=255&Yb):1==Ob&&(Yb=Up[Pb.charCodeAt(Nb)]<<10|Up[Pb.charCodeAt(Nb+1)]<<4|Up[Pb.charCodeA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ob-Yb-1,Wb=(1<<Xb)-1,Jb=Wb>>1,Zb=23===Yb?Math.pow(2,-24)-Math.pow(2,-77):0,Kb=Rb?0:Ob-1,Qb=Rb?1:-1,$b=0>Nb||0===Nb&&0>1/Nb?1:0;for(Nb=Math.abs(Nb),isNaN(Nb)||Nb===Infinity?(Vb=isNaN(Nb)?1:0,Mb=Wb):(Mb=Math.floor(Math.log(Nb)/Math.LN2),1>Nb*(Ub=Math.pow(2,-Mb))&&(Mb--,Ub*=2),Nb+=1<=Mb+Jb?Zb/Ub:Zb*Math.pow(2,1-Jb),2<=Nb*Ub&&(Mb++,Ub/=2),Mb+Jb>=Wb?(Vb=0,Mb=Wb):1<=Mb+Jb?(Vb=(Nb*Ub-1)*Math.pow(2,Yb),Mb+=Jb):(Vb=Nb*Math.pow(2,Jb-1)*Math.pow(2,Yb),Mb=0));8<=Yb;Pb[Lb+Kb]=255&Vb,Kb+=Qb,Vb/=256,Yb-=8);for(Mb=Mb<<Yb|Vb,Xb+=Yb;0<Xb;Pb[Lb+Kb]=255&Mb,Kb+=Qb,Mb/=256,Xb-=8);Pb[Lb+Kb-Qb]|=128*$b}function Ye(){return Me.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Oe(Pb,Nb){if(Ye()<Nb)throw new RangeError('Invalid typed array length');return Me.TYPED_ARRAY_SUPPORT?(Pb=new Uint8Array(Nb),Pb.__proto__=Me.prototype):(null===Pb&&(Pb=new Me(Nb)),Pb.length=Nb),Pb}function Me(Pb,Nb,Lb){if(!Me.TYPED_ARRAY_SUPPORT&&!(this instanceof Me))return new Me(Pb,Nb,Lb);if('number'==typeof Pb){if('string'==typeof Nb)throw new Error('If encoding is specified then the first argument must be a string');return We(this,Pb)}return Ve(this,Pb,Nb,Lb)}function Ve(Pb,Nb,Lb,Rb){if('number'==typeof Nb)throw new TypeError('"value" argument must not be a number');return'undefined'!=typeof ArrayBuffer&&Nb instanceof ArrayBuffer?Ke(Pb,Nb,Lb,Rb):'string'==typeof Nb?Je(Pb,Nb,Lb):Qe(Pb,Nb)}function Ue(Pb){if('number'!=typeof Pb)throw new TypeError('"size" argument must be a number');else if(0>Pb)throw new RangeError('"size" argument must not be negative')}function Xe(Pb,Nb,Lb,Rb){return Ue(Nb),0>=Nb?Oe(Pb,Nb):void 0===Lb?Oe(Pb,Nb):'string'==typeof Rb?Oe(Pb,Nb).fill(Lb,Rb):Oe(Pb,Nb).fill(Lb)}function We(Pb,Nb){if(Ue(Nb),Pb=Oe(Pb,0>Nb?0:0|$e(Nb)),!Me.TYPED_ARRAY_SUPPORT)for(var Lb=0;Lb<Nb;++Lb)Pb[Lb]=0;return Pb}function Je(Pb,Nb,Lb){if(('string'!=typeof Lb||''===Lb)&&(Lb='utf8'),!Me.isEncoding(Lb))throw new TypeError('"encoding" must be a valid string encoding');var Rb=0|Tt(Nb,Lb);Pb=Oe(Pb,Rb);var Yb=Pb.write(Nb,Lb);return Yb!==Rb&&(Pb=Pb.slice(0,Yb)),Pb}function Ze(Pb,Nb){var Lb=0>Nb.length?0:0|$e(Nb.length);Pb=Oe(Pb,Lb);for(var Rb=0;Rb<Lb;Rb+=1)Pb[Rb]=255&Nb[Rb];return Pb}function Ke(Pb,Nb,Lb,Rb){if(Nb.byteLength,0>Lb||Nb.byteLength<Lb)throw new RangeError('\'offset\' is out of bounds');if(Nb.byteLength<Lb+(Rb||0))throw new RangeError('\'length\' is out of bounds');return Nb=void 0===Lb&&void 0===Rb?new Uint8Array(Nb):void 0===Rb?new Uint8Array(Nb,Lb):new Uint8Array(Nb,Lb,Rb),Me.TYPED_ARRAY_SUPPORT?(Pb=Nb,Pb.__proto__=Me.prototype):Pb=Ze(Pb,Nb),Pb}function Qe(Pb,Nb){if(St(Nb)){var Lb=0|$e(Nb.length);return(Pb=Oe(Pb,Lb),0===Pb.length)?Pb:(Nb.copy(Pb,0,0,Lb),Pb)}if(Nb){if('undefined'!=typeof ArrayBuffer&&Nb.buffer instanceof ArrayBuffer||'length'in Nb)return'number'!=typeof Nb.length||Ja(Nb.length)?Oe(Pb,0):Ze(Pb,Nb);if('Buffer'===Nb.type&&Zp(Nb.data))return Ze(Pb,Nb.data)}throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')}function $e(Pb){if(Pb>=Ye())throw new RangeError('Attempt to allocate Buffer larger than maximum size: 0x'+Ye().toString(16)+' bytes');return 0|Pb}fuLine truncated
|
||||
var prettier=function(){function Se(Xb,Wb){return Wb={exports:{}},Xb(Wb,Wb.exports),Wb.exports}function Te(){throw new Error("setTimeout has not been defined")}function _e(){throw new Error("clearTimeout has not been defined")}function Pe(Xb){if(Pd===setTimeout)return setTimeout(Xb,0);if((Pd===Te||!Pd)&&setTimeout)return Pd=setTimeout,setTimeout(Xb,0);try{return Pd(Xb,0)}catch(Wb){try{return Pd.call(null,Xb,0)}catch(Jb){return Pd.call(this,Xb,0)}}}function Ne(Xb){if(Nd===clearTimeout)return clearTimeout(Xb);if((Nd===_e||!Nd)&&clearTimeout)return Nd=clearTimeout,clearTimeout(Xb);try{return Nd(Xb)}catch(Wb){try{return Nd.call(null,Xb)}catch(Jb){return Nd.call(this,Xb)}}}function Le(){Rd&&Yd&&(Rd=!1,Yd.length?Ld=Yd.concat(Ld):Od=-1,Ld.length&&Re())}function Re(){if(!Rd){var Xb=Pe(Le);Rd=!0;for(var Wb=Ld.length;Wb;){for(Yd=Ld,Ld=[];++Od<Wb;)Yd&&Yd[Od].run();Od=-1,Wb=Ld.length}Yd=null,Rd=!1,Ne(Xb)}}function Ye(Xb,Wb){this.fun=Xb,this.array=Wb}function Oe(){}function Me(Xb){this.enabled=Xb&&Xb.enabled!==void 0?Xb.enabled:Rc}function Ve(Xb){var Wb=function(){return Ue.apply(Wb,arguments)};return Wb._styles=Xb,Wb.enabled=this.enabled,Wb.__proto__=Vc,Wb}function Ue(){var Xb=arguments,Wb=Xb.length,Jb=0!==Wb&&arguments[0]+"";if(1<Wb)for(var Zb=1;Zb<Wb;Zb++)Jb+=" "+Xb[Zb];if(!this.enabled||!Jb)return Jb;var Kb=this._styles,Qb=Kb.length,$b=Lc.dim.open;for(Oc&&(-1!==Kb.indexOf("gray")||-1!==Kb.indexOf("grey"))&&(Lc.dim.open="");Qb--;){var Sg=Lc[Kb[Qb]];Jb=Sg.open+Jb.replace(Sg.closeRe,Sg.open)+Sg.close}return Lc.dim.open=$b,Jb}function Xe(){Kc=!0;var Xb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Wb=0,Jb=Xb.length;Wb<Jb;++Wb)Wc[Wb]=Xb[Wb],Jc[Xb.charCodeAt(Wb)]=Wb;Jc["-".charCodeAt(0)]=62,Jc["_".charCodeAt(0)]=63}function We(Xb){Kc||Xe();var Sg=Xb.length,Wb,Jb,Zb,Kb,Qb,$b;if(0<Sg%4)throw new Error("Invalid string. Length must be a multiple of 4");Qb="="===Xb[Sg-2]?2:"="===Xb[Sg-1]?1:0,$b=new Zc(3*Sg/4-Qb),Zb=0<Qb?Sg-4:Sg;var Tg=0;for(Wb=0,Jb=0;Wb<Zb;Wb+=4,Jb+=3)Kb=Jc[Xb.charCodeAt(Wb)]<<18|Jc[Xb.charCodeAt(Wb+1)]<<12|Jc[Xb.charCodeAt(Wb+2)]<<6|Jc[Xb.charCodeAt(Wb+3)],$b[Tg++]=255&Kb>>16,$b[Tg++]=255&Kb>>8,$b[Tg++]=255&Kb;return 2===Qb?(Kb=Jc[Xb.charCodeAt(Wb)]<<2|Jc[Xb.charCodeAt(Wb+1)]>>4,$b[Tg++]=255&Kb):1==Qb&&(Kb=Jc[Xb.charCodeAt(Wb)]<<10|Jc[Xb.charCodeAt(Wb+1)]<<4|Jc[Xb.charCodeAt(Wb+2)]>>2,$b[Tg++]=255&Kb>>8,$b[Tg++]=255&Kb),$b}function Je(Xb){return Wc[63&Xb>>18]+Wc[63&Xb>>12]+Wc[63&Xb>>6]+Wc[63&Xb]}function Ze(Xb,Wb,Jb){var Zb,Kb=[];for(var Q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sg=isNaN(Wb)?1:0,$b=Pg):($b=Math.floor(Math.log(Wb)/Math.LN2),1>Wb*(Tg=Math.pow(2,-$b))&&($b--,Tg*=2),Wb+=1<=$b+Ng?Lg/Tg:Lg*Math.pow(2,1-Ng),2<=Wb*Tg&&($b++,Tg/=2),$b+Ng>=Pg?(Sg=0,$b=Pg):1<=$b+Ng?(Sg=(Wb*Tg-1)*Math.pow(2,Kb),$b+=Ng):(Sg=Wb*Math.pow(2,Ng-1)*Math.pow(2,Kb),$b=0));8<=Kb;Xb[Jb+Rg]=255&Sg,Rg+=Yg,Sg/=256,Kb-=8);for($b=$b<<Kb|Sg,_g+=Kb;0<_g;Xb[Jb+Rg]=255&$b,Rg+=Yg,$b/=256,_g-=8);Xb[Jb+Rg-Yg]|=128*Og}function St(){return _t.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Tt(Xb,Wb){if(St()<Wb)throw new RangeError("Invalid typed array length");return _t.TYPED_ARRAY_SUPPORT?(Xb=new Uint8Array(Wb),Xb.__proto__=_t.prototype):(null===Xb&&(Xb=new _t(Wb)),Xb.length=Wb),Xb}function _t(Xb,Wb,Jb){if(!_t.TYPED_ARRAY_SUPPORT&&!(this instanceof _t))return new _t(Xb,Wb,Jb);if("number"==typeof Xb){if("string"==typeof Wb)throw new Error("If encoding is specified then the first argument must be a string");return Lt(this,Xb)}return Pt(this,Xb,Wb,Jb)}function Pt(Xb,Wb,Jb,Zb){if("number"==typeof Wb)throw new TypeError("\"value\" argument must not be a number");return"undefined"!=typeof ArrayBuffer&&Wb instanceof ArrayBuffer?Ot(Xb,Wb,Jb,Zb):"string"==typeof Wb?Rt(Xb,Wb,Jb):Mt(Xb,Wb)}function Nt(Xb){if("number"!=typeof Xb)throw new TypeError("\"size\" argument must be a number");else if(0>Xb)throw new RangeError("\"size\" argument must not be negative")}function It(Xb,Wb,Jb,Zb){return Nt(Wb),0>=Wb?Tt(Xb,Wb):void 0===Jb?Tt(Xb,Wb):Line truncated
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "prettier",
|
||||
"version": "0.0.10",
|
||||
"version": "0.11.0",
|
||||
"description": "Prettier is an opinionated JavaScript formatter",
|
||||
"bin": {
|
||||
"prettier": "./bin/prettier.js"
|
||||
|
||||
Reference in new issue
Block a user