Skip to content

Remove json2csv#264

Merged
kriszyp merged 3 commits intomainfrom
eliminate-json2csv
Mar 19, 2026
Merged

Remove json2csv#264
kriszyp merged 3 commits intomainfrom
eliminate-json2csv

Conversation

@kriszyp
Copy link
Copy Markdown
Member

@kriszyp kriszyp commented Mar 19, 2026

It is deprecated (and loudly proclaims it when you npm install harper).

@kriszyp kriszyp requested a review from a team as a code owner March 19, 2026 12:19
try {
// Extract fields from first object if not provided
if (!fields && typeof chunk === 'object' && chunk !== null) {
fields = Object.keys(chunk);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DavidCockerill didn't you have an issue where the exported CSV from Studio had different headers based on your sort or results? Do I remember that right?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did... I cant remember much more about it. In the end I think i just exported all the results without any filtering

@kriszyp kriszyp changed the title Try to remove json2csv Remove json2csv Mar 19, 2026
Comment thread dataLayer/export.js Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: need these json2csv mentions?

Comment thread server/serverHelpers/contentTypes.ts Outdated
const registerFastifySerializers = fp(
function (fastify, opts, done) {
// eslint-disable-next-line require-await
//
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: still want a comment line here?

Comment thread server/serverHelpers/contentTypes.ts Outdated
import { Transform } from 'json2csv';
// TODO: Only load this if fastify is loaded
import fp from 'fastify-plugin';
import { Transform } from 'stream';
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could be combined with line 6?

Copy link
Copy Markdown
Member

@heskew heskew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

another dep bites the dust 🙌

just a few real minor comments

@kriszyp kriszyp merged commit 0e9edd1 into main Mar 19, 2026
20 of 22 checks passed
@kriszyp kriszyp deleted the eliminate-json2csv branch March 19, 2026 14:13
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.

5 participants