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