@readme/markdown 6.75.0-beta.8 → 6.75.1

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
@@ -2,103 +2,115 @@
2
2
  "name": "@readme/markdown",
3
3
  "description": "ReadMe's React-based Markdown parser",
4
4
  "author": "Rafe Goldberg <rafe@readme.io>",
5
- "version": "6.75.0-beta.8",
5
+ "version": "6.75.1",
6
6
  "main": "dist/main.node.js",
7
- "types": "dist/index.d.ts",
8
7
  "browser": "dist/main.js",
9
8
  "files": [
10
9
  "styles",
11
10
  "components",
12
- "dist"
11
+ "dist",
12
+ "npm-shrinkwrap.json"
13
13
  ],
14
14
  "scripts": {
15
15
  "build": "webpack --mode production",
16
- "lint": "eslint . --ext .jsx --ext .js --ext .ts --ext .tsx",
16
+ "heroku-postbuild": "make emojis && webpack --mode production --config ./webpack.dev.js",
17
+ "lint": "npm run lint:js && npm run lint:css",
18
+ "lint:css": "stylelint '{components,styles}/**/*.{css,scss}'",
19
+ "lint:js": "eslint --ext ts,tsx,js,jsx .",
20
+ "prepare": "husky install",
21
+ "pretest": "npm run lint",
22
+ "prettier": "prettier --list-different --write \"./**/**.{js,jsx}\"",
17
23
  "release": "npx semantic-release",
18
24
  "release.dry": "npx semantic-release --dry-run",
19
- "test": "true # jest --coverage --runInBand",
20
- "test.watch": "jest --watch --coverage=false",
21
- "watch": "webpack --watch --progress --mode development"
25
+ "start": "webpack serve --config ./webpack.dev.js --open --mode development",
26
+ "test": "jest --coverage --runInBand --testPathIgnorePatterns '__tests__/browser'",
27
+ "test.watch": "jest --watch --coverage=false --testPathIgnorePatterns '__tests__/browser'",
28
+ "test.browser": "jest --config jest.browser.js --runInBand --testPathPattern '__tests__/browser'",
29
+ "watch": "webpack -w --progress --mode production"
22
30
  },
23
31
  "dependencies": {
24
- "@mdx-js/mdx": "^3.0.0",
25
- "@mdx-js/react": "^3.0.0",
26
- "@readme/emojis": "^5.0.0",
27
- "@readme/syntax-highlighter": "^12.0.2",
28
- "copy-to-clipboard": "^3.3.2",
29
- "debug": "^4.3.4",
30
- "emoji-regex": "^10.2.1",
32
+ "@readme/emojis": "^5.1.0",
33
+ "@readme/syntax-highlighter": "^12.1.5",
34
+ "copy-to-clipboard": "^3.3.3",
35
+ "emoji-regex": "^10.3.0",
31
36
  "hast-util-sanitize": "^4.0.0",
32
37
  "lodash.escape": "^4.0.1",
33
38
  "lodash.kebabcase": "^4.1.1",
34
39
  "mdast-util-toc": "^5.1.0",
40
+ "parse-entities": "^4.0.1",
35
41
  "path-browserify": "^1.0.1",
36
42
  "process": "^0.11.10",
37
43
  "prop-types": "^15.8.1",
44
+ "rehype-raw": "^5.1.0",
45
+ "rehype-react": "^6.2.1",
38
46
  "rehype-sanitize": "^4.0.0",
39
- "remark": "^14.0.2",
40
- "remark-mdx": "^3.0.0",
41
- "remark-parse": "^10.0.2",
42
- "trim": "^1.0.1",
43
- "unified": "^8.4.0",
47
+ "rehype-stringify": "^6.0.0",
48
+ "remark-breaks": "^1.0.0",
49
+ "remark-disable-tokenizers": "^1.0.24",
50
+ "remark-frontmatter": "^2.0.0",
51
+ "remark-parse": "^8.0.0",
52
+ "remark-rehype": "^8.1.0",
53
+ "remark-slug": "^6.0.0",
54
+ "remark-stringify": "^8.0.0",
55
+ "unified": "^9.2.2",
44
56
  "unist-util-flatmap": "^1.0.0",
57
+ "unist-util-map": "^3.1.2",
58
+ "unist-util-select": "^4.0.0",
45
59
  "unist-util-visit": "^4.1.1"
46
60
  },
47
61
  "peerDependencies": {
48
- "@readme/variable": "^15.1.0",
49
- "@tippyjs/react": "^4.1.0",
62
+ "@readme/variable": "^16.0.0",
63
+ "@tippyjs/react": "^4.2.6",
50
64
  "react": "^16.14.0",
51
65
  "react-dom": "^16.14.0"
52
66
  },
