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.
- package/CHANGELOG.md +221 -397
- package/LICENSE +1 -1
- package/README.md +210 -1174
- package/dist/build.cjs +32 -73
- package/dist/build.mjs +32 -73
- package/package.json +45 -61
- package/screenshots/avatar.png +0 -0
- package/screenshots/edit-profile.png +0 -0
- package/screenshots/hero-banner.png +0 -0
- package/screenshots/home.png +0 -0
- package/screenshots/mount-flow.mmd +11 -0
- package/screenshots/mount-flow.png +0 -0
- package/screenshots/new-person.png +0 -0
- package/screenshots/people.png +0 -0
- package/screenshots/sign-in.png +0 -0
- package/types/database/DatabaseManager.d.ts +15 -10
- package/types/database/Model.d.ts +29 -43
- package/types/database/index.d.ts +0 -1
- package/types/database/loadModels.d.ts +7 -13
- package/types/helpers/array.d.ts +21 -0
- package/types/helpers/comparison.d.ts +217 -0
- package/types/helpers/date.d.ts +20 -0
- package/types/helpers/html.d.ts +35 -0
- package/types/{handlebars_helpers → helpers}/index.d.ts +0 -2
- package/types/helpers/layouts.d.ts +29 -0
- package/types/helpers/math.d.ts +85 -0
- package/types/helpers/number.d.ts +19 -0
- package/types/helpers/object.d.ts +28 -0
- package/types/helpers/string.d.ts +45 -0
- package/types/index.d.ts +6 -9
- package/types/middleware/auth.d.ts +186 -0
- package/types/middleware/cors.d.ts +19 -0
- package/types/middleware/env.d.ts +40 -0
- package/types/middleware/error.d.ts +26 -0
- package/types/middleware/globals.d.ts +13 -0
- package/types/{middlewares → middleware}/index.d.ts +12 -13
- package/types/middleware/locals.d.ts +33 -0
- package/types/middleware/parser.d.ts +30 -0
- package/types/middleware/router.d.ts +31 -0
- package/types/middleware/views.d.ts +37 -0
- package/types/mount.d.ts +2 -3
- package/types/{interfaces → types}/AppConfig.d.ts +29 -18
- package/types/{interfaces → types}/AuthenticationConfig.d.ts +10 -11
- package/types/{interfaces → types}/DatabaseConfig.d.ts +0 -1
- package/types/{interfaces → types}/LoggingConfig.d.ts +0 -1
- package/types/{interfaces → types}/UploadConfig.d.ts +0 -1
- package/types/{interfaces → types}/ViewConfig.d.ts +1 -2
- package/types/{interfaces → types}/index.d.ts +1 -2
- package/types/utils/index.d.ts +0 -1
- package/types/utils/loadAppConfig.d.ts +1 -1
- package/types/utils/loadAuthenticationConfig.d.ts +1 -1
- package/types/utils/loadLoggingConfig.d.ts +1 -1
- package/types/utils/loadUploadConfig.d.ts +1 -1
- package/types/utils/loadViewConfig.d.ts +1 -1
- package/configuration_sample/cjs/authentication.js +0 -138
- package/configuration_sample/cjs/config.js +0 -92
- package/configuration_sample/cjs/database.js +0 -121
- package/configuration_sample/cjs/logging.js +0 -41
- package/configuration_sample/cjs/upload.js +0 -91
- package/configuration_sample/cjs/view.js +0 -54
- package/configuration_sample/esm/authentication.js +0 -136
- package/configuration_sample/esm/config.js +0 -92
- package/configuration_sample/esm/database.js +0 -121
- package/configuration_sample/esm/logging.js +0 -41
- package/configuration_sample/esm/upload.js +0 -91
- package/configuration_sample/esm/view.js +0 -54
- package/screencaps/belongs-to-many.png +0 -0
- package/screencaps/belongs-to.png +0 -0
- package/screencaps/demonstration.webp +0 -0
- package/screencaps/has-many.png +0 -0
- package/screencaps/has-one.png +0 -0
- package/types/handlebars_helpers/array.d.ts +0 -22
- package/types/handlebars_helpers/comparison.d.ts +0 -222
- package/types/handlebars_helpers/date.d.ts +0 -19
- package/types/handlebars_helpers/html.d.ts +0 -31
- package/types/handlebars_helpers/layouts.d.ts +0 -25
- package/types/handlebars_helpers/math.d.ts +0 -74
- package/types/handlebars_helpers/number.d.ts +0 -18
- package/types/handlebars_helpers/object.d.ts +0 -21
- package/types/handlebars_helpers/string.d.ts +0 -45
- package/types/middlewares/corsPolicy.d.ts +0 -28
- package/types/middlewares/envLoader.d.ts +0 -34
- package/types/middlewares/errorHandler.d.ts +0 -32
- package/types/middlewares/globalVars.d.ts +0 -25
- package/types/middlewares/localVars.d.ts +0 -44
- package/types/middlewares/passportAuth.d.ts +0 -15
- package/types/middlewares/requestParser.d.ts +0 -27
- package/types/middlewares/routeMapper.d.ts +0 -54
- package/types/middlewares/viewEngine.d.ts +0 -49
- package/types/services/Authentication.d.ts +0 -95
- package/types/services/index.d.ts +0 -33
- package/types/types/global.d.ts +0 -38
- package/types/utils/Types.d.ts +0 -29
package/CHANGELOG.md
CHANGED
|
@@ -1,719 +1,543 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Every release that matters, documented here.
|
|
4
4
|
|
|
5
|
-
## [
|
|
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
|
-
**
|
|
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
|
-
|
|
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
|
-
**
|
|
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
|
-
**
|
|
57
|
-
|
|
58
|
-
|
|
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
|
-
**
|
|
61
|
-
|
|
62
|
-
|
|
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
|
-
|
|
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
|
-
-
|
|
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
|
|
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
|
|
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
|
-
|
|
88
|
+
Database layer rebuilt from the ground up. One connection pool, shared across all models.
|
|
103
89
|
|
|
104
90
|
### Breaking Changes
|
|
105
91
|
|
|
106
|
-
|
|
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
|
-
//
|
|
126
|
-
|
|
127
|
-
|
|
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
|
-
|
|
140
|
-
|
|
141
|
-
|
|
99
|
+
// After
|
|
100
|
+
const db = await expx.database.DatabaseManager.getInstance();
|
|
101
|
+
```
|
|
142
102
|
|
|
143
|
-
|
|
144
|
-
```js
|
|
145
|
-
// v2.x - Old way
|
|
146
|
-
import * as expx from 'express-sweet';
|
|
103
|
+
### Added
|
|
147
104
|
|
|
148
|
-
|
|
149
|
-
|
|
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
|
-
|
|
152
|
-
import * as expx from 'express-sweet';
|
|
108
|
+
### Changed
|
|
153
109
|
|
|
154
|
-
|
|
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
|
-
-
|
|
116
|
+
- `Database.getConfig()` — Retrieve the current database configuration at runtime.
|
|
162
117
|
|
|
163
118
|
### Changed
|
|
164
119
|
|
|
165
|
-
- Updated
|
|
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
|
-
-
|
|
126
|
+
- Documentation improvements for `Database.isConnect()`.
|
|
172
127
|
|
|
173
128
|
## [2.0.7] - 2025-07-22
|
|
174
129
|
|
|
175
130
|
### Changed
|
|
176
131
|
|
|
177
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
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`
|
|
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
|
|
244
|
-
-
|
|
245
|
-
|
|
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
|
-
-
|
|
275
|
-
-
|
|
276
|
-
|
|
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
|
|
283
|
-
-
|
|
284
|
-
-
|
|
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
|
|
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
|
|
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
|
-
-
|
|
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
|
-
-
|
|
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
|
-
###
|
|
199
|
+
### Added
|
|
322
200
|
|
|
323
|
-
-
|
|
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
|
-
###
|
|
205
|
+
### Added
|
|
328
206
|
|
|
329
|
-
- Session cookie name is now configurable
|
|
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
|
-
-
|
|
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
|
-
-
|
|
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
|
-
###
|
|
223
|
+
### Fixed
|
|
352
224
|
|
|
353
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
382
|
-
-
|
|
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
|
-
-
|
|
389
|
-
- Authentication
|
|
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
|
-
###
|
|
262
|
+
### Fixed
|
|
394
263
|
|
|
395
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
276
|
+
- Cookies are now accessible in `beforeRender` hook.
|
|
408
277
|
|
|
409
278
|
## [1.0.31] - 2023-06-29
|
|
410
279
|
|
|
411
|
-
###
|
|
280
|
+
### Breaking Changes
|
|
412
281
|
|
|
413
|
-
-
|
|
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
|
-
-
|
|
286
|
+
- **`number2locale` helper** — Locale-aware number formatting in templates.
|
|
426
287
|
|
|
427
288
|
## [1.0.30] - 2023-06-26
|
|
428
289
|
|
|
429
|
-
###
|
|
290
|
+
### Fixed
|
|
430
291
|
|
|
431
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
460
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
375
|
+
- Documentation and variable naming improvements.
|
|
524
376
|
|
|
525
377
|
## [1.0.16] - 2022-02-14
|
|
526
378
|
|
|
527
379
|
### Fixed
|
|
528
380
|
|
|
529
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
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
|
|
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
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
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
|
-
###
|
|
463
|
+
### Fixed
|
|
646
464
|
|
|
647
|
-
-
|
|
465
|
+
- Model preloading now works correctly in CommonJS environments.
|
|
648
466
|
|
|
649
|
-
###
|
|
467
|
+
### Changed
|
|
650
468
|
|
|
651
|
-
-
|
|
469
|
+
- Updated Rollup to v2.51.
|
|
652
470
|
|
|
653
471
|
## [1.0.1] - 2021-06-02
|
|
654
472
|
|
|
655
473
|
### Fixed
|
|
656
474
|
|
|
657
|
-
-
|
|
658
|
-
|
|
659
|
-
[1.0.
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
[1.0.
|
|
664
|
-
[1.0.
|
|
665
|
-
[1.0.
|
|
666
|
-
[1.0.
|
|
667
|
-
[1.0.
|
|
668
|
-
[1.0.
|
|
669
|
-
[1.0.
|
|
670
|
-
[1.0.
|
|
671
|
-
[1.0.
|
|
672
|
-
[1.0.
|
|
673
|
-
[1.0.
|
|
674
|
-
[1.0.
|
|
675
|
-
[1.0.
|
|
676
|
-
[1.0.
|
|
677
|
-
[1.0.
|
|
678
|
-
[1.0.
|
|
679
|
-
[1.0.
|
|
680
|
-
[1.0.
|
|
681
|
-
[1.0.
|
|
682
|
-
[1.0.
|
|
683
|
-
[1.0.
|
|
684
|
-
[1.0.
|
|
685
|
-
[1.0.
|
|
686
|
-
[1.0.
|
|
687
|
-
[1.0.
|
|
688
|
-
[1.0.
|
|
689
|
-
[1.0.
|
|
690
|
-
[1.0.
|
|
691
|
-
[1.0.
|
|
692
|
-
[1.0.
|
|
693
|
-
[1.0.
|
|
694
|
-
[1.0.
|
|
695
|
-
[1.0.
|
|
696
|
-
[1.0.
|
|
697
|
-
[1.0.
|
|
698
|
-
[1.0.
|
|
699
|
-
[1.0.
|
|
700
|
-
[1.0.
|
|
701
|
-
[1.0.
|
|
702
|
-
[1.0.
|
|
703
|
-
[1.0.
|
|
704
|
-
[1.
|
|
705
|
-
[1.
|
|
706
|
-
[
|
|
707
|
-
[
|
|
708
|
-
[
|
|
709
|
-
[
|
|
710
|
-
[2.0.
|
|
711
|
-
[2.0.
|
|
712
|
-
[2.0.
|
|
713
|
-
[2.0.
|
|
714
|
-
[2.0.
|
|
715
|
-
[2.0.
|
|
716
|
-
[
|
|
717
|
-
[
|
|
718
|
-
[
|
|
719
|
-
[
|
|
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
|