@domtree/minimal
Advanced tools
Comparing version 0.9.1 to 0.9.2
# @domtree/minimal | ||
## 0.9.2 | ||
### Patch Changes | ||
- 1a553c5: Prepare for 0.8 | ||
- Updated dependencies [1a553c5] | ||
- @domtree/interface@0.9.2 | ||
## 0.9.1 | ||
@@ -4,0 +12,0 @@ |
38
index.ts
@@ -33,3 +33,5 @@ import type * as dom from "@domtree/interface"; | ||
type ReadonlyNode = { [Empty]?: true }; | ||
interface ReadonlyNode { | ||
[Empty]?: true; | ||
} | ||
@@ -40,3 +42,3 @@ interface ReadonlyParent extends ReadonlyNode { | ||
querySelectorAll(selectors: string): Iterable<ChildNode>; | ||
querySelectorAll: (selectors: string) => Iterable<ChildNode>; | ||
} | ||
@@ -51,3 +53,3 @@ | ||
*/ | ||
insertBefore(newChild: Node, refChild: Node | null): void; | ||
insertBefore: (newChild: Node, refChild: Node | null) => void; | ||
} | ||
@@ -66,3 +68,3 @@ | ||
*/ | ||
remove(): void; | ||
remove: () => void; | ||
@@ -72,3 +74,3 @@ /** | ||
*/ | ||
replaceWith(node: Node): void; | ||
replaceWith: (node: Node) => void; | ||
} | ||
@@ -79,12 +81,12 @@ | ||
createElementNS( | ||
createElementNS: ( | ||
ns: ElementNamespace, | ||
qualifiedName: string, | ||
options?: { is: string } | ||
): Element; | ||
) => Element; | ||
createRange(): LiveRange; | ||
createTextNode(data: string): Text; | ||
createComment(data: string): Comment; | ||
createDocumentFragment(): DocumentFragment; | ||
createRange: () => LiveRange; | ||
createTextNode: (data: string) => Text; | ||
createComment: (data: string) => Comment; | ||
createDocumentFragment: () => DocumentFragment; | ||
} | ||
@@ -103,3 +105,3 @@ | ||
export interface Element extends ReadonlyParent, ReadonlyChild { | ||
matches(selectors: string): boolean; | ||
matches: (selectors: string) => boolean; | ||
@@ -110,5 +112,5 @@ readonly tagName: string; | ||
hasAttribute(qualifiedName: string): boolean; | ||
getAttributeNode(qualifiedName: string): Attr | null; | ||
removeAttribute(qualifiedName: string): void; | ||
hasAttribute: (qualifiedName: string) => boolean; | ||
getAttributeNode: (qualifiedName: string) => Attr | null; | ||
removeAttribute: (qualifiedName: string) => void; | ||
@@ -120,7 +122,7 @@ get innerHTML(): string; | ||
interface MutableElement extends Element, MutableParent, MutableChild { | ||
setAttributeNS( | ||
setAttributeNS: ( | ||
namespace: AttributeNamespace | null, | ||
qualifiedName: string, | ||
value: string | ||
): void; | ||
) => void; | ||
@@ -149,3 +151,3 @@ set innerHTML(html: string); | ||
readonly data: string; | ||
remove(): void; | ||
remove: () => void; | ||
} | ||
@@ -152,0 +154,0 @@ |
{ | ||
"name": "@domtree/minimal", | ||
"version": "0.9.1", | ||
"version": "0.9.2", | ||
"type": "module", | ||
"types": "index.ts", | ||
"types": "dist/index.d.ts", | ||
"starbeam": { | ||
"source": "ts", | ||
"type": "library:interfaces" | ||
}, | ||
"dependencies": { | ||
"@domtree/interface": "^0.9.1" | ||
} | ||
"@domtree/interface": "^0.9.2" | ||
}, | ||
"devDependencies": { | ||
"@starbeam-dev/build-support": "1.0.0" | ||
}, | ||
"scripts": { | ||
"test:lint": "eslint", | ||
"test:types": "tsc -b" | ||
}, | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.js", | ||
"default": "./dist/index.cjs" | ||
} | ||
}, | ||
"main": "dist/index.cjs" | ||
} |
{ | ||
"extends": "../../../.config/tsconfig/tsconfig.-package.json" | ||
"extends": "../../../.config/tsconfig/tsconfig.shared.json", | ||
"compilerOptions": { | ||
"declarationMap": true, | ||
"declarationDir": "../../../dist/types", | ||
"declaration": true, | ||
"outDir": "../../../dist/packages", | ||
"composite": true, | ||
"types": ["../../../packages/env"] | ||
}, | ||
"exclude": ["dist/**/*"] | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10996
1
6
230
Updated@domtree/interface@^0.9.2