Skip to content

Commit 33a9904

Browse files
committed
(chore) bump v1.0.0
1 parent 3785c41 commit 33a9904

File tree

5 files changed

+33
-21
lines changed

5 files changed

+33
-21
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## 1.0.0
2+
3+
- Update to the newer Highlight.js `highlight` API.
4+
- Clarify in README this is for Vue.js 2.0
5+
6+
## 0.9.0
7+
8+
- Original release
9+
- Code split out from the original Highlight.js package

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Highlight.js plugin for Vue.js
1+
# Highlight.js plugin for Vue.js v2
22

33
[![latest version](https://badgen.net/npm/v/@highlightjs/vue-plugin?label=latest)](https://www.npmjs.com/package/@highlightjs/vue-plugin)
44
[![license](https://badgen.net/github/license/highlightjs/vue-plugin?color=cyan)](https://github.com/highlightjs/vue-plugin/blob/main/LICENSE)
@@ -46,7 +46,7 @@ hljs.registerLanguage('javascript', javascript);
4646
Vue.use(vuePlugin);
4747
```
4848

49-
Note: The plugin imports `highlight.js/lib/core` internally (but no languages). Thanks to the magic of ES6 modules you can import Highlight.js anywhere to register languages or configure the library. Any import of Highlight.js refers to the same singleton instance of the library, so configuring the library anywhere configures it everywhere.
49+
Note: The plugin imports `highlight.js/lib/core` internally (but no languages). Thanks to the magic of ES6 modules you can import Highlight.js anywhere to register languages or configure the library. Any import of Highlight.js refers to the same singleton instance of the library, so configuring the library anywhere configures it everywhere.
5050

5151
You can also simply load all "common" languages at once (as of v11):
5252

dist/highlightjs-vue.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@highlightjs/vue-plugin",
3-
"version": "0.9.0",
3+
"version": "1.0.0",
44
"description": "Highlight.js Vue Plugin",
55
"main": "src/vue.js",
66
"scripts": {
@@ -16,6 +16,9 @@
1616
"rollup-plugin-terser": "^7.0.2"
1717
},
1818
"dependencies": {
19-
"highlight.js": "^10.7.1"
20-
}
19+
"highlight.js": "^10.7.2"
20+
},
21+
"files": [
22+
"dist"
23+
]
2124
}

0 commit comments

Comments
 (0)