code-block-writer
Advanced tools
Comparing version 6.14.0 to 7.0.0
@@ -5,2 +5,22 @@ # Change Log | ||
<a name="7.0.0"></a> | ||
# [7.0.0](https://github.com/dsherret/code-block-writer/compare/v6.13.0...v7.0.0) (2018-04-29) | ||
### Code Refactoring | ||
* Remove deprecated methods. ([e7fca86](https://github.com/dsherret/code-block-writer/commit/e7fca86)) | ||
### Features | ||
* allow passing a function into conditional write methods ([d299c84](https://github.com/dsherret/code-block-writer/commit/d299c84)) | ||
### BREAKING CHANGES | ||
* `newLineIfLastNotNewLine`, `blankLineIfLastNotBlankLine`, `spaceIfLastNotSpace` are removed. Use the shorter method names like `spaceIfLastNot`. | ||
<a name="6.14.0"></a> | ||
@@ -7,0 +27,0 @@ # [6.14.0](https://github.com/dsherret/code-block-writer/compare/v6.13.0...v6.14.0) (2018-04-10) |
@@ -84,17 +84,7 @@ export interface Options { | ||
* Writes a newline if the last line was not a newline. | ||
* @deprecated Use `newLineIfLastNot()`. | ||
*/ | ||
newLineIfLastNotNewLine(): this; | ||
/** | ||
* Writes a newline if the last line was not a newline. | ||
*/ | ||
newLineIfLastNot(): this; | ||
/** | ||
* Writes a blank line if the last written text was not a blank line. | ||
* @deprecated Use `blankLineIfLastNot()` | ||
*/ | ||
blankLineIfLastNotBlankLine(): this; | ||
/** | ||
* Writes a blank line if the last written text was not a blank line. | ||
*/ | ||
blankLineIfLastNot(): this; | ||
@@ -134,8 +124,3 @@ /** | ||
* Writes a space if the last character was not a space. | ||
* @deprecated Use `spaceIfLastNot()`. | ||
*/ | ||
spaceIfLastNotSpace(): this; | ||
/** | ||
* Writes a space if the last character was not a space. | ||
*/ | ||
spaceIfLastNot(): this; | ||
@@ -142,0 +127,0 @@ /** |
@@ -108,10 +108,3 @@ "use strict"; | ||
* Writes a newline if the last line was not a newline. | ||
* @deprecated Use `newLineIfLastNot()`. | ||
*/ | ||
CodeBlockWriter.prototype.newLineIfLastNotNewLine = function () { | ||
return this.newLineIfLastNot(); | ||
}; | ||
/** | ||
* Writes a newline if the last line was not a newline. | ||
*/ | ||
CodeBlockWriter.prototype.newLineIfLastNot = function () { | ||
@@ -125,10 +118,3 @@ this._newLineIfNewLineOnNextWrite(); | ||
* Writes a blank line if the last written text was not a blank line. | ||
* @deprecated Use `blankLineIfLastNot()` | ||
*/ | ||
CodeBlockWriter.prototype.blankLineIfLastNotBlankLine = function () { | ||
return this.blankLineIfLastNot(); | ||
}; | ||
/** | ||
* Writes a blank line if the last written text was not a blank line. | ||
*/ | ||
CodeBlockWriter.prototype.blankLineIfLastNot = function () { | ||
@@ -185,10 +171,3 @@ if (!this.isLastBlankLine()) | ||
* Writes a space if the last character was not a space. | ||
* @deprecated Use `spaceIfLastNot()`. | ||
*/ | ||
CodeBlockWriter.prototype.spaceIfLastNotSpace = function () { | ||
return this.spaceIfLastNot(); | ||
}; | ||
/** | ||
* Writes a space if the last character was not a space. | ||
*/ | ||
CodeBlockWriter.prototype.spaceIfLastNot = function () { | ||
@@ -195,0 +174,0 @@ this._newLineIfNewLineOnNextWrite(); |
{ | ||
"name": "code-block-writer", | ||
"version": "6.14.0", | ||
"version": "7.0.0", | ||
"description": "A simple code writer that assists with formatting and visualizing blocks of code.", | ||
@@ -51,4 +51,2 @@ "main": "dist/code-block-writer.js", | ||
"coveralls": "^2.13.1", | ||
"del": "^2.0.2", | ||
"merge2": "^1.2.0", | ||
"mocha": "^3.3.0", | ||
@@ -55,0 +53,0 @@ "nyc": "^11.6.0", |
@@ -171,11 +171,3 @@ import { stringRepeat, escapeForWithinString, getStringFromStrOrFunc } from "./utils/stringUtils"; | ||
* Writes a newline if the last line was not a newline. | ||
* @deprecated Use `newLineIfLastNot()`. | ||
*/ | ||
newLineIfLastNotNewLine() { | ||
return this.newLineIfLastNot(); | ||
} | ||
/** | ||
* Writes a newline if the last line was not a newline. | ||
*/ | ||
newLineIfLastNot() { | ||
@@ -192,11 +184,3 @@ this._newLineIfNewLineOnNextWrite(); | ||
* Writes a blank line if the last written text was not a blank line. | ||
* @deprecated Use `blankLineIfLastNot()` | ||
*/ | ||
blankLineIfLastNotBlankLine() { | ||
return this.blankLineIfLastNot(); | ||
} | ||
/** | ||
* Writes a blank line if the last written text was not a blank line. | ||
*/ | ||
blankLineIfLastNot() { | ||
@@ -269,11 +253,3 @@ if (!this.isLastBlankLine()) | ||
* Writes a space if the last character was not a space. | ||
* @deprecated Use `spaceIfLastNot()`. | ||
*/ | ||
spaceIfLastNotSpace() { | ||
return this.spaceIfLastNot(); | ||
} | ||
/** | ||
* Writes a space if the last character was not a space. | ||
*/ | ||
spaceIfLastNot() { | ||
@@ -280,0 +256,0 @@ this._newLineIfNewLineOnNextWrite(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9
184653
2282