Skip to content

Commit 394e540

Browse files
committed
Prep v1.0.4 release
1 parent 88e11a8 commit 394e540

7 files changed

Lines changed: 21 additions & 16 deletions

File tree

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "graphlib",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"main": [
55
"dist/graphlib.core.js"
66
],

dist/graphlib.core.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,9 @@ var _ = require("../lodash"),
218218
module.exports = findCycles;
219219

220220
function findCycles(g) {
221-
return _.filter(tarjan(g), function(cmpt) { return cmpt.length > 1; });
221+
return _.filter(tarjan(g), function(cmpt) {
222+
return cmpt.length > 1 || (cmpt.length === 1 && g.hasEdge(cmpt[0], cmpt[0]));
223+
});
222224
}
223225

224226
},{"../lodash":20,"./tarjan":14}],8:[function(require,module,exports){
@@ -1181,6 +1183,6 @@ if (!lodash) {
11811183
module.exports = lodash;
11821184

11831185
},{"lodash":undefined}],21:[function(require,module,exports){
1184-
module.exports = '1.0.3';
1186+
module.exports = '1.0.4';
11851187

11861188
},{}]},{},[1]);

dist/graphlib.core.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/graphlib.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,9 @@ var _ = require("../lodash"),
218218
module.exports = findCycles;
219219

220220
function findCycles(g) {
221-
return _.filter(tarjan(g), function(cmpt) { return cmpt.length > 1; });
221+
return _.filter(tarjan(g), function(cmpt) {
222+
return cmpt.length > 1 || (cmpt.length === 1 && g.hasEdge(cmpt[0], cmpt[0]));
223+
});
222224
}
223225

224226
},{"../lodash":20,"./tarjan":14}],8:[function(require,module,exports){
@@ -1181,18 +1183,18 @@ if (!lodash) {
11811183
module.exports = lodash;
11821184

11831185
},{"lodash":22}],21:[function(require,module,exports){
1184-
module.exports = '1.0.3';
1186+
module.exports = '1.0.4';
11851187

11861188
},{}],22:[function(require,module,exports){
11871189
(function (global){
11881190
/**
11891191
* @license
1190-
* Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/>
1192+
* Lo-Dash 2.4.2 (Custom Build) <https://lodash.com/>
11911193
* Build: `lodash modern -o ./dist/lodash.js`
11921194
* Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
11931195
* Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
11941196
* Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
1195-
* Available under MIT license <http://lodash.com/license>
1197+
* Available under MIT license <https://lodash.com/license>
11961198
*/
11971199
;(function() {
11981200

@@ -2681,6 +2683,7 @@ module.exports = '1.0.3';
26812683
var setBindData = !defineProperty ? noop : function(func, value) {
26822684
descriptor.value = value;
26832685
defineProperty(func, '__bindData__', descriptor);
2686+
descriptor.value = null;
26842687
};
26852688

26862689
/**
@@ -7326,7 +7329,7 @@ module.exports = '1.0.3';
73267329
* debugging. See http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl
73277330
*
73287331
* For more information on precompiling templates see:
7329-
* http://lodash.com/custom-builds
7332+
* https://lodash.com/custom-builds
73307333
*
73317334
* For more information on Chrome extension sandboxes see:
73327335
* http://developer.chrome.com/stable/extensions/sandboxingEval.html
@@ -7895,7 +7898,7 @@ module.exports = '1.0.3';
78957898
* @memberOf _
78967899
* @type string
78977900
*/
7898-
lodash.VERSION = '2.4.1';
7901+
lodash.VERSION = '2.4.2';
78997902

79007903
// add "Chaining" functions to the wrapper
79017904
lodash.prototype.chain = wrapperChain;

dist/graphlib.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = '1.0.4-pre';
1+
module.exports = '1.0.4';

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "graphlib",
3-
"version": "1.0.4-pre",
3+
"version": "1.0.4",
44
"description": "A directed and undirected multi-graph library",
55
"author": "Chris Pettitt <cpettitt@gmail.com>",
66
"main": "index.js",
@@ -35,4 +35,4 @@
3535
"url": "https://github.com/cpettitt/graphlib.git"
3636
},
3737
"license": "MIT"
38-
}
38+
}

0 commit comments

Comments
 (0)