Skip to content

Commit 47197b8

Browse files
fix: update dependencies to clean up yarn audit (#76)
1 parent 017c9da commit 47197b8

File tree

5 files changed

+2412
-6577
lines changed

5 files changed

+2412
-6577
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- v1-dependencies-
2929
- run: npx yarn install
3030
- run: npx yarn build
31-
- run: npx semantic-release
31+
- run: npx semantic-release@17.4.5
3232
workflows:
3333
version: 2
3434
test_and_release:

package.json

+7-8
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,25 @@
1616
"electron-docs-parser": "./dist/bin.js"
1717
},
1818
"devDependencies": {
19-
"@continuous-auth/semantic-release-npm": "2.0.0",
19+
"@continuous-auth/semantic-release-npm": "^3.0.0",
2020
"@types/chai": "^4.2.5",
2121
"@types/fs-extra": "^8.0.1",
2222
"@types/jest": "^24.0.23",
2323
"@types/lodash.camelcase": "^4.3.6",
2424
"@types/minimist": "^1.2.0",
2525
"@types/pretty-ms": "^5.0.1",
26-
"jest": "^24.9.0",
26+
"jest": "^29.3.1",
2727
"prettier": "^1.19.1",
28-
"semantic-release": "^17.4.7",
29-
"ts-jest": "^24.2.0",
30-
"typescript": "^3.7.2"
28+
"ts-jest": "^29.0.3",
29+
"typescript": "^4.9.3"
3130
},
3231
"dependencies": {
33-
"@types/markdown-it": "^10.0.0",
32+
"@types/markdown-it": "^12.0.0",
3433
"chai": "^4.2.0",
3534
"chalk": "^3.0.0",
3635
"fs-extra": "^8.1.0",
3736
"lodash.camelcase": "^4.3.0",
38-
"markdown-it": "^10.0.0",
37+
"markdown-it": "^12.0.0",
3938
"minimist": "^1.2.0",
4039
"ora": "^4.0.3",
4140
"pretty-ms": "^5.1.0"
@@ -57,4 +56,4 @@
5756
"url": "https://github.com/electron/docs-parser/issues"
5857
},
5958
"homepage": "https://github.com/electron/docs-parser#readme"
60-
}
59+
}

src/__tests__/__snapshots__/markdown-helpers.spec.ts.snap

+80-80
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`markdown-helpers rawTypeToTypeInformation() should allow commas in object types 1`] = `
4-
Object {
4+
{
55
"collection": false,
6-
"parameters": Array [],
7-
"returns": Object {
6+
"parameters": [],
7+
"returns": {
88
"collection": false,
99
"type": "{a: string, b: string}",
1010
},
@@ -13,10 +13,10 @@ Object {
1313
`;
1414

1515
exports[`markdown-helpers rawTypeToTypeInformation() should map a Promise types correctly 1`] = `
16-
Object {
16+
{
1717
"collection": false,
18-
"innerTypes": Array [
19-
Object {
18+
"innerTypes": [
19+
{
2020
"collection": false,
2121
"type": "T",
2222
},
@@ -26,17 +26,17 @@ Object {
2626
`;
2727

2828
exports[`markdown-helpers rawTypeToTypeInformation() should map a complex Promise types correctly 1`] = `
29-
Object {
29+
{
3030
"collection": false,
31-
"innerTypes": Array [
32-
Object {
31+
"innerTypes": [
32+
{
3333
"collection": false,
34-
"type": Array [
35-
Object {
34+
"type": [
35+
{
3636
"collection": false,
3737
"type": "T",
3838
},
39-
Object {
39+
{
4040
"collection": false,
4141
"type": "A",
4242
},
@@ -48,19 +48,19 @@ Object {
4848
`;
4949

5050
exports[`markdown-helpers rawTypeToTypeInformation() should map a function return type + param types correctly 1`] = `
51-
Object {
51+
{
5252
"collection": false,
53-
"parameters": Array [
54-
Object {
53+
"parameters": [
54+
{
5555
"collection": false,
5656
"type": "P1",
5757
},
58-
Object {
58+
{
5959
"collection": false,
6060
"type": "P2",
6161
},
6262
],
63-
"returns": Object {
63+
"returns": {
6464
"collection": false,
6565
"type": "R",
6666
},
@@ -69,10 +69,10 @@ Object {
6969
`;
7070

7171
exports[`markdown-helpers rawTypeToTypeInformation() should map a function return type correctly 1`] = `
72-
Object {
72+
{
7373
"collection": false,
74-
"parameters": Array [],
75-
"returns": Object {
74+
"parameters": [],
75+
"returns": {
7676
"collection": false,
7777
"type": "R",
7878
},
@@ -81,41 +81,41 @@ Object {
8181
`;
8282

8383
exports[`markdown-helpers rawTypeToTypeInformation() should map a function with complex return type + complex param types correctly 1`] = `
84-
Object {
84+
{
8585
"collection": false,
86-
"parameters": Array [
87-
Object {
86+
"parameters": [
87+
{
8888
"collection": false,
89-
"innerTypes": Array [
90-
Object {
89+
"innerTypes": [
90+
{
9191
"collection": false,
9292
"type": "InnerP1",
9393
},
94-
Object {
94+
{
9595
"collection": true,
9696
"type": "AnotherInnerP1",
9797
},
9898
],
9999
"type": "P1",
100100
},
101-
Object {
101+
{
102102
"collection": false,
103-
"innerTypes": Array [
104-
Object {
103+
"innerTypes": [
104+
{
105105
"collection": true,
106-
"type": Array [
107-
Object {
106+
"type": [
107+
{
108108
"collection": false,
109109
"type": "InnerP2",
110110
},
111-
Object {
111+
{
112112
"collection": false,
113-
"innerTypes": Array [
114-
Object {
113+
"innerTypes": [
114+
{
115115
"collection": false,
116116
"type": "SuperDeepP2",
117117
},
118-
Object {
118+
{
119119
"collection": false,
120120
"type": "EvenDeeperP2",
121121
},
@@ -128,10 +128,10 @@ Object {
128128
"type": "P2",
129129
},
130130
],
131-
"returns": Object {
131+
"returns": {
132132
"collection": false,
133-
"innerTypes": Array [
134-
Object {
133+
"innerTypes": [
134+
{
135135
"collection": false,
136136
"type": "Foo",
137137
},
@@ -143,20 +143,20 @@ Object {
143143
`;
144144

