Skip to content

Commit d821df7

Browse files
committed
Update dependencies again
1 parent 1f8649c commit d821df7

File tree

9 files changed

+197
-37
lines changed

9 files changed

+197
-37
lines changed

api/slimdom.api.json

Lines changed: 157 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,163 @@
11
{
22
"metadata": {
33
"toolPackage": "@microsoft/api-extractor",
4-
"toolVersion": "7.13.1",
5-
"schemaVersion": 1003,
6-
"oldestForwardsCompatibleVersion": 1001
4+
"toolVersion": "7.19.2",
5+
"schemaVersion": 1004,
6+
"oldestForwardsCompatibleVersion": 1001,
7+
"tsdocConfig": {
8+
"$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
9+
"noStandardTags": true,
10+
"tagDefinitions": [
11+
{
12+
"tagName": "@alpha",
13+
"syntaxKind": "modifier"
14+
},
15+
{
16+
"tagName": "@beta",
17+
"syntaxKind": "modifier"
18+
},
19+
{
20+
"tagName": "@defaultValue",
21+
"syntaxKind": "block"
22+
},
23+
{
24+
"tagName": "@decorator",
25+
"syntaxKind": "block",
26+
"allowMultiple": true
27+
},
28+
{
29+
"tagName": "@deprecated",
30+
"syntaxKind": "block"
31+
},
32+
{
33+
"tagName": "@eventProperty",
34+
"syntaxKind": "modifier"
35+
},
36+
{
37+
"tagName": "@example",
38+
"syntaxKind": "block",
39+
"allowMultiple": true
40+
},
41+
{
42+
"tagName": "@experimental",
43+
"syntaxKind": "modifier"
44+
},
45+
{
46+
"tagName": "@inheritDoc",
47+
"syntaxKind": "inline"
48+
},
49+
{
50+
"tagName": "@internal",
51+
"syntaxKind": "modifier"
52+
},
53+
{
54+
"tagName": "@label",
55+
"syntaxKind": "inline"
56+
},
57+
{
58+
"tagName": "@link",
59+
"syntaxKind": "inline",
60+
"allowMultiple": true
61+
},
62+
{
63+
"tagName": "@override",
64+
"syntaxKind": "modifier"
65+
},
66+
{
67+
"tagName": "@packageDocumentation",
68+
"syntaxKind": "modifier"
69+
},
70+
{
71+
"tagName": "@param",
72+
"syntaxKind": "block",
73+
"allowMultiple": true
74+
},
75+
{
76+
"tagName": "@privateRemarks",
77+
"syntaxKind": "block"
78+
},
79+
{
80+
"tagName": "@public",
81+
"syntaxKind": "modifier"
82+
},
83+
{
84+
"tagName": "@readonly",
85+
"syntaxKind": "modifier"
86+
},
87+
{
88+
"tagName": "@remarks",
89+
"syntaxKind": "block"
90+
},
91+
{
92+
"tagName": "@returns",
93+
"syntaxKind": "block"
94+
},
95+
{
96+
"tagName": "@sealed",
97+
"syntaxKind": "modifier"
98+
},
99+
{
100+
"tagName": "@see",
101+
"syntaxKind": "block"
102+
},
103+
{
104+
"tagName": "@throws",
105+
"syntaxKind": "block",
106+
"allowMultiple": true
107+
},
108+
{
109+
"tagName": "@typeParam",
110+
"syntaxKind": "block",
111+
"allowMultiple": true
112+
},
113+
{
114+
"tagName": "@virtual",
115+
"syntaxKind": "modifier"
116+
},
117+
{
118+
"tagName": "@betaDocumentation",
119+
"syntaxKind": "modifier"
120+
},
121+
{
122+
"tagName": "@internalRemarks",
123+
"syntaxKind": "block"
124+
},
125+
{
126+
"tagName": "@preapproved",
127+
"syntaxKind": "modifier"
128+
}
129+
],
130+
"supportForTags": {
131+
"@alpha": true,
132+
"@beta": true,
133+
"@defaultValue": true,
134+
"@decorator": true,
135+
"@deprecated": true,
136+
"@eventProperty": true,
137+
"@example": true,
138+
"@experimental": true,
139+
"@inheritDoc": true,
140+
"@internal": true,
141+
"@label": true,
142+
"@link": true,
143+
"@override": true,
144+
"@packageDocumentation": true,
145+
"@param": true,
146+
"@privateRemarks": true,
147+
"@public": true,
148+
"@readonly": true,
149+
"@remarks": true,
150+
"@returns": true,
151+
"@sealed": true,
152+
"@see": true,
153+
"@throws": true,
154+
"@typeParam": true,
155+
"@virtual": true,
156+
"@betaDocumentation": true,
157+
"@internalRemarks": true,
158+
"@preapproved": true
159+
}
160+
}
7161
},
8162
"kind": "Package",
9163
"canonicalReference": "slimdom!",

api/slimdom.api.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export class Attr extends Node {
3535
// (undocumented)
3636
get value(): string;
3737
set value(value: string);
38-
}
38+
}
3939

4040
// @public (undocumented)
4141
export class CDATASection extends Text {
@@ -222,7 +222,7 @@ export class DOMImplementation {
222222
createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument;
223223
createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType;
224224
createHTMLDocument(title?: string | null): Document;
225-
}
225+
}
226226

