Skip to content

Commit 6abe3d8

Browse files
authored
update node deps (#98)
* Update deps * Adjust tests to rerun less * Skip git clean on npm prepare * Rm old nodejs LTS versions
1 parent 1aa49d4 commit 6abe3d8

File tree

6 files changed

+20
-20
lines changed

6 files changed

+20
-20
lines changed

.github/workflows/nodejs.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ jobs:
1616
os:
1717
- ubuntu-latest
1818
node_version:
19-
- 12
20-
- 14
2119
- 16
20+
- 18
21+
- 20
2222
include:
2323
- os: windows-latest
24-
node_version: 14
24+
node_version: 18
2525
- os: macos-latest
26-
node_version: 14
26+
node_version: 18
2727

2828
defaults:
2929
run:
@@ -65,4 +65,4 @@ jobs:
6565
- name: Fine grained tests
6666
run: |
6767
micromamba activate instant-markdown
68-
python -m pytest
68+
python -m pytest --reruns 3 --reruns-delay 2

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,23 @@
2121
"start": "instant-markdown-d",
2222
"test": "cat tests/test_math.md | instant-markdown-d --mathjax --debug",
2323
"stop": "curl -X DELETE -s -w 'status: %{http_code}' -m 3 localhost:8090",
24-
"prepare": "genversion ./src/version.js; git clean -f;"
24+
"prepare": "genversion ./src/version.js"
2525
},
2626
"dependencies": {
27-
"highlight.js": "^10.4.1",
27+
"highlight.js": "^11.8.0",
2828
"markdown-it": "^13.0.1",
2929
"markdown-it-mathjax": "^2.0.0",
3030
"markdown-it-task-lists": "^2.1.1",
3131
"markdown-it-front-matter": "^0.2.3",
3232
"markdown-it-textual-uml": "^0.1.3",
33-
"mathjax": "^2.7.5",
34-
"mathjax-node-page": "^1.4.0",
35-
"mermaid": "^9.1.1",
36-
"minimist": "^1.2.5",
37-
"send": "~0.17.1",
38-
"socket.io": "^3.0.4"
33+
"mathjax": "^2.7.9",
34+
"mathjax-node-page": "^1.4.1",
35+
"mermaid": "~10.4.0",
36+
"minimist": "^1.2.8",
37+
"send": "~0.17.2",
38+
"socket.io": "^4.7.2"
3939
},
4040
"devDependencies": {
41-
"genversion": "^2.1.1"
41+
"genversion": "^3.1.1"
4242
}
4343
}

pytest.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@
22
log_cli_level=info
33
log_format = %(asctime)s %(levelname)s %(filename)s:%(lineno)03d::%(funcName)-20s %(message)s
44
log_date_format = %H:%M:%S
5-
addopts = --reruns 3 --reruns-delay 2

src/cli.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const MarkdownIt = require('markdown-it'),
3232
const mjpage = require('mathjax-node-page').mjpage;
3333
const taskLists = require('markdown-it-task-lists');
3434
const frontMatter = require('markdown-it-front-matter');
35-
35+
3636
if (argv.version || argv.debug) {
3737
const version= require('./version');
3838
console.log(`instant-markdown-d version: v${version}`);
@@ -85,7 +85,7 @@ let md = new MarkdownIt({
8585
}).use(taskLists, {enabled: true}).use(frontMatter, function(fm){});
8686

8787
if (argv.mathjax) md.use(require('markdown-it-mathjax')());
88-
if (argv.mermaid) md.use(require('markdown-it-textual-uml'));
88+
if (argv.mermaid) md.use(require('markdown-it-textual-uml'));
8989

9090
const mjPageConfig = {
9191
format: ["TeX"],

src/version.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.

tests/conftest.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def __exit__(self, exc_type, exc_val, exc_tb):
118118
def send(self, via, markdown_file):
119119
# Wait some time to ensure the server has launched
120120
# TODO: find a better way: signal? return code? daemon?
121-
for tries in range(10):
121+
for tries in range(3):
122122
if port_in_use(self.port):
123123
break
124124
else:
@@ -128,7 +128,8 @@ def send(self, via, markdown_file):
128128
# break not encountered => port inactive
129129
raise IOError(
130130
"Giving up checks for port. "
131-
"Has instant-markdown-d failed to start?"
131+
"Has instant-markdown-d failed to start? Try running:\n"
132+
f" cat {markdown_file} | instant-markdown-d {' '.join(self.options)}"
132133
)
133134

134135
method = getattr(self, f"_send_{via}")

0 commit comments

Comments
 (0)