1 | # Changelog
|
2 | All notable changes to this project will be documented in this file.
|
3 |
|
4 | The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
5 | and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
6 |
|
7 | ## [2.1.0] - 2018-04-11
|
8 | ### Changed
|
9 | - Updated Webpack to version 4
|
10 | - DIST folder is now removed from the repository
|
11 |
|
12 |
|
13 | ## [2.0.0] - 2017-12-08
|
14 | ### Changed
|
15 |
|
16 | - *Breaking Change!!!* Switches image loader return values to support the breaking change in Cornerstone Master (https://github.com/cornerstonejs/cornerstone/commit/9448755397da10a6de6f694d83123274cbd4b38e) which requires image loaders to return an object of the form { promise, cancelFn }.
|
17 | - *Breaking Change!!!* Removed jQuery events from triggerEvent, lower-cased all the event names (i.e. 'cornerstoneimageloadprogress').
|
18 | - *Breaking Change!!!* Switched all Deferred usage to use Promises
|
19 | - Performance: Switch getPixelData to just return the canvas imageData.data. The previous loop to set alpha channel to 255 is unnecessary since we can now just set image.rgba = false.
|
20 | - Set image.rgba to false by default. Users can change this to have the image rendered with the alpha channel intact.
|
21 | - Switch event triggering to use cornerstone.triggerEvent
|
22 | - Switched this changelog to try to follow http://keepachangelog.com/en/1.0.0/
|
23 |
|
24 | ## [1.0.0]
|
25 |
|
26 | - Updated to 1.0.0 because 0.8.5 introduced a breaking change with Cornerstone / jQuery injection. This doesn't break usage if you are using HTML script tags, but if you are using a module system, Cornerstone Web Image Loader may not properly find its dependencies.
|
27 |
|
28 | The solution for this is to inject your Cornerstone instance into Cornerstone Tools as follows:
|
29 |
|
30 | ````javascript
|
31 | cornerstoneWebImageLoader.external.$ = $;
|
32 | cornerstoneWebImageLoader.external.cornerstone = cornerstone;
|
33 | ````
|
34 |
|
35 | An example commit doing something similar in the OHIF Viewer Meteor application is here: https://github.com/OHIF/Viewers/commit/012bba44806d0fb9bb60af329c4875e7f6b751e0#diff-d9ccd906dfc48b4589d720766fe14715R25
|
36 |
|
37 | We apologize for any headaches that the breaking change in 0.8.5 may have caused for those using module systems.
|
38 | - Note: the dependencies have been updated to require Cornerstone Core 1.0.0 or above
|
39 |
|
40 | ## [0.8.6] (deprecated due to breaking change)
|
41 |
|
42 | - Added native CustomEvents that are triggered parallel to the jQuery events. This is part of a transition to drop the jQuery dependency entirely.
|
43 | - *Note:* This version requires Cornerstone Core 0.13.2 or above, where cornerstone.events has the EventTarget interface!
|
44 |
|
45 | e.g. CornerstoneImageLoadProgress has a native CustomEvent name 'cornerstoneimageloadprogress'
|
46 |
|
47 | ## [0.8.5] (deprecated due to breaking change)
|
48 |
|
49 | - Add Jquery and Cornerstone as injection dependencies |
\ | No newline at end of file |