Skip to content

Conversation

@neSpecc
Copy link
Member

@neSpecc neSpecc commented Dec 14, 2025

  • Updated mongo types issue fixed. See TypeScript 5.6.3 Incompatibility with @types/[email protected] hawk.nodejs#43
    • Now we use "bson" package instead of "@types/mongo"
    • "bson" moved to a prod dependency
  • TypeScript updated to 5
  • ESLint updated to 9
  • ESLint Config CodeX updated
  • all ESLint issues fixed
  • Node.js version locked to 24 at package.json and .nvmrc
  • Yarn is locked as a package manager at package.json

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR performs a comprehensive dependency and tooling upgrade for the @hawk.so/types package, addressing a MongoDB types issue and modernizing the development environment. The changes primarily involve updating TypeScript to v5, ESLint to v9, switching from @types/mongodb to the bson package for BSON types, and applying automatic code formatting fixes throughout the codebase.

Key Changes:

  • Migrated MongoDB ObjectId types from @types/mongodb to bson package (v7.0.0)
  • Updated TypeScript from v4 to v5, ESLint from v7 to v9
  • Applied ESLint auto-fixes for code formatting (indentation, spacing, trailing commas)
  • Locked Node.js version to 24.x with Yarn 1.22.0 as package manager

Reviewed changes

Copilot reviewed 40 out of 74 changed files in this pull request and generated no comments.

Show a summary per file
File Description
package.json Updated dependencies, added engines and packageManager fields
yarn.lock Complete dependency tree update reflecting new versions
eslint.config.mjs New ESLint 9 flat config with TypeScript and custom rules
src/**/*.ts Import updates (mongodb→bson, .ts extensions), formatting fixes, type keyword additions
build/**/*.d.ts Generated type definitions reflecting source changes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@neSpecc neSpecc merged commit 2a3dfda into master Dec 14, 2025
6 checks passed
@neSpecc neSpecc deleted the deps-upd branch December 14, 2025 22:17
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.

2 participants