Commit 047e1ef
Memory usage optimization (#3139)
Trying to import `typescript` dynamically in order to avoid excessive
memory consumption.
Addresses #3126
Using `createRequire` for sync approach — This is kinda a workaround,
because the proper implementation would need:
- `import()` and `async`, which is breaking
- or moving to another entrypoint or another package, which is breaking
as well
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
- Unified internal TypeScript generation engine while keeping public
interfaces compatible.
* **Chores**
- Deferred TypeScript import to reduce memory usage during normal
operations.
- Bumped package version to 26.1.0-beta.2.
- Updated changelog and added a contributor entry.
<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>1 parent 8dc8b43 commit 047e1ef
File tree
9 files changed
+851
-770
lines changed- express-zod-api
- src
- tests
9 files changed
+851
-770
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
5 | 13 | | |
6 | 14 | | |
7 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments