Skip to content

fix: Remove uuid dependency and modernize Node.js imports#365

Merged
hoegertn merged 1 commit into
mainfrom
claude/remove-uuid-dependency-VHXRD
May 15, 2026
Merged

fix: Remove uuid dependency and modernize Node.js imports#365
hoegertn merged 1 commit into
mainfrom
claude/remove-uuid-dependency-VHXRD

Conversation

@hoegertn
Copy link
Copy Markdown
Contributor

@hoegertn hoegertn commented May 14, 2026

  • Please check if the PR fulfills these requirements
  • The commit message describes your change
  • Tests for the changes have been added if possible (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • What kind of change does this PR introduce?
    Dependency removal and code modernization

  • What is the current behavior?
    The project currently depends on the uuid package and uses CommonJS-style Node.js built-in imports (e.g., import * as fs from 'fs').

  • What is the new behavior (if this is a feature change)?

  • Removed the uuid and @types/uuid dependencies from the project
  • Modernized all Node.js built-in imports to use the node: protocol prefix (e.g., import * as fs from 'node:fs')
  • Does this PR introduce a breaking change?
    Partly. The uuid package was not being used anywhere in the codebase, so removing it has no functional impact. The import modernization is a code quality improvement with no behavioral changes. Automatic addition of uuid to the deps of child projects does no longer happen as you shoudl use crypto.randomUUID.

  • Other information:
    This change improves code quality by:

  1. Using the modern node: protocol for built-in modules, which is the recommended approach in Node.js and improves clarity that these are built-in modules
  2. Simplifying dependency management by removing unnecessary type definitions

All existing tests continue to pass with these changes.

https://claude.ai/code/session_01K11KEz63qGKG4RnrKSSLwW

The uuid package was declared as a dependency but never actually
imported or used in the library source. Node's built-in
crypto.randomUUID() is available on all supported Node versions
(>=18) and is the modern replacement for uuid.v4().

- Drop uuid and @types/uuid from .projenrc.ts so the package no
  longer ships with the dependency.
- Drop uuid and @types/uuid from the ServerlessProject and
  Datastore projen components so downstream projects no longer
  receive them transitively.
- Regenerate package.json, tsconfig, and other projen-managed files.
- Normalize bare node built-in imports (fs, path, os) to the node:
  protocol for consistency.
@hoegertn hoegertn changed the title Remove uuid dependency and modernize Node.js imports fix: Remove uuid dependency and modernize Node.js imports May 14, 2026
@hoegertn hoegertn merged commit 08ebf7d into main May 15, 2026
5 of 6 checks passed
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