@knapsack/rendering-utils 4.92.24 → 4.92.25--canary.7690.26163e3.0
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/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-test.log +39 -52
- package/package.json +11 -12
- package/vitest.config.ts +7 -0
- package/ava.config.cjs +0 -3
package/.turbo/turbo-build.log
CHANGED
package/.turbo/turbo-lint.log
CHANGED
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,60 +1,47 @@
|
|
|
1
1
|
|
|
2
|
-
> @knapsack/rendering-utils@4.92.
|
|
3
|
-
>
|
|
2
|
+
> @knapsack/rendering-utils@4.92.24 test /home/runner/work/app-monorepo/app-monorepo/libs/rendering-utils
|
|
3
|
+
> vitest run
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
[
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
at Array.map (<anonymous>)
|
|
11
|
-
at Fragment.fromJSON (file:///home/runner/work/app-monorepo/app-monorepo/node_modules/.pnpm/prosemirror-model@1.25.4/node_modules/prosemirror-model/dist/index.js:314:35)
|
|
12
|
-
at Node.fromJSON (file:///home/runner/work/app-monorepo/app-monorepo/node_modules/.pnpm/prosemirror-model@1.25.4/node_modules/prosemirror-model/dist/index.js:1539:32)
|
|
13
|
-
at generateHTML (/home/runner/work/app-monorepo/app-monorepo/node_modules/.pnpm/@tiptap+html@3.20.0_@tiptap+core@3.20.0_@tiptap+pm@3.20.0__@tiptap+pm@3.20.0_happy-dom@_fb9f5841e8c1bd3ab1a0faf6f7899695/node_modules/@tiptap/html/src/server/generateHTML.ts:30:28)
|
|
14
|
-
at convertTipTapJsonToHtml (/home/runner/work/app-monorepo/app-monorepo/libs/tiptap-utils/src/tiptap-utils.ts:27:10)
|
|
15
|
-
at tiptapToHtmlSafe (/home/runner/work/app-monorepo/app-monorepo/libs/rendering-utils/src/blocks-to-html.ts:43:12)
|
|
16
|
-
at blockToHtml (/home/runner/work/app-monorepo/app-monorepo/libs/rendering-utils/src/blocks-to-html.ts:59:14)
|
|
17
|
-
✔ blocksToHtml - empty array (141ms)
|
|
18
|
-
✔ blocksToHtml - single divider-block (140ms)
|
|
19
|
-
✔ blocksToHtml - single text-editor block (140ms)
|
|
20
|
-
✔ blocksToHtml - single code-snippet block (106ms)
|
|
21
|
-
✔ blocksToHtml - single callout block
|
|
22
|
-
✔ blocksToHtml - single callout block with error type
|
|
23
|
-
✔ blocksToHtml - single image-block with single image
|
|
24
|
-
✔ blocksToHtml - single image-block with multiple images
|
|
25
|
-
✔ blocksToHtml - single image-block with no images
|
|
26
|
-
✔ blocksToHtml - single image-block with empty images array
|
|
27
|
-
✔ blocksToHtml - single video block
|
|
28
|
-
✔ blocksToHtml - video block with no selected video
|
|
29
|
-
✔ blocksToHtml - text-editor with unknown TipTap node type does not throw
|
|
30
|
-
✔ blocksToHtml - single files-list block with image files
|
|
31
|
-
✔ blocksToHtml - single files-list block with non-image files
|
|
32
|
-
✔ blocksToHtml - single files-list block with mixed files
|
|
33
|
-
✔ blocksToHtml - single files-list block with empty array
|
|
34
|
-
✔ blocksToHtml - single shortcut-tiles block
|
|
35
|
-
✔ blocksToHtml - single shortcut-tiles block with empty shortcuts
|
|
36
|
-
✔ blocksToHtml - single shortcut-tiles block with no image
|
|
37
|
-
✔ blocksToHtml - single shortcut-tiles block with link but no name
|
|
38
|
-
✔ blocksToHtml - block with no data
|
|
39
|
-
✔ blocksToHtml - file extensions detection for images
|
|
40
|
-
✔ blocksToHtml - case insensitive file extension detection
|
|
41
|
-
✔ blocksToHtml - files with no extension
|
|
42
|
-
marked(): mangle parameter is enabled by default, but is deprecated since version 5.0.0, and will be removed in the future. To clear this warning, install https://www.npmjs.com/package/marked-mangle, or disable by setting `{mangle: false}`.
|
|
6
|
+
[1m[30m[46m RUN [49m[39m[22m [36mv4.1.4 [39m[90m/home/runner/work/app-monorepo/app-monorepo/libs/rendering-utils[39m
|
|
7
|
+
|
|
8
|
+
[90mstderr[2m | src/blocks-to-html.test.ts[2m > [22m[2mblocksToHtml - single markdown-block with string
|
|
9
|
+
[22m[39mmarked(): mangle parameter is enabled by default, but is deprecated since version 5.0.0, and will be removed in the future. To clear this warning, install https://www.npmjs.com/package/marked-mangle, or disable by setting `{mangle: false}`.
|
|
43
10
|
marked(): headerIds and headerPrefix parameters enabled by default, but are deprecated since version 5.0.0, and will be removed in the future. To clear this warning, install https://www.npmjs.com/package/marked-gfm-heading-id, or disable by setting `{headerIds: false}`.
|
|
44
|
-
|
|
11
|
+
|
|
12
|
+
[90mstderr[2m | src/blocks-to-html.test.ts[2m > [22m[2mblocksToHtml - single markdown-block with array
|
|
13
|
+
[22m[39mmarked(): mangle parameter is enabled by default, but is deprecated since version 5.0.0, and will be removed in the future. To clear this warning, install https://www.npmjs.com/package/marked-mangle, or disable by setting `{mangle: false}`.
|
|
45
14
|
marked(): headerIds and headerPrefix parameters enabled by default, but are deprecated since version 5.0.0, and will be removed in the future. To clear this warning, install https://www.npmjs.com/package/marked-gfm-heading-id, or disable by setting `{headerIds: false}`.
|
|
46
|
-
|
|
15
|
+
|
|
16
|
+
[90mstderr[2m | src/blocks-to-html.test.ts[2m > [22m[2mblocksToHtml - single markdown-block with empty string
|
|
17
|
+
[22m[39mmarked(): mangle parameter is enabled by default, but is deprecated since version 5.0.0, and will be removed in the future. To clear this warning, install https://www.npmjs.com/package/marked-mangle, or disable by setting `{mangle: false}`.
|
|
47
18
|
marked(): headerIds and headerPrefix parameters enabled by default, but are deprecated since version 5.0.0, and will be removed in the future. To clear this warning, install https://www.npmjs.com/package/marked-gfm-heading-id, or disable by setting `{headerIds: false}`.
|
|
48
|
-
|
|
19
|
+
|
|
20
|
+
[90mstderr[2m | src/blocks-to-html.test.ts[2m > [22m[2mblocksToHtml - single markdown-block with undefined md
|
|
21
|
+
[22m[39mmarked(): mangle parameter is enabled by default, but is deprecated since version 5.0.0, and will be removed in the future. To clear this warning, install https://www.npmjs.com/package/marked-mangle, or disable by setting `{mangle: false}`.
|
|
49
22
|
marked(): headerIds and headerPrefix parameters enabled by default, but are deprecated since version 5.0.0, and will be removed in the future. To clear this warning, install https://www.npmjs.com/package/marked-gfm-heading-id, or disable by setting `{headerIds: false}`.
|
|
50
|
-
|
|
23
|
+
|
|
24
|
+
[90mstderr[2m | src/blocks-to-html.test.ts[2m > [22m[2mblocksToHtml - text-editor with unknown TipTap node type does not throw
|
|
25
|
+
[22m[39m[blocks-to-html] TipTap render failed for block "test-1" (text-editor): RangeError: Unknown node type: this-node-type-does-not-exist
|
|
26
|
+
at Schema.nodeType (file:///home/runner/work/app-monorepo/app-monorepo/node_modules/[4m.pnpm[24m/prosemirror-model@1.25.4/node_modules/[4mprosemirror-model[24m/dist/index.js:2500:19)
|
|
27
|
+
at Function.fromJSON (file:///home/runner/work/app-monorepo/app-monorepo/node_modules/[4m.pnpm[24m/prosemirror-model@1.25.4/node_modules/[4mprosemirror-model[24m/dist/index.js:1540:27)
|
|
28
|
+
at Schema.nodeFromJSON (file:///home/runner/work/app-monorepo/app-monorepo/node_modules/[4m.pnpm[24m/prosemirror-model@1.25.4/node_modules/[4mprosemirror-model[24m/dist/index.js:2458:42)
|
|
29
|
+
at Array.map (<anonymous>)
|
|
30
|
+
at Function.fromJSON (file:///home/runner/work/app-monorepo/app-monorepo/node_modules/[4m.pnpm[24m/prosemirror-model@1.25.4/node_modules/[4mprosemirror-model[24m/dist/index.js:314:35)
|
|
31
|
+
at Function.fromJSON (file:///home/runner/work/app-monorepo/app-monorepo/node_modules/[4m.pnpm[24m/prosemirror-model@1.25.4/node_modules/[4mprosemirror-model[24m/dist/index.js:1539:32)
|
|
32
|
+
at generateHTML (file:///home/runner/work/app-monorepo/app-monorepo/node_modules/[4m.pnpm[24m/@tiptap+html@3.20.0_@tiptap+core@3.20.0_@tiptap+pm@3.20.0__@tiptap+pm@3.20.0_happy-dom@_fb9f5841e8c1bd3ab1a0faf6f7899695/node_modules/[4m@tiptap/html[24m/dist/server/index.js:46:28)
|
|
33
|
+
at convertTipTapJsonToHtml (/home/runner/work/app-monorepo/app-monorepo/libs/tiptap-utils/src/tiptap-utils.ts:27:22)
|
|
34
|
+
at tiptapToHtmlSafe [90m(/home/runner/work/app-monorepo/app-monorepo/libs/rendering-utils/[39msrc/blocks-to-html.ts:43:12[90m)[39m
|
|
35
|
+
at blockToHtml [90m(/home/runner/work/app-monorepo/app-monorepo/libs/rendering-utils/[39msrc/blocks-to-html.ts:59:14[90m)[39m
|
|
36
|
+
|
|
37
|
+
[90mstderr[2m | src/blocks-to-html.test.ts[2m > [22m[2mblocksToHtml - multiple different block types
|
|
38
|
+
[22m[39mmarked(): mangle parameter is enabled by default, but is deprecated since version 5.0.0, and will be removed in the future. To clear this warning, install https://www.npmjs.com/package/marked-mangle, or disable by setting `{mangle: false}`.
|
|
51
39
|
marked(): headerIds and headerPrefix parameters enabled by default, but are deprecated since version 5.0.0, and will be removed in the future. To clear this warning, install https://www.npmjs.com/package/marked-gfm-heading-id, or disable by setting `{headerIds: false}`.
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
31 tests passed
|
|
40
|
+
|
|
41
|
+
[32m✓[39m src/blocks-to-html.test.ts [2m([22m[2m31 tests[22m[2m)[22m[32m 170[2mms[22m[39m
|
|
42
|
+
|
|
43
|
+
[2m Test Files [22m [1m[32m1 passed[39m[22m[90m (1)[39m
|
|
44
|
+
[2m Tests [22m [1m[32m31 passed[39m[22m[90m (31)[39m
|
|
45
|
+
[2m Start at [22m 18:07:08
|
|
46
|
+
[2m Duration [22m 2.26s[2m (transform 306ms, setup 0ms, import 1.78s, tests 170ms, environment 0ms)[22m
|
|
47
|
+
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knapsack/rendering-utils",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "4.92.
|
|
4
|
+
"version": "4.92.25--canary.7690.26163e3.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
@@ -22,24 +22,23 @@
|
|
|
22
22
|
"build": "tsc",
|
|
23
23
|
"clean": "rm -rf ./dist",
|
|
24
24
|
"lint": "eslint ./",
|
|
25
|
-
"test": "
|
|
25
|
+
"test": "vitest run"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@knapsack/tiptap-utils": "4.92.
|
|
29
|
-
"@knapsack/utils": "4.92.
|
|
28
|
+
"@knapsack/tiptap-utils": "4.92.25--canary.7690.26163e3.0",
|
|
29
|
+
"@knapsack/utils": "4.92.25--canary.7690.26163e3.0",
|
|
30
30
|
"isomorphic-dompurify": "^1.13.0",
|
|
31
31
|
"marked": "^6.0.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@knapsack/eslint-config-starter": "4.92.
|
|
35
|
-
"@knapsack/prettier-config": "4.92.
|
|
36
|
-
"@knapsack/
|
|
37
|
-
"@knapsack/
|
|
38
|
-
"@knapsack/typescript-config-starter": "4.92.24",
|
|
34
|
+
"@knapsack/eslint-config-starter": "4.92.25--canary.7690.26163e3.0",
|
|
35
|
+
"@knapsack/prettier-config": "4.92.25--canary.7690.26163e3.0",
|
|
36
|
+
"@knapsack/types": "4.92.25--canary.7690.26163e3.0",
|
|
37
|
+
"@knapsack/typescript-config-starter": "4.92.25--canary.7690.26163e3.0",
|
|
39
38
|
"@types/node": "^22.19.11",
|
|
40
|
-
"ava": "^6.4.1",
|
|
41
39
|
"eslint": "^9.20.0",
|
|
42
|
-
"typescript": "^5.9.3"
|
|
40
|
+
"typescript": "^5.9.3",
|
|
41
|
+
"vitest": "^4.1.2"
|
|
43
42
|
},
|
|
44
43
|
"license": "GPL-2.0-or-later",
|
|
45
44
|
"publishConfig": {
|
|
@@ -50,5 +49,5 @@
|
|
|
50
49
|
"directory": "libs/rendering-utils",
|
|
51
50
|
"type": "git"
|
|
52
51
|
},
|
|
53
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "26163e37795bd1667873be5ca79ad5f473495374"
|
|
54
53
|
}
|
package/vitest.config.ts
ADDED
package/ava.config.cjs
DELETED