File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change
1
+ ## 2.0.0
2
+
3
+ - Vue 3.x support
4
+ - TypeScript
5
+
1
6
## 1.0.1
2
7
3
8
- Publishing 1.0 was weird, just wanting to make sure the correct code was on NPM.
Original file line number Diff line number Diff line change 1
- # Highlight.js plugin for Vue.js v2
1
+ # Highlight.js plugin for Vue.js
2
2
3
- [ ![ latest version] ( https://badgen.net/npm/v/@highlightjs/vue-plugin?label=latest )] ( https://www.npmjs.com/package/@highlightjs/vue-plugin )
3
+ [ ![ latest version] ( https://badgen.net/npm/v/@highlightjs/vue-plugin/latest?label=latest )] ( https://www.npmjs.com/package/@highlightjs/vue-plugin )
4
+ [ ![ latest version] ( https://badgen.net/npm/v/@highlightjs/vue-plugin/next?label=next )] ( https://www.npmjs.com/package/@highlightjs/vue-plugin )
5
+ ![ vue 3] ( https://badgen.net/badge/vue/3/green )
6
+ ![ vue 2] ( https://badgen.net/badge/vue/2/green )
4
7
[ ![ license] ( https://badgen.net/github/license/highlightjs/vue-plugin?color=cyan )] ( https://github.com/highlightjs/vue-plugin/blob/main/LICENSE )
8
+
5
9
[ ![ publish size] ( https://badgen.net/packagephobia/publish/@highlightjs/vue-plugin?label=size )] ( https://packagephobia.com/result?p=@highlightjs/vue-plugin )
6
10
[ ![ gzipped size] ( https://badgen.net/bundlephobia/minzip/@highlightjs/vue-plugin?label=gzipped )] ( https://bundlephobia.com/result?p=@highlightjs/vue-plugin )
7
11
[ ![ slack] ( https://badgen.net/badge/icon/slack?icon=slack&label&color=pink )] ( https://join.slack.com/t/highlightjs/shared_invite/zt-mj0utgqp-TNFf4VQICnDnPg4zMHChFw )
@@ -18,6 +22,8 @@ This plugin provides a `highlightjs` component for use in your Vue.js 3 applicat
18
22
</div >
19
23
```
20
24
25
+ Note: For Vue.js version 2 support see the [ 1-stable] ( https://github.com/highlightjs/vue-plugin/tree/1-stable ) branch here on GitHub. The ` latest ` tag via NPM is compatible with Vue.js v2; the ` next ` tag Vue.js v3.
26
+
21
27
## Using the pre-built libraries
22
28
23
29
``` html
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @highlightjs/vue-plugin" ,
3
- "version" : " 1 .0.1 " ,
3
+ "version" : " 2 .0.0 " ,
4
4
"description" : " Highlight.js Vue Plugin" ,
5
5
"main" : " dist/highlightjs-vue.min.js" ,
6
6
"module" : " dist/highlightjs-vue.esm.min.js" ,
7
7
"types" : " dist/highlightjs-vue.d.ts" ,
8
8
"scripts" : {
9
9
"build" : " rollup -c" ,
10
10
"test" : " echo \" Error: no test specified\" && exit 1" ,
11
- "publish" : " npm publish --access public"
11
+ "publish" : " npm publish --access public --tag next "
12
12
},
13
13
"type" : " module" ,
14
14
"author" :
" Josh Goebel <[email protected] >" ,
You can’t perform that action at this time.
0 commit comments