Skip to content

Releases: apertureless/vue-chartjs

💎 Release new version 2.4.0

03 Mar 15:26
Compare
Choose a tag to compare

Changes

  • Add src to npm packge
  • Make src/index (ES6 Module) main entry point
  • #51 Add browserify Support

Dist files

Now the main entry is the src file. The benefit is, that the dependencies chart.js and vue.js are not bundled into them. As in the dist/ file. Bundling vue in the commonjs build was nessasary as vue-chartjs uses Vue.extend() to create the Base Charts. Which caused multiple versions of vue and two instances.

If you're using Webpack2 there are no known problems. For Browserify you will need babelify and babel-preset-es2015 and a .babelrc with

{
"presets": ["es2015"]
}

Old dist files

However if you're encountering problems, or using unpkg you can use the bundled files:
Either import them directly

import VueCharts from 'vue-chartjs/dist/vue-chartjs'

Or you can set an alias in your webpack conf, like many do for vue.common.js

💎 Release new version 2.3.9

01 Mar 21:44
Compare
Choose a tag to compare

Update

  • Add src folder to npm package files.
  • Add src/index.js to main npm package entry instead of bundled dist
  • This way the dependencies (vue and chart.js) don't get bundled into the package js.

💎 Release new version 2.3.8

01 Mar 13:50
Compare
Choose a tag to compare

Update

  • vue to 2.2.1

💎 Release new version 2.3.6

22 Feb 14:52
v2.3.6
84dab8c
Compare
Choose a tag to compare

Fixes

  • Fixed #42 in reactiveProp and reactiveData mixin: complete dataset gets replaced in the watcher to also replace color variables etc.

💎 Release new version 2.3.5

15 Feb 14:36
v2.3.5
fc7818d
Compare
Choose a tag to compare

Fixed

  • #35 reactiveProp and reactiveData Mixin: Destroy chart instance before render()

💎 Release new version 2.3.4

11 Feb 11:55
Compare
Choose a tag to compare

Patches

  • Update dependency chart.js to 2.5.0

💎 Release new version 2.3.3

19 Jan 09:28
v2.3.3
Compare
Choose a tag to compare

Patches

  • Updated vue and vue-template-compiler
  • Fix #30

💎 Release new version 2.3.2

23 Dec 11:37
v2.3.2
Compare
Choose a tag to compare

Add new webpack config for release build.
As most people using vue-chartjs in a pipeline with webpack or gulp the new release is not minified and the production env is not set.

This should fix #19 and #26

💎 Release new version 2.3.1

20 Dec 19:20
v2.3.1
7ffefe4
Compare
Choose a tag to compare

Short

Now vue-chartjs uses the runtime-only build. All template tags has been rewritten to render functions.
Based on #22

Change Log

v2.3.1 (2016-12-20)

Full Changelog

Fixed bugs:

  • Issues after using gulp-- production #19

Closed issues:

  • Error in rendering #21

Merged pull requests:

💎 Release new version 2.3.0

17 Dec 17:28
Compare
Choose a tag to compare

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)
  }
})