express-sweet 3.0.2 → 5.0.0

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.
Files changed (93) hide show
  1. package/CHANGELOG.md +224 -418
  2. package/LICENSE +1 -1
  3. package/README.md +211 -1026
  4. package/dist/build.cjs +37 -72
  5. package/dist/build.mjs +37 -72
  6. package/package.json +50 -64
  7. package/screenshots/avatar.png +0 -0
  8. package/screenshots/edit-profile.png +0 -0
  9. package/screenshots/hero-banner.png +0 -0
  10. package/screenshots/home.png +0 -0
  11. package/screenshots/mount-flow.mmd +11 -0
  12. package/screenshots/mount-flow.png +0 -0
  13. package/screenshots/new-person.png +0 -0
  14. package/screenshots/people.png +0 -0
  15. package/screenshots/sign-in.png +0 -0
  16. package/types/database/DatabaseManager.d.ts +15 -10
  17. package/types/database/Model.d.ts +29 -43
  18. package/types/database/index.d.ts +0 -1
  19. package/types/database/loadModels.d.ts +7 -13
  20. package/types/helpers/array.d.ts +21 -0
  21. package/types/helpers/comparison.d.ts +217 -0
  22. package/types/helpers/date.d.ts +20 -0
  23. package/types/helpers/html.d.ts +35 -0
  24. package/types/{handlebars_helpers → helpers}/index.d.ts +0 -2
  25. package/types/helpers/layouts.d.ts +29 -0
  26. package/types/helpers/math.d.ts +85 -0
  27. package/types/helpers/number.d.ts +19 -0
  28. package/types/helpers/object.d.ts +28 -0
  29. package/types/helpers/string.d.ts +45 -0
  30. package/types/index.d.ts +7 -52
  31. package/types/middleware/auth.d.ts +186 -0
  32. package/types/middleware/cors.d.ts +19 -0
  33. package/types/middleware/env.d.ts +24 -0
  34. package/types/middleware/error.d.ts +26 -0
  35. package/types/middleware/globals.d.ts +13 -0
  36. package/types/{middlewares → middleware}/index.d.ts +19 -12
  37. package/types/middleware/locals.d.ts +33 -0
  38. package/types/middleware/parser.d.ts +30 -0
  39. package/types/middleware/router.d.ts +31 -0
  40. package/types/middleware/views.d.ts +37 -0
  41. package/types/mount.d.ts +34 -3
  42. package/types/{interfaces/BasicConfig.d.ts → types/AppConfig.d.ts} +18 -25
  43. package/types/{interfaces → types}/AuthenticationConfig.d.ts +10 -11
  44. package/types/{interfaces → types}/DatabaseConfig.d.ts +1 -1
  45. package/types/{interfaces → types}/LoggingConfig.d.ts +0 -1
  46. package/types/types/UploadConfig.d.ts +72 -0
  47. package/types/{interfaces → types}/ViewConfig.d.ts +1 -2
  48. package/types/{interfaces → types}/index.d.ts +7 -4
  49. package/types/utils/index.d.ts +7 -4
  50. package/types/utils/loadAppConfig.d.ts +17 -0
  51. package/types/utils/loadAuthenticationConfig.d.ts +1 -1
  52. package/types/utils/loadLoggingConfig.d.ts +1 -1
  53. package/types/utils/loadUploadConfig.d.ts +20 -0
  54. package/types/utils/loadViewConfig.d.ts +1 -1
  55. package/configuration_sample/cjs/authentication.js +0 -138
  56. package/configuration_sample/cjs/config.js +0 -91
  57. package/configuration_sample/cjs/database.js +0 -121
  58. package/configuration_sample/cjs/logging.js +0 -41
  59. package/configuration_sample/cjs/view.js +0 -54
  60. package/configuration_sample/esm/authentication.js +0 -136
  61. package/configuration_sample/esm/config.js +0 -91
  62. package/configuration_sample/esm/database.js +0 -121
  63. package/configuration_sample/esm/logging.js +0 -41
  64. package/configuration_sample/esm/view.js +0 -54
  65. package/screencaps/belongs-to-many.png +0 -0
  66. package/screencaps/belongs-to.png +0 -0
  67. package/screencaps/demonstration.webp +0 -0
  68. package/screencaps/has-many.png +0 -0
  69. package/screencaps/has-one.png +0 -0
  70. package/types/handlebars_helpers/array.d.ts +0 -22
  71. package/types/handlebars_helpers/comparison.d.ts +0 -222
  72. package/types/handlebars_helpers/date.d.ts +0 -19
  73. package/types/handlebars_helpers/html.d.ts +0 -31
  74. package/types/handlebars_helpers/layouts.d.ts +0 -25
  75. package/types/handlebars_helpers/math.d.ts +0 -74
  76. package/types/handlebars_helpers/number.d.ts +0 -18
  77. package/types/handlebars_helpers/object.d.ts +0 -21
  78. package/types/handlebars_helpers/string.d.ts +0 -45
  79. package/types/middlewares/Authentication.d.ts +0 -52
  80. package/types/middlewares/CORS.d.ts +0 -30
  81. package/types/middlewares/Environment.d.ts +0 -36
  82. package/types/middlewares/ErrorHandler.d.ts +0 -34
  83. package/types/middlewares/Global.d.ts +0 -27
  84. package/types/middlewares/Http.d.ts +0 -29
  85. package/types/middlewares/Local.d.ts +0 -42
  86. package/types/middlewares/View.d.ts +0 -49
  87. package/types/routing/Router.d.ts +0 -56
  88. package/types/routing/index.d.ts +0 -37
  89. package/types/services/Authentication.d.ts +0 -95
  90. package/types/services/index.d.ts +0 -33
  91. package/types/types/global.d.ts +0 -38
  92. package/types/utils/Types.d.ts +0 -23
  93. package/types/utils/loadBasicConfig.d.ts +0 -17
package/CHANGELOG.md CHANGED
@@ -1,725 +1,531 @@
1
1
  # Changelog
2
2
 
3
- All notable changes to this project will be documented in this file.
3
+ Every release that matters, documented here.
4
4
 
5
- ## [3.0.2] - 2025-11-28
5
+ ## [5.0.0] - 2026-03-13
6
6
 
7
- ### Changed
7
+ The biggest release yet. Cleaner API surface, proper documentation, and a leaner dependency tree.
8
8
 
