Socket
Socket
Sign inDemoInstall

remark-github

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remark-github - npm Package Compare versions

Comparing version 2.0.1 to 3.0.0

73

history.md

@@ -7,14 +7,19 @@ <!--remark setext-->

3.0.0 / 2016-01-13
==================
* Fix output to be more similar to GitHub ([`067fdc5`](https://github.com/wooorm/remark-github/commit/067fdc5))
2.0.1 / 2015-12-25
==================
* Add node 4, 5 to travis ([cc3992e](https://github.com/wooorm/remark-github/commit/cc3992e))
* Remove distribution files from source ([10d4614](https://github.com/wooorm/remark-github/commit/10d4614))
* Remove support for bower ([bf06b8e](https://github.com/wooorm/remark-github/commit/bf06b8e))
* Remove superfluous ignores ([0b9a667](https://github.com/wooorm/remark-github/commit/0b9a667))
* Update jscs style guidelines ([ea60d82](https://github.com/wooorm/remark-github/commit/ea60d82))
* Refactor npm test target ([308737b](https://github.com/wooorm/remark-github/commit/308737b))
* Refactor to replace mocha with tape ([a6318c0](https://github.com/wooorm/remark-github/commit/a6318c0))
* Update dev-dependencies ([698b551](https://github.com/wooorm/remark-github/commit/698b551))
* Replace internal dependency of mdast > remark ([384629d](https://github.com/wooorm/remark-github/commit/384629d))
* Add node 4, 5 to travis ([`cc3992e`](https://github.com/wooorm/remark-github/commit/cc3992e))
* Remove distribution files from source ([`10d4614`](https://github.com/wooorm/remark-github/commit/10d4614))
* Remove support for bower ([`bf06b8e`](https://github.com/wooorm/remark-github/commit/bf06b8e))
* Remove superfluous ignores ([`0b9a667`](https://github.com/wooorm/remark-github/commit/0b9a667))
* Update jscs style guidelines ([`ea60d82`](https://github.com/wooorm/remark-github/commit/ea60d82))
* Refactor npm test target ([`308737b`](https://github.com/wooorm/remark-github/commit/308737b))
* Refactor to replace mocha with tape ([`a6318c0`](https://github.com/wooorm/remark-github/commit/a6318c0))
* Update dev-dependencies ([`698b551`](https://github.com/wooorm/remark-github/commit/698b551))
* Replace internal dependency of mdast > remark ([`384629d`](https://github.com/wooorm/remark-github/commit/384629d))

@@ -24,4 +29,4 @@ 2.0.0 / 2015-12-24

* Rename `mdast-github` > `remark-github` ([7082f35](https://github.com/wooorm/remark-github/commit/7082f35))
* Refactor for changes in mdast ([bbcf85b](https://github.com/wooorm/remark-github/commit/bbcf85b))
* Rename `mdast-github` > `remark-github` ([`7082f35`](https://github.com/wooorm/remark-github/commit/7082f35))
* Refactor for changes in mdast ([`bbcf85b`](https://github.com/wooorm/remark-github/commit/bbcf85b))

@@ -31,3 +36,3 @@ 1.0.0 / 2015-08-19

* Update dependencies, dev-dependencies ([2d61248](https://github.com/wooorm/remark-github/commit/2d61248))
* Update dependencies, dev-dependencies ([`2d61248`](https://github.com/wooorm/remark-github/commit/2d61248))

@@ -37,3 +42,3 @@ 0.3.2 / 2015-07-12

* Remove peer-dependencies ([a60b556](https://github.com/wooorm/remark-github/commit/a60b556))
* Remove peer-dependencies ([`a60b556`](https://github.com/wooorm/remark-github/commit/a60b556))

@@ -43,9 +48,9 @@ 0.3.1 / 2015-06-13

* Add missing dev-dependencies ([694db40](https://github.com/wooorm/remark-github/commit/694db40))
* Fix [b8a7f1e](https://github.com/wooorm/remark-github/commit/b8a7f1e) for case-sensitive file-systems ([b467b17](https://github.com/wooorm/remark-github/commit/b467b17))
* Add `.editorconfig` ([d4e66c4](https://github.com/wooorm/remark-github/commit/d4e66c4))
* Refactor lint targets ([b8a7f1e](https://github.com/wooorm/remark-github/commit/b8a7f1e))
* Add mdast-comment-config, mdast-lint as dependencies ([8a4aadf](https://github.com/wooorm/remark-github/commit/8a4aadf))
* Update mdast, mdast-toc, mdast-usage ([17c63e0](https://github.com/wooorm/remark-github/commit/17c63e0))
* Update eslint ([4936cd0](https://github.com/wooorm/remark-github/commit/4936cd0))
* Add missing dev-dependencies ([`694db40`](https://github.com/wooorm/remark-github/commit/694db40))
* Fix [b8a7f1e](https://github.com/wooorm/remark-github/commit/b8a7f1e) for case-sensitive file-systems ([`b467b17`](https://github.com/wooorm/remark-github/commit/b467b17))
* Add `.editorconfig` ([`d4e66c4`](https://github.com/wooorm/remark-github/commit/d4e66c4))
* Refactor lint targets ([`b8a7f1e`](https://github.com/wooorm/remark-github/commit/b8a7f1e))
* Add mdast-comment-config, mdast-lint as dependencies ([`8a4aadf`](https://github.com/wooorm/remark-github/commit/8a4aadf))
* Update mdast, mdast-toc, mdast-usage ([`17c63e0`](https://github.com/wooorm/remark-github/commit/17c63e0))
* Update eslint ([`4936cd0`](https://github.com/wooorm/remark-github/commit/4936cd0))

@@ -55,9 +60,9 @@ 0.3.0 / 2015-05-25

* Refactor module ([fb936ab](https://github.com/wooorm/remark-github/commit/fb936ab))
* Refactor test ([087c734](https://github.com/wooorm/remark-github/commit/087c734))
* Update mdast ([844c4ad](https://github.com/wooorm/remark-github/commit/844c4ad))
* Fix example, benchmark, test for changes in mdast ([f853398](https://github.com/wooorm/remark-github/commit/f853398))
* Update browserify ([f3039ec](https://github.com/wooorm/remark-github/commit/f3039ec))
* Update jscs-jsdoc ([d9e51ff](https://github.com/wooorm/remark-github/commit/d9e51ff))
* Update eslint ([b215ba6](https://github.com/wooorm/remark-github/commit/b215ba6))
* Refactor module ([`fb936ab`](https://github.com/wooorm/remark-github/commit/fb936ab))
* Refactor test ([`087c734`](https://github.com/wooorm/remark-github/commit/087c734))
* Update mdast ([`844c4ad`](https://github.com/wooorm/remark-github/commit/844c4ad))
* Fix example, benchmark, test for changes in mdast ([`f853398`](https://github.com/wooorm/remark-github/commit/f853398))
* Update browserify ([`f3039ec`](https://github.com/wooorm/remark-github/commit/f3039ec))
* Update jscs-jsdoc ([`d9e51ff`](https://github.com/wooorm/remark-github/commit/d9e51ff))
* Update eslint ([`b215ba6`](https://github.com/wooorm/remark-github/commit/b215ba6))

@@ -67,11 +72,11 @@ 0.2.0 / 2015-03-16

* Fix non-space delimited references ([14e1078](https://github.com/wooorm/remark-github/commit/14e1078))
* Fix link reference introduced in [7bb912f](https://github.com/wooorm/remark-github/commit/7bb912f) ([5be891a](https://github.com/wooorm/remark-github/commit/5be891a))
* Update `travis.yml` ([16fc6ac](https://github.com/wooorm/remark-github/commit/16fc6ac))
* Update docs for changes in mdast ([7bb912f](https://github.com/wooorm/remark-github/commit/7bb912f))
* Update for CLI updates in mdast ([3dc00bc](https://github.com/wooorm/remark-github/commit/3dc00bc))
* Refactor plugin mechanism ([a42425c](https://github.com/wooorm/remark-github/commit/a42425c))
* Remove CLI ([4d15bce](https://github.com/wooorm/remark-github/commit/4d15bce))
* Fix non-space delimited references ([`14e1078`](https://github.com/wooorm/remark-github/commit/14e1078))
* Fix link reference introduced in [7bb912f](https://github.com/wooorm/remark-github/commit/7bb912f) ([`5be891a`](https://github.com/wooorm/remark-github/commit/5be891a))
* Update `travis.yml` ([`16fc6ac`](https://github.com/wooorm/remark-github/commit/16fc6ac))
* Update docs for changes in mdast ([`7bb912f`](https://github.com/wooorm/remark-github/commit/7bb912f))
* Update for CLI updates in mdast ([`3dc00bc`](https://github.com/wooorm/remark-github/commit/3dc00bc))
* Refactor plugin mechanism ([`a42425c`](https://github.com/wooorm/remark-github/commit/a42425c))
* Remove CLI ([`4d15bce`](https://github.com/wooorm/remark-github/commit/4d15bce))
0.1.0 / 2015-03-16
==================

@@ -304,2 +304,3 @@ /**

var now;
var node;

@@ -339,5 +340,13 @@ if (length > MAX_SHA_LENGTH) {

return eat(subvalue)(
self.renderLink(true, href, abbr(subvalue), null, now, eat)
node = eat(subvalue)(
self.renderLink(true, href, subvalue, null, now, eat)
);
node.children = [{
'type': 'inlineCode',
'value': abbr(subvalue),
'position': node.children[0].position
}];
return node;
}

@@ -393,2 +402,3 @@

var href;
var node;
var now;

@@ -451,5 +461,12 @@

return eat(subvalue)(
self.renderLink(true, href, subvalue, null, now, eat)
);
node = eat(subvalue)(self.renderLink(
true, href, subvalue, null, now, eat
));
node.children = [{
'type': 'strong',
'children': node.children
}];
return node;
}

@@ -614,2 +631,4 @@

var content;
var node;
var add;

@@ -696,11 +715,10 @@ /* First character of username cannot be a dash. */

if (suffix === COMMITS) {
if (
if (
suffix === COMMITS &&
(
reference.length < MIN_SHA_LENGTH ||
reference.length > MAX_SHA_LENGTH
) {
reference = null;
} else {
content = abbr(content);
}
)
) {
reference = null;
}

@@ -721,8 +739,17 @@

subvalue = value.slice(0, index);
content = handle + (project ? C_SLASH + project : '') + delimiter +
content;
handle += (project ? C_SLASH + project : '') + delimiter;
add = eat(subvalue);
return eat(subvalue)(
self.renderLink(true, href, content, null, now, eat)
);
if (suffix === COMMITS) {
node = add(self.renderLink(true, href, handle, null, now, eat));
node.children.push({
'type': 'inlineCode',
'value': abbr(content)
});
return node;
}
return add(self.renderLink(true, href, handle + content, null, now, eat));
}

@@ -729,0 +756,0 @@

{
"name": "remark-github",
"version": "2.0.1",
"version": "3.0.0",
"description": "Auto-link references like in GitHub issues, PRs, and comments",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -40,12 +40,12 @@ # remark-github [![Build Status](https://img.shields.io/travis/wooorm/remark-github.svg)](https://travis-ci.org/wooorm/remark-github) [![Coverage Status](https://img.shields.io/codecov/c/github/wooorm/remark-github.svg)](https://codecov.io/github/wooorm/remark-github)

var input = [
'* SHA: a5c3785ed8d6a35868bc169f07e40e889087fd2e',
'* User@SHA: jlord@a5c3785ed8d6a35868bc169f07e40e889087fd2e',
'* User/Repository@SHA: jlord/sheetsee.js@a5c3785e',
'* #Num: #26',
'* GH-Num: GH-26',
'* User#Num: jlord#26',
'* User/Repository#Num: jlord/sheetsee.js#26',
'* SHA: 1f2a4fb8f88a0a98ea9d0c0522cd538a9898f921',
'* User@SHA: jlord@1f2a4fb8f88a0a98ea9d0c0522cd538a9898f921',
'* User/Repository@SHA: jlord/sheetsee.js@1f2a4fb',
'* #Num: #1',
'* GH-Num: GH-1',
'* User#Num: jlord#1',
'* User/Repository#Num: jlord/sheetsee.js#1',
'* @mention',
'* And @mentioning someone else',
'* And nothing.'
'* And nothing'
].join('\n');

@@ -63,12 +63,12 @@ ```

```markdown
- SHA: [a5c3785](https://github.com/wooorm/remark-github/commit/a5c3785ed8d6a35868bc169f07e40e889087fd2e)
- User@SHA: [jlord@a5c3785](https://github.com/jlord/remark-github/commit/a5c3785ed8d6a35868bc169f07e40e889087fd2e)
- User/Repository@SHA: [jlord/sheetsee.js@a5c3785](https://github.com/jlord/sheetsee.js/commit/a5c3785e)
- #Num: [#26](https://github.com/wooorm/remark-github/issues/26)
- GH-Num: [GH-26](https://github.com/wooorm/remark-github/issues/26)
- User#Num: [jlord#26](https://github.com/jlord/remark-github/issues/26)
- User/Repository#Num: [jlord/sheetsee.js#26](https://github.com/jlord/sheetsee.js/issues/26)
- [@mention](https://github.com/blog/821)
- And [@mentioning](https://github.com/mentioning) someone else
- And nothing.
- SHA: [`1f2a4fb`](https://github.com/wooorm/remark-github/commit/1f2a4fb8f88a0a98ea9d0c0522cd538a9898f921)
- User@SHA: [jlord@`1f2a4fb`](https://github.com/jlord/remark-github/commit/1f2a4fb8f88a0a98ea9d0c0522cd538a9898f921)
- User/Repository@SHA: [jlord/sheetsee.js@`1f2a4fb`](https://github.com/jlord/sheetsee.js/commit/1f2a4fb)
- \#Num: [#1](https://github.com/wooorm/remark-github/issues/1)
- GH-Num: [GH-1](https://github.com/wooorm/remark-github/issues/1)
- User#Num: [jlord#1](https://github.com/jlord/remark-github/issues/1)
- User/Repository#Num: [jlord/sheetsee.js#1](https://github.com/jlord/sheetsee.js/issues/1)
- [**@mention**](https://github.com/blog/821)
- And [**@mentioning**](https://github.com/mentioning) someone else
- And nothing
```

@@ -84,11 +84,11 @@

* SHA commits references: `e2c1dc7690932b0cef900fa4e7355df093448341`
— [e2c1dc7](https://github.com/wooorm/remark-github/commit/e2c1dc7690932b0cef900fa4e7355df093448341)
* SHA commits references: `1f2a4fb8f88a0a98ea9d0c0522cd538a9898f921`
— [`1f2a4fb`](https://github.com/wooorm/remark-github/commit/1f2a4fb8f88a0a98ea9d0c0522cd538a9898f921)
* User@SHA: `wooorm@e2c1dc7690932b0cef900fa4e7355df093448341`
— [wooorm@e2c1dc7](https://github.com/wooorm/remark-github/commit/e2c1dc7690932b0cef900fa4e7355df093448341)
* User@SHA: `wooorm@1f2a4fb8f88a0a98ea9d0c0522cd538a9898f921`
— [wooorm@`1f2a4fb`](https://github.com/wooorm/remark-github/commit/1f2a4fb8f88a0a98ea9d0c0522cd538a9898f921)
* User/Repository@SHA:
`wooorm/remark-github@e2c1dc7690932b0cef900fa4e7355df093448341`
— [wooorm/remark-github@e2c1dc7](https://github.com/wooorm/remark-github/commit/e2c1dc7690932b0cef900fa4e7355df093448341)
`wooorm/remark-github@1f2a4fb8f88a0a98ea9d0c0522cd538a9898f921`
— [wooorm/remark-github@`1f2a4fb`](https://github.com/wooorm/remark-github/commit/1f2a4fb8f88a0a98ea9d0c0522cd538a9898f921)

@@ -108,3 +108,3 @@ * Hash-Num: `#1`

* At-mentions: `@mention` and `@wooorm`
— [@mention](https://github.com/blog/821) and [@wooorm](https://github.com/wooorm)
— [**@mention**](https://github.com/blog/821) and [**@wooorm**](https://github.com/wooorm)

@@ -111,0 +111,0 @@ These links are generated relative to a project. In Node this is auto-detected

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc