Releases: apertureless/vue-chartjs
💎 Release new version 2.4.0
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
Update
- Add
src
folder to npm package files. - Add
src/index.js
to main npm package entry instead of bundleddist
- This way the dependencies (vue and chart.js) don't get bundled into the package js.
💎 Release new version 2.3.8
Update
- vue to 2.2.1
💎 Release new version 2.3.6
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
Fixed
- #35 reactiveProp and reactiveData Mixin: Destroy chart instance before render()
💎 Release new version 2.3.4
Patches
- Update dependency chart.js to 2.5.0
💎 Release new version 2.3.3
Patches
- Updated vue and vue-template-compiler
- Fix #30
💎 Release new version 2.3.2
💎 Release new version 2.3.1
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)
Fixed bugs:
- Issues after using gulp-- production #19
Closed issues:
- Error in rendering #21
Merged pull requests:
- ✅ Add tests for chart instance destroying #24 (apertureless)
- Feature/runtimebuild #22 #23 (apertureless)
💎 Release new version 2.3.0
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)
}
})