227227
// @public
228228
export class Element extends Node implements ParentNode, NonDocumentTypeChildNode, ChildNode {
@@ -495,7 +495,6 @@ export class XMLSerializer {
495495
serializeToString(root: Node): string;
496496
}
497497

498-
499498
// (No @packageDocumentation comment for this package)
500499

501500
```

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,23 @@
3131
"url": "git://github.com/bwrrp/slimdom.js.git"
3232
},
3333
"devDependencies": {
34-
"@microsoft/api-documenter": "^7.12.7",
35-
"@microsoft/api-extractor": "^7.13.1",
36-
"@types/jest": "^26.0.20",
37-
"@types/parse5": "^6.0.0",
34+
"@microsoft/api-documenter": "^7.13.77",
35+
"@microsoft/api-extractor": "^7.19.2",
36+
"@types/jest": "^27.0.3",
37+
"@types/parse5": "^6.0.3",
3838
"copyfiles": "^2.4.1",
39-
"dom-treeadapter": "^0.2.1",
40-
"jest": "^26.6.3",
39+
"dom-treeadapter": "^0.2.2",
40+
"jest": "^27.4.5",
4141
"npm-run-all": "^4.1.5",
4242
"parse5": "^6.0.1",
43-
"prettier": "^2.2.1",
43+
"prettier": "^2.5.1",
4444
"rimraf": "^3.0.2",
45-
"rollup": "^2.39.0",
45+
"rollup": "^2.61.1",
4646
"rollup-plugin-sourcemaps": "^0.6.3",
4747
"rollup-plugin-terser": "^7.0.2",
48-
"sizzle": "^2.3.5",
49-
"ts-jest": "~26.5.1",
50-
"typescript": "^4.1.5"
48+
"sizzle": "^2.3.6",
49+
"ts-jest": "~27.1.2",
50+
"typescript": "^4.5.4"
5151
},
5252
"jest": {
5353
"transform": {

src/CharacterData.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ import {
2424
*/
2525
export default abstract class CharacterData
2626
extends Node
27-
implements NonDocumentTypeChildNode, ChildNode {
27+
implements NonDocumentTypeChildNode, ChildNode
28+
{
2829
// Node
2930

3031
public get nodeValue(): string | null {

src/Document.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -479,10 +479,11 @@ export default class Document extends Node implements NonElementParentNode, Pare
479479

480480
// 1. Let namespace, prefix, and localName be the result of passing namespace and
481481
// qualifiedName to validate and extract.
482-
const { namespace: validatedNamespace, prefix, localName } = validateAndExtract(
483-
namespace,
484-
qualifiedName
485-
);
482+
const {
483+
namespace: validatedNamespace,
484+
prefix,
485+
localName,
486+
} = validateAndExtract(namespace, qualifiedName);
486487

487488
// 2. Return a new attribute whose namespace is namespace, namespace prefix is prefix, local
488489
// name is localName, and node document is context object.

src/Element.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ import { asNullableString, asObject, treatNullAsEmptyString } from './util/typeH
4343
*/
4444
export default class Element
4545
extends Node
46-
implements ParentNode, NonDocumentTypeChildNode, ChildNode {
46+
implements ParentNode, NonDocumentTypeChildNode, ChildNode
47+
{
4748
// Node
4849

4950
public get nodeType(): number {
@@ -326,10 +327,11 @@ export default class Element
326327

327328
// 1. Let namespace, prefix, and localName be the result of passing namespace and
328329
// qualifiedName to validate and extract.
329-
const { namespace: validatedNamespace, prefix, localName } = validateAndExtract(
330-
namespace,
331-
qualifiedName
332-
);
330+
const {
331+
namespace: validatedNamespace,
332+
prefix,
333+
localName,
334+
} = validateAndExtract(namespace, qualifiedName);
333335

334336
// 2. Set an attribute value for the context object using localName, value, and also prefix
335337
// and namespace.

src/dom-parsing/serializationAlgorithms.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ import {
1313
XML_NAMESPACE,
1414
XMLNS_NAMESPACE,
1515
} from '../util/namespaceHelpers';
16-
import { isNodeOfType, NodeType } from '../util/NodeType';
17-
import { getNodeDocument } from '../util/treeHelpers';
16+
import { NodeType } from '../util/NodeType';
1817
import {
1918
recordNamespaceInformation,
2019
LocalPrefixesMap,
@@ -35,7 +34,8 @@ const Char = regenerate()
3534
3635
return `^(${Char.toString()})*$`;
3736
*/
38-
const CHAR_REGEX_XML_1_0_FIFTH_EDITION = /^(?:[\t\n\r -\uD7FF\uE000-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/;
37+
const CHAR_REGEX_XML_1_0_FIFTH_EDITION =
38+
/^(?:[\t\n\r -\uD7FF\uE000-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/;
3939

4040
/*
4141
// PUBIDCHAR_REGEX_XML_1_0_FIFTH_EDITION generated using regenerate:
@@ -165,7 +165,7 @@ export function produceXmlSerialization(
165165
result
166166
);
167167
} catch (error) {
168-
return throwInvalidStateError(error.message);
168+
return throwInvalidStateError((error as Error).message);
169169
}
170170
}
171171

src/util/createElementNS.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ export default function createElementNS(
2121
): Element {
2222
// 1. Let namespace, prefix, and localName be the result of passing namespace and qualifiedName
2323
// to validate and extract.
24-
const { namespace: validatedNamespace, prefix, localName } = validateAndExtract(
25-
namespace,
26-
qualifiedName
27-
);
24+
const {
25+
namespace: validatedNamespace,
26+
prefix,
27+
localName,
28+
} = validateAndExtract(namespace, qualifiedName);
2829

2930
// 2. Let is be the value of is member of options, or null if no such member exists.
3031
// (custom elements not implemented)

0 commit comments

Comments
 (0)