Skip to content

Commit

Permalink
Make readString, readRemoteFile and jsonToCSV as pure function ( #135 )
Browse files Browse the repository at this point in the history
  • Loading branch information
Bunlong committed Aug 13, 2022
2 parents 58f4123 + a10c1ea commit 43e7dfb
Show file tree
Hide file tree
Showing 5 changed files with 254 additions and 143 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## 4.1.0 (2022-08-07)

### ✨ Bugs

* Import readString, readRemoteFile and jsonToCSV as pure function

Credits

* [@s5s5](https://github.com/s5s5)

## 4.0.4 (2022-08-06)

### ✨ Bugs
Expand Down
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -886,11 +886,15 @@ readRemoteFile(url, {

## 📜 Changelog

Latest version 4.0.4 (2022-08-06):
Latest version 4.1.0 (2022-08-07):

* Import readString, readRemoteFile and jsonToCSV as pure function

Version 4.0.4 (2022-08-06):

* Add optional required prop for input file

Latest version 4.0.2 (2022-01-26):
Version 4.0.2 (2022-01-26):

* Fix onUploadAccepted signature when a preview is set

Expand Down Expand Up @@ -1192,6 +1196,15 @@ How to contribute:
</sub>
</a>
</td>
<td align="center">
<a href="https://github.com/s5s5">
<img src="https://avatars.githubusercontent.com/u/473706?v=4" width="100" alt="Xiaochao Liu" />
<br />
<sub>
<b>Xiaochao Liu</b>
</sub>
</a>
</td>
</tr>
</table>

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-papaparse",
"version": "4.0.4",
"version": "4.1.0",
"description": "The fastest in-browser CSV (or delimited text) parser for React. It is full of useful features such as CSVReader, CSVDownloader, readString, jsonToCSV, readRemoteFile, ... etc.",
"author": "Bunlong <bunlong.van@gmail.com>",
"license": "MIT",
Expand Down
4 changes: 4 additions & 0 deletions src/react-papaparse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ export { formatFileSize, lightenDarkenColor } from './utils';
export { usePapaParse } from './usePapaParse';
export { useCSVDownloader } from './useCSVDownloader';
export { useCSVReader } from './useCSVReader';

export { readString } from './readString';
export { readRemoteFile } from './readRemoteFile';
export { jsonToCSV } from './jsonToCSV';

0 comments on commit 43e7dfb

Please sign in to comment.