9
- **CORS Middleware Enhancements**
10
- - Added `Authorization` header support for Bearer token and API key authentication
11
- - Added cache control headers (`Cache-Control`, `If-None-Match`, `If-Modified-Since`) for conditional requests
12
- - Added `Range` header support for partial content and resumable downloads
13
- - Added `X-CSRF-Token` header support for CSRF protection
14
- - Added explicit handling for OPTIONS preflight requests
15
-
16
- **Demo Improvements**
17
- - Reorganized demo structure into separate `web-app` and `rest-api` directories
18
- - Added new REST API demo showcasing CORS functionality with simple CRUD endpoints
19
- - Improved web-app demo documentation and Docker configuration
20
- - Updated Docker configuration to use `utf8mb4` character set
21
- - Optimized Dockerfile with layer reduction and `npm ci` for reproducibility
22
- - Added SQL comments and ON DELETE CASCADE to foreign keys in schema
9
+ ### Breaking Changes
23
10
 
24
- ## [3.0.1] - 2025-09-02
11
+ - **Flatter imports** — No more digging into nested namespaces.
12
+
13
+ | Before (v4) | After (v5) |
14
+ |-------------|------------|
15
+ | `expx.services.Authentication` | `expx.Authentication` |
16
+ | `expx.middlewares.*` | `expx.middleware.*` |
17
+ | `expx.interfaces.*` | `expx.types.*` |
18
+ | `expx.handlebars_helpers.*` | `expx.helpers.*` |
19
+
20
+ - **Shorter middleware names** — Internal middleware functions renamed for consistency: `corsPolicy` → `cors`, `envLoader` → `env`, `globalVariables` → `globals`, `httpParser` → `parser`, `localVariables` → `locals`, `viewEngine` → `views`, `urlRouter` → `router`, `authentication` → `auth`. Only matters if you import middleware directly; `mount()` users are unaffected.
21
+
22
+ - **`mariadb` no longer bundled** — Install your own dialect driver (`npm install mariadb`, `mysql2`, `pg`, etc.).
25
23
 
26
24
  ### Changed
27
25
 
28
- - Added pool configuration examples and JSDoc documentation to sample database configuration.
29
- - [ESM Configuration](configuration_sample/esm/database.js)
30
- - [CJS Configuration](configuration_sample/cjs/database.js)
26
+ - **Dependencies updated** — connect-redis v9, glob v13, dotenv v17, multer v2. No config changes needed on your end.
31
27
 
32
- ## [3.0.0] - 2025-08-26
28
+ ### Added
29
+
30
+ - **Full documentation suite** — Hand-written reference docs covering every config option, every helper, every API method. See [docs/](docs/).
31
+ - **Migration guide** — Step-by-step upgrade path from v4. See [docs/migration-v5.md](docs/migration-v5.md).
32
+ - **Config examples** — Ready-to-use ESM and CJS config templates in [examples/](examples/). Copy, fill in your values, done.
33
+ - **Demo app** — Full-featured sample app with auth, CRUD, file uploads, and error pages. Both ESM and CommonJS versions included. See [demo/](demo/).
33
34
 
34
- This release introduces significant improvements to database layer architecture and adds configurable logging support.
35
+ ## [4.0.0] - 2025-12-19
36
+
37
+ Express 5 lands. File uploads get first-class support. Middleware goes functional.
35
38
 
36
39
  ### Breaking Changes
37
40
 
