express-sweet 4.0.0 → 5.1.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 +221 -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 +40 -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 +2 -3
  42. package/types/{interfaces → types}/AppConfig.d.ts +29 -18
  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,543 @@
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.1.0] - 2026-08-18
6
+
7
+ ### Added
8
+
9
+ - **`hook_after_env_load` config hook** — Run your own code right after environment variables are loaded and before database models are initialized. Useful for decrypting secrets, pulling values from a secret manager, or validating required variables — anything written to `process.env` there is visible to `config/database.js` and every model. Sync or async; throwing aborts `mount()`. The hook runs even when `env_path` is unset, so `.env` is not required. See [docs/configuration.md](docs/configuration.md).
10
+
11
+ ### Changed
12
+
13
+ - **`global.loadedEnv` now means "the environment step finished"** — It used to be set only when an `.env` file was actually parsed, so it stayed `false` forever when `env_path` was unset. It is now set once the environment step completes either way. Only affects apps that read the flag directly; the library itself uses it solely as a re-entry guard.
14
+ - **Dependencies updated** — 82 patch and minor bumps across the tree, Rollup, Terser, express-handlebars, multer, morgan and redis among them. No API changes, nothing removed.
15
+
16
+ ## [5.0.0] - 2026-03-13
17
+
18
+ The biggest release yet. Cleaner API surface, proper documentation, and a leaner dependency tree.
6
19
 
7
20
  ### Breaking Changes
8
21
 
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/)
22
+ - **Flatter imports** — No more digging into nested namespaces.
41
23
 
42
- ### Added
24
+ | Before (v4) | After (v5) |
25
+ |-------------|------------|
26
+ | `expx.services.Authentication` | `expx.Authentication` |
27
+ | `expx.middlewares.*` | `expx.middleware.*` |
28
+ | `expx.interfaces.*` | `expx.types.*` |
29
+ | `expx.handlebars_helpers.*` | `expx.helpers.*` |
30
+
31
+ - **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
32
 
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)
33
+ - **`mariadb` no longer bundled** — Install your own dialect driver (`npm install mariadb`, `mysql2`, `pg`, etc.).
53
34
 
54
35
  ### Changed
55
36
 
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
37
+ - **Dependencies updated** — connect-redis v9, glob v13, dotenv v17, multer v2. No config changes needed on your end.
38
+
39
+ ### Added
40
+
41
+ - **Full documentation suite** — Hand-written reference docs covering every config option, every helper, every API method. See [docs/](docs/).
42
+ - **Migration guide** — Step-by-step upgrade path from v4. See [docs/migration-v5.md](docs/migration-v5.md).
43
+ - **Config examples** — Ready-to-use ESM and CJS config templates in [examples/](examples/). Copy, fill in your values, done.
44
+ - **Demo app** — Full-featured sample app with auth, CRUD, file uploads, and error pages. Both ESM and CommonJS versions included. See [demo/](demo/).
45
+
46
+ ## [4.0.0] - 2025-12-19
47
+
48
+ Express 5 lands. File uploads get first-class support. Middleware goes functional.
49
+
50
+ ### Breaking Changes
51
+
52
+ - **Express 5** — Requires Node.js 18+. Route regex syntax changed: `/:param(\\d+)` is out, named capture groups are in.
53
+
54
+ ```js
55
+ // Express 4
56
+ router.get('/:userId(\\d+)', handler);
57
+
58
+ // Express 5
59
+ router.get(/^\/(?<userId>\d+)$/, handler);
60
+ ```
61
+
62
+ See the [Express 5 migration guide](https://expressjs.com/en/guide/migrating-5.html) for full details.
59
63
 
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
- });
64
+ - **Function-based middleware** — All middleware refactored from classes to plain functions. Internal change only; `mount()` handles everything automatically.
65
+
66
+ ### Added
66
67
 
