Skip to content

Commit

Permalink
This release includes breaking changes. See CHANGELOG.md.
Browse files Browse the repository at this point in the history
Upgraded Highcharts JS library to the latest release 10.0).
Fix temporarily suppress notice on PHP82 #92.
Use asset packagist instead of fxp-composer-asset-plugin.
  • Loading branch information
miloschuman committed Jan 22, 2023
1 parent cf78c03 commit 76b2ef1
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 6 deletions.
11 changes: 8 additions & 3 deletions CHANGELOG.md
@@ -1,11 +1,16 @@
Yii2 Highcharts Changelog
=========================

### [v10.0](https://github.com/miloschuman/yii2-highcharts/releases/tag/v10.0) (2023-01-22) ###
* This release includes breaking changes. See [Tips](https://github.com/miloschuman/yii2-highcharts/tree/master/README.md#tips) for upgrade instructions.
* Upgraded Highcharts JS library to the latest major release (10.0). See the Highcharts [changelog](https://www.highcharts.com/blog/changelog/) for more information about what's new in this version.
* Fix temporarily suppress notice on PHP82 #92

### [v9.0](https://github.com/miloschuman/yii2-highcharts/releases/tag/v9.0) (2021-03-04) ###
* Upgraded Highcharts JS library to the latest release (9.0). See the Highcharts [changelog](https://www.highcharts.com/blog/changelog/) for more information about what's new in this version.
* Upgraded Highcharts JS library to the latest major release (9.0).

### [v8.0](https://github.com/miloschuman/yii2-highcharts/releases/tag/v8.0) (2020-04-21) ###
* Upgraded Highcharts JS library to the latest release (8.0).
* Upgraded Highcharts JS library to the latest major release (8.0).
* Updated docs for #77 HighchartsAsset::register($this)->withScripts(['highstock']); results with error 16

### [v7.1.2](https://github.com/miloschuman/yii2-highcharts/releases/tag/v7.1.2) (2019-08-07) ###
Expand Down Expand Up @@ -60,7 +65,7 @@ Yii2 Highcharts Changelog

### [v4.1.5](https://github.com/miloschuman/yii2-highcharts/releases/tag/v4.1.5) (2015-04-29) ###
* Upgraded Highcharts JS library to the latest release (4.1.5).
* Added SeriesDataHelper class to to make preprocessing data easier. See included [SeriesDataHelper Examples](https://github.com/miloschuman/yii2-highcharts/tree/master/doc/examples/series-data-helper.md) for usage.
* Added SeriesDataHelper class to make preprocessing data easier. See included [SeriesDataHelper Examples](https://github.com/miloschuman/yii2-highcharts/tree/master/doc/examples/series-data-helper.md) for usage.
* Chart objects are no longer assigned to the generic `chart` variable on initialization. See [Tips](https://github.com/miloschuman/yii2-highcharts/tree/master/README.md#tips) for info on accessing your charts from other scripts.

### [v4.0.4](https://github.com/miloschuman/yii2-highcharts/releases/tag/v4.0.4) (2014-09-25) ###
Expand Down
25 changes: 23 additions & 2 deletions README.md
Expand Up @@ -114,8 +114,29 @@ In this scenario, you would need to write and include your own JavaScript to dis
Tips
----

* This extension uses Bower to load the required Highcharts assets, so there is no need to change
* As of v10, This extension uses Asset Packagist to load the required Highcharts assets, so there is no need to change
the version number in your `composer.json` file until the next major release.

If you are upgrading from v9.0 or earlier, you will need to add the following to your `composer.json` file:
```json
"repositories": [
{
"type": "composer",
"url": "https://asset-packagist.org"
}
]
```

Make sure the previously used fxp/composer-asset-plugin is disabled in your `composer.json` file:
```json
"config": {
"fxp-asset": {
"enabled": false
}
}
```

Then run `composer update` to install the new assets.
* If you need to use JavaScript in any of your configuration options, use Yii's [[JsExpression]] object. For instance:

```php
Expand Down Expand Up @@ -144,7 +165,7 @@ Tips
],
...
```
For a list of available scripts, see the contents of `vendor/bower/highcharts/`.
For a list of available scripts, see the contents of `vendor/npm/highcharts/`.
* You can access the JavaScript chart object from another script like this:

```javascript
Expand Down
8 changes: 7 additions & 1 deletion composer.json
Expand Up @@ -12,9 +12,15 @@
}
],
"minimum-stability": "dev",
"repositories": [
{
"type": "composer",
"url": "https://asset-packagist.org"
}
],
"require": {
"yiisoft/yii2": "*",
"bower-asset/highcharts" : "^9.0"
"npm-asset/highcharts" : "^10.0"
},
"require-dev": {
"phpunit/phpunit": "~4.4"
Expand Down

0 comments on commit 76b2ef1

Please sign in to comment.