@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.
@@ -1,4 +1,4 @@
1
1
 
2
- > @knapsack/rendering-utils@4.92.23 build /home/runner/work/app-monorepo/app-monorepo/libs/rendering-utils
2
+ > @knapsack/rendering-utils@4.92.24 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.23 lint /home/runner/work/app-monorepo/app-monorepo/libs/rendering-utils
2
+ > @knapsack/rendering-utils@4.92.24 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.23 test /home/runner/work/app-monorepo/app-monorepo/libs/rendering-utils
3
- > ava
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
- [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 (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
+  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}`.
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
- 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
- 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}`.
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
- 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}`.
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
- ✔ blocksToHtml - unknown block type throws error
53
- blocksToHtml - single markdown-block with string (126ms)
54
- ✔ blocksToHtml - single markdown-block with array (125ms)
55
- blocksToHtml - single markdown-block with empty string (125ms)
56
- blocksToHtml - single markdown-block with undefined md (125ms)
57
- blocksToHtml - multiple different block types
58
-
59
-
60
- 31 tests passed
40
+
41
+ ✓ src/blocks-to-html.test.ts (31 tests) 170ms
42
+
43
+  Test Files  1 passed (1)
44
+  Tests  31 passed (31)
45
+  Start at  18:07:08
46
+  Duration  2.26s (transform 306ms, setup 0ms, import 1.78s, tests 170ms, 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.24",
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": "ava"
25
+ "test": "vitest run"
26
26
  },
27
27
  "dependencies": {
28
- "@knapsack/tiptap-utils": "4.92.24",
29
- "@knapsack/utils": "4.92.24",
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.24",
35
- "@knapsack/prettier-config": "4.92.24",
36
- "@knapsack/test-ava": "4.92.24",
37
- "@knapsack/types": "4.92.24",
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": "3aade26c02b3676fc8fd12fdda1896469e5fa759"
52
+ "gitHead": "26163e37795bd1667873be5ca79ad5f473495374"
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;