67
- // After (Express 5)
68
- router.get(/^\/(?<userId>\d+)$/, (req, res) => {
69
- const userId = req.params.userId; // Works with named capture group
70
- });
71
- ```
68
+ - **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
69
 
73
70
  ### Fixed
74
71
 
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
72
+ - **Invalid Host header** — No more `ERR_INVALID_URL` crashes. `baseUrl` gracefully falls back to `undefined` when URL construction fails.
77
73
 
78
74
  ## [3.0.2] - 2025-11-28
79
75
 
80
76
  ### Changed
81
77
 
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
78
+ - **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
79
 
92
80
  ## [3.0.1] - 2025-09-02
93
81
 
94
82
  ### Changed
95
83
 
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)
84
+ - Added pool configuration examples to sample database configs.
99
85
 
100
86
  ## [3.0.0] - 2025-08-26
101
87
 
102
- This release introduces significant improvements to database layer architecture and adds configurable logging support.
88
+ Database layer rebuilt from the ground up. One connection pool, shared across all models.
103
89
 
104
90
  ### Breaking Changes
105
91
 
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
92
+ - **`Database` class removed** — Replaced by `DatabaseManager` singleton. All models share a single connection for better performance.
122
93
 
123
- Create `config/logging.js` to customize HTTP request logging:
124
94
  ```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
95
+ // Before
96
+ const config = await expx.utils.loadDatabaseConfig();
97
+ const db = new expx.database.Database(config.database, config.username, config.password, config);
138
98
 
139
- - Updated `sequelize` dependency from v6.37.1 to v6.37.7
140
-
141
- ### Migration Guide
99
+ // After
100
+ const db = await expx.database.DatabaseManager.getInstance();
101
+ ```
142
102
 
143
- **Database Usage Migration:**
144
- ```js
145
- // v2.x - Old way
146
- import * as expx from 'express-sweet';
103
+ ### Added
147
104
 
148
- const config = await expx.utils.loadDatabaseConfig();
149
- const db = new expx.database.Database(config.database, config.username, config.password, config);
105
+ - **DatabaseManager** — Full lifecycle control: `getInstance()`, `isConnected()`, `getConfig()`, `getSequelizeOptions()`, `close()`.
106
+ - **HTTP logging** — Morgan support via `config/logging.js`. Pick your format (`combined`, `dev`, `tiny`, etc.) and optionally skip routes like `/health`.
150
107
 
151
- // v3.x - New way
152
- import * as expx from 'express-sweet';
108
+ ### Changed
153
109
 
154
- const db = await expx.database.DatabaseManager.getInstance();
155
- ```
110
+ - Updated Sequelize to v6.37.7.
156
111
 
157
112
  ## [2.0.9] - 2025-08-12
158
113
 
159
114
  ### Added
160
115
 
161
- - Added `getConfig()` method to Database class to retrieve the current database configuration object containing all sequelize options.
116
+ - `Database.getConfig()` — Retrieve the current database configuration at runtime.
162
117
 
163
118
  ### Changed
164
119
 
165
- - Updated `multer` dependency from v1.4.5-lts.1 to v2.0.2 for improved file upload handling and security enhancements.
120
+ - Updated Multer to v2.0.2.
166
121
 
167
122
  ## [2.0.8] - 2025-07-29
168
123
 
169
124
  ### Changed
170
125
 
171
- - Updated the usage example of the `isConnect` method in the `Database` class in the README reference.
126
+ - Documentation improvements for `Database.isConnect()`.
172
127
 
173
128
  ## [2.0.7] - 2025-07-22
174
129
 
175
130
  ### Changed
176
131
 
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
132
+ - 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
133
 
185
134
  ## [2.0.6] - 2025-02-09
186
135
 
187
136
  ### Fixed
188
137
 
189
- - Fixed a bug that caused logout redirection to fail when the redirect URL contained query parameters.
138
+ - Logout redirect now works correctly when the redirect URL contains query parameters.
190
139
 
191
140
  ## [2.0.5] - 2025-02-04
192
141
 
193
142
  ### Added
194
143
 
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
- ```
144
+ - **`stripTags` helper** — Strip or selectively keep HTML tags in templates. Supports allowlists and custom replacement characters.
209
145
 
210
146
  ## [2.0.4] - 2025-01-14
