You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug Report: transformHeader Called Multiple Times in Papa Parse v5.5.1
Title
transformHeader Function Invoked for Data Rows in Papa Parse v5.5.1
Description
In Papa Parse version 5.5.1, the transformHeader function is being called for each data row's fields instead of exclusively for the header row. This results in unexpected transformations of data fields, leading to incorrect parsed output.
Expected Behavior
transformHeader should be invoked only once for each header field in the first row of the CSV.
Data rows should be processed without invoking transformHeader.
Actual Behavior
transformHeader is invoked for each field in data rows, causing data values to be transformed incorrectly.
This leads to incorrect and malformed rows in the transformation process.
The transformHeader function in Papa Parse version 5.5.1 is incorrectly being invoked for data rows, leading to unexpected transformations. This regression affects data integrity during CSV parsing.
The text was updated successfully, but these errors were encountered:
Bug Report: transformHeader Called Multiple Times in Papa Parse v5.5.1
Title
transformHeader Function Invoked for Data Rows in Papa Parse v5.5.1
Description
In Papa Parse version 5.5.1, the transformHeader function is being called for each data row's fields instead of exclusively for the header row. This results in unexpected transformations of data fields, leading to incorrect parsed output.
Expected Behavior
transformHeader should be invoked only once for each header field in the first row of the CSV.
Data rows should be processed without invoking transformHeader.
Actual Behavior
transformHeader is invoked for each field in data rows, causing data values to be transformed incorrectly.
This leads to incorrect and malformed rows in the transformation process.
Steps to Reproduce
Setup the Environment:
Install Papa Parse version 5.5.1.
npm install [email protected]
Create a file named index.js and paste the following code:
Run the script
node index.js
Observe the Output:
With Papa Parse v5.5.1:
With Papa Parse v5.4.1:
The transformHeader function in Papa Parse version 5.5.1 is incorrectly being invoked for data rows, leading to unexpected transformations. This regression affects data integrity during CSV parsing.
The text was updated successfully, but these errors were encountered: