CHANGELOG.md in thinreports-0.8.2 vs CHANGELOG.md in thinreports-0.9.0

- old
+ new

@@ -1,7 +1,104 @@ +## 0.9.0 + + * Drop support for layout file saved with Editor v0.7 or lower #62 + * New format for layout file and deprecate old format #35 + * Fixed fail in rendering a static image #61 + * Make possible to set an image-data to image-block item #65 + * Remove old way to define callback of list #54 + * Remove `config.eudc_fonts=` option #53 + * Deprecate `config.convert_palleted_transparency_png` option #49 + +### Drop support for layout file saved with Editor v0.7 or lower + +Generator v0.9 or higher can't load the layout file saved with Editor v0.7 or lower. + +### New format for layout file and deprecate old format + +This is a BIG internal change. + +Thinreports has two format types for layout file now: + + 1. Old format generated by Thinreports Editor 0.8.x or lower + 2. New format generated by Thinreports Editor 0.9.x or higher + +thinreports-generator will supports as below: + +| Generator | Format type(1) | Format type(2) | +| ---------- | :------------: | :------------: | +| =< 0.8 | o | x | +| 0.9, 1.0 | o | o | +| >= 1.1 | x | o | + +See https://github.com/thinreports/thinreports/issues/4 for further details. + +### Make possible to set an image-data to image-block item + +The following code works fine now. + +```ruby +png_image = StringIO.new(png_data) +page.item(:image_block).src(png_image) + +require 'open-uri' +png_data = open('http://example.com/image.png') +page.item(:image_block).src(image_data) +``` + +### Remove old way to define callback of list + +The block of `Report::Base#use_layout` never performed: + +```ruby +report.use_layout 'foo.tlf' do |config| + config.events.on(:page_create) { ... } + config.list.events.on(:footer_insert) { ... } +end +``` + +`List#store` and `List#events` has been removed: + +```ruby +report.list.store.foo += 1 # => NoMethodError +report.list.events.on(:footer_insert) { ... } # => NoMethodError +``` + +`Layout::Base#config` has been removed: + +```ruby +report.default_layout.config { ... } # => NoMethodError +``` + +You can use the following method instead: + + * `Report::Base#on_page_create` + * `List#on_page_finalize` + * `List#on_footer_insert` + * `List#on_page_footer_insert` + +See https://github.com/thinreports/thinreports-generator/tree/master/examples/list_events. + +### Remove config.eudc_fonts= option + +```ruby +Thinreports.config.eudc_fonts = true # => NoMethodError +``` + +You can use `config.fallback_fonts` instead. + +### Deprecate config.convert_palleted_transparency_png option + +```ruby +Thinreports.config.convert_palleted_transparency_png = true # => warn "[DEPRECATION]" +``` + +This is option to enable palette-based transparency PNG support. +The option will be removed in version 1.0, but thinreports will support the feature by default. +Please see [PR#32](https://github.com/thinreports/thinreports-generator/pull/32) for detailed the feature. + ## 0.8.2 - * Refactor for disabling some Ruby warnings (#40, #41, #43) + * Fixed: some Ruby warnings (#40, #41, #43) [Akira Matsuda, Katsuya Hidaka] * Some code improvements ## 0.8.1 ### Add OPTIONAL feature for converting a palette-based PNG w. transparency