0.18.0
This commit is contained in:
1 parent
e30482d440
commit
848dfa3505
3 files changed
+23
-2
No files matched your search
@@ -1,7 +1,28 @@
|
||||
# 0.18.0
|
||||
|
||||
[link](https://github.com/jlongster/prettier/compare/0.17.0...0.18.0)
|
||||
|
||||
* fix --debug-check
|
||||
* [JSX] Don't add newline following newline (#690)
|
||||
* [Docs] Use replaceState API when demo code changes (#710)
|
||||
* Do not inline new as last argument (#705)
|
||||
* Inline objects & arrays as right part of a boolean expression (#692)
|
||||
* [RFC] Remove parenthesis object special case (#689)
|
||||
* Ensure importKind is printed (#718)
|
||||
* [Docs]: update Readme to reference VS extension (#720)
|
||||
* docs: Add pre-commit hook with 🚫💩 lint-staged section to the README (#714)
|
||||
* [RFC] Preserve new lines between array elements (#707)
|
||||
* Do not put \n inside of empty object method bodies (#706)
|
||||
* Align boolean inside of arrow functions (#691)
|
||||
* Fix trailing new lines preservation (#724)
|
||||
* Unified Split
|
||||
|
||||
# 0.17.1
|
||||
|
||||
* Use `readline` api to manipulate `process.stdout` output. (#687)
|
||||
|
||||
# 0.17.0
|
||||
|
||||
[link](https://github.com/jlongster/prettier/compare/0.16.0...0.17.0)
|
||||
|
||||
* [JSX] Fix spurious newline (fixes #614) (#628)
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
var prettier=function(){function Se(IA,LA){return LA={exports:{}},IA(LA,LA.exports),LA.exports}function Te(){throw new Error("setTimeout has not been defined")}function Pe(){throw new Error("clearTimeout has not been defined")}function _e(IA){if($c===setTimeout)return setTimeout(IA,0);if(($c===Te||!$c)&&setTimeout)return $c=setTimeout,setTimeout(IA,0);try{return $c(IA,0)}catch(LA){try{return $c.call(null,IA,0)}catch(RA){return $c.call(this,IA,0)}}}function Ne(IA){if(Su===clearTimeout)return clearTimeout(IA);if((Su===Pe||!Su)&&clearTimeout)return Su=clearTimeout,clearTimeout(IA);try{return Su(IA)}catch(LA){try{return Su.call(null,IA)}catch(RA){return Su.call(this,IA)}}}function Le(){Pu&&_u&&(Pu=!1,_u.length?Tu=_u.concat(Tu):Nu=-1,Tu.length&&Re())}function Re(){if(!Pu){var IA=_e(Le);Pu=!0;for(var LA=Tu.length;LA;){for(_u=Tu,Tu=[];++Nu<LA;)_u&&_u[Nu].run();Nu=-1,LA=Tu.length}_u=null,Pu=!1,Ne(IA)}}function Oe(IA,LA){this.fun=IA,this.array=LA}function Ye(){}function Me(IA){this.enabled=IA&&IA.enabled!==void 0?IA.enabled:Tm}function Ve(IA){var LA=function(){return Ue.apply(LA,arguments)};return LA._styles=IA,LA.enabled=this.enabled,LA.__proto__=Lm,LA}function Ue(){var IA=arguments,LA=IA.length,RA=0!==LA&&arguments[0]+"";if(1<LA)for(var OA=1;OA<LA;OA++)RA+=" "+IA[OA];if(!this.enabled||!RA)return RA;var YA=this._styles,MA=YA.length,VA=Sm.dim.open;for(_m&&(-1!==YA.indexOf("gray")||-1!==YA.indexOf("grey"))&&(Sm.dim.open="");MA--;){var UA=Sm[YA[MA]];RA=UA.open+RA.replace(UA.closeRe,UA.open)+UA.close}return Sm.dim.open=VA,RA}function Xe(){Um=!0;var IA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var LA=0,RA=IA.length;LA<RA;++LA)Ym[LA]=IA[LA],Mm[IA.charCodeAt(LA)]=LA;Mm["-".charCodeAt(0)]=62,Mm["_".charCodeAt(0)]=63}function We(IA){Um||Xe();var UA=IA.length,LA,RA,OA,YA,MA,VA;if(0<UA%4)throw new Error("Invalid string. Length must be a multiple of 4");MA="="===IA[UA-2]?2:"="===IA[UA-1]?1:0,VA=new Vm(3*UA/4-MA),OA=0<MA?UA-4:UA;var XA=0;for(LA=0,RA=0;LA<OA;LA+=4,RA+=3)YA=Mm[IA.charCodeAt(LA)]<<18|Mm[IA.charCodeAt(LA+1)]<<12|Mm[IA.charCodeAt(LA+2)]<<6|Mm[IA.charCodeAt(LA+3)],VA[XA++]=255&YA>>16,VA[XA++]=255&YA>>8,VA[XA++]=255&YA;return 2===MA?(YA=Mm[IA.charCodeAt(LA)]<<2|Mm[IA.charCodeAt(LA+1)]>>4,VA[XA++]=255&YA):1==MA&&(YA=Mm[IA.charCodeAt(LA)]<<10|Mm[IA.charCodeAt(LA+1)]<<4|Mm[IA.charCodeAt(LA+2)]>>2,VA[XA++]=255&YA>>8,VA[XA++]=255&YA),VA}function Je(IA){return Ym[63&IA>>18]+Ym[63&IA>>12]+Ym[63&IA>>6]+Ym[63&IA]}function Ze(IA,LA,RA){var OA,YA=[];for(var MA=LA;MA<RA;MA+=3)OA=(IA[MA]<<16)+(IA[MA+1]<<8)+IA[MA+2],YA.push(Je(OA));return YA.join("")}function Ke(IA){Um||Xe();var RA=IA.length,OA=RA%3,YA="",MA=[],VA=16383,LA;for(var UA=0,XA=RA-OA;UA<XA;UA+=VA)MA.push(Ze(IA,UA,UA+VA>XA?XA:UA+VA));return 1==OA?(LA=IA[RA-1],YA+=Ym[LA>>2],YA+=Ym[63&LA<<4],YA+="=="):2==OA&&(LA=(IA[RA-2]<<8)+IA[RA-1],YA+=Ym[LA>>10],YA+=Ym[63&LA>>4],YA+=Ym[63&LA<<2],YA+="="),MA.push(YA),MA.join("")}function Qe(IA,LA,RA,OA,YA){var MA,VA,UA=8*YA-OA-1,XA=(1<<UA)-1,WA=XA>>1,JA=-7,ZA=RA?YA-1:0,KA=RA?-1:1,QA=IA[LA+ZA];for(ZA+=KA,MA=QA&(1<<-JA)-1,QA>>=-JA,JA+=UA;0<JA;MA=256*MA+IA[LA+ZA],ZA+=KA,JA-=8);for(VA=MA&(1<<-JA)-1,MA>>=-JA,JA+=OA;0<JA;VA=256*VA+IA[LA+ZA],ZA+=KA,JA-=8);if(0===MA)MA=1-WA;else{if(MA===XA)return VA?NaN:(QA?-1:1)*Infinity;VA+=Math.pow(2,OA),MA-=WA}return(QA?-1:1)*VA*Math.pow(2,MA-OA)}function $e(IA,LA,RA,OA,YA,MA){var VA,UA,XA,WA=8*MA-YA-1,JA=(1<<WA)-1,ZA=JA>>1,KA=23===YA?Math.pow(2,-24)-Math.pow(2,-77):0,QA=OA?0:MA-1,$A=OA?1:-1,SP=0>LA||0===LA&&0>1/LA?1:0;for(LA=Math.abs(LA),isNaN(LA)||LA===Infinity?(UA=isNaN(LA)?1:0,VA=JA):(VA=Math.floor(Math.log(LA)/Math.LN2),1>LA*(XA=Math.pow(2,-VA))&&(VA--,XA*=2),LA+=1<=VA+ZA?KA/XA:KA*Math.pow(2,1-ZA),2<=LA*XA&&(VA++,XA/=2),VA+ZA>=JA?(UA=0,VA=JA):1<=VA+ZA?(UA=(LA*XA-1)*Math.pow(2,YA),VA+=ZA):(UA=LA*Math.pow(2,ZA-1)*Math.pow(2,YA),VA=0));8<=YA;IA[RA+QA]=255&UA,QA+=$A,UA/=256,YA-=8);for(VA=VA<<YA|UA,WA+=YA;0<WA;IA[RA+QA]=255&VA,QA+=$A,VA/=256,WA-=8);IA[RA+QA-$A]|=128*SP}function St(){return Pt.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Tt(IA,LA){if(St()<LA)throw new RangeError("Invalid typed array length");return Pt.TYPED_ARRAY_SUPPORT?(IA=new Uint8Array(LA),IA.__proto__=Pt.prototype):(null===IA&&(IA=new Pt(LA)),IA.length=LA),IA}function Pt(IA,LA,RA){if(!Pt.TYPED_ARRAY_SUPPORT&&!(this instanceof Pt))return new Pt(IA,LA,RA);if("number"==typeof IA){if("string"==typeof LA)throw new Error("If encoding is specified then the first argument must be a string");return Lt(this,IA)}return _t(this,IA,LA,RA)}function _t(IA,LA,RA,OA){if("number"==typeof LA)throw new TypeError("\"value\" argument must not be a number");return"undefined"!=typeof ArrayBuffer&&LA instanceof ArrayBuffer?Yt(IA,LA,RA,OA):"string"==typeof LA?Rt(IA,LA,RA):Mt(IA,LA)}function Nt(IA){if("number"!=typeof IA)throw new TypeError("\"size\" argument must be a number");else if(0>IA)throw new RangeError("\"size\" argument must not be negative")}function It(IA,LA,RA,OA){return Nt(LA),0>=LA?Tt(IA,LA):void 0===RA?Tt(IA,LA):Line truncated
|
||||
var prettier=function(){function Se(IA,LA){return LA={exports:{}},IA(LA,LA.exports),LA.exports}function Te(){throw new Error("setTimeout has not been defined")}function Pe(){throw new Error("clearTimeout has not been defined")}function _e(IA){if($c===setTimeout)return setTimeout(IA,0);if(($c===Te||!$c)&&setTimeout)return $c=setTimeout,setTimeout(IA,0);try{return $c(IA,0)}catch(LA){try{return $c.call(null,IA,0)}catch(RA){return $c.call(this,IA,0)}}}function Ne(IA){if(Su===clearTimeout)return clearTimeout(IA);if((Su===Pe||!Su)&&clearTimeout)return Su=clearTimeout,clearTimeout(IA);try{return Su(IA)}catch(LA){try{return Su.call(null,IA)}catch(RA){return Su.call(this,IA)}}}function Le(){Pu&&_u&&(Pu=!1,_u.length?Tu=_u.concat(Tu):Nu=-1,Tu.length&&Re())}function Re(){if(!Pu){var IA=_e(Le);Pu=!0;for(var LA=Tu.length;LA;){for(_u=Tu,Tu=[];++Nu<LA;)_u&&_u[Nu].run();Nu=-1,LA=Tu.length}_u=null,Pu=!1,Ne(IA)}}function Oe(IA,LA){this.fun=IA,this.array=LA}function Ye(){}function Me(IA){this.enabled=IA&&IA.enabled!==void 0?IA.enabled:Tm}function Ve(IA){var LA=function(){return Ue.apply(LA,arguments)};return LA._styles=IA,LA.enabled=this.enabled,LA.__proto__=Lm,LA}function Ue(){var IA=arguments,LA=IA.length,RA=0!==LA&&arguments[0]+"";if(1<LA)for(var OA=1;OA<LA;OA++)RA+=" "+IA[OA];if(!this.enabled||!RA)return RA;var YA=this._styles,MA=YA.length,VA=Sm.dim.open;for(_m&&(-1!==YA.indexOf("gray")||-1!==YA.indexOf("grey"))&&(Sm.dim.open="");MA--;){var UA=Sm[YA[MA]];RA=UA.open+RA.replace(UA.closeRe,UA.open)+UA.close}return Sm.dim.open=VA,RA}function Xe(){Um=!0;var IA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var LA=0,RA=IA.length;LA<RA;++LA)Ym[LA]=IA[LA],Mm[IA.charCodeAt(LA)]=LA;Mm["-".charCodeAt(0)]=62,Mm["_".charCodeAt(0)]=63}function We(IA){Um||Xe();var UA=IA.length,LA,RA,OA,YA,MA,VA;if(0<UA%4)throw new Error("Invalid string. Length must be a multiple of 4");MA="="===IA[UA-2]?2:"="===IA[UA-1]?1:0,VA=new Vm(3*UA/4-MA),OA=0<MA?UA-4:UA;var XA=0;for(LA=0,RA=0;LA<OA;LA+=4,RA+=3)YA=Mm[IA.charCodeAt(LA)]<<18|Mm[IA.charCodeAt(LA+1)]<<12|Mm[IA.charCodeAt(LA+2)]<<6|Mm[IA.charCodeAt(LA+3)],VA[XA++]=255&YA>>16,VA[XA++]=255&YA>>8,VA[XA++]=255&YA;return 2===MA?(YA=Mm[IA.charCodeAt(LA)]<<2|Mm[IA.charCodeAt(LA+1)]>>4,VA[XA++]=255&YA):1==MA&&(YA=Mm[IA.charCodeAt(LA)]<<10|Mm[IA.charCodeAt(LA+1)]<<4|Mm[IA.charCodeAt(LA+2)]>>2,VA[XA++]=255&YA>>8,VA[XA++]=255&YA),VA}function Je(IA){return Ym[63&IA>>18]+Ym[63&IA>>12]+Ym[63&IA>>6]+Ym[63&IA]}function Ze(IA,LA,RA){var OA,YA=[];for(var MA=LA;MA<RA;MA+=3)OA=(IA[MA]<<16)+(IA[MA+1]<<8)+IA[MA+2],YA.push(Je(OA));return YA.join("")}function Ke(IA){Um||Xe();var RA=IA.length,OA=RA%3,YA="",MA=[],VA=16383,LA;for(var UA=0,XA=RA-OA;UA<XA;UA+=VA)MA.push(Ze(IA,UA,UA+VA>XA?XA:UA+VA));return 1==OA?(LA=IA[RA-1],YA+=Ym[LA>>2],YA+=Ym[63&LA<<4],YA+="=="):2==OA&&(LA=(IA[RA-2]<<8)+IA[RA-1],YA+=Ym[LA>>10],YA+=Ym[63&LA>>4],YA+=Ym[63&LA<<2],YA+="="),MA.push(YA),MA.join("")}function Qe(IA,LA,RA,OA,YA){var MA,VA,UA=8*YA-OA-1,XA=(1<<UA)-1,WA=XA>>1,JA=-7,ZA=RA?YA-1:0,KA=RA?-1:1,QA=IA[LA+ZA];for(ZA+=KA,MA=QA&(1<<-JA)-1,QA>>=-JA,JA+=UA;0<JA;MA=256*MA+IA[LA+ZA],ZA+=KA,JA-=8);for(VA=MA&(1<<-JA)-1,MA>>=-JA,JA+=OA;0<JA;VA=256*VA+IA[LA+ZA],ZA+=KA,JA-=8);if(0===MA)MA=1-WA;else{if(MA===XA)return VA?NaN:(QA?-1:1)*Infinity;VA+=Math.pow(2,OA),MA-=WA}return(QA?-1:1)*VA*Math.pow(2,MA-OA)}function $e(IA,LA,RA,OA,YA,MA){var VA,UA,XA,WA=8*MA-YA-1,JA=(1<<WA)-1,ZA=JA>>1,KA=23===YA?Math.pow(2,-24)-Math.pow(2,-77):0,QA=OA?0:MA-1,$A=OA?1:-1,SP=0>LA||0===LA&&0>1/LA?1:0;for(LA=Math.abs(LA),isNaN(LA)||LA===Infinity?(UA=isNaN(LA)?1:0,VA=JA):(VA=Math.floor(Math.log(LA)/Math.LN2),1>LA*(XA=Math.pow(2,-VA))&&(VA--,XA*=2),LA+=1<=VA+ZA?KA/XA:KA*Math.pow(2,1-ZA),2<=LA*XA&&(VA++,XA/=2),VA+ZA>=JA?(UA=0,VA=JA):1<=VA+ZA?(UA=(LA*XA-1)*Math.pow(2,YA),VA+=ZA):(UA=LA*Math.pow(2,ZA-1)*Math.pow(2,YA),VA=0));8<=YA;IA[RA+QA]=255&UA,QA+=$A,UA/=256,YA-=8);for(VA=VA<<YA|UA,WA+=YA;0<WA;IA[RA+QA]=255&VA,QA+=$A,VA/=256,WA-=8);IA[RA+QA-$A]|=128*SP}function St(){return Pt.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Tt(IA,LA){if(St()<LA)throw new RangeError("Invalid typed array length");return Pt.TYPED_ARRAY_SUPPORT?(IA=new Uint8Array(LA),IA.__proto__=Pt.prototype):(null===IA&&(IA=new Pt(LA)),IA.length=LA),IA}function Pt(IA,LA,RA){if(!Pt.TYPED_ARRAY_SUPPORT&&!(this instanceof Pt))return new Pt(IA,LA,RA);if("number"==typeof IA){if("string"==typeof LA)throw new Error("If encoding is specified then the first argument must be a string");return Lt(this,IA)}return _t(this,IA,LA,RA)}function _t(IA,LA,RA,OA){if("number"==typeof LA)throw new TypeError("\"value\" argument must not be a number");return"undefined"!=typeof ArrayBuffer&&LA instanceof ArrayBuffer?Yt(IA,LA,RA,OA):"string"==typeof LA?Rt(IA,LA,RA):Mt(IA,LA)}function Nt(IA){if("number"!=typeof IA)throw new TypeError("\"size\" argument must be a number");else if(0>IA)throw new RangeError("\"size\" argument must not be negative")}function It(IA,LA,RA,OA){return Nt(LA),0>=LA?Tt(IA,LA):void 0===RA?Tt(IA,LA):Line truncated
|
||||
${NE.bold.green(YE(RA))}
|
||||
but instead received:
|
||||
${NE.bold.red(YE(LA))}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "prettier",
|
||||
"version": "0.17.1",
|
||||
"version": "0.18.0",
|
||||
"description": "Prettier is an opinionated JavaScript formatter",
|
||||
"bin": {
|
||||
"prettier": "./bin/prettier.js"
|
||||
|
||||
Reference in new issue
Block a user