Skip to content
This repository was archived by the owner on Jan 20, 2024. It is now read-only.

Releases: AscentEssentials/ascent-essentials-backend

12.2.0

Choose a tag to compare

@FilippoVissani FilippoVissani released this 11 Jan 15:32

12.2.0 (2024-01-11)

Features

  • set cors settings for Socket.io (7990f87)

12.1.0

Choose a tag to compare

@FilippoVissani FilippoVissani released this 11 Jan 09:26

12.1.0 (2024-01-11)

Features

  • console log when socket.io connection event (f5f931f)
  • emit events with Socket.io when a new notification is created (076b60d)
  • Socket.io handle ClientLogin and UserDisconnect (8922113)

Dependency updates

  • deps: update dependency @types/node to v20.10.7 (598daf5)

Build and continuous integration

  • add @types/socket.io dependency (0bc8db2)
  • add socket.io dependency (e82dd80)

Refactoring

  • define a function to retrieve a userId from a token (42cb531)

12.0.0

Choose a tag to compare

@FilippoVissani FilippoVissani released this 10 Jan 16:31

12.0.0 (2024-01-10)

⚠ BREAKING CHANGES

  • provide routes to retrieve and delete notifications

Features

  • provide routes to retrieve and delete notifications (20b8da2)
  • define notification model (7c34f05)
  • edit Notification schema. now have _id, message and createdAt (e50a51b)
  • generate a notification for the admin when a new order is made (5df8c0b)
  • generate a notification for the user when an order status change (45f5328)
  • implement a function to insert a notification in the db (9ad30ad)

Bug Fixes

  • correct /admin/notifications (4f17a28)
  • correct /admin/notifications/:notificationId delete route (f1fb66b)

11.0.0

Choose a tag to compare

@FilippoVissani FilippoVissani released this 10 Jan 09:07

11.0.0 (2024-01-10)

⚠ BREAKING CHANGES

  • possibility to add coupon when a new order is made
  • add a route to edit the discout amount of a coupon
  • remove validFrom and validTo fields in coupon. A coupon can be deleted, so if it's present is valid
  • add route to delete a coupon
  • add GET /coupon/:code, POST /admin/coupon, GET /admin/coupons routes

Features

  • add a route to edit the discout amount of a coupon (9916928)
  • add GET /coupon/:code, POST /admin/coupon, GET /admin/coupons routes (242dd29)
  • add route to delete a coupon (f65b8a4)
  • define coupon model (030b46c)
  • possibility to add coupon when a new order is made (3ef6060)
  • remove validFrom and validTo fields in coupon. A coupon can be deleted, so if it's present is valid (baa76fd)

Documentation

  • update get all coupons description (0705dfc)

10.1.0

Choose a tag to compare

@FilippoVissani FilippoVissani released this 09 Jan 17:01

10.1.0 (2024-01-09)

Features

  • remove shipping cost from requestBody (5453af5)

10.0.0

Choose a tag to compare

@FilippoVissani FilippoVissani released this 09 Jan 16:06

10.0.0 (2024-01-09)

⚠ BREAKING CHANGES

  • add route to retrieve detail of a specific order
  • route to delete orders
  • route to edit order status
  • edit route to allow the retrieve of an order by id
  • add route to provide orders for a specified user
  • add addOrder route
  • add route to get all orders of all users
  • add route to provide all orders of the actual user

Features

  • add addOrder route (b16d656)
  • add route to get all orders of all users (3a7648b)
  • add route to provide all orders of the actual user (2c4e6e7)
  • add route to provide orders for a specified user (c6be921)
  • add route to retrieve detail of a specific order (57eed53)
  • edit route to allow the retrieve of an order by id (2828e65)
  • export getCartTotal function (7db5fd0)
  • implement orderModel (37e911a)
  • replicate product data in order details, update product quantity in store and clear cart in addOrder (5830bbc)
  • route to delete orders (1348c90)
  • route to edit order status (5ef5d43)

Documentation

  • add _id in swagger doc for Order schema (a37ae5c)
  • update swagger doc of orderModel (675d286)
  • update swagger docs in orderRoutes (d82aeb4)

Refactoring

  • define a function to map an IOrderDocument to a response object respecting the Order schema (6f0508c)

9.0.0

Choose a tag to compare

@FilippoVissani FilippoVissani released this 09 Jan 09:42

9.0.0 (2024-01-09)

⚠ BREAKING CHANGES

  • require quantity in addToCart function

Features

  • implement a function to calculate the total of the cart, based on products that are on it (adc8033)
  • remove useless fetch and check (65dc8f4)
  • require quantity in addToCart function (c35d6b3)
  • set default value for cartTotal to 0 (05555b5)
  • use getCartTotal function to calculate the total (a55c337)

Documentation

  • update swagger docs to require quantity in /cart/add (2a6c868)

8.1.2

Choose a tag to compare

@FilippoVissani FilippoVissani released this 08 Jan 15:49

8.1.2 (2024-01-08)

Bug Fixes

  • in POST and PUT routes, take parameters from body instead of query (2480555)

Documentation

  • update swagger docs, now parameters are in the body for PUT and POST routes (77431bc)

8.1.1

Choose a tag to compare

@FilippoVissani FilippoVissani released this 08 Jan 15:32

8.1.1 (2024-01-08)

Bug Fixes

  • product price is now a "number" instead of a "Number" (dbddb36)

8.1.0

Choose a tag to compare

@FilippoVissani FilippoVissani released this 07 Jan 22:30

8.1.0 (2024-01-07)

Features

  • print error message in the console (7d1d8ec)