145145
exports[`markdown-helpers rawTypeToTypeInformation() should map a nested Function types correctly 1`] = `
146-
Object {
146+
{
147147
"collection": false,
148-
"innerTypes": Array [
149-
Object {
148+
"innerTypes": [
149+
{
150150
"collection": false,
151-
"type": Array [
152-
Object {
151+
"type": [
152+
{
153153
"collection": false,
154154
"type": "T",
155155
},
156-
Object {
156+
{
157157
"collection": true,
158-
"parameters": Array [],
159-
"returns": Object {
158+
"parameters": [],
159+
"returns": {
160160
"collection": true,
161161
"type": "A",
162162
},
@@ -170,20 +170,20 @@ Object {
170170
`;
171171

172172
exports[`markdown-helpers rawTypeToTypeInformation() should map a nested Promise types correctly 1`] = `
173-
Object {
173+
{
174174
"collection": false,
175-
"innerTypes": Array [
176-
Object {
175+
"innerTypes": [
176+
{
177177
"collection": false,
178-
"type": Array [
179-
Object {
178+
"type": [
179+
{
180180
"collection": false,
181181
"type": "T",
182182
},
183-
Object {
183+
{
184184
"collection": false,
185-
"innerTypes": Array [
186-
Object {
185+
"innerTypes": [
186+
{
187187
"collection": false,
188188
"type": "A",
189189
},
@@ -198,20 +198,20 @@ Object {
198198
`;
199199

200200
exports[`markdown-helpers rawTypeToTypeInformation() should map a nested complex Promise types correctly 1`] = `
201-
Object {
201+
{
202202
"collection": false,
203-
"innerTypes": Array [
204-
Object {
203+
"innerTypes": [
204+
{
205205
"collection": false,
206-
"type": Array [
207-
Object {
206+
"type": [
207+
{
208208
"collection": false,
209209
"type": "T",
210210
},
211-
Object {
211+
{
212212
"collection": true,
213-
"innerTypes": Array [
214-
Object {
213+
"innerTypes": [
214+
{
215215
"collection": true,
216216
"type": "A",
217217
},
@@ -226,20 +226,20 @@ Object {
226226
`;
227227

228228
exports[`markdown-helpers rawTypeToTypeInformation() should map a nested complex Promise types correctly 2`] = `
229-
Object {
229+
{
230230
"collection": false,
231-
"innerTypes": Array [
232-
Object {
231+
"innerTypes": [
232+
{
233233
"collection": false,
234-
"type": Array [
235-
Object {
234+
"type": [
235+
{
236236
"collection": false,
237237
"type": "T",
238238
},
239-
Object {
239+
{
240240
"collection": true,
241-
"innerTypes": Array [
242-
Object {
241+
"innerTypes": [
242+
{
243243
"collection": true,
244244
"type": "A",
245245
},
@@ -254,27 +254,27 @@ Object {
254254
`;
255255

256256
exports[`markdown-helpers rawTypeToTypeInformation() should map a primitive types correctly 1`] = `
257-
Object {
257+
{
258258
"collection": false,
259259
"type": "Boolean",
260260
}
261261
`;
262262

263263
exports[`markdown-helpers rawTypeToTypeInformation() should map a wrapped collection type correctly 1`] = `
264-
Object {
264+
{
265265
"collection": false,
266-
"innerTypes": Array [
267-
Object {
266+
"innerTypes": [
267+
{
268268
"collection": true,
269-
"type": Array [
270-
Object {
269+
"type": [
270+
{
271271
"collection": false,
272272
"type": "T",
273273
},
274-
Object {
274+
{
275275
"collection": false,
276-
"parameters": Array [],
277-
"returns": Object {
276+
"parameters": [],
277+
"returns": {
278278
"collection": true,
279279
"type": "A",
280280
},
@@ -288,7 +288,7 @@ Object {
288288
`;
289289

290290
exports[`markdown-helpers rawTypeToTypeInformation() should map an unknown types correctly 1`] = `
291-
Object {
291+
{
292292
"collection": false,
293293
"type": "MyType",
294294
}

src/__tests__/markdown-helpers.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ describe('markdown-helpers', () => {
4646

4747
it('should throw an error if there is a tag not on the whitelist', () => {
4848
expect(() => parseHeadingTags(' _Awesome_')).toThrowErrorMatchingInlineSnapshot(
49-
`"heading tags must be from the whitelist: [\\"macOS\\",\\"mas\\",\\"Windows\\",\\"Linux\\",\\"Experimental\\",\\"Deprecated\\",\\"Readonly\\"]: expected [ Array(7) ] to include 'Awesome'"`,
49+
`"heading tags must be from the whitelist: ["macOS","mas","Windows","Linux","Experimental","Deprecated","Readonly"]: expected [ 'macOS', 'mas', 'Windows', …(4) ] to include 'Awesome'"`,
5050
);
5151
});
5252
});

0 commit comments

Comments
 (0)