Skip to content

Commit

Permalink
add 2.10.0 post
Browse files Browse the repository at this point in the history
  • Loading branch information
pofider committed Sep 7, 2020
1 parent 6bdb8be commit 47da701
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 0 deletions.
67 changes: 67 additions & 0 deletions _posts/release-2-10-0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@

{{{
"title": "Release 2.10.0",
"date": "09-07-2020 16:21"
}}}

**The jsreport 2.10.0 is here.**

This is a rather smaller release which brings several nice features we wanted to ship to you before we move all of our focus to the jsreport v3 development. Let's look at the main highlights, the full release notes can be found on [github](https://github.com/jsreport/jsreport/releases) as always.

## Docx

The [docx](/learn/docx) recipe is becoming step by step one of the most important parts of jsreport. It already doesn't deserve the beta mark which we remove together with the v3 release.

The jsreport 2.10.0 brings improvements primarily for the `docxChart` helper which now supports many additional charts (waterfall, treemap, sunburst, funnel, stockChart, clusteredColumn, scatterChart, bubbleChart).

![bubble-chart](/blog/bubble-chart.png)

And also to the `docxTable` which can now render tables with dynamic columns or vertical tables.

![dynamic-table](/blog/dynamic-table.png)

## Pdf utils
There is always something that can be improved regarding pdf generation. This time we for example enabled specific pages removal using jsreport scripts.
```js
const jsreport = require('jsreport-proxy')

async function afterRender(req, res) {
res.content = await jsreport.pdfUtils.removePages(res.content, 1)
}
```

And thanks to the open source contribution, you can now add signatures to the pdf forms.

```
{{{pdfFormField name='test' type='signature' width='100px' height='50px'}}}
```

## Reports

We were asked [on the forum](https://forum.jsreport.net/topic/1605/public-version-of-download-link) to allow exposing stored reports to the public. This feature is now part of the jsreport 2.10.0. You just need to specify you want the report to be public in the rendering request call.
```js
{
"template": { "name" : "My template" },
"data" : { ... },
"options": {
"reports": { "save": true, "public": true }
}
}
```

## Scheduling

The last feature from this release highlights was also [requested on the forum](https://forum.jsreport.net/topic/1584/scheduling-component-stressing-out-server-storage/3). The scheduling extension can now automatically clean the history to avoid performance problems with many schedules that runs very often.

```js
{
"extensions": {
"scheduling": {
"cleanScheduleHistoryInterval": 60000,
"maxHistoryPerSchedule": 10
}
}
```
## Conclusion
That's it. Enjoy the new features and let us know what you think. We will now focus on the jsreport 3 release. That will be the big one. Already looking forward. The scope isn't fixed, so don't hesitate to [submit a feature request](https://github.com/jsreport/jsreport/issues).
Binary file added public/blog/bubble-chart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/blog/dynamic-table.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 47da701

Please sign in to comment.