Skip to content

Latest commit

Β 

History

History
54 lines (43 loc) Β· 3.92 KB

File metadata and controls

54 lines (43 loc) Β· 3.92 KB

Changelog

For full details, visit the official API documentation: Official Documentation 1.3.0, Tags

Version 1.3.0 (2023-12-20)

Added

  • πŸš€πŸ”§πŸ“ˆ Addition of Prisma Migrations. [15b94f4]

Changed

  • πŸ“šβœοΈπŸ” Improved README Instructions. [9f5a987]
  • πŸ–‹οΈπŸ”—πŸ’Ύ Text Formatting and Session ID Linking. [3a58e9c]

Version 1.3.0 (2023-12-09)

This version features significant improvements, including migration to the PostgreSQL database, integration with Prisma ORM, and new storage and interaction features.

Added

  • πŸ†•πŸ’Ύ Migration to PostgreSQL: Replacement of MongoDB with PostgreSQL for more robust and efficient data management. Check out the detailed instructions and benefits of this change in commits [9b574ec], [[7b2389f](https://github. com/code-chat-br/whatsapp-api/commit/7b2389f)].
  • πŸ†•πŸ”· Prisma ORM: Introduction of Prisma ORM, offering an additional layer of abstraction and security for database operations. More details at [a2474ed].
  • πŸ†•πŸ”— Integration with MinIO: Implementation of media storage with MinIO, providing a scalable and efficient solution. See [e71a9f9].
  • πŸ†•πŸ”— Integration with Typebot: New endpoints and services for interaction with Typebot, expanding the API's capabilities. Details at [88f2d1b].

Changed

  • πŸ›πŸ’₯ Redis Reconfiguration: Improvement in the code that saves instances in Redis, increasing reliability and efficiency. See [0b16a32].
  • πŸ”„πŸ’»πŸ› οΈ General Code Refactoring: Optimizations and code improvements to increase performance and maintainability. Details at [ba667a9].

Migrating from 1.2 to 1.3

Migration Steps:

  1. Test Environment: It is recommended to create a test environment to validate new features. Compare versions 1.2.8 and [1.3.0](https://github.com/ code-chat-br/whatsapp-api).
  2. PostgreSQL Database: Required for the new version. Configuration and migration instructions available in the documentation.
  3. Saving Logs to the Database: All logs are now saved to the database for better analysis and traceability.
  4. .env file: Replacement of the YAML environment variables file with a .env file to simplify configuration.
  5. Redis Save Refactoring: The code was restructured to avoid bugs and improve performance.
  6. Improved Request Responses: Responses now provide more detailed information from the bank.
  7. Webhook Sending Detailed Data: The data sent by the webhook is more complete and informative.

Detailed Integrations:

  • MinIO: Detailed settings and usage in the .env.dev file.
  • Typebot: Environment variables and application-specific interactions for the scope of the bot:
    {
      "messageId": 1325, // unique message id in the database
      "keyRemoteJid": "123@s.whatsapp.net", // WhatsApp phone number
      "keyId": "KDFKJRGLGR51VR5", // WhatsApp message id
      "messageType": "conversation", // message source type
      "pushName": "Name", // WhatsApp account name
      "instanceId": 12 // id of the WhatsApp instance linked to the API
    }

Feedback and Support

We encourage feedback on this release. For support or suggestions, contact us through our official channels.