@readme/syntax-highlighter 10.14.4 → 12.0.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/CHANGELOG.md +83 -0
- package/README.md +6 -1
- package/dist/index.js +1 -1
- package/dist/index.node.js +1 -1
- package/lib/enzyme.js +9 -1
- package/package.json +26 -27
- package/CODE_OF_CONDUCT.md +0 -128
- package/CONTRIBUTING.md +0 -38
- package/SECURITY.md +0 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,86 @@
|
|
|
1
|
+
## <small>12.0.1 (2022-07-19)</small>
|
|
2
|
+
|
|
3
|
+
* fix: updating out of date dev deps (#328) ([024d9a5](https://github.com/readmeio/syntax-highlighter/commit/024d9a5)), closes [#328](https://github.com/readmeio/syntax-highlighter/issues/328)
|
|
4
|
+
* chore(deps-dev): bump @babel/preset-env from 7.18.2 to 7.18.6 (#323) ([6d5cc6f](https://github.com/readmeio/syntax-highlighter/commit/6d5cc6f)), closes [#323](https://github.com/readmeio/syntax-highlighter/issues/323)
|
|
5
|
+
* chore(deps-dev): bump @babel/preset-react from 7.17.12 to 7.18.6 (#325) ([06a7d00](https://github.com/readmeio/syntax-highlighter/commit/06a7d00)), closes [#325](https://github.com/readmeio/syntax-highlighter/issues/325)
|
|
6
|
+
* chore(deps-dev): bump @commitlint/cli from 17.0.2 to 17.0.3 (#316) ([e20d726](https://github.com/readmeio/syntax-highlighter/commit/e20d726)), closes [#316](https://github.com/readmeio/syntax-highlighter/issues/316)
|
|
7
|
+
* chore(deps-dev): bump @commitlint/config-conventional (#312) ([7563b52](https://github.com/readmeio/syntax-highlighter/commit/7563b52)), closes [#312](https://github.com/readmeio/syntax-highlighter/issues/312)
|
|
8
|
+
* chore(deps-dev): bump @readme/eslint-config from 8.7.5 to 8.8.0 (#317) ([556e6a8](https://github.com/readmeio/syntax-highlighter/commit/556e6a8)), closes [#317](https://github.com/readmeio/syntax-highlighter/issues/317)
|
|
9
|
+
* chore(deps-dev): bump babel-jest from 28.1.0 to 28.1.2 (#321) ([17765e7](https://github.com/readmeio/syntax-highlighter/commit/17765e7)), closes [#321](https://github.com/readmeio/syntax-highlighter/issues/321)
|
|
10
|
+
* chore(deps-dev): bump core-js from 3.22.7 to 3.23.3 (#326) ([2f73e6a](https://github.com/readmeio/syntax-highlighter/commit/2f73e6a)), closes [#326](https://github.com/readmeio/syntax-highlighter/issues/326)
|
|
11
|
+
* chore(deps-dev): bump eslint from 8.16.0 to 8.18.0 (#320) ([b1ab1cf](https://github.com/readmeio/syntax-highlighter/commit/b1ab1cf)), closes [#320](https://github.com/readmeio/syntax-highlighter/issues/320)
|
|
12
|
+
* chore(deps-dev): bump jest from 28.1.0 to 28.1.2 (#324) ([9c608ae](https://github.com/readmeio/syntax-highlighter/commit/9c608ae)), closes [#324](https://github.com/readmeio/syntax-highlighter/issues/324)
|
|
13
|
+
* chore(deps-dev): bump jest-environment-jsdom from 28.1.0 to 28.1.2 (#318) ([92901d6](https://github.com/readmeio/syntax-highlighter/commit/92901d6)), closes [#318](https://github.com/readmeio/syntax-highlighter/issues/318)
|
|
14
|
+
* chore(deps-dev): bump prettier from 2.6.2 to 2.7.1 (#313) ([89229fb](https://github.com/readmeio/syntax-highlighter/commit/89229fb)), closes [#313](https://github.com/readmeio/syntax-highlighter/issues/313)
|
|
15
|
+
* chore(deps-dev): bump sass-loader from 13.0.0 to 13.0.2 (#327) ([9e40dec](https://github.com/readmeio/syntax-highlighter/commit/9e40dec)), closes [#327](https://github.com/readmeio/syntax-highlighter/issues/327)
|
|
16
|
+
* chore(deps-dev): bump terser-webpack-plugin from 5.3.1 to 5.3.3 (#322) ([d6c1324](https://github.com/readmeio/syntax-highlighter/commit/d6c1324)), closes [#322](https://github.com/readmeio/syntax-highlighter/issues/322)
|
|
17
|
+
* chore(deps-dev): bump webpack from 5.72.1 to 5.73.0 (#314) ([b2781d6](https://github.com/readmeio/syntax-highlighter/commit/b2781d6)), closes [#314](https://github.com/readmeio/syntax-highlighter/issues/314)
|
|
18
|
+
* chore(deps-dev): bump webpack-cli from 4.9.2 to 4.10.0 (#315) ([ebe7fcf](https://github.com/readmeio/syntax-highlighter/commit/ebe7fcf)), closes [#315](https://github.com/readmeio/syntax-highlighter/issues/315)
|
|
19
|
+
* chore(deps-dev): bump webpack-dev-server from 4.9.1 to 4.9.3 (#319) ([da999aa](https://github.com/readmeio/syntax-highlighter/commit/da999aa)), closes [#319](https://github.com/readmeio/syntax-highlighter/issues/319)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## 12.0.0 (2022-06-01)
|
|
24
|
+
|
|
25
|
+
* feat: supporting node 18, dropping node 12 (#295) ([d713434](https://github.com/readmeio/syntax-highlighter/commit/d713434)), closes [#295](https://github.com/readmeio/syntax-highlighter/issues/295)
|
|
26
|
+
* chore: minor cleanup ([8118cea](https://github.com/readmeio/syntax-highlighter/commit/8118cea))
|
|
27
|
+
* chore(deps-dev): bump @babel/preset-env from 7.16.11 to 7.17.10 (#289) ([8990f6f](https://github.com/readmeio/syntax-highlighter/commit/8990f6f)), closes [#289](https://github.com/readmeio/syntax-highlighter/issues/289)
|
|
28
|
+
* chore(deps-dev): bump @babel/preset-env from 7.17.10 to 7.18.2 (#311) ([2174a06](https://github.com/readmeio/syntax-highlighter/commit/2174a06)), closes [#311](https://github.com/readmeio/syntax-highlighter/issues/311)
|
|
29
|
+
* chore(deps-dev): bump @babel/preset-react from 7.16.7 to 7.17.12 (#300) ([2bbb5de](https://github.com/readmeio/syntax-highlighter/commit/2bbb5de)), closes [#300](https://github.com/readmeio/syntax-highlighter/issues/300)
|
|
30
|
+
* chore(deps-dev): bump @commitlint/cli from 16.2.3 to 16.2.4 (#285) ([6d1dadc](https://github.com/readmeio/syntax-highlighter/commit/6d1dadc)), closes [#285](https://github.com/readmeio/syntax-highlighter/issues/285)
|
|
31
|
+
* chore(deps-dev): bump @commitlint/cli from 16.2.4 to 17.0.2 (#298) ([fd7f58a](https://github.com/readmeio/syntax-highlighter/commit/fd7f58a)), closes [#298](https://github.com/readmeio/syntax-highlighter/issues/298)
|
|
32
|
+
* chore(deps-dev): bump @commitlint/config-conventional (#293) ([7533813](https://github.com/readmeio/syntax-highlighter/commit/7533813)), closes [#293](https://github.com/readmeio/syntax-highlighter/issues/293)
|
|
33
|
+
* chore(deps-dev): bump @commitlint/config-conventional (#307) ([b04b985](https://github.com/readmeio/syntax-highlighter/commit/b04b985)), closes [#307](https://github.com/readmeio/syntax-highlighter/issues/307)
|
|
34
|
+
* chore(deps-dev): bump @readme/eslint-config from 8.5.1 to 8.7.3 (#294) ([8200974](https://github.com/readmeio/syntax-highlighter/commit/8200974)), closes [#294](https://github.com/readmeio/syntax-highlighter/issues/294)
|
|
35
|
+
* chore(deps-dev): bump @readme/eslint-config from 8.7.3 to 8.7.5 (#310) ([0f71fbb](https://github.com/readmeio/syntax-highlighter/commit/0f71fbb)), closes [#310](https://github.com/readmeio/syntax-highlighter/issues/310)
|
|
36
|
+
* chore(deps-dev): bump babel-jest from 27.5.1 to 28.1.0 (#299) ([e724234](https://github.com/readmeio/syntax-highlighter/commit/e724234)), closes [#299](https://github.com/readmeio/syntax-highlighter/issues/299)
|
|
37
|
+
* chore(deps-dev): bump babel-loader from 8.2.4 to 8.2.5 (#283) ([bd453ff](https://github.com/readmeio/syntax-highlighter/commit/bd453ff)), closes [#283](https://github.com/readmeio/syntax-highlighter/issues/283)
|
|
38
|
+
* chore(deps-dev): bump core-js from 3.21.1 to 3.22.3 (#286) ([57178f5](https://github.com/readmeio/syntax-highlighter/commit/57178f5)), closes [#286](https://github.com/readmeio/syntax-highlighter/issues/286)
|
|
39
|
+
* chore(deps-dev): bump core-js from 3.22.3 to 3.22.7 (#301) ([d54829c](https://github.com/readmeio/syntax-highlighter/commit/d54829c)), closes [#301](https://github.com/readmeio/syntax-highlighter/issues/301)
|
|
40
|
+
* chore(deps-dev): bump eslint from 8.12.0 to 8.14.0 (#281) ([1df0740](https://github.com/readmeio/syntax-highlighter/commit/1df0740)), closes [#281](https://github.com/readmeio/syntax-highlighter/issues/281)
|
|
41
|
+
* chore(deps-dev): bump eslint from 8.14.0 to 8.16.0 (#306) ([fe865a5](https://github.com/readmeio/syntax-highlighter/commit/fe865a5)), closes [#306](https://github.com/readmeio/syntax-highlighter/issues/306)
|
|
42
|
+
* chore(deps-dev): bump glob from 7.2.0 to 8.0.1 (#288) ([4a79f52](https://github.com/readmeio/syntax-highlighter/commit/4a79f52)), closes [#288](https://github.com/readmeio/syntax-highlighter/issues/288)
|
|
43
|
+
* chore(deps-dev): bump glob from 8.0.1 to 8.0.3 (#304) ([c827143](https://github.com/readmeio/syntax-highlighter/commit/c827143)), closes [#304](https://github.com/readmeio/syntax-highlighter/issues/304)
|
|
44
|
+
* chore(deps-dev): bump husky from 7.0.4 to 8.0.1 (#309) ([9d42995](https://github.com/readmeio/syntax-highlighter/commit/9d42995)), closes [#309](https://github.com/readmeio/syntax-highlighter/issues/309)
|
|
45
|
+
* chore(deps-dev): bump jest from 27.5.1 to 28.1.0 (#302) ([78828ba](https://github.com/readmeio/syntax-highlighter/commit/78828ba)), closes [#302](https://github.com/readmeio/syntax-highlighter/issues/302)
|
|
46
|
+
* chore(deps-dev): bump prettier from 2.6.1 to 2.6.2 (#282) ([45a7396](https://github.com/readmeio/syntax-highlighter/commit/45a7396)), closes [#282](https://github.com/readmeio/syntax-highlighter/issues/282)
|
|
47
|
+
* chore(deps-dev): bump sass-loader from 12.6.0 to 13.0.0 (#308) ([d01cdd6](https://github.com/readmeio/syntax-highlighter/commit/d01cdd6)), closes [#308](https://github.com/readmeio/syntax-highlighter/issues/308)
|
|
48
|
+
* chore(deps-dev): bump webpack from 5.70.0 to 5.71.0 (#278) ([e970ba6](https://github.com/readmeio/syntax-highlighter/commit/e970ba6)), closes [#278](https://github.com/readmeio/syntax-highlighter/issues/278)
|
|
49
|
+
* chore(deps-dev): bump webpack from 5.71.0 to 5.72.0 (#292) ([67d3886](https://github.com/readmeio/syntax-highlighter/commit/67d3886)), closes [#292](https://github.com/readmeio/syntax-highlighter/issues/292)
|
|
50
|
+
* chore(deps-dev): bump webpack from 5.72.0 to 5.72.1 (#297) ([5f3ee2d](https://github.com/readmeio/syntax-highlighter/commit/5f3ee2d)), closes [#297](https://github.com/readmeio/syntax-highlighter/issues/297)
|
|
51
|
+
* chore(deps-dev): bump webpack-dev-server from 4.7.4 to 4.8.1 (#291) ([dd4013f](https://github.com/readmeio/syntax-highlighter/commit/dd4013f)), closes [#291](https://github.com/readmeio/syntax-highlighter/issues/291)
|
|
52
|
+
* chore(deps-dev): bump webpack-dev-server from 4.8.1 to 4.9.1 (#303) ([3eae787](https://github.com/readmeio/syntax-highlighter/commit/3eae787)), closes [#303](https://github.com/readmeio/syntax-highlighter/issues/303)
|
|
53
|
+
* chore(deps): bump actions/checkout from 2.4.0 to 3 (#277) ([345166d](https://github.com/readmeio/syntax-highlighter/commit/345166d)), closes [#277](https://github.com/readmeio/syntax-highlighter/issues/277)
|
|
54
|
+
* chore(deps): bump async from 2.6.3 to 2.6.4 (#279) ([1f9471a](https://github.com/readmeio/syntax-highlighter/commit/1f9471a)), closes [#279](https://github.com/readmeio/syntax-highlighter/issues/279)
|
|
55
|
+
* chore(deps): bump dset from 3.1.1 to 3.1.2 (#296) ([2042fb9](https://github.com/readmeio/syntax-highlighter/commit/2042fb9)), closes [#296](https://github.com/readmeio/syntax-highlighter/issues/296)
|
|
56
|
+
* chore(deps): bump github/codeql-action from 1 to 2 (#280) ([cfc571b](https://github.com/readmeio/syntax-highlighter/commit/cfc571b)), closes [#280](https://github.com/readmeio/syntax-highlighter/issues/280)
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
## 11.0.0 (2022-03-29)
|
|
61
|
+
|
|
62
|
+
* chore(deps-dev): bump @commitlint/cli from 16.1.0 to 16.2.1 (#268) ([6dbfd2f](https://github.com/readmeio/syntax-highlighter/commit/6dbfd2f)), closes [#268](https://github.com/readmeio/syntax-highlighter/issues/268)
|
|
63
|
+
* chore(deps-dev): bump @commitlint/config-conventional (#264) ([a27590d](https://github.com/readmeio/syntax-highlighter/commit/a27590d)), closes [#264](https://github.com/readmeio/syntax-highlighter/issues/264)
|
|
64
|
+
* chore(deps-dev): bump @readme/eslint-config from 8.2.0 to 8.4.2 (#263) ([b195e32](https://github.com/readmeio/syntax-highlighter/commit/b195e32)), closes [#263](https://github.com/readmeio/syntax-highlighter/issues/263)
|
|
65
|
+
* chore(deps-dev): bump babel-jest from 27.4.6 to 27.5.1 (#269) ([2019858](https://github.com/readmeio/syntax-highlighter/commit/2019858)), closes [#269](https://github.com/readmeio/syntax-highlighter/issues/269)
|
|
66
|
+
* chore(deps-dev): bump core-js from 3.21.0 to 3.21.1 (#262) ([e957a6d](https://github.com/readmeio/syntax-highlighter/commit/e957a6d)), closes [#262](https://github.com/readmeio/syntax-highlighter/issues/262)
|
|
67
|
+
* chore(deps-dev): bump css-loader from 6.5.1 to 6.6.0 (#265) ([5fafc9f](https://github.com/readmeio/syntax-highlighter/commit/5fafc9f)), closes [#265](https://github.com/readmeio/syntax-highlighter/issues/265)
|
|
68
|
+
* chore(deps-dev): bump eslint from 8.8.0 to 8.10.0 (#266) ([a7616a7](https://github.com/readmeio/syntax-highlighter/commit/a7616a7)), closes [#266](https://github.com/readmeio/syntax-highlighter/issues/266)
|
|
69
|
+
* chore(deps-dev): bump jest from 27.4.7 to 27.5.1 (#271) ([8a668b0](https://github.com/readmeio/syntax-highlighter/commit/8a668b0)), closes [#271](https://github.com/readmeio/syntax-highlighter/issues/271)
|
|
70
|
+
* chore(deps-dev): bump sass-loader from 12.4.0 to 12.6.0 (#267) ([c535701](https://github.com/readmeio/syntax-highlighter/commit/c535701)), closes [#267](https://github.com/readmeio/syntax-highlighter/issues/267)
|
|
71
|
+
* chore(deps-dev): bump webpack from 5.68.0 to 5.69.1 (#260) ([a634697](https://github.com/readmeio/syntax-highlighter/commit/a634697)), closes [#260](https://github.com/readmeio/syntax-highlighter/issues/260)
|
|
72
|
+
* chore(deps-dev): bump webpack-dev-server from 4.7.3 to 4.7.4 (#261) ([b1b18c4](https://github.com/readmeio/syntax-highlighter/commit/b1b18c4)), closes [#261](https://github.com/readmeio/syntax-highlighter/issues/261)
|
|
73
|
+
* chore(deps-dev): bumping out of date deps ([ae34020](https://github.com/readmeio/syntax-highlighter/commit/ae34020))
|
|
74
|
+
* chore(deps): bump actions/setup-node from 2.5.1 to 3 (#259) ([d85180d](https://github.com/readmeio/syntax-highlighter/commit/d85180d)), closes [#259](https://github.com/readmeio/syntax-highlighter/issues/259)
|
|
75
|
+
* chore(deps): bump follow-redirects from 1.14.7 to 1.14.8 (#258) ([ea574f5](https://github.com/readmeio/syntax-highlighter/commit/ea574f5)), closes [#258](https://github.com/readmeio/syntax-highlighter/issues/258)
|
|
76
|
+
* chore(deps): bump minimist from 1.2.5 to 1.2.6 (#274) ([c37bc31](https://github.com/readmeio/syntax-highlighter/commit/c37bc31)), closes [#274](https://github.com/readmeio/syntax-highlighter/issues/274)
|
|
77
|
+
* chore(deps): bump node-forge from 1.2.1 to 1.3.0 (#273) ([fa93456](https://github.com/readmeio/syntax-highlighter/commit/fa93456)), closes [#273](https://github.com/readmeio/syntax-highlighter/issues/273)
|
|
78
|
+
* chore(deps): bump prop-types from 15.8.0 to 15.8.1 (#272) ([e4bd011](https://github.com/readmeio/syntax-highlighter/commit/e4bd011)), closes [#272](https://github.com/readmeio/syntax-highlighter/issues/272)
|
|
79
|
+
* chore(deps): bump react to v17.x (#275) ([eb29710](https://github.com/readmeio/syntax-highlighter/commit/eb29710)), closes [#275](https://github.com/readmeio/syntax-highlighter/issues/275)
|
|
80
|
+
* docs: revising some of our community docs ([5f28b8e](https://github.com/readmeio/syntax-highlighter/commit/5f28b8e))
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
1
84
|
## <small>10.14.4 (2022-02-01)</small>
|
|
2
85
|
|
|
3
86
|
* chore(deps-dev): bump @babel/preset-env from 7.16.4 to 7.16.7 (#240) ([a6c1524](https://github.com/readmeio/syntax-highlighter/commit/a6c1524)), closes [#240](https://github.com/readmeio/syntax-highlighter/issues/240)
|
package/README.md
CHANGED
|
@@ -45,7 +45,12 @@ Access to a full code Mirror instance. See configuration settings in the [`react
|
|
|
45
45
|
|
|
46
46
|
```js
|
|
47
47
|
const syntaxHighlighter = require('@readme/syntax-highlighter');
|
|
48
|
-
const ele = syntaxHighlighter(
|
|
48
|
+
const ele = syntaxHighlighter(
|
|
49
|
+
'console.log("Hello, world!");',
|
|
50
|
+
'js',
|
|
51
|
+
{ ...opts, editable: true },
|
|
52
|
+
{ ...editorProps }
|
|
53
|
+
);
|
|
49
54
|
```
|
|
50
55
|
|
|
51
56
|
### Available Options
|