53
67
  "devDependencies": {
54
- "@babel/core": "^7.21.4",
55
- "@babel/eslint-parser": "^7.21.3",
68
+ "@babel/core": "^7.24.0",
69
+ "@babel/eslint-parser": "^7.23.10",
56
70
  "@babel/plugin-proposal-class-properties": "^7.18.6",
57
- "@babel/plugin-proposal-export-default-from": "^7.23.3",
58
- "@babel/plugin-proposal-object-rest-spread": "^7.20.7",
59
- "@babel/plugin-proposal-optional-chaining": "^7.21.0",
60
- "@babel/plugin-transform-runtime": "^7.21.4",
61
- "@babel/preset-env": "^7.21.4",
62
- "@babel/preset-react": "^7.18.6",
63
- "@babel/preset-typescript": "^7.21.4",
64
- "@commitlint/cli": "^17.5.1",
65
- "@commitlint/config-angular": "^17.4.4",
66
- "@commitlint/config-conventional": "^17.4.4",
71
+ "@babel/plugin-proposal-object-rest-spread": "^7.19.4",
72
+ "@babel/plugin-proposal-optional-chaining": "^7.18.9",
73
+ "@babel/plugin-transform-runtime": "^7.24.0",
74
+ "@babel/preset-env": "^7.24.0",
75
+ "@babel/preset-react": "^7.23.3",
76
+ "@commitlint/cli": "^19.0.3",
77
+ "@commitlint/config-conventional": "^19.0.3",
67
78
  "@hot-loader/react-dom": "^16.14.0",
68
- "@readme/eslint-config": "^10.5.2",
79
+ "@readme/eslint-config": "^13.5.0",
80
+ "@readme/stylelint-config": "^6.1.0",
69
81
  "@semantic-release/changelog": "^6.0.3",
70
82
  "@semantic-release/git": "^10.0.1",
71
- "@testing-library/jest-dom": "^5.16.5",
72
- "@testing-library/react": "^12.1.2",
73
- "babel-jest": "^29.5.0",
74
- "babel-loader": "^9.1.2",
75
- "browserify-fs": "^1.0.0",
83
+ "@testing-library/jest-dom": "^6.4.2",
84
+ "@testing-library/react": "^12.1.5",
85
+ "babel-jest": "^29.7.0",
86
+ "babel-loader": "^9.1.3",
76
87
  "codemirror": "^5.54.0",
77
- "core-js": "^2.6.12",
78
- "css-loader": "^6.7.3",
79
- "eslint": "^8.37.0",
88
+ "core-js": "^3.36.0",
89
+ "css-loader": "^6.10.0",
90
+ "eslint": "^8.57.0",
91
+ "husky": "^9.0.11",
80
92
  "identity-obj-proxy": "^3.0.0",
81
- "jest": "^29.5.0",
82
- "jest-environment-jsdom": "^29.5.0",
83
- "jest-environment-puppeteer": "^8.0.6",
84
- "jest-image-snapshot": "^6.1.0",
85
- "jest-puppeteer": "^8.0.6",
86
- "mini-css-extract-plugin": "^2.7.5",
87
- "node-sass": "^8.0.0",
88
- "prettier": "^2.8.7",
89
- "puppeteer": "^19.8.3",
93
+ "jest": "^28.1.3",
94
+ "jest-environment-jsdom": "^29.7.0",
95
+ "jest-environment-puppeteer": "^10.0.1",
96
+ "jest-image-snapshot": "^6.4.0",
97
+ "jest-puppeteer": "^10.0.1",
98
+ "mini-css-extract-plugin": "^2.8.1",
99
+ "node-sass": "^9.0.0",
100
+ "postcss": "^8.4.35",
101
+ "prettier": "^3.2.5",
102
+ "puppeteer": "^22.4.0",
90
103
  "react-hot-loader": "^4.13.1",
91
- "sass-loader": "^13.2.2",
92
- "semantic-release": "^22.0.12",
93
- "stream-browserify": "^3.0.0",
94
- "string.prototype.trimend": "^1.0.6",
95
- "terser-webpack-plugin": "^5.3.7",
96
- "ts-loader": "^9.4.2",
97
- "typescript": "^5.0.3",
98
- "webpack": "^5.56.0",
99
- "webpack-cli": "^5.0.1",
100
- "webpack-dev-server": "^4.13.2",
101
- "webpack-merge": "^5.8.0"
104
+ "regenerator-runtime": "^0.14.1",
105
+ "sass-loader": "^14.1.1",
106
+ "semantic-release": "^23.0.2",
107
+ "string.prototype.trimend": "^1.0.7",
108
+ "stylelint": "^16.2.1",
109
+ "terser-webpack-plugin": "^5.3.10",
110
+ "webpack": "^5.90.3",
111
+ "webpack-cli": "^5.1.4",
112
+ "webpack-dev-server": "^5.0.2",
113
+ "webpack-merge": "^5.10.0"
102
114
  },
103
115
  "license": "MIT",
104
116
  "homepage": "https://rdmd.readme.io",
@@ -112,8 +124,33 @@
112
124
  },
113
125
  {
114
126
  "path": "dist/main.node.js",
115
- "maxSize": "250KB"
127
+ "maxSize": "300KB"
116
128
  }
117
129
  ]
130
+ },
131
+ "commitlint": {
132
+ "extends": [
133
+ "@commitlint/config-conventional"
134
+ ],
135
+ "rules": {
136
+ "body-max-line-length": [
137
+ 0,
138
+ "always",
139
+ "Infinity"
140
+ ],
141
+ "footer-max-line-length": [
142
+ 0,
143
+ "always",
144
+ "Infinity"
145
+ ],
146
+ "scope-case": [
147
+ 2,
148
+ "never",
149
+ "upper-case"
150
+ ]
151
+ }
152
+ },
153
+ "overrides": {
154
+ "trim": "^1"
118
155
  }
119
156
  }