@lowlighter/xml 5.4.9 → 5.4.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/_types.ts CHANGED
@@ -1,3 +1,6 @@
1
+ // Imports
2
+ import type { Nullable } from "@libs/typing"
3
+
1
4
  /** XML text node. */
2
5
  export type xml_text = {
3
6
  /** Parent node. */
@@ -35,3 +38,12 @@ export type xml_document = xml_node & {
35
38
  /** XML instructions. */
36
39
  ["#instructions"]?: { [key: string]: xml_node | Array<xml_node> }
37
40
  }
41
+
42
+ /** Synchronous reader. */
43
+ export type ReaderSync = { readSync(buffer: Uint8Array): Nullable<number> }
44
+
45
+ /** A laxer type for what can be stringified. We won’t ever create this, but we’ll accept it. */
46
+ export type stringifyable = Partial<Omit<xml_document, "@version" | "@standalone"> & { "@version": string; "@standalone": string }>
47
+
48
+ // Exports
49
+ export type { Nullable }
package/deno.jsonc CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "icon": "📃",
3
3
  "name": "@libs/xml",
4
- "version": "5.4.9",
4
+ "version": "5.4.11",
5
5
  "description": "XML parser/stringifier with no dependencies.",
6
6
  "keywords": [
7
7
  "xml",
@@ -37,7 +37,7 @@
37
37
  "@std/fs/exists": "jsr:@std/fs@0.229.3/exists",
38
38
  "@std/path/from-file-url": "jsr:@std/path@0.225.2/from-file-url",
39
39
  "@libs/typing": "jsr:@libs/typing@2",
40
- "@libs/testing": "jsr:@libs/testing@1"
40
+ "@libs/testing": "jsr:@libs/testing@2"
41
41
  },
42
42
  "test:permissions": {
43
43
  "read": true,
@@ -57,12 +57,13 @@
57
57
  "tasks": {
58
58
  "build": "deno run --allow-read --allow-net --allow-env --allow-write --allow-run jsr:@libs/bundle/wasm/cli/build --auto-install --banner='https://github.com/lowlighter/libs' wasm_xml_parser",
59
59
  "test": "deno test --allow-read --allow-env=CI --allow-write=bench --allow-run=deno,node,bun,npx --no-prompt --coverage --clean --trace-leaks --doc",
60
- "dev": "deno fmt && deno task test --filter='/^\\[deno\\]/' && deno coverage --exclude=.js --detailed && deno lint && deno publish --dry-run --quiet --allow-dirty",
61
- "dev:future": "DENO_FUTURE=1 && deno task dev",
62
- "coverage": "deno task test --filter='/^\\[deno\\]/' --quiet && deno coverage --exclude=.js",
60
+ "dev": "deno fmt && deno task test --filter='/^\\[deno\\]/' && deno coverage --exclude=.js --detailed && deno task lint",
63
61
  "bench": "deno bench --allow-read --allow-write=bench",
64
- "ci": "deno fmt --check && deno task test --filter='/^\\[node|bun \\]/' --quiet && deno coverage --exclude=.js && deno lint",
65
- "ci:coverage": "deno task coverage --html && sleep 1 && mkdir -p ../coverage && rm -rf ../coverage/xml && mv coverage/html ../coverage/xml"
62
+ "test:deno": "deno fmt --check && deno task test --filter='/^\\[deno\\]/' --quiet && deno coverage --exclude=.js && deno lint",
63
+ "test:deno-future": "DENO_FUTURE=1 && deno task test:deno",
64
+ "test:others": "deno fmt --check && deno task test --filter='/^\\[node|bun \\]/' --quiet && deno coverage --exclude=.js && deno lint",
65
+ "coverage:html": "deno task test --filter='/^\\[deno\\]/' --quiet && deno coverage --exclude=.js --html && sleep 1",
66
+ "lint": "deno fmt --check && deno lint && deno doc --lint mod.ts && deno publish --dry-run --quiet --allow-dirty"
66
67
  },
67
68
  "lint": {
68
69
  "rules": {
package/deno.lock CHANGED
@@ -2,67 +2,81 @@
2
2
  "version": "3",
3
3
  "packages": {
4
4
  "specifiers": {
5
- "jsr:@libs/logger@1": "jsr:@libs/logger@1.1.2",
6
- "jsr:@libs/run@1": "jsr:@libs/run@1.0.1",
7
- "jsr:@libs/testing@1": "jsr:@libs/testing@1.1.0",
8
- "jsr:@libs/typing@2": "jsr:@libs/typing@2.3.0",
9
- "jsr:@std/assert@^0.225.3": "jsr:@std/assert@0.225.3",
10
- "jsr:@std/async@0.224.1": "jsr:@std/async@0.224.1",
5
+ "jsr:@libs/logger@1": "jsr:@libs/logger@1.1.3",
6
+ "jsr:@libs/run@1": "jsr:@libs/run@1.0.2",
7
+ "jsr:@libs/testing@2": "jsr:@libs/testing@2.0.0",
8
+ "jsr:@libs/typing@2": "jsr:@libs/typing@2.6.0",
9
+ "jsr:@std/assert@0.226.0": "jsr:@std/assert@0.226.0",
10
+ "jsr:@std/assert@1.0.0-rc.2": "jsr:@std/assert@1.0.0-rc.2",
11
+ "jsr:@std/async@0.224.2": "jsr:@std/async@0.224.2",
11
12
  "jsr:@std/bytes@^1.0.0-rc.3": "jsr:@std/bytes@1.0.1",
12
13
  "jsr:@std/bytes@^1.0.1-rc.3": "jsr:@std/bytes@1.0.1",
13
- "jsr:@std/expect@0.224.3": "jsr:@std/expect@0.224.3",
14
+ "jsr:@std/expect@0.224.5": "jsr:@std/expect@0.224.5",
14
15
  "jsr:@std/fs@0.229.3": "jsr:@std/fs@0.229.3",
16
+ "jsr:@std/http@0.224.5": "jsr:@std/http@0.224.5",
15
17
  "jsr:@std/internal@^1.0.0": "jsr:@std/internal@1.0.1",
16
- "jsr:@std/io@^0.224.0": "jsr:@std/io@0.224.3",
17
- "jsr:@std/path@0.225.1": "jsr:@std/path@0.225.1",
18
+ "jsr:@std/io@^0.224.1": "jsr:@std/io@0.224.3",
18
19
  "jsr:@std/path@0.225.2": "jsr:@std/path@0.225.2",
19
- "jsr:@std/streams@0.224.2": "jsr:@std/streams@0.224.2"
20
+ "jsr:@std/streams@0.224.5": "jsr:@std/streams@0.224.5"
20
21
  },
21
22
  "jsr": {
22
- "@libs/logger@1.1.2": {
23
- "integrity": "7d718f54c9a5d1c00f570051bee0217e3b282e8c2131144ec55c794a8ebd5d4f"
23
+ "@libs/logger@1.1.3": {
24
+ "integrity": "a359d5ce4aa9f2508b1515ad6f48f41e9dfbc2250ebaa1fd9059930b3a9bab3a"
24
25
  },
25
- "@libs/run@1.0.1": {
26
- "integrity": "b22b34ae7629179568c44efecb60f69310af013f65c96e447a5ee8743ff53f42",
26
+ "@libs/run@1.0.2": {
27
+ "integrity": "22486240b0df3dfbe5cdba1c799c7b038b90e2888092065b649220a5ee9a55ba",
27
28
  "dependencies": [
28
29
  "jsr:@libs/logger@1",
29
- "jsr:@std/async@0.224.1",
30
- "jsr:@std/streams@0.224.2"
30
+ "jsr:@libs/typing@2",
31
+ "jsr:@std/async@0.224.2",
32
+ "jsr:@std/streams@0.224.5"
31
33
  ]
32
34
  },
33
- "@libs/testing@1.1.0": {
34
- "integrity": "961fed690ee11a6f0f2cf8ed759b9b3a5c40ca24d319ba6c18cbbdaf73f1b29b",
35
+ "@libs/testing@2.0.0": {
36
+ "integrity": "a1cb40f127ec8ab3a37814beb13ff604b5aacbf9da633b413b243b7fcbd2309a",
35
37
  "dependencies": [
36
38
  "jsr:@libs/run@1",
37
- "jsr:@std/expect@0.224.3",
38
- "jsr:@std/path@0.225.1"
39
+ "jsr:@libs/typing@2",
40
+ "jsr:@std/assert@0.226.0",
41
+ "jsr:@std/expect@0.224.5",
42
+ "jsr:@std/http@0.224.5",
43
+ "jsr:@std/path@0.225.2"
39
44
  ]
40
45
  },
41
- "@libs/typing@2.3.0": {
42
- "integrity": "8a03098b2d63763bc3b45b58f6e847d9c085405db83330c588aecb6b670587d0"
46
+ "@libs/typing@2.6.0": {
47
+ "integrity": "07a1ee52fa6d769d68d95d7310bac7dd608932c91760a0bc8a95ce6de3630603"
43
48
  },
44
- "@std/assert@0.225.3": {
45
- "integrity": "b3c2847aecf6955b50644cdb9cf072004ea3d1998dd7579fc0acb99dbb23bd4f",
49
+ "@std/assert@0.226.0": {
50
+ "integrity": "0dfb5f7c7723c18cec118e080fec76ce15b4c31154b15ad2bd74822603ef75b3",
46
51
  "dependencies": [
47
52
  "jsr:@std/internal@^1.0.0"
48
53
  ]
49
54
  },
50
- "@std/async@0.224.1": {
51
- "integrity": "2fda2c8151cc5811a6ca37fe825f1f71c95e02a374abb6ef868e0e19eca814a5"
55
+ "@std/assert@1.0.0-rc.2": {
56
+ "integrity": "0484eab1d76b55fca1c3beaff485a274e67dd3b9f065edcbe70030dfc0b964d3",
57
+ "dependencies": [
58
+ "jsr:@std/internal@^1.0.0"
59
+ ]
60
+ },
61
+ "@std/async@0.224.2": {
62
+ "integrity": "4d277d6e165df43d5e061ba0ef3edfddb8e8d558f5b920e3e6b1d2614b44d074"
52
63
  },
53
64
  "@std/bytes@1.0.1": {
54
65
  "integrity": "e57c9b243932b95a4c3672f8a038cdadea7492efeeb6b8a774844fee70426815"
55
66
  },
56
- "@std/expect@0.224.3": {
57
- "integrity": "eacd71aaa426472bf04ddde7e0765b0b360d3ffa33ad2ca05a96fd7052caea41",
67
+ "@std/expect@0.224.5": {
68
+ "integrity": "ae6e57ee6f23a2fd5ae130cb84448eef182354cb902e1a2a98d64c72ac3a5a1c",
58
69
  "dependencies": [
59
- "jsr:@std/assert@^0.225.3",
70
+ "jsr:@std/assert@1.0.0-rc.2",
60
71
  "jsr:@std/internal@^1.0.0"
61
72
  ]
62
73
  },
63
74
  "@std/fs@0.229.3": {
64
75
  "integrity": "783bca21f24da92e04c3893c9e79653227ab016c48e96b3078377ebd5222e6eb"
65
76
  },
77
+ "@std/http@0.224.5": {
78
+ "integrity": "b03b5d1529f6c423badfb82f6640f9f2557b4034cd7c30655ba5bb447ff750a4"
79
+ },
66
80
  "@std/internal@1.0.1": {
67
81
  "integrity": "6f8c7544d06a11dd256c8d6ba54b11ed870aac6c5aeafff499892662c57673e6"
68
82
  },
@@ -72,18 +86,14 @@
72
86
  "jsr:@std/bytes@^1.0.1-rc.3"
73
87
  ]
74
88
  },
75
- "@std/path@0.225.1": {
76
- "integrity": "8c3220635a73730eb51fe43de9e10b79e2724a5bb8638b9355d35ae012fd9429"
77
- },
78
89
  "@std/path@0.225.2": {
79
90
  "integrity": "0f2db41d36b50ef048dcb0399aac720a5348638dd3cb5bf80685bf2a745aa506"
80
91
  },
81
- "@std/streams@0.224.2": {
82
- "integrity": "5d437af1423e4f616111b986ea783c15e0bc998b53e23e93b623de7ef0b14c2b",
92
+ "@std/streams@0.224.5": {
93
+ "integrity": "bcde7818dd5460d474cdbd674b15f6638b9cd73cd64e52bd852fba2bd4d8ec91",
83
94
  "dependencies": [
84
- "jsr:@std/assert@^0.225.3",
85
95
  "jsr:@std/bytes@^1.0.0-rc.3",
86
- "jsr:@std/io@^0.224.0"
96
+ "jsr:@std/io@^0.224.1"
87
97
  ]
88
98
  }
89
99
  }
@@ -91,7 +101,7 @@
91
101
  "remote": {},
92
102
  "workspace": {
93
103
  "dependencies": [
94
- "jsr:@libs/testing@1",
104
+ "jsr:@libs/testing@2",
95
105
  "jsr:@libs/typing@2",
96
106
  "jsr:@std/fs@0.229.3",
97
107
  "jsr:@std/path@0.225.2"