Skip to content

Conversation

@smorimoto
Copy link
Collaborator

@smorimoto smorimoto commented Dec 21, 2025

Note

Replace lodash with es-toolkit across the codebase, migrate CLI/exports to ESM (.mjs), and adjust generators/parsers with minor behavior tweaks reflected in snapshots.

  • Dependencies/Build:
    • Remove lodash, @types/lodash, and nanoid; add es-toolkit and use node:crypto.randomUUID.
    • Switch CLI and export entrypoints to ESM (.mjs), keep CJS require for main; adjust bin to .mjs.
    • Bump test timeout and add stable schema ordering in test utils.
  • Core Refactor:
    • Replace lodash usages with es-toolkit/compat across code-gen, configuration, schema-parser/*, schema-routes, templates-worker, schema-walker, swagger-schema-resolver, and util/*.
    • Add util/lodash-compat for template _ compatibility; remove internal-case and object-assign helpers; use native Object.assign.
  • Generator/Parsing Behavior:
    • Rework iteration and merging (Object.entries, compact, merge, uniq), description formatting, tag/externalDocs handling, path/query param parsing/casing, content-type detection, and discriminator/enum/object parsing.
    • Improve request options merging and Swagger v2 fix-ups.
  • Tests:
    • Update snapshots for title/version text, new/plain-text and charset consume handling, type/name adjustments, and route/client outputs.

Written by Cursor Bugbot for commit 0d20549. This will update automatically on new commits. Configure here.

@smorimoto smorimoto self-assigned this Dec 21, 2025
@smorimoto smorimoto added the enhancement New feature or request label Dec 21, 2025
@changeset-bot
Copy link

changeset-bot bot commented Dec 21, 2025

⚠️ No Changeset found

Latest commit: 0d20549

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Signed-off-by: Sora Morimoto <sora@morimoto.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants