express-sweet 2.0.7 → 2.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## [2.0.8] - 2025/7/29
5
+
6
+ ### Changed
7
+
8
+ - Updated the usage example of the `isConnect` method in the `Database` class in the README reference.
9
+
4
10
  ## [2.0.7] - 2025/7/22
5
11
 
6
12
  ### Changed
package/README.md CHANGED
@@ -1218,7 +1218,12 @@ For more information on database configuration, see [Database configuration](#co
1218
1218
  ```js
1219
1219
  import * as expressExtension from 'express-sweet';
1220
1220
 
1221
- await expressExtension.database.Database.isConnect();
1221
+ // Create Database instance.
1222
+ const config = await expressExtension.utils.loadDatabaseConfig();
1223
+ const database = new expressExtension.database.Database(config.database, config.username, config.password, config);
1224
+
1225
+ // Check database connection.
1226
+ await database.isConnect();
1222
1227
  ```
1223
1228
 
1224
1229
  #### Model Class extends [sequelize.Model](https://sequelize.org/api/v6/class/src/model.js~model)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "express-sweet",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
4
4
  "description": "EXPRESS SWEET is a powerful Express.js extension that streamlines your workflow and boosts productivity with a suite of utilities and enhancements.",
5
5
  "type": "module",
6
6
  "main": "dist/build.cjs",