Skip to content

Refactor and optimize JSON API modules with new features and fixes#118

Merged
klerick merged 11 commits intomasterfrom
uow-mikroorm
Feb 1, 2026
Merged

Refactor and optimize JSON API modules with new features and fixes#118
klerick merged 11 commits intomasterfrom
uow-mikroorm

Conversation

@klerick
Copy link
Copy Markdown
Owner

@klerick klerick commented Feb 1, 2026

Summary

This pull request introduces a series of improvements across various JSON API modules in the repository. Key changes include:

  • Refactor and Feature Enhancements:

    • Refactored query parameter schemas with Zod for improved type safety and better Swagger documentation.
    • Added reusable transformers in json-api-nestjs for extended functionalities.
  • SDK Improvements:

    • Enhanced json-api-nestjs-sdk to support plain objects, dynamic factory configurations, and relationship ID preservation.
    • Introduced emptyArrayRef for clearing to-many relationships in the SDK.
    • Updated SDK to handle ID parsing and relationship markers.
  • Entity Handling Optimizations:

    • Optimized entity operations in json-api-nestjs-microorm by replacing queryBuilder with entityManager for efficiency.
    • Implemented diff-based handling of relationships in json-api-nestjs-microorm.
    • Excluded primary keys from properties and adjusted tests accordingly.
  • Database Improvements:

    • Enforced UTC timestamps truncated to seconds for consistent precision across entities in microorm-database.
  • Support for ESM:

    • Added a command to generate mjs package.json for ESM support in the dist folder of json-api-nestjs-shared.
  • Updated NPM Dependency:

    • Upgraded @electric-sql/pglite to version v0.3.14.
  • Bug Fixes:

    • Corrected the incorrect method and property name jonApiSdkService to jsonApiSdkService across test cases in json-api-server-e2e.

@nx-cloud
Copy link
Copy Markdown

nx-cloud bot commented Feb 1, 2026

View your CI Pipeline Execution ↗ for commit 1497698

Command Status Duration Result
nx affected --target=build --parallel=3 --exclu... ✅ Succeeded 5s View ↗
nx run json-api-server-e2e:e2e-micro --parallel=1 ✅ Succeeded 1m 52s View ↗
nx run json-api-server-e2e:e2e --parallel=1 ✅ Succeeded 1m 54s View ↗
nx affected --target=ts-test --parallel=3 --pas... ✅ Succeeded 18s View ↗
nx affected --target=test --parallel=3 --passWi... ✅ Succeeded 51s View ↗

☁️ Nx Cloud last updated this comment at 2026-02-01 16:30:45 UTC

@klerick klerick merged commit 8cfdf1d into master Feb 1, 2026
4 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.

1 participant