@knapsack/rendering-utils 4.92.23 → 4.92.24--canary.7689.914180d.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.
@@ -1,4 +1,4 @@
1
1
 
2
- > @knapsack/rendering-utils@4.92.22 build /home/runner/work/app-monorepo/app-monorepo/libs/rendering-utils
2
+ > @knapsack/rendering-utils@4.92.23 build /home/runner/work/app-monorepo/app-monorepo/libs/rendering-utils
3
3
  > tsc
4
4
 
@@ -1,4 +1,4 @@
1
1
 
2
- > @knapsack/rendering-utils@4.92.22 lint /home/runner/work/app-monorepo/app-monorepo/libs/rendering-utils
2
+ > @knapsack/rendering-utils@4.92.23 lint /home/runner/work/app-monorepo/app-monorepo/libs/rendering-utils
3
3
  > eslint ./
4
4
 
@@ -1,60 +1,47 @@
1
1
 
2
- > @knapsack/rendering-utils@4.92.22 test /home/runner/work/app-monorepo/app-monorepo/libs/rendering-utils
3
- > ava
2
+ > @knapsack/rendering-utils@4.92.23 test /home/runner/work/app-monorepo/app-monorepo/libs/rendering-utils
3
+ > vitest run
4
4
 
5
5
 
6
- [blocks-to-html] TipTap render failed for block "test-1" (text-editor): RangeError: Unknown node type: this-node-type-does-not-exist
7
- at Schema.nodeType (file:///home/runner/work/app-monorepo/app-monorepo/node_modules/.pnpm/prosemirror-model@1.25.4/node_modules/prosemirror-model/dist/index.js:2500:19)
8
- 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:1540:27)
9
- at Schema.nodeFromJSON (file:///home/runner/work/app-monorepo/app-monorepo/node_modules/.pnpm/prosemirror-model@1.25.4/node_modules/prosemirror-model/dist/index.js:2458:42)
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 (200ms)
18
- ✔ blocksToHtml - single divider-block (199ms)
19
- ✔ blocksToHtml - single text-editor block (198ms)
20
- ✔ blocksToHtml - single code-snippet block (151ms)
21
- ✔ blocksToHtml - single callout block (133ms)
22
- ✔ blocksToHtml - single callout block with error type (125ms)
23
- ✔ blocksToHtml - single image-block with single image (118ms)
24
- ✔ blocksToHtml - single image-block with multiple images (114ms)
25
- 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}`.
26
- ✔ blocksToHtml - single image-block with no images (114ms)
27
- ✔ blocksToHtml - single image-block with empty images array (114ms)
28
- ✔ blocksToHtml - single video block (114ms)
29
- ✔ blocksToHtml - video block with no selected video (114ms)
30
- ✔ blocksToHtml - text-editor with unknown TipTap node type does not throw (114ms)
31
- ✔ blocksToHtml - single files-list block with image files (101ms)
32
- ✔ blocksToHtml - single files-list block with non-image files (101ms)
33
- ✔ blocksToHtml - single files-list block with mixed files (101ms)
34
- ✔ blocksToHtml - single files-list block with empty array (101ms)
6
+  RUN  v4.1.4 /home/runner/work/app-monorepo/app-monorepo/libs/rendering-utils
7
+
8
+ stderr | src/blocks-to-html.test.ts > blocksToHtml - single markdown-block with string
9
+ 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}`.
35
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}`.
36
- ✔ blocksToHtml - single shortcut-tiles block (101ms)
37
- blocksToHtml - single shortcut-tiles block with empty shortcuts
38
- blocksToHtml - single shortcut-tiles block with no image
39
- ✔ blocksToHtml - single shortcut-tiles block with link but no name
40
- ✔ blocksToHtml - block with no data
41
- ✔ blocksToHtml - file extensions detection for images
42
- ✔ blocksToHtml - case insensitive file extension detection
43
- ✔ blocksToHtml - files with no extension
44
- 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}`.
11
+
12
+ stderr | src/blocks-to-html.test.ts > blocksToHtml - single markdown-block with array
13
+ 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}`.
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
- 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}`.
15
+
16
+ stderr | src/blocks-to-html.test.ts > blocksToHtml - single markdown-block with empty string
17
+ 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}`.
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
- ✔ blocksToHtml - unknown block type throws error
49
- 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}`.
19
+
20
+ stderr | src/blocks-to-html.test.ts > blocksToHtml - single markdown-block with undefined md
21
+ 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}`.
50
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}`.
51
- 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}`.
23
+
24
+ stderr | src/blocks-to-html.test.ts > blocksToHtml - text-editor with unknown TipTap node type does not throw
25
+ [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/.pnpm/prosemirror-model@1.25.4/node_modules/prosemirror-model/dist/index.js:2500:19)
27
+ at Function.fromJSON (file:///home/runner/work/app-monorepo/app-monorepo/node_modules/.pnpm/prosemirror-model@1.25.4/node_modules/prosemirror-model/dist/index.js:1540:27)
28
+ at Schema.nodeFromJSON (file:///home/runner/work/app-monorepo/app-monorepo/node_modules/.pnpm/prosemirror-model@1.25.4/node_modules/prosemirror-model/dist/index.js:2458:42)
29
+ at Array.map (<anonymous>)
30
+ at Function.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)
31
+ at Function.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)
32
+ at generateHTML (file:///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/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 (/home/runner/work/app-monorepo/app-monorepo/libs/rendering-utils/src/blocks-to-html.ts:43:12)
35
+ at blockToHtml (/home/runner/work/app-monorepo/app-monorepo/libs/rendering-utils/src/blocks-to-html.ts:59:14)
36
+
37
+ stderr | src/blocks-to-html.test.ts > blocksToHtml - multiple different block types
38
+ 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}`.
52
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}`.
53
- ✔ blocksToHtml - single markdown-block with string (177ms)
54
- blocksToHtml - single markdown-block with array (176ms)
55
- ✔ blocksToHtml - single markdown-block with empty string (176ms)
56
- blocksToHtml - single markdown-block with undefined md (176ms)
57
- blocksToHtml - multiple different block types (140ms)
58
-
59
-
60
- 31 tests passed
40
+
41
+ ✓ src/blocks-to-html.test.ts (31 tests) 233ms
42
+
43
+  Test Files  1 passed (1)
44
+  Tests  31 passed (31)
45
+  Start at  18:31:29
46
+  Duration  1.62s (transform 146ms, setup 0ms, import 1.21s, tests 233ms, environment 0ms)
47
+
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@knapsack/rendering-utils",
3
3
  "description": "",
4
- "version": "4.92.23",
4
+ "version": "4.92.24--canary.7689.914180d.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": "ava"
25
+ "test": "vitest run"
26
26
  },
27
27
  "dependencies": {
28
- "@knapsack/tiptap-utils": "4.92.23",
29
- "@knapsack/utils": "4.92.23",
28
+ "@knapsack/tiptap-utils": "4.92.24--canary.7689.914180d.0",
29
+ "@knapsack/utils": "4.92.24--canary.7689.914180d.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.23",
35
- "@knapsack/prettier-config": "4.92.23",
36
- "@knapsack/test-ava": "4.92.23",
37
- "@knapsack/types": "4.92.23",
38
- "@knapsack/typescript-config-starter": "4.92.23",
34
+ "@knapsack/eslint-config-starter": "4.92.24--canary.7689.914180d.0",
35
+ "@knapsack/prettier-config": "4.92.24--canary.7689.914180d.0",
36
+ "@knapsack/types": "4.92.24--canary.7689.914180d.0",
37
+ "@knapsack/typescript-config-starter": "4.92.24--canary.7689.914180d.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": "9af8f4daf013e593fa03c49c5afe2eb8ea1ff7a5"
52
+ "gitHead": "914180d87054c1846c38ecda59cd5f70e74944e3"
54
53
  }
@@ -0,0 +1,7 @@
1
+ import { defineConfig } from 'vitest/config';
2
+
3
+ export default defineConfig({
4
+ test: {
5
+ include: ['src/**/*.test.ts'],
6
+ },
7
+ });
package/ava.config.cjs DELETED
@@ -1,3 +0,0 @@
1
- const config = require('@knapsack/test-ava/esm');
2
-
3
- module.exports = config;