Skip to content

fix(core): ignore trailing empty CSV lines in use Import - #7692

Open
Sethu0805 wants to merge 1 commit into
refinedev:mainfrom
Sethu0805:codex/fix-core-import-trailing-lines
Open

Sethu0805 wants to merge 1 commit into
refinedev:mainfrom
Sethu0805:codex/fix-core-import-trailing-lines

Conversation

@Sethu0805

@Sethu0805 Sethu0805 commented Nov 30, 2026 •

Copy link
Copy Markdown

What does this PR do?

Prevents useImport from importing an empty record when a CSV file ends with a trailing newline.

What changed?

  • Enabled skipEmptyLines in Papa Parse options.
  • Added regression coverage for trailing CSV line breaks.
  • Added a patch Changeset for @refinedev/core.

Testing

  • Import tests: 13 passed.
  • Core production build: passed.
  • TypeScript declaration generation: passed.

Closes #7615

@changeset-bot

changeset-bot Bot commented Nov 30, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 35623af

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@refinedev/core Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] useImport imports an empty record when the csv file ends with a line break

1 participant