38
- **Database Layer Refactoring**
39
- - `Database` class removed → Use `DatabaseManager` singleton pattern
40
- - All models now share a single database connection for improved performance
41
- - Enhanced database management with connection testing and graceful shutdown
41
+ - **Express 5** — Requires Node.js 18+. Route regex syntax changed: `/:param(\\d+)` is out, named capture groups are in.
42
+
43
+ ```js
44
+ // Express 4
45
+ router.get('/:userId(\\d+)', handler);
46
+
47
+ // Express 5
48
+ router.get(/^\/(?<userId>\d+)$/, handler);
49
+ ```
50
+
51
+ See the [Express 5 migration guide](https://expressjs.com/en/guide/migrating-5.html) for full details.
52
+
53
+ - **Function-based middleware** — All middleware refactored from classes to plain functions. Internal change only; `mount()` handles everything automatically.
42
54
 
43
55
  ### Added
44
56
 
45
- #### Database Management
46
- - **`DatabaseManager.getInstance()`** - Get singleton Sequelize database instance
47
- - **`DatabaseManager.isConnected()`** - Test database connectivity
48
- - **`DatabaseManager.getConfig()`** - Access original database configuration
49
- - **`DatabaseManager.getSequelizeOptions()`** - Access runtime Sequelize options
50
- - **`DatabaseManager.close()`** - Graceful database connection shutdown
57
+ - **File uploads** — Multer integration with per-route middleware resolution. Configure once in `config/upload.js`, and uploads just work. Single files, arrays, multiple fields, memory or disk storage.
51
58
 
52
- #### Logging Configuration
53
- - **`config/logging.js`** - Morgan logging configuration support
59
+ ### Fixed
54
60
 
55
- Create `config/logging.js` to customize HTTP request logging:
56
- ```js
57
- // config/logging.js
58
- export default {
59
- format: 'combined', // Options: 'combined', 'common', 'dev', 'short', 'tiny'
60
- skip: (req, res) => {
61
- // Skip logging for health check endpoints
62
- return req.path === '/health';
63
- }
64
- };
65
- ```
66
-
67
- **Default behavior**: Uses 'combined' format with no skip conditions if config file is not provided.
61
+ - **Invalid Host header** — No more `ERR_INVALID_URL` crashes. `baseUrl` gracefully falls back to `undefined` when URL construction fails.
62
+
63
+ ## [3.0.2] - 2025-11-28
64
+
65
+ ### Changed
66
+
67
+ - **CORS expanded** — Added support for `Authorization`, `Cache-Control`, `If-None-Match`, `If-Modified-Since`, `Range`, and `X-CSRF-Token` headers. OPTIONS preflight handled automatically.
68
+
69
+ ## [3.0.1] - 2025-09-02
68
70
 
69
71
  ### Changed
70
72
 
71
- - Updated `sequelize` dependency from v6.37.1 to v6.37.7
73
+ - Added pool configuration examples to sample database configs.
72
74
 
73
- ### Migration Guide
75
+ ## [3.0.0] - 2025-08-26
74
76
 
75
- **Database Usage Migration:**
76
- ```js
77
- // v2.x - Old way
78
- import * as expx from 'express-sweet';
77
+ Database layer rebuilt from the ground up. One connection pool, shared across all models.
79
78
 
80
- const config = await expx.utils.loadDatabaseConfig();
81
- const db = new expx.database.Database(config.database, config.username, config.password, config);
79
+ ### Breaking Changes
82
80
 
83
- // v3.x - New way
84
- import * as expx from 'express-sweet';
81
+ - **`Database` class removed** — Replaced by `DatabaseManager` singleton. All models share a single connection for better performance.
85
82
 
86
- const db = await expx.database.DatabaseManager.getInstance();
87
- ```
83
+ ```js
84
+ // Before
85
+ const config = await expx.utils.loadDatabaseConfig();
86
+ const db = new expx.database.Database(config.database, config.username, config.password, config);
87
+
88
+ // After
89
+ const db = await expx.database.DatabaseManager.getInstance();
90
+ ```
91
+
92
+ ### Added
93
+
94
+ - **DatabaseManager** — Full lifecycle control: `getInstance()`, `isConnected()`, `getConfig()`, `getSequelizeOptions()`, `close()`.
95
+ - **HTTP logging** — Morgan support via `config/logging.js`. Pick your format (`combined`, `dev`, `tiny`, etc.) and optionally skip routes like `/health`.
96
+
97
+ ### Changed
98
+
99
+ - Updated Sequelize to v6.37.7.
88
100
 
89
101
  ## [2.0.9] - 2025-08-12
90
102
 
91
103
  ### Added
92
104
 
93
- - Added `getConfig()` method to Database class to retrieve the current database configuration object containing all sequelize options.
105
+ - `Database.getConfig()` — Retrieve the current database configuration at runtime.
94
106
 
95
107
  ### Changed
96
108
 
97
- - Updated `multer` dependency from v1.4.5-lts.1 to v2.0.2 for improved file upload handling and security enhancements.
109
+ - Updated Multer to v2.0.2.
98
110
 
99
111
  ## [2.0.8] - 2025-07-29
100
112
 
101
113
  ### Changed
102
114
 
103
- - Updated the usage example of the `isConnect` method in the `Database` class in the README reference.
115
+ - Documentation improvements for `Database.isConnect()`.
104
116
 
105
117
  ## [2.0.7] - 2025-07-22
106
118
 
107
119
  ### Changed
108
120
 
109
- - Updated dependencies to address vulnerabilities
110
- - `express`: 4.19.2 => 4.21.2
111
- - `express-session`: 1.18.0 => 1.18.2
112
- - `body-parser`: 1.19.0 => 2.2.0
113
- - `cookie-parser`: 1.4.4 => 1.4.7
114
- - `morgan`: 1.10.0 => 1.10.1
115
- - `rollup`: 4.21.2 => 4.45.1
121
+ - Security updates across core dependencies: Express 4.21.2, express-session 1.18.2, body-parser 2.2.0, cookie-parser 1.4.7, morgan 1.10.1.
116
122
 
117
123
  ## [2.0.6] - 2025-02-09
118
124
 
119
125
  ### Fixed
120
126
 
121
- - Fixed a bug that caused redirection to fail when a path with query parameters was set for the logout redirect URL (`failure_redirect` in `config/authentication.js`).
127
+ - Logout redirect now works correctly when the redirect URL contains query parameters.
122
128
 
123
129
  ## [2.0.5] - 2025-02-04
124
130
 
125
131
  ### Added
126
132
 
127
- - Added a Handlebars helper, available for use in views, to replace HTML tags in a string.
128
-
129
- Example:
130
-
131
- ```html
132
- {{!-- results in: lorem ipsum dolor sit amet --}}
133
- {{{stripTags '<a href="https://example.com">lorem ipsum <strong>dolor</strong> <em>sit</em> amet</a>'}}}
134
-
135
- {{!-- results in: lorem ipsum <strong>dolor</strong> sit amet --}}
136
- {{{stripTags '<a href="https://example.com">lorem ipsum <strong>dolor</strong> <em>sit</em> amet</a>' '<strong>' ''}}}
137
-
138
- {{!-- results in: 🍩lorem ipsum 🍩dolor🍩 🍩sit🍩 amet🍩 --}}
139
- {{{stripTags '<a href="https://example.com">lorem ipsum <strong>dolor</strong> <em>sit</em> amet</a>' [] '🍩'}}}
140
- ```
133
+ - **`stripTags` helper** — Strip or selectively keep HTML tags in templates. Supports allowlists and custom replacement characters.
141
134
 
142
135
  ## [2.0.4] - 2025-01-14
143
136
 
144
- ### Changed
145
-
146
- - Refactored variable names.
147
- - Fixed Docker demo.
148
- - Changed the directory name for storing custom error classes in the demo from `exceptions` to `errors`.
149
- - Added a section to the README.md API reference about considerations when using the `hasMany` association with the `findAll` method.
150
-
151
137
  ### Added
152
138
 
153
- - **`findObjectInArray` Handlebars helper:** This helper is added to the view, allowing you to find an object in an array based on a specified field name and value.
139
+ - **`findObjectInArray` helper** — Look up objects in an array by field value, right from your templates.
154
140
 
155
- Example:
141
+ ## [2.0.3] - 2024-09-03
156
142
 
157
- ```html
158
- {{!--
159
- items is an array of objects: [{id: 123, name: 'Item A'}, {id: 456, name: 'Item B'}]
160
- This code will output: "Item A"
161
- --}}
162
- {{#each items}}
163
- {{#if (eq id 123)}}
164
- {{lookup (findObjectInArray ../items 'id' id) 'name'}}
165
- {{/if}}
166
- {{/each}}
167
- ```
143
+ ### Breaking Changes
168
144
 
169
- ## [2.0.3] - 2024-09-03
145
+ - **Template engine switched** — Moved from `express-hbs` to `express-handlebars`. `block` and `contentFor` helpers preserved for backward compatibility.
146
+ - **Database class instantiation** — `Database` is now a class you instantiate, not a static singleton.
147
+ - **Async everywhere** — All middleware, config loaders, and services now return Promises.
170
148
 
171
149
  ### Changed
172
150
 
173
- - Added `"type": "module"` to the `package.json` of the ESM app generated by `express-sweet-generator`. It is now fully ESM compliant.
174
- - `require` was changed to dynamic import.
175
- - Template engine changed from `express-hbs` to `express-handlebars`.
176
- However, the `block` and `contentFor` helpers are still available.
177
- - `database/Database` has been changed from a `sequelize.Sequelize` instance to a `sequelize.Sequelize` class. If you use it in the future, you need to instantiate it.
178
- - Return type of `mount()` changed from `void` to `Promise<void>`.
179
- - Return type of `middlewares/CORS.mount()` changed from `void` to `Promise<void>`.
180
- - Return type of `middlewares/Environment.mount()` changed from `void` to `Promise<void>`.
181
- - Return type of `middlewares/ErrorHandler.mount()` changed from `void` to `Promise<void>`.
182
- - Return type of `middlewares/Http.mount()` changed from `void` to `Promise<void>`.
183
- - Return type of `middlewares/Local.mount()` changed from `void` to `Promise<void>`.
184
- - Return type of `middlewares/Router.mount()` changed from `void` to `Promise<void>`.
185
- - Return type of `middlewares/View.mount()` changed from `void` to `Promise<void>`.
186
- - Return type of `middlewares/View.mountBeforeRender()` changed from `void` to `Promise<void>`.
187
- - Return type of `middlewares/Authentication.mount()` changed from `void` to `Promise<void>`.
188
- - Return type of `utils/loadAuthenticationConfig()` changed from `AuthenticationConfig` to `Promise<AuthenticationConfig>`.
189
- - Return type of `utils/loadBasicConfig()` changed from `BasicConfig` to `Promise<BasicConfig>`.
190
- - Return type of `utils/loadDatabaseConfig()` changed from `sequelize.Options` to `Promise<sequelize.Options>`.
191
- - Return type of `utils/loadViewConfig()` changed from `ViewConfig` to `Promise<ViewConfig>`.
192
- - Return type of `services/Authentication.successRedirect()` changed from `void` to `Promise<void>`.
193
- - Return type of `services/Authentication.failureRedirect()` changed from `void` to `Promise<void>`.
194
- - Return type of `database/Model.initialize()` changed from `typeof Model` to `Promise<typeof Model>`.
195
- - Return type of `database/loadModels()` changed from `void` to `Promise<void>`.
196
- - DB connection check method has been changed.
197
- - After:
198
- ```js
199
- const expx = require('express-sweet');
200
-
201
- // Create Database instance.
202
- const config = await expx.utils.loadDatabaseConfig();
203
- const database = new expx.database.Database(config.database, config.username, config.password, config);
204
-
205
- // Check database connection.
206
- await database.isConnect();
207
- ```
208
- - Before:
209
- ```js
210
- const expx = require('express-sweet');
211
-
212
- // Check database connection.
213
- await expx.database.Database.isConnect();
214
- ```
215
- - Updated passport from 0.4.1 to 0.7.0
216
-
151
+ - Full ESM compliance. Dynamic imports replace `require()`.
152
+ - Updated Passport.js to v0.7.0.
153
+
217
154
  ## [2.0.2] - 2024-09-01
218
155
 
219
156
  ### Changed
220
157
 
221
- - Updated express from 4.18.3 to 4.19.2.
222
- - Updated rollup from 2.79.1 to 4.21.2.
223
- - Renamed build files (build.common.js => build.cjs, build.esm.js => build.mjs).
224
- - The express package was excluded from the build file. Instead, users should install express on their own.
158
+ - Updated Express to 4.19.2, Rollup to v4.
159
+ - Build output renamed: `build.common.js` → `build.cjs`, `build.esm.js` → `build.mjs`.
160
+ - Express is now a peer dependency — install it yourself for version flexibility.
225
161
 
226
162
  ## [2.0.1] - 2024-04-05
227
163
 
228
164
  ### Changed
229
165
 
230
- - Removed [nodejs-shared](https://www.npmjs.com/package/nodejs-shared) package dependency.
166
+ - Removed `nodejs-shared` dependency.
231
167
 
232
168
  ## [2.0.0] - 2024-03-24
233
169
 
234
- ### Changed
170
+ ### Breaking Changes
235
171
 
236
- - EXPRESS SWEET version 2 no longer depends on the AWS SDK.
237
- The `services.AWSRekognitionClient` and `services.AWSSesClient` have been migrated to the [AWS SDK Extension](https://www.npmjs.com/package/aws-sdk-extension) NPM package, so please install from there if needed.
172
+ - **AWS SDK removed** — `AWSRekognitionClient` and `AWSSesClient` moved to the [aws-sdk-extension](https://www.npmjs.com/package/aws-sdk-extension) package.
238
173
 
239
174
  ## [1.1.1] - 2024-03-23
240
175
 
241
176
  ### Changed
242
177
 
243
- - When cookie security is enabled (`config/authentication.js#cookie_secure`) and the application is running on the HTTP protocol, the following warning message is output upon user authentication.
244
- ```bash
245
- Warning: Cookie security must be disabled for user authentication to work over the HTTP protocol (config/authentication.js#cookie_secure)
246
- ```
178
+ - Added a warning when secure cookies are used over HTTP — catches a common misconfiguration before it bites you.
247
179
 
248
180
  ## [1.1.0] - 2024-03-06
249
181
 
250
182
  ### Changed
251
183
 
252
- - Updated EXPRESS SWEET's dependency packages.
253
- - [express](https://www.npmjs.com/package/express) from v4.18.2 to v4.18.3
254
- - [multer](https://www.npmjs.com/package/multer) from v1.4.4 to v1.4.5-lts.1
255
- - [express-session](https://www.npmjs.com/package/express-session) from v1.17.3 to v1.18.0
256
- - [sequelize](https://www.npmjs.com/package/sequelize) from v6.32.0 to v6.37.1
257
- - [mariadb](https://www.npmjs.com/package/mariadb) from v2.4.0 to v3.2.3
258
- - [moment](https://www.npmjs.com/package/moment) from v2.29.4 to v2.30.1
184
+ - Dependency updates: Express 4.18.3, Multer 1.4.5-lts.1, express-session 1.18.0, Sequelize 6.37.1, mariadb 3.2.3, Moment.js 2.30.1.
259
185
 
260
186
  ## [1.0.44] - 2023-12-30
261
187
 
262
- ### Changed
188
+ ### Added
263
189
 
264
- - The `Secure` and `HttpOnly` attributes of the session cookie can now be set from the authentication configuration file (`config/authentication.js`).
190
+ - Session cookie `Secure` and `HttpOnly` flags are now configurable via `config/authentication.js`.
265
191
 
266
192
  ## [1.0.43] - 2023-12-30
267
193
 
268
- ### Changed
194
+ ### Added
269
195
 
270
- - The cookie name for storing session IDs can now be set in the `cookie_name` field of the authentication configuration file (`config/authentication.js`).
196
+ - Session cookie name is now configurable.
271
197
 
272
198
  ## [1.0.42] - 2023-08-31
273
199
 
274
200
  ### Changed
275
201
 
276
- - Updated TypeScript version from 4.8.4 to 5.2.2.
277
- - Updated redis dependency packages used for user authentication.
278
- - Updated redis package version from 4.3.1 to 4.6.8.
279
- [Here](https://github.com/redis/node-redis/blob/master/CHANGELOG.md) are the changes.
280
- - Updated connect-redis package version from 6.1.3 to 7.1.0.
281
- [Here](https://github.com/tj/connect-redis/releases) are the changes.
282
-
202
+ - TypeScript 5.2.2. Updated Redis (v4.6.8) and connect-redis (v7.1.0).
283
203
 
284
204
  ## [1.0.41] - 2023-08-04
285
205
 
286
206
  ### Changed
287
207
 
288
- - Added an option to the method that searches for faces in the collection to throw an exception if a face is not found or if multiple faces are found.
208
+ - Face search now supports an option to throw on missing or multiple face matches.
289
209
 
290
210
  ## [1.0.40] - 2023-08-04
291
211
 
292
- ### Changed
212
+ ### Fixed
293
213
 
294
- - Fixed to return null instead of throwing an error when looking for faces in the collection using images without faces (<code>AWSRekognitionClient.searchFaces()</code>).
214
+ - Face search returns `null` instead of throwing when no face is found in the image.
295
215
 
296
216
  ## [1.0.39] - 2023-07-24
297
217
 
298
218
  ### Changed
299
219
 
300
- - Changed exception class name.
301
- <table>
302
- <thead>
303
- <tr>
304
- <th>Before Class Name</th>
305
- <th>After class name</th>
306
- <th>Instance member</th>
307
- <th>Description</th>
308
- </tr>
309
- </thead>
310
- <tbody>
311
- <tr>
312
- <td>CollectionCreationError</td>
313
- <td>FaceCollectionCreateFailed</td>
314
- <td>
315
- <ul>
316
- <li>name: Error Name.</li>
317
- <li>collectionId: Collection ID.</li>
318
- <li>httpStatusCode: HTTP status code.</li>
319
- </ul>
320
- </td>
321
- <td>Thrown when face collection creation (<code>AWSRekognitionClient.createCollection()</code>) fails.</td>
322
- </tr>
323
- <tr>
324
- <td>CollectionDeletionError</td>
325
- <td>FaceCollectionDeleteFailed</td>
326
- <td>
327
- <ul>
328
- <li>name: Error Name.</li>
329
- <li>collectionId: Collection ID.</li>
330
- <li>httpStatusCode: HTTP status code.</li>
331
- </ul>
332
- </td>
333
- <td>Thrown when deleting a face collection (<code>AWSRekognitionClient.deleteCollection()</code>) fails.</td>
334
- </tr>
335
- <tr>
336
- <td>FaceIndexError</td>
337
- <td>FaceIndexFailed</td>
338
- <td>
339
- <ul>
340
- <li>name: Error Name.</li>
341
- <li>collectionId: Collection ID.</li>
342
- </ul>
343
- </td>
344
- <td>Thrown when face indexing (<code>AWSRekognitionClient.indexFace()</code>) fails.</td>
345
- </tr>
346
- <tr>
347
- <td>MissingFaceInImageError</td>
348
- <td>FaceMissingInPhoto</td>
349
- <td>
350
- <ul>
351
- <li>name: Error Name.</li>
352
- </ul>
353
- </td>
354
- <td>Thrown if the face to index (<code>AWSRekognitionClient.indexFace()</code>) is not in the photo.</td>
355
- </tr>
356
- <tr>
357
- <td>MultipleFacesInImageError</td>
358
- <td>FacesMultipleInPhoto</td>
359
- <td>
360
- <ul>
361
- <li>name: Error Name.</li>
362
- </ul>
363
- </td>
364
- <td>Thrown when there are multiple faces to index (<code>AWSRekognitionClient.indexFace()</code>) in a photo.</td>
365
- </tr>
366
- </tbody>
367
- </table>
220
+ - AWS Rekognition error classes renamed for clarity: consistent `Face` prefix with `Failed`/`Missing`/`Multiple` suffixes.
368
221
 
369
222
  ## [1.0.38] - 2023-07-17
370
223
 
371
224
  ### Fixed
372
225
 
373
- - Fixed a bug that login user data (req.user) could not be referenced in the function called just before view rendering (config/view.js#beforeRender).
226
+ - Login user data is now accessible in the `beforeRender` view hook.
374
227
 
375
228
  ## [1.0.37] - 2023-07-17
376
229
 
377
- ### Changed
378
-
379
- - The beforeRender option in the view configuration (config/view.js) can now specify asynchronous functions.
380
-
381
230
  ### Added
382
231
 
383
- - New Math-related view helpers have been added.
232
+ - `beforeRender` hook now supports async functions.
233
+ - **Math helpers** — `add`, `sub`, `multiply`, `divide`, `ceil`, `floor`, `abs` available in templates.
384
234
 
385
235
  ## [1.0.36] - 2023-07-12
386
236
 
387
237
  ### Changed
388
238
 
389
- - Moved the Ajax determination option (is_ajax) in the authentication configuration (config/authentication.js) to the basic configuration (config/config.js).
390
- - The error handle option (error_handler) in the basic configuration (config/config.js) has been removed and an option to hook error handles (hook_handle_error) added instead.
239
+ - `is_ajax` option moved from `config/authentication.js` to `config/config.js`.
240
+ - Error handling replaced with hookable `hook_handle_error` for full control over error responses.
391
241
 
392
242
  ## [1.0.35] - 2023-07-11
393
243
 
394
244
  ### Changed
395
245
 
396
- - The URL to redirect to when login fails (failure_redirect) option in the authentication configuration (config/authentication.js) can now be defined with a function.
397
- - The arguments of the failureRedirect method of the authentication service class (services/Authentication) have changed. The argument to the Authentication.failureRedirect method used to be just express.Response, but now it requires express.Request and express.Response.
246
+ - `failure_redirect` now accepts a function for dynamic redirect URLs.
247
+ - `Authentication.failureRedirect()` takes both `req` and `res` (was `res` only).
398
248
 
399
249
  ## [1.0.34] - 2023-07-01
400
250
 
401
- ### Changed
251
+ ### Fixed
402
252
 
403
- - Changed the response status code from 403 to 401 when asynchronous communication requiring authentication fails to authenticate.
253
+ - Unauthenticated AJAX requests now return 401 (was 403).
404
254
 
405
255
  ## [1.0.33] - 2023-07-01
406
256
 
407
257
  ### Added
408
258
 
409
- - Added regular expression comparison view helper.
259
+ - **`regexMatch` helper** — Regex pattern matching in templates.
410
260
 
411
261
  ## [1.0.32] - 2023-07-01
412
262
 
413
263
  ### Fixed
414
264
 
415
- - Fixed a bug that cookies (req.cookies) cannot be referenced in the hook function before view rendering (config/view.js#beforeRender).
265
+ - Cookies are now accessible in `beforeRender` hook.
416
266
 
417
267
  ## [1.0.31] - 2023-06-29
418
268
 
419
- ### Changed
269
+ ### Breaking Changes
420
270
 
421
- - Changed helper function names in the view (Handlebars) from SnakeCase to CamelCase.
422
- |After|Before|Description|
423
- |--|--|--|
424
- |notEmpty|not_empty|Check that it is not empty.|
425
- |formatDate|format_date|Use moment to format the date.|
426
- |cacheBusting|cache_busting|Returns the Assets path containing the file update time parameter.|
427
- |jsonStringify|json_stringify|Stringify an object using JSON.stringify.|
428
- |jsonParse|json_parse|Parses the given string using JSON.parse.|
429
- |formatBytes|format_bytes|Convert bytes to just the right units(KB, MB, GB, TB, PB, EB, ZB, YB).|
271
+ - **Helper names switched to camelCase** — `not_empty` → `notEmpty`, `format_date` → `formatDate`, `cache_busting` → `cacheBusting`, `json_stringify` → `jsonStringify`, `json_parse` → `jsonParse`, `format_bytes` → `formatBytes`.
430
272
 
431
273
  ### Added
432
274
 
433
- - Added view helper to convert numeric values to strings with language-sensitive representations.
275
+ - **`number2locale` helper** — Locale-aware number formatting in templates.
434
276
 
435
277
  ## [1.0.30] - 2023-06-26
436
278
 
437
- ### Changed
279
+ ### Fixed
438
280
 
439
- - Fixed AWS Rekognition credentials passing.
281
+ - AWS Rekognition credentials passing corrected.
440
282
 
441
283
  ## [1.0.29] - 2023-06-20
442
284
 
443
- ### Changed
444
-
445
- - Changed class private variables and methods from soft private to hard private.
446
-
447
285
  ### Added
448
286
 
449
- - Added AWS SES email sending client class.
287
+ - **AWS SES client** — Send emails via Amazon SES.
288
+
289
+ ### Changed
290
+
291
+ - Class internals switched from soft private (`_var`) to hard private (`#var`).
450
292
 
451
293
  ## [1.0.28] - 2023-06-16
452
294
 
453
295
  ### Changed
454
296
 
455
- - Updated AWS SDK version from 2 to 3.
297
+ - AWS SDK upgraded from v2 to v3.
456
298
 
457
299
  ## [1.0.27] - 2023-06-12
458
300
 
459
301
  ### Changed
460
302
 
461
- - Request object has been added to the arguments of the beforeRender function in the view configuration (config/view.js).
303
+ - `beforeRender` hook now receives the request object for accessing request data during rendering.
462
304
 
463
305
  ## [1.0.26] - 2023-06-11
464
306
 
465
307
  ### Changed
466
308
 
467
- - Updated Sequelize from v5 to v6.
468
- - Changed the framework debug log to output only when the environment variable EXPRESS_DEBUG is defined.
469
- .env:
470
- ```
471
- EXPRESS_DEBUG=true
472
- ```
309
+ - Sequelize upgraded from v5 to v6.
310
+ - Debug logging now requires `SWEET_DEBUG=true` in your `.env` file.
473
311
 
474
312
  ## [1.0.25] - 2022-11-24
475
313
 
476
314
  ### Added
477
315
 
478
- - Added formatBytes view helper to convert bytes to appropriate units.
316
+ - **`formatBytes` helper** — Human-readable byte sizes in templates (`1024` → `1KB`).
479
317
 
480
318
  ## [1.0.24] - 2022-10-24
481
319
 
482
320
  ### Added
483
321
 
484
- - Added is_ajax option to user authentication (config/authentication.js).
322
+ - AJAX request detection option in authentication config for custom XHR/fetch handling.
485
323
 
486
324
  ## [1.0.23] - 2022-10-20
487
325
 
488
326
  ### Added
489
327
 
490
- - A request body object has been added to the parameters of the callback function for user authentication.
328
+ - `authenticate_user` callback now receives the full request object as its third parameter.
491
329
 
492
330
  ## [1.0.22] - 2022-07-27
493
331
 
494
332
  ### Added
495
333
 
496
- - You can now set hook functions that are called before the view is rendered. Hook functions can be used, for example, to set local variables that can be used in the view.
334
+ - **`beforeRender` hook** — Set local variables available in every view, right before rendering.
497
335
 
498
336
  ## [1.0.21] - 2022-05-26
499
337
 
500
338
  ### Added
501
339
 
502
- - Added an option to the face indexing method to retrieve details (gender, emotion, age group) of indexed faces.
340
+ - Face indexing can now return details: gender, emotion, age group.
503
341
 
504
342
  ## [1.0.20] - 2022-05-25
505
343
 
506
344
  ### Added
507
345
 
508
- - Added an option to get details (emotion, gender, age group) to the face detection method.
346
+ - Face detection can now return details: emotion, gender, age group.
509
347
 
510
348
  ## [1.0.19] - 2022-05-20
511
349
 
512
350
  ### Added
513
351
 
514
- - Add date format helper to view.
352
+ - **`formatDate` helper** — Moment.js date formatting in templates.
515
353
 
516
354
  ## [1.0.18] - 2022-05-18
517
355
 
518
356
  ### Added
519
357
 
520
- - User authentication sessions can now be stored in redis. To use redis for session storage, simply add the following option to config/authentication.js. Please give it a try.
521
- config/authentication.js:
522
- ```json
523
- session_store: 'redis',
524
- redis_host: 'redis://localhost:6379'
525
- ```
358
+ - **Redis session store** — Store authentication sessions in Redis instead of memory. Just set `session_store: 'redis'` in your auth config.
526
359
 
527
360
  ## [1.0.17] - 2022-05-17
528
361
 
529
362
  ### Changed
530
363
 
531
- - Updated documentation and refactored variable names.
364
+ - Documentation and variable naming improvements.
532
365
 
533
366
  ## [1.0.16] - 2022-02-14
534
367
 
535
368
  ### Fixed
536
369
 
537
- - I forgot to include the build file, so I added the build file.
370
+ - Missing build files added to the published package.
538
371
 
539
372
  ## [1.0.15] - 2022-02-14
540
373
 
541
374
  ### Changed
542
375
 
543
- - Changed the type of 'config/authentication.js#allow_unauthenticated' from'string[]' to'(string|RegExp)[]}'.
376
+ - `allow_unauthenticated` now accepts RegExp patterns alongside strings.
544
377
 
545
378
  ## [1.0.14] - 2022-01-17
546
379
 
547
380
  ### Changed
548
381
 
549
- - The empty view helper can now check any type. Previously it could only check arrays.
382
+ - `empty` helper now works with any type, not just arrays.
550
383
 
551
384
  ## [1.0.13] - 2021-12-13
552
385
 
553
386
  ### Added
554
387
 
555
- - The model's begin method now accepts the transaction option.
556
- ```js
557
- let transaction;
558
- try {
559
- transaction = await BookModel.begin({
560
- isolationLevel: BookModel.Transaction.ISOLATION_LEVELS.REPEATABLE_READ,
561
- type: BookModel.Transaction.TYPES.DEFERRED,
562
- });
563
- const book = await BookModel.findOne({where: {id: 1}}, {transaction});
564
- book.title = 'When Im Gone';
565
- await book.save({transaction});
566
- await transaction.commit();
567
-
568
- // Load updated data.
569
- await book.reload();
570
- } catch (error) {
571
- if (transaction)
572
- await transaction.rollback();
573
- }
574
- ```
388
+ - `Model.begin()` now accepts transaction options (isolation level, type).
575
389
 
576
390
  ## [1.0.12] - 2021-11-16
577
391
 
578
392
  ### Added
579
393
 
580
- - Added a method to the model that can execute raw SQL. As there are often use cases in which it is just easier to execute raw / already prepared SQL queries, you can use the Model.query method.
581
- ```js
582
- // By default the function will return two arguments - a results array, and an object containing metadata (such as amount of affected rows, etc).
583
- // Note that since this is a raw query, the metadata are dialect specific.
584
- const [results, metadata] = await BookModel.query("UPDATE book SET title = 'When Im Gone' WHERE id = 1");
585
-
586
- // In cases where you don't need to access the metadata you can pass in a query type to tell sequelize how to format the results. For example, for a simple select query you could do:
587
- // We didn't need to destructure the result here - the results were returned directly
588
- const users = await BookModel.query("SELECT * FROM book", {type: BookModel.QueryTypes.SELECT});
589
- ```
394
+ - **`Model.query()` — Raw SQL execution.** Run prepared statements and typed queries directly from your models.
590
395
 
591
396
  ## [1.0.11] - 2021-11-10
592
397
 
593
398
  ### Fixed
594
399
 
595
- - Fixed a bug where the database config was read before NODE_ENV was set, preventing the correct database config from being loaded.
400
+ - Database config now loads after `NODE_ENV` is set, ensuring the correct environment config is used.
596
401
 
597
402
  ## [1.0.10] - 2021-10-19
598
403
 
599
404
  ### Changed
600
405
 
601
- - Added face similarity score to face search results in collection.
406
+ - Face search results now include similarity scores.
602
407
 
603
408
  ## [1.0.9] - 2021-10-13
604
409
 
605
410
  ### Changed
606
411
 
607
- - Updated dependent package 'sharp' from 0.25.4 to 0.29.1.
608
- This update statically links sharp's pre-built libvips binaries, eliminating the need to install Python.
609
- Click [here](https://sharp.pixelplumbing.com/changelog) for sharp change log.
412
+ - Updated `sharp` to v0.29.1 — statically linked libvips, no more Python dependency.
610
413
 
611
414
  ## [1.0.8] - 2021-09-25
612
415
 
613
416
  ### Fixed
614
417
 
615
- - Fixed a bug where the default router couldn't be accessed from the endpoint URL.
418
+ - Default router is now accessible from its own endpoint URL.
616
419
 
617
420
  ## [1.0.7] - 2021-08-13
618
421
 
619
422
  ### Added
620
423
 
621
- - Added where member functions to Model class.
424
+ - `Model.where()` — Create WHERE conditions on function results.
622
425
 
623
426
  ## [1.0.6] - 2021-08-13
624
427
 
625
428
  ### Added
626
429
 
627
- - Added fn, col and literal member functions to Model class.
430
+ - `Model.fn()`, `Model.col()`, `Model.literal()` — SQL functions, column references, and raw literals in queries.
628
431
 
629
432
  ## [1.0.5] - 2021-08-12
630
433
 
631
434
  ### Changed
632
435
 
633
- - Changed the maximum size per field for multipart (multipart/form-data) requests from 1MB to unlimited.
436
+ - Multipart field size limit removed (was 1MB, now unlimited).
634
437
 
635
438
  ## [1.0.4] - 2021-06-13
636
439
 
637
440
  ### Fixed
638
441
 
639
- - Fixed a bug where the referrer URL was set in app.locals.currentPath instead of the current URL.
442
+ - `app.locals.currentPath` now reflects the actual current URL, not the referrer.
640
443
 
641
444
  ## [1.0.3] - 2021-06-13
642
445
 
643
446
  ### Changed
644
447
 
645
- - Changed the current URL path of a local variable. app.locals.currentPath is a USVString containing an initial '/' followed by the path of the URL, not including the query string or fragment.
646
- ```js
647
- // For example, when the current URL is "https://example.com/docs/api?q=value", "/docs/api" is set for "app.locals.currentPath".
648
- console.log(app.locals.currentPath);
649
- ```
448
+ - `app.locals.currentPath` is now a clean pathname without query string or fragment.
650
449
 
651
450
  ## [1.0.2] - 2021-06-10
652
451
 
653
- ### Changed
452
+ ### Fixed
654
453
 
655
- - Updated rollup from version 2.44 to 2.51.
454
+ - Model preloading now works correctly in CommonJS environments.
656
455
 
657
- ### Fixed
456
+ ### Changed
658
457
 
659
- - Fixed a bug where preloading models failed in cjs.
458
+ - Updated Rollup to v2.51.
660
459
 
661
460
  ## [1.0.1] - 2021-06-02
662
461
 
663
462
  ### Fixed
664
463
 
665
- - Fixed a bug that caused an error when reading options defined in ESM's default Export.
666
-
667
- [1.0.1]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.0...v1.0.1
668
- [1.0.2]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.1...v1.0.2
669
- [1.0.3]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.2...v1.0.3
670
- [1.0.4]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.3...v1.0.4
671
- [1.0.5]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.4...v1.0.5
672
- [1.0.6]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.5...v1.0.6
673
- [1.0.7]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.6...v1.0.7
674
- [1.0.8]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.7...v1.0.8
675
- [1.0.9]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.8...v1.0.9
676
- [1.0.10]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.9...v1.0.10
677
- [1.0.11]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.10...v1.0.11
678
- [1.0.12]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.11...v1.0.12
679
- [1.0.13]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.12...v1.0.13
680
- [1.0.14]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.13...v1.0.14
681
- [1.0.15]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.14...v1.0.15
682
- [1.0.16]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.15...v1.0.16
683
- [1.0.17]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.16...v1.0.17
684
- [1.0.18]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.17...v1.0.18
685
- [1.0.19]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.18...v1.0.19
686
- [1.0.20]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.19...v1.0.20
687
- [1.0.21]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.20...v1.0.21
688
- [1.0.22]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.21...v1.0.22
689
- [1.0.23]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.22...v1.0.23
690
- [1.0.24]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.23...v1.0.24
691
- [1.0.25]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.24...v1.0.25
692
- [1.0.26]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.25...v1.0.26
693
- [1.0.27]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.26...v1.0.27
694
- [1.0.28]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.27...v1.0.28
695
- [1.0.29]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.28...v1.0.29
696
- [1.0.30]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.29...v1.0.30
697
- [1.0.31]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.30...v1.0.31
698
- [1.0.32]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.31...v1.0.32
699
- [1.0.33]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.32...v1.0.33
700
- [1.0.34]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.33...v1.0.34
701
- [1.0.35]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.34...v1.0.35
702
- [1.0.36]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.35...v1.0.36
703
- [1.0.37]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.36...v1.0.37
704
- [1.0.38]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.37...v1.0.38
705
- [1.0.39]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.38...v1.0.39
706
- [1.0.40]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.39...v1.0.40
707
- [1.0.41]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.40...v1.0.41
708
- [1.0.42]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.41...v1.0.42
709
- [1.0.43]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.42...v1.0.43
710
- [1.0.44]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.43...v1.0.44
711
- [1.0.45]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.44...v1.0.45
712
- [1.1.0]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.45...v1.1.0
713
- [1.1.1]: https://github.com/takuya-motoshima/express-sweet/compare/v1.1.0...v1.1.1
714
- [2.0.0]: https://github.com/takuya-motoshima/express-sweet/compare/v1.1.1...v2.0.0
715
- [2.0.1]: https://github.com/takuya-motoshima/express-sweet/compare/v2.0.0...v2.0.1
716
- [2.0.2]: https://github.com/takuya-motoshima/express-sweet/compare/v2.0.1...v2.0.2
717
- [2.0.3]: https://github.com/takuya-motoshima/express-sweet/compare/v2.0.2...v2.0.3
718
- [2.0.4]: https://github.com/takuya-motoshima/express-sweet/compare/v2.0.3...v2.0.4
719
- [2.0.5]: https://github.com/takuya-motoshima/express-sweet/compare/v2.0.4...v2.0.5
720
- [2.0.6]: https://github.com/takuya-motoshima/express-sweet/compare/v2.0.5...v2.0.6
721
- [2.0.7]: https://github.com/takuya-motoshima/express-sweet/compare/v2.0.6...v2.0.7
722
- [2.0.8]: https://github.com/takuya-motoshima/express-sweet/compare/v2.0.7...v2.0.8
723
- [2.0.9]: https://github.com/takuya-motoshima/express-sweet/compare/v2.0.8...v2.0.9
724
- [3.0.0]: https://github.com/takuya-motoshima/express-sweet/compare/v2.0.9...v3.0.0
725
- [3.0.1]: https://github.com/takuya-motoshima/express-sweet/compare/v3.0.0...v3.0.1
464
+ - ESM default export options now load correctly.
465
+
466
+ ## [1.0.0] - 2021-05-31
467
+
468
+ Initial release. Express.js extension library with Sequelize ORM, Passport.js authentication, Handlebars views, file-based routing, and AWS Rekognition integration.
469
+
470
+ [1.0.0]: https://github.com/shumatsumonobu/express-sweet/releases/tag/v1.0.0
471
+ [1.0.1]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.0...v1.0.1
472
+ [1.0.2]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.1...v1.0.2
473
+ [1.0.3]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.2...v1.0.3
474
+ [1.0.4]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.3...v1.0.4
475
+ [1.0.5]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.4...v1.0.5
476
+ [1.0.6]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.5...v1.0.6
477
+ [1.0.7]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.6...v1.0.7
478
+ [1.0.8]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.7...v1.0.8
479
+ [1.0.9]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.8...v1.0.9
480
+ [1.0.10]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.9...v1.0.10
481
+ [1.0.11]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.10...v1.0.11
482
+ [1.0.12]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.11...v1.0.12
483
+ [1.0.13]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.12...v1.0.13
484
+ [1.0.14]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.13...v1.0.14
485
+ [1.0.15]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.14...v1.0.15
486
+ [1.0.16]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.15...v1.0.16
487
+ [1.0.17]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.16...v1.0.17
488
+ [1.0.18]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.17...v1.0.18
489
+ [1.0.19]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.18...v1.0.19
490
+ [1.0.20]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.19...v1.0.20
491
+ [1.0.21]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.20...v1.0.21
492
+ [1.0.22]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.21...v1.0.22
493
+ [1.0.23]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.22...v1.0.23
494
+ [1.0.24]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.23...v1.0.24
495
+ [1.0.25]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.24...v1.0.25
496
+ [1.0.26]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.25...v1.0.26
497
+ [1.0.27]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.26...v1.0.27
498
+ [1.0.28]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.27...v1.0.28
499
+ [1.0.29]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.28...v1.0.29
500
+ [1.0.30]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.29...v1.0.30
501
+ [1.0.31]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.30...v1.0.31
502
+ [1.0.32]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.31...v1.0.32
503
+ [1.0.33]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.32...v1.0.33
504
+ [1.0.34]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.33...v1.0.34
505
+ [1.0.35]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.34...v1.0.35
506
+ [1.0.36]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.35...v1.0.36
507
+ [1.0.37]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.36...v1.0.37
508
+ [1.0.38]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.37...v1.0.38
509
+ [1.0.39]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.38...v1.0.39
510
+ [1.0.40]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.39...v1.0.40
511
+ [1.0.41]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.40...v1.0.41
512
+ [1.0.42]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.41...v1.0.42
513
+ [1.0.43]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.42...v1.0.43
514
+ [1.0.44]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.43...v1.0.44
515
+ [1.1.0]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.44...v1.1.0
516
+ [1.1.1]: https://github.com/shumatsumonobu/express-sweet/compare/v1.1.0...v1.1.1
517
+ [2.0.0]: https://github.com/shumatsumonobu/express-sweet/compare/v1.1.1...v2.0.0
518
+ [2.0.1]: https://github.com/shumatsumonobu/express-sweet/compare/v2.0.0...v2.0.1
519
+ [2.0.2]: https://github.com/shumatsumonobu/express-sweet/compare/v2.0.1...v2.0.2
520
+ [2.0.3]: https://github.com/shumatsumonobu/express-sweet/compare/v2.0.2...v2.0.3
521
+ [2.0.4]: https://github.com/shumatsumonobu/express-sweet/compare/v2.0.3...v2.0.4
522
+ [2.0.5]: https://github.com/shumatsumonobu/express-sweet/compare/v2.0.4...v2.0.5
523
+ [2.0.6]: https://github.com/shumatsumonobu/express-sweet/compare/v2.0.5...v2.0.6
524
+ [2.0.7]: https://github.com/shumatsumonobu/express-sweet/compare/v2.0.6...v2.0.7
525
+ [2.0.8]: https://github.com/shumatsumonobu/express-sweet/compare/v2.0.7...v2.0.8
526
+ [2.0.9]: https://github.com/shumatsumonobu/express-sweet/compare/v2.0.8...v2.0.9
527
+ [3.0.0]: https://github.com/shumatsumonobu/express-sweet/compare/v2.0.9...v3.0.0
528
+ [3.0.1]: https://github.com/shumatsumonobu/express-sweet/compare/v3.0.0...v3.0.1
529
+ [3.0.2]: https://github.com/shumatsumonobu/express-sweet/compare/v3.0.1...v3.0.2
530
+ [4.0.0]: https://github.com/shumatsumonobu/express-sweet/compare/v3.0.2...v4.0.0
531
+ [5.0.0]: https://github.com/shumatsumonobu/express-sweet/compare/v4.0.0...v5.0.0