diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f65d80..f9a040e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.8.0 + +- Add support for minim 0.19 and minim-api-description 0.6. + # 0.7.0 - Compatibility with Minim 0.18 and minim-api-description 0.5. diff --git a/package.json b/package.json index 63b0de1..bf96e13 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "minim-parse-result", - "version": "0.7.0", + "version": "0.8.0", "description": "Minim Parse Result Namespace", "main": "./lib/parse-result.js", "repository": { @@ -17,12 +17,12 @@ }, "dependencies": { "babel-runtime": "^6.23.0", - "minim-api-description": "^0.5.0" + "minim-api-description": "^0.6.0" }, "devDependencies": { "babel-plugin-array-includes": "^2.0.3", "chai": "^3.2.0", - "minim": "^0.18.0", + "minim": "^0.19.0", "peasant": "^1.1.0" }, "engines": { diff --git a/src/parse-result.js b/src/parse-result.js index 2acfa7d..a0ee7bb 100644 --- a/src/parse-result.js +++ b/src/parse-result.js @@ -22,7 +22,7 @@ export function namespace(options) { } get api() { - return this.children.filter(item => item.classes.contains('api')).first(); + return this.children.filter(item => item.classes.contains('api')).first; } get annotations() { @@ -77,7 +77,7 @@ export function namespace(options) { const sourceMap = this.attributes.get('sourceMap'); if (sourceMap) { - return sourceMap.first().toValue(); + return sourceMap.first.toValue(); } return undefined; diff --git a/test/parse-result.js b/test/parse-result.js index 1958320..c783891 100644 --- a/test/parse-result.js +++ b/test/parse-result.js @@ -248,7 +248,7 @@ describe('Parse result namespace', () => { }); it('should have the source map location', () => { - expect(sourceMaps.first().toValue()).to.deep.equal([[1, 2]]); + expect(sourceMaps.first.toValue()).to.deep.equal([[1, 2]]); }); it('should have a convenience method for retrieving source map', () => {