211
147
 
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
148
  ### Added
220
149
 
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
- ```
150
+ - **`findObjectInArray` helper** — Look up objects in an array by field value, right from your templates.
236
151
 
237
152
  ## [2.0.3] - 2024-09-03
238
153
 
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
154
  ### Breaking Changes
242
155
 
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.
156
+ - **Template engine switched** — Moved from `express-hbs` to `express-handlebars`. `block` and `contentFor` helpers preserved for backward compatibility.
157
+ - **Database class instantiation** — `Database` is now a class you instantiate, not a static singleton.
158
+ - **Async everywhere** — All middleware, config loaders, and services now return Promises.
271
159
 
272
160
  ### Changed
273
161
 
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
-
162
+ - Full ESM compliance. Dynamic imports replace `require()`.
163
+ - Updated Passport.js to v0.7.0.
164
+
278
165
  ## [2.0.2] - 2024-09-01
279
166
 
280
167
  ### Changed
281
168
 
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.
169
+ - Updated Express to 4.19.2, Rollup to v4.
170
+ - Build output renamed: `build.common.js` → `build.cjs`, `build.esm.js` → `build.mjs`.
171
+ - Express is now a peer dependency — install it yourself for version flexibility.
286
172
 
287
173
  ## [2.0.1] - 2024-04-05
288
174
 
289
175
  ### Changed
290
176
 
291
- - Removed [nodejs-shared](https://www.npmjs.com/package/nodejs-shared) package dependency.
177
+ - Removed `nodejs-shared` dependency.
292
178
 
293
179
  ## [2.0.0] - 2024-03-24
294
180
 
295
181
  ### Breaking Changes
296
182
 
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.
183
+ - **AWS SDK removed** — `AWSRekognitionClient` and `AWSSesClient` moved to the [aws-sdk-extension](https://www.npmjs.com/package/aws-sdk-extension) package.
300
184
 
301
185
  ## [1.1.1] - 2024-03-23
302
186
 
303
187
  ### Changed
304
188
 
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.
189
+ - Added a warning when secure cookies are used over HTTP — catches a common misconfiguration before it bites you.
306
190
 
307
191
  ## [1.1.0] - 2024-03-06
308
192
 
309
193
  ### Changed
310
194
 
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
195
+ - 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
196
 
319
197
  ## [1.0.44] - 2023-12-30
320
198
 
321
- ### Changed
199
+ ### Added
322
200
 
323
- - The `Secure` and `HttpOnly` attributes of session cookies can now be configured through the authentication configuration file.
201
+ - Session cookie `Secure` and `HttpOnly` flags are now configurable via `config/authentication.js`.
324
202
 
325
203
  ## [1.0.43] - 2023-12-30
326
204
 
327
- ### Changed
205
+ ### Added
328
206
 
329
- - Session cookie name is now configurable through the authentication configuration file.
207
+ - Session cookie name is now configurable.
330
208
 
331
209
  ## [1.0.42] - 2023-08-31
332
210
 
333
211
  ### Changed
334
212
 
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
-
213
+ - TypeScript 5.2.2. Updated Redis (v4.6.8) and connect-redis (v7.1.0).
342
214
 
343
215
  ## [1.0.41] - 2023-08-04
344
216
 
345
217
  ### Changed
346
218
 
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.
219
+ - Face search now supports an option to throw on missing or multiple face matches.
348
220
 
349
221
  ## [1.0.40] - 2023-08-04
350
222
 
351
- ### Changed
223
+ ### Fixed
352
224
 
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>).
225
+ - Face search returns `null` instead of throwing when no face is found in the image.
354
226
 
355
227
  ## [1.0.39] - 2023-07-24
356
228
 
357
229
  ### Changed
358
230
 
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.
231
+ - AWS Rekognition error classes renamed for clarity: consistent `Face` prefix with `Failed`/`Missing`/`Multiple` suffixes.
360
232
 
361
233
  ## [1.0.38] - 2023-07-17
362
234
 
363
235
  ### Fixed
364
236
 
365
- - Fixed a bug that prevented login user data from being referenced in the view rendering hook function.
237
+ - Login user data is now accessible in the `beforeRender` view hook.
366
238
 
367
239
  ## [1.0.37] - 2023-07-17
368
240
 
369
- ### Changed
370
-
371
- - The view rendering hook function now supports asynchronous functions for async operations before rendering.
372
-
373
241
  ### Added
374
242
 
375
- - New Math-related view helpers have been added.
243
+ - `beforeRender` hook now supports async functions.
244
+ - **Math helpers** — `add`, `sub`, `multiply`, `divide`, `ceil`, `floor`, `abs` available in templates.
376
245
 
377
246
  ## [1.0.36] - 2023-07-12
378
247
 
379
248
  ### Changed
380
249
 
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.
250
+ - `is_ajax` option moved from `config/authentication.js` to `config/config.js`.
251
+ - Error handling replaced with hookable `hook_handle_error` for full control over error responses.
383
252
 
384
253
  ## [1.0.35] - 2023-07-11
385
254
 
386
255
  ### Changed
387
256
 
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.
257
+ - `failure_redirect` now accepts a function for dynamic redirect URLs.
258
+ - `Authentication.failureRedirect()` takes both `req` and `res` (was `res` only).
390
259
 
391
260
  ## [1.0.34] - 2023-07-01
392
261
 
393
- ### Changed
262
+ ### Fixed
394
263
 
395
- - Changed the response status code from 403 to 401 when asynchronous communication requiring authentication fails to authenticate.
264
+ - Unauthenticated AJAX requests now return 401 (was 403).
396
265
 
397
266
  ## [1.0.33] - 2023-07-01
398
267
 
399
268
  ### Added
400
269
 
401
- - Added regular expression comparison view helper.
270
+ - **`regexMatch` helper** — Regex pattern matching in templates.
402
271
 
403
272
  ## [1.0.32] - 2023-07-01
404
273
 
405
274
  ### Fixed
406
275
 
407
- - Fixed a bug that prevented cookies from being accessed in the view rendering hook function.
276
+ - Cookies are now accessible in `beforeRender` hook.
408
277
 
409
278
  ## [1.0.31] - 2023-06-29
410
279
 
411
- ### Changed
280
+ ### Breaking Changes
412
281
 
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).|
282
+ - **Helper names switched to camelCase** — `not_empty` → `notEmpty`, `format_date` → `formatDate`, `cache_busting` → `cacheBusting`, `json_stringify` → `jsonStringify`, `json_parse` → `jsonParse`, `format_bytes` → `formatBytes`.
422
283
 
423
284
  ### Added
424
285
 
425
- - Added view helper to convert numeric values to strings with language-sensitive representations.
286
+ - **`number2locale` helper** — Locale-aware number formatting in templates.
426
287
 
427
288
  ## [1.0.30] - 2023-06-26
428
289
 
429
- ### Changed
290
+ ### Fixed
430
291
 
431
- - Fixed AWS Rekognition credentials passing.
292
+ - AWS Rekognition credentials passing corrected.
432
293
 
433
294
  ## [1.0.29] - 2023-06-20
434
295
 
435
- ### Changed
436
-
437
- - Changed class private variables and methods from soft private to hard private.
438
-
439
296
  ### Added
440
297
 
441
- - Added AWS SES email sending client class.
298
+ - **AWS SES client** — Send emails via Amazon SES.
299
+
300
+ ### Changed
301
+
302
+ - Class internals switched from soft private (`_var`) to hard private (`#var`).
442
303
 
