Releases: Kingrashy12/nexu
Releases · Kingrashy12/nexu
v0.1.30 - Improved Server Stability & New Utility Methods
🚀 What's New in v0.1.30
🛠 Improvements
- Optimized HTTPS Handling: Improved reliability in
startHttps()
by checking certificate files before attempting to start the server.
✨ New Utility Methods
Added three new utility methods:
slugify(text: string): string
– Converts a string into a URL-friendly slug.generateUUID(length: number): string
– Generates a unique alphanumeric identifier.generateID(length: number): string
– Creates a numeric-only ID of a given length.
🛑 Bug Fixes
- Ensured error logs only display once when changes occur.
📜 How to Update
npm install nexujs@latest
nexujs@v0.1.29
Bug Fixes
- Fixed an issue with module loading when
fileBasedRouting
is enabled, ensuring proper compatibility with TypeScript and module exports.
nexujs@v0.1.28
What's New
- Added a
request
function to simplify API request handling. - Automatically wraps the action in a try-catch block to handle errors.
- Supports custom error messages and optional error handlers.
Bug Fixes
- Fixed
req.body[field].trim
issue invalidateFields
middleware.- Prevents errors when
req.body[field]
is undefined or not a string.
- Prevents errors when
✅ Safe to upgrade with no breaking changes.
nexu@v0.1.26
Fixes
- Prevent Encryption of Errors for Specific Status Codes
- Overridden
res.status
to track error status codes (400-504). - Added logic to avoid encrypting error responses, making it easier to debug error messages.
- Overridden
nexu@v0.1.23
Patch Changes
CLI
- Updated key length for improved security/performance.
Nexujs
- Implemented full support for HTTPS, moving it out of experimental. Added an automatic redirect from HTTP to HTTPS for improved security and user experience.
nexu@v0.1.20
Patch Changes
-
CLI:
- Added a new script for regenerating RSA keys. This allows users to easily regenerate their key pairs with a customizable key length.
-
NexuJs:
- Updated RSA encryption for enhanced security.
- Added a new
ErrorLogger
middleware for better error tracking and handling, improving the visibility of issues during development.
nexu@v0.1.17
Patch Changes
NexuJs
- Added rate-limiting functionality using
express-rate-limit
to control the number of requests from a single IP within a time window. - Updated the
nexu.config
configuration file to support rate-limiting settings.
nexu@v0.1.16
Patch Changes
CLI
- Implement Git initialization during project setup.
NexuJs
NexuPostgres
: Introduced support for PostgreSQL query handling and pagination.- Updated encryption method for enhanced security.
NexuJs-Client
- Refactored all methods into a single instance of
NexuClient
for improved maintainability and usability.
nexu@v0.1.10
Patch Changes
- nexujs-client:
- Add createApiClient for axios interceptor
- Implement data encryption
- Add config creation script for
nexu.config*ts/js
- nexujs:
- Implement data decryption on
res.body
- Implement data decryption on