Releases: lad-tech/nsc-cli
Releases · lad-tech/nsc-cli
v4.0.1
v4.0.0
4.0.0 (2026-01-22)
Bug Fixes
- improve code quality in generators (3eb9d29)
Features
- migrate project to ESM modules (cd52606)
BREAKING CHANGES
- Project now uses ES Modules instead of CommonJS.
Changes:
- Added 'type: module' to package.json
- Updated tsconfig.json: module to ESNext, moduleResolution to bundler
- Updated all local imports to use .js extensions
- Updated JSON imports to use 'with { type: json }' syntax
- Updated DefaultProjectSettings and BaseTsConfig for ESM
- Updated build scripts and added tsx for ESM support
- Renamed .eslintrc.js to .eslintrc.cjs for ESM compatibility
- Renamed commitlint.config.js to commitlint.config.cjs
- Fixed ESLint errors in generatePackageJson and helpers
- Removed CRUD CLI files (not present in project)
All source files now use ESM syntax and the project builds successfully.
v3.1.2
v3.1.1
v3.1.0
v3.0.0
3.0.0 (2026-01-22)
- feat!: migrate to ESM modules (769a180)
BREAKING CHANGES
- All generated services now use ES Modules (ESM) instead of CommonJS.
Changes:
- Import JSON schemas using 'with { type: "json" }' syntax
- Add .js extensions to all local imports
- Generate package.json with type: 'module' and exports field
- Update all import/export statements to ESM syntax
- Require Node.js 18+ for import attributes support
This change is incompatible with version 1.0.0 and below.
Projects generated with version 1.0.0 will need to be migrated manually.
Updated files:
- generateServerFile.ts: ESM imports, JSON schema import
- generateIndexFile.ts: ESM imports, JSON schema import
- generateMethods.ts: ESM imports, JSON schema import
- generatePackageJson.ts: Add ESM configuration
- generateStartFile.ts: Formatting improvements
- README.md: Document breaking changes and migration guide