mdast-util-definitions
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -1,5 +0,24 @@ | ||
<!--mdast setext--> | ||
<!--remark setext--> | ||
<!--lint disable no-multiple-toplevel-headings--> | ||
1.1.0 / 2016-01-08 | ||
================== | ||
* Fix Travis test-target ([4756e25](https://github.com/wooorm/mdast-util-definitions/commit/4756e25)) | ||
* Fix signatures in `readme.md` ([839acc9](https://github.com/wooorm/mdast-util-definitions/commit/839acc9)) | ||
* Fix code-style in `readme.md` ([60a25ca](https://github.com/wooorm/mdast-util-definitions/commit/60a25ca)) | ||
* Add Travis deployment to npm ([20dd057](https://github.com/wooorm/mdast-util-definitions/commit/20dd057)) | ||
* Add Travis deployment to GitHub releases ([c4be01a](https://github.com/wooorm/mdast-util-definitions/commit/c4be01a)) | ||
* Remove support for component ([e4a8810](https://github.com/wooorm/mdast-util-definitions/commit/e4a8810)) | ||
* Remove support for bower ([9b83c68](https://github.com/wooorm/mdast-util-definitions/commit/9b83c68)) | ||
* Remove superfluous ignores ([49c30bf](https://github.com/wooorm/mdast-util-definitions/commit/49c30bf)) | ||
* Update copyright notice to include 2016 ([c47460e](https://github.com/wooorm/mdast-util-definitions/commit/c47460e)) | ||
* Refactor npm test target ([28cfc8d](https://github.com/wooorm/mdast-util-definitions/commit/28cfc8d)) | ||
* Add node 4.0, node 5.0 to Travis test targets ([c1650fd](https://github.com/wooorm/mdast-util-definitions/commit/c1650fd)) | ||
* Remove superfluous test script ([f510e9e](https://github.com/wooorm/mdast-util-definitions/commit/f510e9e)) | ||
* Refactor to replace mocha with tape ([c740b51](https://github.com/wooorm/mdast-util-definitions/commit/c740b51)) | ||
* Update dev-dependencies ([618011f](https://github.com/wooorm/mdast-util-definitions/commit/618011f)) | ||
* Update `mdast` to `remark` ([9355890](https://github.com/wooorm/mdast-util-definitions/commit/9355890)) | ||
1.0.0 / 2015-08-19 | ||
@@ -6,0 +25,0 @@ ================== |
/** | ||
* @author Titus Wormer | ||
* @copyright 2015 Titus Wormer. All rights reserved. | ||
* @copyright 2015-2016 Titus Wormer. All rights reserved. | ||
* @license MIT | ||
@@ -76,3 +76,3 @@ * @module mdast:util:definitions | ||
* @example | ||
* var ast = mdast.parse('[example]: http://example.com "Example"'); | ||
* var ast = remark.parse('[example]: http://example.com "Example"'); | ||
* var getDefinition = getDefinitionFactory(ast); | ||
@@ -79,0 +79,0 @@ * getDefinition('example'); |
{ | ||
"name": "mdast-util-definitions", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Find definition nodes in mdast nodes", | ||
@@ -8,2 +8,3 @@ "license": "MIT", | ||
"mdast", | ||
"remark", | ||
"markdown", | ||
@@ -24,30 +25,28 @@ "node", | ||
"devDependencies": { | ||
"browserify": "^11.0.0", | ||
"browserify": "^12.0.0", | ||
"eslint": "^1.0.0", | ||
"esmangle": "^1.0.0", | ||
"istanbul": "^0.3.0", | ||
"istanbul": "^0.4.0", | ||
"jscs": "^2.0.0", | ||
"jscs-jsdoc": "^1.0.0", | ||
"mdast": "^1.0.0", | ||
"mdast-comment-config": "^1.0.0", | ||
"mdast-github": "^0.3.0", | ||
"mdast-lint": "^1.0.0", | ||
"mdast-slug": "^1.0.0", | ||
"mdast-validate-links": "^0.3.0", | ||
"mocha": "^2.0.0" | ||
"remark": "^3.0.0", | ||
"remark-comment-config": "^2.0.0", | ||
"remark-github": "^2.0.0", | ||
"remark-lint": "^2.0.0", | ||
"remark-slug": "^3.0.0", | ||
"remark-validate-links": "^2.0.0", | ||
"tape": "^4.0.0" | ||
}, | ||
"scripts": { | ||
"test-api": "mocha --check-leaks test.js", | ||
"test-coverage": "istanbul cover _mocha -- test.js", | ||
"test-travis": "npm run test-coverage", | ||
"test": "npm run test-api", | ||
"build-md": "remark . --quiet --frail", | ||
"build-bundle": "browserify index.js --no-builtins -s mdastUtilDefinitions > mdast-util-definitions.js", | ||
"build-mangle": "esmangle mdast-util-definitions.js > mdast-util-definitions.min.js", | ||
"build": "npm run build-md && npm run build-bundle && npm run build-mangle", | ||
"lint-api": "eslint .", | ||
"lint-style": "jscs --reporter inline .", | ||
"lint": "npm run lint-api && npm run lint-style", | ||
"make": "npm run lint && npm run test-coverage", | ||
"bundle": "browserify index.js --no-builtins -s mdastUtilDefinitions > mdast-util-definitions.js", | ||
"postbundle": "esmangle mdast-util-definitions.js > mdast-util-definitions.min.js", | ||
"build-md": "mdast . --quiet", | ||
"build": "npm run bundle && npm run build-md" | ||
"test-api": "node test.js", | ||
"test-coverage": "istanbul cover test.js", | ||
"test": "npm run build && npm run lint && npm run test-coverage" | ||
} | ||
} |
@@ -14,6 +14,5 @@ # mdast-util-definitions [![Build Status](https://img.shields.io/travis/wooorm/mdast-util-definitions.svg)](https://travis-ci.org/wooorm/mdast-util-definitions) [![Coverage Status](https://img.shields.io/codecov/c/github/wooorm/mdast-util-definitions.svg)](https://codecov.io/github/wooorm/mdast-util-definitions) | ||
**mdast-util-definitions** is also available for [bower](http://bower.io/#install-packages), | ||
[component](https://github.com/componentjs/component), [duo](http://duojs.org/#getting-started), | ||
and for AMD, CommonJS, and globals ([uncompressed](mdast-util-definitions.js) | ||
and [compressed](mdast-util-definitions.min.js)). | ||
**mdast-util-definitions** is also available for [duo](http://duojs.org/#getting-started) | ||
and as an AMD, CommonJS, and globals module, ([uncompressed and | ||
compressed](https://github.com/wooorm/mdast-util-definitions/releases)). | ||
@@ -23,6 +22,6 @@ ## Usage | ||
```js | ||
var mdast = require('mdast'); | ||
var remark = require('remark'); | ||
var definitions = require('mdast-util-definitions'); | ||
var ast = mdast.parse('[example]: http://example.com "Example"'); | ||
var ast = remark.parse('[example]: http://example.com "Example"'); | ||
@@ -40,3 +39,3 @@ var getDefinition = definitions(ast); | ||
### getDefinitionFactory(node): getDefinition | ||
### `getDefinitionFactory(node): getDefinition` | ||
@@ -51,3 +50,3 @@ Create a cache of all `definition`s in `node`. | ||
### getDefinition(identifier) | ||
### `getDefinition(identifier)` | ||
@@ -64,2 +63,2 @@ Get a definition by `identifier`. | ||
[MIT](LICENSE) @ [Titus Wormer](http://wooorm.com) | ||
[MIT](LICENSE) [@](https://github.com/) [Titus Wormer](http://wooorm.com) |
Sorry, the diff of this file is not supported yet
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
8223
60