Skip to content

Remove 'flat' dependency and recreate functionality, pin 'marked' dependency to a version that has cjs, and fix tests#4250

Merged
Amndeep7 merged 12 commits intomainfrom
remove_flat
Jul 10, 2025
Merged

Remove 'flat' dependency and recreate functionality, pin 'marked' dependency to a version that has cjs, and fix tests#4250
Amndeep7 merged 12 commits intomainfrom
remove_flat

Conversation

@Amndeep7
Copy link
Contributor

@Amndeep7 Amndeep7 commented Jul 7, 2025

Removed the 'flat' dependency since that was ESM only and causing problems since our testing frameworks would basically instantly execute and not grant the time it took to do the dynamic import that using it in the real world would allow us to do. I replaced it with a simplified and handwritten pair of matching flatten and unflatten functions that handle our specific usecase of just threshold files with no options or fanciness.

Amndeep7 added 12 commits July 7, 2025 15:11
problems since our testing frameworks would basically instantly execute
and not grant the time it took to do the dynamic import that using it in
the real world would allow us to do.  I replaced it with a simplified
and handwritten pair of matching flatten and unflatten functions that
handle our specific usecase of just threshold files with no options or
fanciness.

Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
…onality

Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
…ly represent what it is doing

Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
…ect could have depth of 2 or 3 depending on the top level attribute. it's also a partial object.

Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
… to check both stdout and stderr

Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
5.5% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@Amndeep7
Copy link
Contributor Author

The code duplication is in the testing code which idk if sonarqube knows but is gonna end up lookin kinda similar

@Amndeep7 Amndeep7 changed the title Remove 'flat' dependency Remove 'flat' dependency and recreate functionality, pin 'marked' dependency to a version that has cjs, and fix tests Jul 10, 2025
@Amndeep7 Amndeep7 merged commit 5e3ee9d into main Jul 10, 2025
15 of 22 checks passed
@Amndeep7 Amndeep7 deleted the remove_flat branch July 10, 2025 00:27
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.

1 participant