443
304
  ## [1.0.28] - 2023-06-16
444
305
 
445
306
  ### Changed
446
307
 
447
- - Updated AWS SDK version from 2 to 3.
308
+ - AWS SDK upgraded from v2 to v3.
448
309
 
449
310
  ## [1.0.27] - 2023-06-12
450
311
 
451
312
  ### Changed
452
313
 
453
- - The view rendering hook function now receives the request object as an argument for accessing request data during rendering.
314
+ - `beforeRender` hook now receives the request object for accessing request data during rendering.
454
315
 
455
316
  ## [1.0.26] - 2023-06-11
456
317
 
457
318
  ### Changed
458
319
 
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
- ```
320
+ - Sequelize upgraded from v5 to v6.
321
+ - Debug logging now requires `SWEET_DEBUG=true` in your `.env` file.
465
322
 
466
323
  ## [1.0.25] - 2022-11-24
467
324
 
468
325
  ### Added
469
326
 
470
- - Added formatBytes view helper to convert bytes to appropriate units.
327
+ - **`formatBytes` helper** — Human-readable byte sizes in templates (`1024` → `1KB`).
471
328
 
472
329
  ## [1.0.24] - 2022-10-24
473
330
 
474
331
  ### Added
475
332
 
476
- - Added Ajax request detection option to authentication configuration for custom XHR/fetch request handling.
333
+ - AJAX request detection option in authentication config for custom XHR/fetch handling.
477
334
 
478
335
  ## [1.0.23] - 2022-10-20
479
336
 
480
337
  ### Added
481
338
 
482
- - A request body object has been added to the parameters of the callback function for user authentication.
339
+ - `authenticate_user` callback now receives the full request object as its third parameter.
483
340
 
484
341
  ## [1.0.22] - 2022-07-27
485
342
 
486
343
  ### Added
487
344
 
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.
345
+ - **`beforeRender` hook** — Set local variables available in every view, right before rendering.
489
346
 
490
347
  ## [1.0.21] - 2022-05-26
491
348
 
492
349
  ### Added
493
350
 
494
- - Added an option to the face indexing method to retrieve details (gender, emotion, age group) of indexed faces.
351
+ - Face indexing can now return details: gender, emotion, age group.
495
352
 
496
353
  ## [1.0.20] - 2022-05-25
497
354
 
498
355
  ### Added
499
356
 
500
- - Added an option to get details (emotion, gender, age group) to the face detection method.
357
+ - Face detection can now return details: emotion, gender, age group.
501
358
 
502
359
  ## [1.0.19] - 2022-05-20
503
360
 
504
361
  ### Added
505
362
 
506
- - Add date format helper to view.
363
+ - **`formatDate` helper** — Moment.js date formatting in templates.
507
364
 
508
365
  ## [1.0.18] - 2022-05-18
509
366
 
510
367
  ### Added
511
368
 
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
- ```
369
+ - **Redis session store** — Store authentication sessions in Redis instead of memory. Just set `session_store: 'redis'` in your auth config.
518
370
 
