Skip to content

Releases: gluons/vue-highlight.js

v4.0.1-beta

28 Feb 07:18
v4.0.1-beta
296564a
Compare
Choose a tag to compare
v4.0.1-beta Pre-release
Pre-release

Bug Fixes

  • Fix Vue language not work when import individually.

v4.0.0-beta

16 Jan 10:17
v4.0.0-beta
586f537
Compare
Choose a tag to compare
v4.0.0-beta Pre-release
Pre-release

New Features

  • Support Highlight.js v10.
  • Add new Vue language definition.

Breaking Changes

  • Drop support for Highlight.js < v9.

Internal Changes

  • Change linter from TSLint to ESLint.

v3.1.0

02 Mar 14:29
v3.1.0
7b6e9cd
Compare
Choose a tag to compare

New Features

  • Add ability to import all Highlight.js languages.

    import Vue from 'vue';
    import VueHighlightJS from 'vue-highlight.js';
    
    // Import all Highlight.js languages
    import 'vue-highlight.js/lib/allLanguages'
    
    Vue.use(VueHighlightJS);
    
    /*
     * More code...
     */

v3.0.1

02 Jan 09:07
v3.0.1
a41cae9
Compare
Choose a tag to compare

v3.0.0

02 Jan 06:31
v3.0.0
be14c6b
Compare
Choose a tag to compare

Breaking Changes

  • Vue Highlight.js now will not import all languages from Highlight.js. (#12)
    You have to import languages that you want by yourself and pass it to plugin options.

    For vue language, you can import from vue-highlight.js/lib/languages/vue.

    It'll significantly reduce your app bundle size.

    import Vue from 'vue';
    import VueHighlightJS from 'vue-highlight.js';
    
    // Highlight.js languages
    import javascript from 'highlight.js/lib/languages/javascript';
    import vue from 'vue-highlight.js/lib/languages/vue'; // Vue language
    
    Vue.use(VueHighlightJS, {
    	// Register only languages that you want
    	languages: {
    		javascript,
    		vue
    	}
    });

Internal Changes

  • Convert code to TypeScript.
  • Use vue-up to bundle library instead of plain webpack.

v2.2.0

05 Nov 09:51
v2.2.0
5916067
Compare
Choose a tag to compare
  • Add FAQ and improve documentation. Closed #7.
  • Remove unnecessary minified file for ES module.
  • Upgrade dev dependencies.

v2.1.0

23 Sep 12:58
v2.1.0
9f10a19
Compare
Choose a tag to compare
  • Add auto prop for code language auto detection by highlight.js' highlightAuto function.
  • [Development] Use render function instead of multiple components.

    Better handle dynamic code and rerendering with render function.

v2.0.2

02 Sep 12:07
v2.0.2
58f73e1
Compare
Choose a tag to compare
  • Fix some errors when using on browser.

v2.0.1

02 Sep 10:23
v2.0.1
35cfe5b
Compare
Choose a tag to compare
  • Add vue language support out of the box for highlight.js. (#5)

    It actually uses html/xml language definition.

v2.0.0

28 May 10:53
v2.0.0
034716d
Compare
Choose a tag to compare
  • Add auto-stripping leading indent in block code. (#3)
  • No longer install highlight.js as dependencies of this package.
    It's been moved to peerDependencies. 馃帀