Skip to content

πŸ’Ž Release new version 2.3.0

Compare
Choose a tag to compare
@apertureless apertureless released this 17 Dec 17:28
· 718 commits to main since this release

Changelog

  • Updated dependencies (vue.js & chart.js)

Breaking Change

  • Changed mixin module imports. Seperated mixins in own module.

Old way was:

import { reactiveProp } from 'vue-chartjs'

Now:

// Load speperate modules 
import { Line, mixins } from 'vue-chartjs'

export default Line.extend({
  mixins: [mixins.reactiveProp],
  props: ["chartData", "options"],
  mounted () {
    this.renderChart(this.chartData, this.options)
  }
})

or with destructive assign:

// Load speperate modules with destructure assign
import { Line, mixins } from 'vue-chartjs'
const { reactiveProp } = mixins

export default Line.extend({
  mixins: [reactiveProp],
  props: ["chartData", "options"],
  mounted () {
    this.renderChart(this.chartData, this.options)
  }
})