519
371
  ## [1.0.17] - 2022-05-17
520
372
 
521
373
  ### Changed
522
374
 
523
- - Updated documentation and refactored variable names.
375
+ - Documentation and variable naming improvements.
524
376
 
525
377
  ## [1.0.16] - 2022-02-14
526
378
 
527
379
  ### Fixed
528
380
 
529
- - I forgot to include the build file, so I added the build file.
381
+ - Missing build files added to the published package.
530
382
 
531
383
  ## [1.0.15] - 2022-02-14
532
384
 
533
385
  ### Changed
534
386
 
535
- - The unauthenticated route pattern option now accepts both string and RegExp patterns for more flexible route matching.
387
+ - `allow_unauthenticated` now accepts RegExp patterns alongside strings.
536
388
 
537
389
  ## [1.0.14] - 2022-01-17
538
390
 
539
391
  ### Changed
540
392
 
541
- - The empty view helper can now check any type. Previously it could only check arrays.
393
+ - `empty` helper now works with any type, not just arrays.
542
394
 
543
395
  ## [1.0.13] - 2021-12-13
544
396
 
545
397
  ### Added
546
398
 
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
- ```
399
+ - `Model.begin()` now accepts transaction options (isolation level, type).
567
400
 
568
401
  ## [1.0.12] - 2021-11-16
569
402
 
570
403
  ### Added
571
404
 
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
- ```
405
+ - **`Model.query()` — Raw SQL execution.** Run prepared statements and typed queries directly from your models.
582
406
 
583
407
  ## [1.0.11] - 2021-11-10
