Skip to content

v2.1.0

Compare
Choose a tag to compare
@botzai botzai released this 19 Aug 09:48
· 665 commits to master since this release

2.1.0 (2024-08-19)

Bug Fixes

  • Add missing mock implementation for fs.existsSync in repoDependencyFacts.test.ts (f69c22b)
  • Add mocks for semver in repoDependencyFacts.test.ts (a852ff5)
  • Add null check for input in validateInput function (c5d8bf3)
  • Add type annotation for mockLocalDependencies in repoDependencyFacts.test.ts (79cfff0)
  • Correct the structure of LocalDependencies in repoDependencyFacts.test.ts (346924f)
  • Ensure dependencies are properly added to the result array in processNpmDependencies (21025db)
  • facts: ensure dependencies are compatible with npm and yarn, and extensible (fe0e40f)
  • Fix mocked import path for cli options (8806297)
  • fix type annotation for collectLocalDependencies mock (d2a7739)
  • Fix type error in unit test (58f14aa)
  • Fix TypeScript errors in repoDependencyFacts.test.ts (50a2029)
  • Fix TypeScript errors in repoDependencyFacts.test.ts (a3da3da)
  • Fix TypeScript errors in repoDependencyFacts.test.ts (1869968)
  • Handle missing package manager files gracefully (95da9ab)
  • Implement dependency analysis tests (9b0426b)
  • Improve error handling and return value in collectLocalDependencies function (7c6c06c)
  • Improve input validation and add logging for potential attacks (e5e2cd4)
  • Mock collectLocalDependencies function in repoDependencyFacts.test.ts (33a1634)
  • mock collectLocalDependencies function correctly (fde463a)
  • Mock fs and child_process modules in repoDependencyFacts.test.ts (f43c3a5)
  • Refactor repoDependencyFacts tests (cb2fd9a)
  • Resolve TypeScript error in repoDependencyFacts.test.ts (6bb0f22)
  • rewrite src/facts/repoDependencyFacts.test.ts to ensure it adheres to the logic in the implementation and that it mocks required objects correctly and covers all positive and negative use-cases (2d4548c)
  • Throw error when no lock file is found and return empty array when no local dependencies are found (a30a660)
  • Update src/facts/repoDependencyFacts.test.ts to fix TypeScript error (254f770)
  • Update collectLocalDependencies test to return an empty array (04bdda7)
  • Update error message expectation in test (6f287bd)
  • Update yarn dependency processing logic (5f2a39d)
  • Use yarn instead of npm to collect local dependencies (482b479)

Features

  • create comprehensive unit test file for repoDependencyFacts (1253f74)
  • Decompose collectLocalDependencies (b865d09)
  • Implement recursive processing of dependencies in repoDependencyFacts.ts (557916a)
  • Refactor dependency collection and processing (fc7e037)
  • Rewrite the entire src/facts/repoDependencyFacts.test.ts based on the new implementations (83466b4)
  • update findPropertiesInTree to operate on the new output structure of the LocalDependencies (608f301)
  • update code to conform to updated LocalDependencies interface (864bc68)
  • update repoDependencyFacts unit tests to match implementations (7f56ead)