servcraft 0.4.3 → 0.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ROADMAP.md CHANGED
@@ -4,7 +4,9 @@ This document outlines the planned features and improvements for Servcraft.
4
4
 
5
5
  ## Version History
6
6
 
7
- - **v0.4.3** (Current) - ESM/CommonJS compatibility fix - Phase 3 in progress 🚧
7
+ - **v0.4.5** (Current) - Lazy Prisma client initialization - Phase 3 in progress 🚧
8
+ - **v0.4.4** - Prisma client bundling fix
9
+ - **v0.4.3** - ESM/CommonJS compatibility fix
8
10
  - **v0.4.2** - Custom template loading in generate/scaffold
9
11
  - **v0.4.1** - Custom templates management (init/list)
10
12
  - **v0.4.0** - Scaffold command for complete CRUD generation
@@ -5763,10 +5763,18 @@ var prismaClientSingleton = () => {
5763
5763
  errorFormat: isProduction() ? "minimal" : "pretty"
5764
5764
  });
5765
5765
  };
5766
- var prisma = globalThis.__prisma ?? prismaClientSingleton();
5767
- if (!isProduction()) {
5768
- globalThis.__prisma = prisma;
5769
- }
5766
+ var _prisma;
5767
+ var prisma = new Proxy({}, {
5768
+ get(target, prop) {
5769
+ if (!_prisma) {
5770
+ _prisma = globalThis.__prisma ?? prismaClientSingleton();
5771
+ if (!isProduction()) {
5772
+ globalThis.__prisma = _prisma;
5773
+ }
5774
+ }
5775
+ return _prisma[prop];
5776
+ }
5777
+ });
5770
5778
 
5771
5779
  // src/utils/pagination.ts
5772
5780
  var DEFAULT_PAGE = 1;