Skip to content

Releases: Kingrashy12/nexu

v0.1.30 - Improved Server Stability & New Utility Methods

18 Feb 22:48
Compare
Choose a tag to compare

🚀 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:

  1. slugify(text: string): string – Converts a string into a URL-friendly slug.
  2. generateUUID(length: number): string – Generates a unique alphanumeric identifier.
  3. 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

03 Feb 14:49
Compare
Choose a tag to compare

Bug Fixes

  • Fixed an issue with module loading when fileBasedRouting is enabled, ensuring proper compatibility with TypeScript and module exports.

nexujs@v0.1.28

03 Feb 08:27
Compare
Choose a tag to compare

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 in validateFields middleware.
    • Prevents errors when req.body[field] is undefined or not a string.

✅ Safe to upgrade with no breaking changes.

nexu@v0.1.26

26 Jan 05:28
Compare
Choose a tag to compare

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.

nexu@v0.1.23

22 Jan 19:21
Compare
Choose a tag to compare

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

18 Jan 04:24
Compare
Choose a tag to compare

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

16 Jan 18:06
Compare
Choose a tag to compare

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

16 Jan 15:35
Compare
Choose a tag to compare

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

12 Jan 15:04
Compare
Choose a tag to compare

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