quikdown 1.0.4 → 1.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quikdown",
3
- "version": "1.0.4",
3
+ "version": "1.1.0",
4
4
  "description": "quikdown is a simple markdown to HTML parser that supports fences",
5
5
  "author": "deftio (https://github.com/deftio",
6
6
  "license": "BSD-2-Clause",
@@ -12,6 +12,29 @@
12
12
  "url": "git://github.com/deftio/quikdown/issues"
13
13
  },
14
14
  "homepage": "https://github.com/deftio/quikdown",
15
+ "keywords": [
16
+ "markdown",
17
+ "markdown-parser",
18
+ "markdown-to-html",
19
+ "markdown-bidirectional",
20
+ "markdown-mermaid",
21
+ "markdown-code",
22
+ "md",
23
+ "parser",
24
+ "html",
25
+ "commonmark",
26
+ "gfm",
27
+ "task-lists",
28
+ "xss-protection",
29
+ "lightweight",
30
+ "zero-dependencies",
31
+ "browser",
32
+ "nodejs",
33
+ "plugin",
34
+ "fence",
35
+ "autolink",
36
+ "sanitization"
37
+ ],
15
38
  "main": "dist/quikdown.cjs",
16
39
  "module": "dist/quikdown.esm.js",
17
40
  "unpkg": "dist/quikdown.umd.min.js",
@@ -30,6 +53,12 @@
30
53
  "browser": "./dist/quikdown_bd.umd.min.js",
31
54
  "types": "./dist/quikdown_bd.d.ts"
32
55
  },
56
+ "./edit": {
57
+ "import": "./dist/quikdown_edit.esm.js",
58
+ "require": "./dist/quikdown_edit.cjs",
59
+ "browser": "./dist/quikdown_edit.umd.min.js",
60
+ "types": "./dist/quikdown_edit.d.ts"
61
+ },
33
62
  "./package.json": "./package.json"
34
63
  },
35
64
  "files": [
@@ -41,9 +70,14 @@
41
70
  },
42
71
  "scripts": {
43
72
  "test": "NODE_NO_WARNINGS=1 jest --coverage",
44
- "test:quikdown": "jest tests/quikdown.test.js",
73
+ "test:quikdown": "NODE_NO_WARNINGS=1 jest tests/quikdown.test.js --coverage",
74
+ "test:bd": "NODE_NO_WARNINGS=1 jest tests/quikdown_bd.test.js --coverage",
75
+ "test:editor": "NODE_NO_WARNINGS=1 jest tests/quikdown_edit_esm.test.js --coverage",
76
+ "test:all": "NODE_NO_WARNINGS=1 jest tests/quikdown.test.js tests/quikdown_bd.test.js tests/quikdown_edit_esm.test.js --coverage",
77
+ "test:coverage": "NODE_NO_WARNINGS=1 jest tests/quikdown.test.js tests/quikdown_bd.test.js tests/quikdown_edit_esm.test.js --coverage --coverageReporters=text-summary",
45
78
  "test:unit": "jest --coverage",
46
79
  "test:e2e": "npx playwright test --config=playwright.config.cjs",
80
+ "test:editor:e2e": "npx playwright test tests/quikdown-editor.spec.js",
47
81
  "minifyCSS": "node ./tools/minifyCSS.cjs",
48
82
  "updateVersion": "node ./tools/updateVersion",
49
83
  "updateBadges": "node ./tools/updateBadges.js",
@@ -55,23 +89,33 @@
55
89
  "buildDocs": "node ./tools/buildDocs.js",
56
90
  "docs:api": "npx jsdoc src/quikchat.js -d docs/api",
57
91
  "updateExampleCopies": "cp dist/quikchat.umd.min.js examples/fastapi_llm/static && cp dist/quikchat.min.css examples/fastapi_llm/static && cp dist/quikchat.umd.min.js examples/npm_express/static && cp dist/quikchat.min.css examples/npm_express/static",
58
- "build": "npm run updateVersion && rollup -c && npm run css",
92
+ "build": "npm run updateVersion && rollup -c && npm run css && npm run sizes",
59
93
  "build:all": "npm run build && npm run buildDocs",
60
- "build:lex": "rollup -c rollup.config.lex.js",
61
94
  "build:css": "node tools/generateThemeCSS.js",
62
95
  "build:docs": "node ./tools/buildDocs.js",
63
96
  "minify:css": "node tools/minifyThemeCSS.js",
64
97
  "css": "npm run build:css && npm run minify:css",
65
- "test:perf": "node tests/performance-benchmark.js"
98
+ "test:perf": "node tests/performance-benchmark.js",
99
+ "sizes": "node tools/printSizes.cjs"
66
100
  },
67
101
  "jest": {
68
102
  "testEnvironment": "jsdom",
103
+ "setupFilesAfterEnv": [
104
+ "<rootDir>/tests/setup.js"
105
+ ],
106
+ "testPathIgnorePatterns": [
107
+ "/node_modules/",
108
+ "/tests/.*\\.spec\\.js$",
109
+ "/dev/lex-old-dev/"
110
+ ],
69
111
  "transform": {
70
112
  "^.+\\.js$": "babel-jest"
71
113
  },
72
114
  "collectCoverage": true,
73
115
  "collectCoverageFrom": [
74
- "dist/quikdown.esm.js"
116
+ "dist/quikdown.esm.js",
117
+ "dist/quikdown_bd.esm.js",
118
+ "dist/quikdown_edit.esm.js"
75
119
  ],
76
120
  "coverageDirectory": "coverage",
77
121
  "coverageReporters": [
@@ -84,33 +128,31 @@
84
128
  ],
85
129
  "coverageThreshold": {
86
130
  "global": {
131
+ "lines": 91,
132
+ "functions": 91,
133
+ "branches": 74,
134
+ "statements": 89
135
+ },
136
+ "./dist/quikdown.esm.js": {
87
137
  "lines": 100,
88
- "functions": 100,
89
- "branches": 88,
90
- "statements": 99.5
138
+ "functions": 97,
139
+ "branches": 99,
140
+ "statements": 99
141
+ },
142
+ "./dist/quikdown_bd.esm.js": {
143
+ "lines": 86,
144
+ "functions": 86,
145
+ "branches": 64,
146
+ "statements": 83
147
+ },
148
+ "./dist/quikdown_edit.esm.js": {
149
+ "lines": 60,
150
+ "functions": 74,
151
+ "branches": 40,
152
+ "statements": 60
91
153
  }
92
154
  }
93
155
  },
94
- "keywords": [
95
- "markdown",
96
- "markdown-parser",
97
- "markdown-to-html",
98
- "md",
99
- "parser",
100
- "html",
101
- "commonmark",
102
- "gfm",
103
- "task-lists",
104
- "xss-protection",
105
- "lightweight",
106
- "zero-dependencies",
107
- "browser",
108
- "nodejs",
109
- "plugin",
110
- "fence",
111
- "autolink",
112
- "sanitization"
113
- ],
114
156
  "devDependencies": {
115
157
  "@babel/core": "^7.25.2",
116
158
  "@babel/preset-env": "^7.25.3",