584
408
 
585
409
  ### Fixed
586
410
 
587
- - Fixed a bug where the database config was read before NODE_ENV was set, preventing the correct database config from being loaded.
411
+ - Database config now loads after `NODE_ENV` is set, ensuring the correct environment config is used.
588
412
 
589
413
  ## [1.0.10] - 2021-10-19
590
414
 
591
415
  ### Changed
592
416
 
593
- - Added face similarity score to face search results in collection.
417
+ - Face search results now include similarity scores.
594
418
 
595
419
  ## [1.0.9] - 2021-10-13
596
420
 
597
421
  ### Changed
598
422
 
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.
423
+ - Updated `sharp` to v0.29.1 — statically linked libvips, no more Python dependency.
602
424
 
603
425
  ## [1.0.8] - 2021-09-25
604
426
 
605
427
  ### Fixed
606
428
 
607
- - Fixed a bug where the default router couldn't be accessed from the endpoint URL.
429
+ - Default router is now accessible from its own endpoint URL.
608
430
 
609
431
  ## [1.0.7] - 2021-08-13
610
432
 
611
433
  ### Added
612
434
 
613
- - Added where member functions to Model class.
435
+ - `Model.where()` — Create WHERE conditions on function results.
614
436
 
615
437
  ## [1.0.6] - 2021-08-13
616
438
 
617
439
  ### Added
618
440
 
619
- - Added fn, col and literal member functions to Model class.
441
+ - `Model.fn()`, `Model.col()`, `Model.literal()` — SQL functions, column references, and raw literals in queries.
620
442
 
621
443
  ## [1.0.5] - 2021-08-12
622
444
 
623
445
  ### Changed
624
446
 
625
- - Changed the maximum size per field for multipart (multipart/form-data) requests from 1MB to unlimited.
447
+ - Multipart field size limit removed (was 1MB, now unlimited).
626
448
 
627
449
  ## [1.0.4] - 2021-06-13
628
450
 
629
451
  ### Fixed
630
452
 
631
- - Fixed a bug where the referrer URL was set in app.locals.currentPath instead of the current URL.
453
+ - `app.locals.currentPath` now reflects the actual current URL, not the referrer.
632
454
 
633
455
  ## [1.0.3] - 2021-06-13
634
456
 
635
457
  ### Changed
