Skip to content

Commit 5b3a9d3

Browse files
committed
Dependency update (except for remote-origin-url which breaks when you update, update changelog
1 parent fe2c5af commit 5b3a9d3

36 files changed

+1473
-676
lines changed

Diff for: CHANGELOG.md

+17
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
## 4.0.0-beta1
2+
3+
**Now using Babel 6!**
4+
5+
Much long-awaited upgrade makes documentation.js compatible with fresh
6+
new Babel-using codebases.
7+
8+
And also:
9+
10+
* GitHub Enterprise support
11+
* New tag support: abstract, override, readonly, interface, variation, see, todo
12+
(only in parsing phase, not yet in all outputs)
13+
* Parses jsx and es6 extensions by default, as well as .js
14+
* Fixes polyglot mode
15+
* Now shows the `@throws` tag content in Markdown output
16+
* Support for example captions
17+
118
## 4.0.0-beta
219

320
**Revitalized documentation.js command line interface!**

Diff for: lib/output/markdown_ast.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ function commentsToAST(comments, opts, callback) {
131131
return comment.context.github && u('paragraph', [
132132
u('link', {
133133
title: 'Source code on GitHub',
134-
href: comment.context.github
134+
url: comment.context.github
135135
}, [u('text', comment.context.path + ':' +
136136
comment.context.loc.start.line + '-' +
137137
comment.context.loc.end.line)])

Diff for: package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"disparity": "^2.0.0",
2424
"doctrine": "^1.1.0",
2525
"documentation-theme-default": "3.0.0-beta",
26-
"documentation-theme-utils": "^1.2.1",
26+
"documentation-theme-utils": "^2.0.2",
2727
"events": "^1.1.0",
2828
"extend": "^3.0.0",
2929
"get-comments": "^1.0.1",
@@ -36,11 +36,11 @@
3636
"mime": "^1.3.4",
3737
"module-deps": "^4.0.2",
3838
"parse-filepath": "^0.6.3",
39-
"remark": "^3.0.0",
40-
"remark-toc": "^2.0.0",
41-
"remote-origin-url": "^0.4.0",
39+
"remark": "^4.1.2",
40+
"remark-toc": "^3.0.0",
41+
"remote-origin-url": "0.4.0",
4242
"resolve": "^1.1.6",
43-
"slugg": "^0.1.2",
43+
"slugg": "^1.0.0",
4444
"stream-array": "^1.1.0",
4545
"strip-json-comments": "^2.0.0",
4646
"tiny-lr": "^0.2.1",
@@ -50,14 +50,14 @@
5050
"vfile-sort": "^1.0.0",
5151
"vinyl": "^1.1.0",
5252
"vinyl-fs": "^2.3.1",
53-
"yargs": "^3.31.0"
53+
"yargs": "^4.3.1"
5454
},
5555
"devDependencies": {
5656
"chdir": "0.0.0",
5757
"eslint": "^2.0.0",
5858
"fs-extra": "^0.26.2",
5959
"glob": "^7.0.0",
60-
"lodash": "~4.3.0",
60+
"lodash": "^4.3.0",
6161
"mock-fs": "^3.5.0",
6262
"tap": "^5.4.4",
6363
"tmp": "0.0.28"

Diff for: test/fixture/alias.output.md.json

+10-4
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,13 @@
2020
"position": {
2121
"start": {
2222
"line": 1,
23-
"column": 1
23+
"column": 1,
24+
"offset": 0
2425
},
2526
"end": {
2627
"line": 2,
27-
"column": 58
28+
"column": 58,
29+
"offset": 110
2830
},
2931
"indent": [
3032
1
@@ -35,11 +37,13 @@
3537
"position": {
3638
"start": {
3739
"line": 1,
38-
"column": 1
40+
"column": 1,
41+
"offset": 0
3942
},
4043
"end": {
4144
"line": 2,
42-
"column": 58
45+
"column": 58,
46+
"offset": 110
4347
},
4448
"indent": [
4549
1
@@ -78,6 +82,7 @@
7882
"children": [
7983
{
8084
"href": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number",
85+
"url": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number",
8186
"type": "link",
8287
"children": [
8388
{
@@ -110,6 +115,7 @@
110115
"children": [
111116
{
112117
"href": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number",
118+
"url": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number",
113119
"type": "link",
114120
"children": [
115121
{

Diff for: test/fixture/class.output.md.json

+60-28
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,13 @@
2020
"position": {
2121
"start": {
2222
"line": 1,
23-
"column": 1
23+
"column": 1,
24+
"offset": 0
2425
},
2526
"end": {
2627
"line": 1,
27-
"column": 32
28+
"column": 32,
29+
"offset": 31
2830
},
2931
"indent": []
3032
}
@@ -33,11 +35,13 @@
3335
"position": {
3436
"start": {
3537
"line": 1,
36-
"column": 1
38+
"column": 1,
39+
"offset": 0
3740
},
3841
"end": {
3942
"line": 1,
40-
"column": 32
43+
"column": 32,
44+
"offset": 31
4145
},
4246
"indent": []
4347
}
@@ -74,6 +78,7 @@
7478
"children": [
7579
{
7680
"href": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number",
81+
"url": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number",
7782
"type": "link",
7883
"children": [
7984
{
@@ -97,11 +102,13 @@
97102
"position": {
98103
"start": {
99104
"line": 1,
100-
"column": 1
105+
"column": 1,
106+
"offset": 0
101107
},
102108
"end": {
103109
"line": 1,
104-
"column": 28
110+
"column": 28,
111+
"offset": 27
105112
},
106113
"indent": []
107114
}
@@ -110,11 +117,13 @@
110117
"position": {
111118
"start": {
112119
"line": 1,
113-
"column": 1
120+
"column": 1,
121+
"offset": 0
114122
},
115123
"end": {
116124
"line": 1,
117-
"column": 28
125+
"column": 28,
126+
"offset": 27
118127
},
119128
"indent": []
120129
}
@@ -144,11 +153,13 @@
144153
"position": {
145154
"start": {
146155
"line": 1,
147-
"column": 1
156+
"column": 1,
157+
"offset": 0
148158
},
149159
"end": {
150160
"line": 1,
151-
"column": 18
161+
"column": 18,
162+
"offset": 17
152163
},
153164
"indent": []
154165
}
@@ -157,11 +168,13 @@
157168
"position": {
158169
"start": {
159170
"line": 1,
160-
"column": 1
171+
"column": 1,
172+
"offset": 0
161173
},
162174
"end": {
163175
"line": 1,
164-
"column": 18
176+
"column": 18,
177+
"offset": 17
165178
},
166179
"indent": []
167180
}
@@ -198,6 +211,7 @@
198211
"children": [
199212
{
200213
"href": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean",
214+
"url": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean",
201215
"type": "link",
202216
"children": [
203217
{
@@ -221,11 +235,13 @@
221235
"position": {
222236
"start": {
223237
"line": 1,
224-
"column": 1
238+
"column": 1,
239+
"offset": 0
225240
},
226241
"end": {
227242
"line": 1,
228-
"column": 26
243+
"column": 26,
244+
"offset": 25
229245
},
230246
"indent": []
231247
}
@@ -234,11 +250,13 @@
234250
"position": {
235251
"start": {
236252
"line": 1,
237-
"column": 1
253+
"column": 1,
254+
"offset": 0
238255
},
239256
"end": {
240257
"line": 1,
241-
"column": 26
258+
"column": 26,
259+
"offset": 25
242260
},
243261
"indent": []
244262
}
@@ -261,6 +279,7 @@
261279
"children": [
262280
{
263281
"href": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number",
282+
"url": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number",
264283
"type": "link",
265284
"children": [
266285
{
@@ -284,11 +303,13 @@
284303
"position": {
285304
"start": {
286305
"line": 1,
287-
"column": 1
306+
"column": 1,
307+
"offset": 0
288308
},
289309
"end": {
290310
"line": 1,
291-
"column": 10
311+
"column": 10,
312+
"offset": 9
292313
},
293314
"indent": []
294315
}
@@ -297,11 +318,13 @@
297318
"position": {
298319
"start": {
299320
"line": 1,
300-
"column": 1
321+
"column": 1,
322+
"offset": 0
301323
},
302324
"end": {
303325
"line": 1,
304-
"column": 10
326+
"column": 10,
327+
"offset": 9
305328
},
306329
"indent": []
307330
}
@@ -327,11 +350,13 @@
327350
"position": {
328351
"start": {
329352
"line": 1,
330-
"column": 1
353+
"column": 1,
354+
"offset": 0
331355
},
332356
"end": {
333357
"line": 1,
334-
"column": 14
358+
"column": 14,
359+
"offset": 13
335360
},
336361
"indent": []
337362
}
@@ -340,11 +365,13 @@
340365
"position": {
341366
"start": {
342367
"line": 1,
343-
"column": 1
368+
"column": 1,
369+
"offset": 0
344370
},
345371
"end": {
346372
"line": 1,
347-
"column": 14
373+
"column": 14,
374+
"offset": 13
348375
},
349376
"indent": []
350377
}
@@ -361,6 +388,7 @@
361388
"children": [
362389
{
363390
"href": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined",
391+
"url": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined",
364392
"type": "link",
365393
"children": [
366394
{
@@ -384,11 +412,13 @@
384412
"position": {
385413
"start": {
386414
"line": 1,
387-
"column": 1
415+
"column": 1,
416+
"offset": 0
388417
},
389418
"end": {
390419
"line": 1,
391-
"column": 26
420+
"column": 26,
421+
"offset": 25
392422
},
393423
"indent": []
394424
}
@@ -397,11 +427,13 @@
397427
"position": {
398428
"start": {
399429
"line": 1,
400-
"column": 1
430+
"column": 1,
431+
"offset": 0
401432
},
402433
"end": {
403434
"line": 1,
404-
"column": 26
435+
"column": 26,
436+
"offset": 25
405437
},
406438
"indent": []
407439
}

0 commit comments

Comments
 (0)