diff --git a/BUILDING.md b/BUILDING.md index 98b6c9c363..b40a3efc24 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -36,7 +36,7 @@ There are several included e2e tests available which can be run individually. Pl ## Deploying a new version 1. Update any documentation pages which refer to a specific version. For example, the `Android` and `iOS` pages. -1. Run `npm run docusaurus docs:version MAJ:MIN` in `website` folder to create new versioned docs. +1. Run `npm run docusaurus docs:version MAJ.MIN` in `website` folder to create new versioned docs. Note that there is not patch version in docs, only major and minor parts. 1. (optional) Remove docs for the oldest version (see ). 1. Handle the new version in `import-lightweight-charts-version.ts`: add a package reference for that version to `website/package.json` (e.g. `"lightweight-charts-MAJ.MIN": "npm:lightweight-charts@~MAJ.MIN.0"`) and a import of that package in a matching case statement. diff --git a/package.json b/package.json index 80bc0f2dcf..1b2fac9792 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "private": true, - "version": "4.1.0", + "version": "4.0.1", "name": "lightweight-charts", "author": "TradingView, Inc.", "license": "Apache-2.0", diff --git a/website/package.json b/website/package.json index 0538942ba0..08e65c632b 100644 --- a/website/package.json +++ b/website/package.json @@ -20,10 +20,10 @@ "@types/react": "^17.0", "cross-env": "~7.0.3", "docusaurus-plugin-typedoc": "0.18.0", - "lightweight-charts": "~4.0.0", + "lightweight-charts": "~4.0.1", "lightweight-charts-local": "file:..", "lightweight-charts-3.8": "npm:lightweight-charts@~3.8.0", - "lightweight-charts-4.0": "npm:lightweight-charts@~4.0.0", + "lightweight-charts-4.0": "npm:lightweight-charts@~4.0.1", "prism-react-renderer": "~1.3.5", "raw-loader": "~4.0.2", "react": "^17.0", diff --git a/website/versioned_docs/version-4.0/android.md b/website/versioned_docs/version-4.0/android.md index c0ec81a4f0..83567b67a3 100644 --- a/website/versioned_docs/version-4.0/android.md +++ b/website/versioned_docs/version-4.0/android.md @@ -48,7 +48,7 @@ In `/gradle_module/build.gradle` ```groovy dependencies { //... - implementation 'com.tradingview:lightweightcharts:4.0.0' + implementation 'com.tradingview:lightweightcharts:3.8.0' } ``` diff --git a/website/versioned_docs/version-4.0/intro.md b/website/versioned_docs/version-4.0/intro.md index 0f7d41f1e5..8da57e2f46 100644 --- a/website/versioned_docs/version-4.0/intro.md +++ b/website/versioned_docs/version-4.0/intro.md @@ -8,7 +8,7 @@ sidebar_position: 0 ## Requirements -First of all, Lightweight Charts is _a client-side_ library. +First of all, Lightweight Charts™ is _a client-side_ library. This means that it does not and cannot work on the server-side (i.e. NodeJS), at least out of the box. The code of `lightweight-charts` package is targeted to [_es2016_ language specification](https://262.ecma-international.org/7.0/). diff --git a/website/versioned_docs/version-4.0/ios.md b/website/versioned_docs/version-4.0/ios.md index 983117cb87..b4772a57d1 100644 --- a/website/versioned_docs/version-4.0/ios.md +++ b/website/versioned_docs/version-4.0/ios.md @@ -37,7 +37,7 @@ Requires iOS 10.0+ [CocoaPods](https://cocoapods.org) is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate LightweightCharts into your Xcode project using CocoaPods, specify it in your `Podfile`: ```ruby -pod 'LightweightCharts', '~> 4.0.0' +pod 'LightweightCharts', '~> 3.8.0' ``` ### Swift Package Manager diff --git a/website/versioned_docs/version-4.0/release-notes.md b/website/versioned_docs/version-4.0/release-notes.md index efed2fe7df..4180ebc181 100644 --- a/website/versioned_docs/version-4.0/release-notes.md +++ b/website/versioned_docs/version-4.0/release-notes.md @@ -15,6 +15,31 @@ sidebar_position: 8 +## 4.0.1 + +**Enhancements** + +- Add the ability to specify font colour for the Priceline labels. [#1274](https://github.com/tradingview/lightweight-charts/issues/1274) [#1287](https://github.com/tradingview/lightweight-charts/issues/1287) +- Ignore resize method if `autoSize` is active, and added API to check if active. [#1301](https://github.com/tradingview/lightweight-charts/issues/1301) + +**Bug fixes** + +- Typo in customization guide. Thanks [@UcheAzubuko](https://github.com/UcheAzubuko). [#1284](https://github.com/tradingview/lightweight-charts/issues/1284) +- Inability to immediately add markers when `autoSize` chart option is enabled. Thanks [@victorbrambati](https://github.com/victorbrambati). [#1271](https://github.com/tradingview/lightweight-charts/issues/1271) [#1281](https://github.com/tradingview/lightweight-charts/issues/1281) +- First render when using `autosize` doesn't show the latest bars. Thanks [@victorbrambati](https://github.com/victorbrambati) [#1281](https://github.com/tradingview/lightweight-charts/issues/1281). [#1282](https://github.com/tradingview/lightweight-charts/issues/1282) +- Series rendering bug when outside of visible range. [#1293](https://github.com/tradingview/lightweight-charts/issues/1293) [#1294](https://github.com/tradingview/lightweight-charts/issues/1294) +- Auto contrast text color for crosshair labels. [#1309](https://github.com/tradingview/lightweight-charts/issues/1309) [#1310](https://github.com/tradingview/lightweight-charts/issues/1310) +- Hit box from the text of marker incorrectly shifted to the right. [#1270](https://github.com/tradingview/lightweight-charts/issues/1270) [#1305](https://github.com/tradingview/lightweight-charts/issues/1305) + +As always, we thank you for your support and help in making Lightweight Charts™ the best product on the financial web. And a big shout out to our hero contributors [@victorbrambati](https://github.com/victorbrambati), and [@UcheAzubuko](https://github.com/UcheAzubuko)! + +You can always send us your feedback via GitHub. + +We look forward to hearing from you! And as always, happy trading! +Team TradingView + +See [issues assigned to this version's milestone](https://github.com/tradingview/lightweight-charts/milestone/25?closed=1) or [changes since the last published version](https://github.com/tradingview/lightweight-charts/compare/v4.0.0..v4.0.1). + ## 4.0.0 Long overdue as it’s been nearly 1 year since our last major update, but behold before all the changes that have happened over the last 12 months.