636
458
 
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
- ```
459
+ - `app.locals.currentPath` is now a clean pathname without query string or fragment.
642
460
 
643
461
  ## [1.0.2] - 2021-06-10
644
462
 
645
- ### Changed
463
+ ### Fixed
646
464
 
647
- - Updated rollup from version 2.44 to 2.51.
465
+ - Model preloading now works correctly in CommonJS environments.
648
466
 
649
- ### Fixed
467
+ ### Changed
650
468
 
651
- - Fixed a bug where preloading models failed in cjs.
469
+ - Updated Rollup to v2.51.
652
470
 
653
471
  ## [1.0.1] - 2021-06-02
654
472
 
655
473
  ### Fixed
656
474
 
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
475
+ - ESM default export options now load correctly.
476
+
477
+ ## [1.0.0] - 2021-05-31
478
+
479
+ Initial release. Express.js extension library with Sequelize ORM, Passport.js authentication, Handlebars views, file-based routing, and AWS Rekognition integration.
480
+
481
+ [1.0.0]: https://github.com/shumatsumonobu/express-sweet/releases/tag/v1.0.0
482
+ [1.0.1]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.0...v1.0.1
483
+ [1.0.2]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.1...v1.0.2
484
+ [1.0.3]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.2...v1.0.3
485
+ [1.0.4]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.3...v1.0.4
486
+ [1.0.5]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.4...v1.0.5
487
+ [1.0.6]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.5...v1.0.6
488
+ [1.0.7]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.6...v1.0.7
489
+ [1.0.8]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.7...v1.0.8
490
+ [1.0.9]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.8...v1.0.9
491
+ [1.0.10]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.9...v1.0.10
492
+ [1.0.11]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.10...v1.0.11
493
+ [1.0.12]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.11...v1.0.12
494
+ [1.0.13]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.12...v1.0.13
495
+ [1.0.14]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.13...v1.0.14
496
+ [1.0.15]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.14...v1.0.15
497
+ [1.0.16]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.15...v1.0.16
498
+ [1.0.17]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.16...v1.0.17
499
+ [1.0.18]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.17...v1.0.18
500
+ [1.0.19]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.18...v1.0.19
501
+ [1.0.20]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.19...v1.0.20
502
+ [1.0.21]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.20...v1.0.21
503
+ [1.0.22]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.21...v1.0.22
504
+ [1.0.23]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.22...v1.0.23
505
+ [1.0.24]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.23...v1.0.24
506
+ [1.0.25]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.24...v1.0.25
507
+ [1.0.26]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.25...v1.0.26
508
+ [1.0.27]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.26...v1.0.27
509
+ [1.0.28]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.27...v1.0.28
510
+ [1.0.29]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.28...v1.0.29
511
+ [1.0.30]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.29...v1.0.30
512
+ [1.0.31]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.30...v1.0.31
513
+ [1.0.32]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.31...v1.0.32
514
+ [1.0.33]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.32...v1.0.33
515
+ [1.0.34]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.33...v1.0.34
516
+ [1.0.35]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.34...v1.0.35
517
+ [1.0.36]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.35...v1.0.36
518
+ [1.0.37]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.36...v1.0.37
519
+ [1.0.38]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.37...v1.0.38
520
+ [1.0.39]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.38...v1.0.39
521
+ [1.0.40]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.39...v1.0.40
522
+ [1.0.41]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.40...v1.0.41
523
+ [1.0.42]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.41...v1.0.42
524
+ [1.0.43]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.42...v1.0.43
525
+ [1.0.44]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.43...v1.0.44
526
+ [1.1.0]: https://github.com/shumatsumonobu/express-sweet/compare/v1.0.44...v1.1.0
527
+ [1.1.1]: https://github.com/shumatsumonobu/express-sweet/compare/v1.1.0...v1.1.1
528
+ [2.0.0]: https://github.com/shumatsumonobu/express-sweet/compare/v1.1.1...v2.0.0
529
+ [2.0.1]: https://github.com/shumatsumonobu/express-sweet/compare/v2.0.0...v2.0.1
530
+ [2.0.2]: https://github.com/shumatsumonobu/express-sweet/compare/v2.0.1...v2.0.2
531
+ [2.0.3]: https://github.com/shumatsumonobu/express-sweet/compare/v2.0.2...v2.0.3
532
+ [2.0.4]: https://github.com/shumatsumonobu/express-sweet/compare/v2.0.3...v2.0.4
533
+ [2.0.5]: https://github.com/shumatsumonobu/express-sweet/compare/v2.0.4...v2.0.5
534
+ [2.0.6]: https://github.com/shumatsumonobu/express-sweet/compare/v2.0.5...v2.0.6
535
+ [2.0.7]: https://github.com/shumatsumonobu/express-sweet/compare/v2.0.6...v2.0.7
536
+ [2.0.8]: https://github.com/shumatsumonobu/express-sweet/compare/v2.0.7...v2.0.8
537
+ [2.0.9]: https://github.com/shumatsumonobu/express-sweet/compare/v2.0.8...v2.0.9
538
+ [3.0.0]: https://github.com/shumatsumonobu/express-sweet/compare/v2.0.9...v3.0.0
539
+ [3.0.1]: https://github.com/shumatsumonobu/express-sweet/compare/v3.0.0...v3.0.1
540
+ [3.0.2]: https://github.com/shumatsumonobu/express-sweet/compare/v3.0.1...v3.0.2
541
+ [4.0.0]: https://github.com/shumatsumonobu/express-sweet/compare/v3.0.2...v4.0.0
542
+ [5.0.0]: https://github.com/shumatsumonobu/express-sweet/compare/v4.0.0...v5.0.0
543
+ [5.1.0]: https://github.com/shumatsumonobu/express-sweet/compare/v5.0.0...v5.1.0