Skip to content

Dependencies

Overview

This document lists all the dependencies used in the BidScript project, along with their versions and purposes.

Core Dependencies

React and Next.js

  • react: ^18.2.0
  • Core React library for building user interfaces
  • react-dom: ^18.2.0
  • React rendering for web browsers
  • next: ^13.5.0
  • React framework for production-grade applications

Authentication

  • next-auth: ^4.24.5
  • Authentication for Next.js applications
  • @auth/core: ^0.18.6
  • Core authentication utilities

UI Components and Styling

  • @radix-ui/react-*: ^1.0.0
  • Unstyled, accessible UI components
  • tailwindcss: ^3.3.0
  • Utility-first CSS framework
  • @tailwindcss/typography: ^0.5.10
  • Typography plugin for Tailwind CSS
  • class-variance-authority: ^0.7.0
  • Type-safe className utilities
  • clsx: ^2.0.0
  • Utility for constructing className strings
  • tailwind-merge: ^2.1.0
  • Merge Tailwind CSS classes
  • framer-motion: ^10.16.16
  • Animation library

Icons and Media

  • lucide-react: ^0.298.0
  • Icon library
  • @react-pdf/renderer: ^3.1.14
  • PDF generation and rendering
  • react-pdf: ^7.6.0
  • PDF viewer component

Rich Text Editing

  • lexical: ^0.12.5
  • Text editor framework
  • @lexical/react: ^0.12.5
  • React components for Lexical
  • @lexical/rich-text: ^0.12.5
  • Rich text features for Lexical

Data Handling and Utilities

  • date-fns: ^2.30.0
  • Date manipulation library
  • zod: ^3.22.4
  • TypeScript-first schema validation
  • uuid: ^9.0.1
  • UUID generation
  • lodash: ^4.17.21
  • Utility library

Development Dependencies

TypeScript and Types

  • typescript: ^5.3.3
  • TypeScript language
  • @types/node: ^20.10.4
  • Node.js type definitions
  • @types/react: ^18.2.45
  • React type definitions
  • @types/react-dom: ^18.2.17
  • React DOM type definitions

Linting and Formatting

  • eslint: ^8.55.0
  • JavaScript/TypeScript linter
  • eslint-config-next: ^14.0.4
  • ESLint configuration for Next.js
  • prettier: ^3.1.1
  • Code formatter
  • @typescript-eslint/eslint-plugin: ^6.14.0
  • TypeScript ESLint plugin
  • @typescript-eslint/parser: ^6.14.0
  • TypeScript ESLint parser

Testing

  • jest: ^29.7.0
  • Testing framework
  • @testing-library/react: ^14.1.2
  • React testing utilities
  • @testing-library/jest-dom: ^6.1.5
  • DOM testing utilities

Installation

To install all dependencies, run:

npm install

For development dependencies:

npm install --save-dev

Version Management

Dependencies are managed through package.json. To update all dependencies to their latest versions:

npm update

To check for outdated packages:

npm outdated

Note

Keep dependencies current by regularly running npm audit and npm update. Use exact versions in package.json and thoroughly test after updates. Document version requirements in README.md.

Security

To check for known vulnerabilities:

npm audit

To automatically fix vulnerabilities when possible:

npm audit fix