Skip to content

Commit 8ccec74

Browse files
committed
version bump 2.3.1
1 parent eac9ac4 commit 8ccec74

File tree

6 files changed

+11
-4
lines changed

6 files changed

+11
-4
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Code2flow CHANGELOG
22

3+
## [2.3.1] - 2021-12-13
4+
- Colored edges
5+
- Improve dependency robustness
6+
- Fixes for two Python bugs
7+
- Small textual improvements
8+
39
## [2.3.0] - 2021-10-11
410
Fix a few rare javascript bugs. Fix non-UTF8 encoding issue for Python. Better debugging.
511

MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
include LICENSE, CHANGELOG.md
22
include code2flow/get_ast.js
3+
include code2flow/get_ast.php

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
![code2flow logo](https://raw.githubusercontent.com/scottrogowski/code2flow/master/assets/code2flowlogo.png)
22

3-
![Version 2.3.0](https://img.shields.io/badge/version-2.3.0-brightgreen) ![Build passing](https://img.shields.io/badge/build-passing-brightgreen) ![Coverage 100%](https://img.shields.io/badge/coverage-100%25-brightgreen) ![License MIT](https://img.shields.io/badge/license-MIT-green])
3+
![Version 2.3.1](https://img.shields.io/badge/version-2.3.0-brightgreen) ![Build passing](https://img.shields.io/badge/build-passing-brightgreen) ![Coverage 100%](https://img.shields.io/badge/coverage-100%25-brightgreen) ![License MIT](https://img.shields.io/badge/license-MIT-green])
44

55
Code2flow generates [call graphs](https://en.wikipedia.org/wiki/Call_graph) for dynamic programming language. Code2flow supports Python, Javascript, Ruby, and PHP.
66

@@ -82,7 +82,7 @@ Detailed algorithm:
8282
1. Generate an AST of the source code
8383
2. Recursively separate groups and nodes. Groups are files, modules, or classes. More precisely, groups are namespaces where functions live. Nodes are the functions themselves.
8484
3. For all nodes, identify function calls in those nodes.
85-
4. For all nodes, identify in-scope variables. Attempt to connect those variables to specific nodes and groups. This is where there is some ambiguity in the algorithm because it is possible to know the types of variables in dynamic languages. So, instead, heuristics must be used.
85+
4. For all nodes, identify in-scope variables. Attempt to connect those variables to specific nodes and groups. This is where there is some ambiguity in the algorithm because it is impossible to know the types of variables in dynamic languages. So, instead, heuristics must be used.
8686
5. For all calls in all nodes, attempt to find a match from the in-scope variables. This will be an edge.
8787
6. If a definitive match from in-scope variables cannot be found, attempt to find a single match from all other groups and nodes.
8888
7. Trim orphaned nodes and groups.

assets/code2flow_output.png

7 KB
Loading

code2flow/engine.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from .model import (TRUNK_COLOR, LEAF_COLOR, NODE_COLOR, GROUP_TYPE, OWNER_CONST,
1515
Edge, Group, Node, Variable, is_installed, flatten)
1616

17-
VERSION = '2.3.0'
17+
VERSION = '2.3.1'
1818

1919
IMAGE_EXTENSIONS = ('png', 'svg')
2020
TEXT_EXTENSIONS = ('dot', 'gv', 'json')

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from code2flow.engine import VERSION
44

55
url_base = 'https://github.com/scottrogowski/code2flow'
6-
download_url = '%s/archive/fastmap-%s.tar.gz' % (url_base, VERSION)
6+
download_url = '%s/archive/code2flow-%s.tar.gz' % (url_base, VERSION)
77

88
setup(
99
name='code2flow',

0 commit comments

Comments
 (0)