express-sweet 1.0.24 → 1.0.26
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 +44 -20
- package/README.md +1 -1
- package/dist/build.common.js +3 -3
- package/dist/build.esm.js +3 -3
- package/docs/img/logos/default-small.svg +1 -3
- package/docs/img/logos/default.svg +1 -1
- package/docs/img/logos/favicon.svg +1 -3
- package/docs/index.html +71 -1
- package/hero.svg +1 -1
- package/package.json +6 -8
- package/types/database/Database.d.ts +103 -84
- package/types/handlebars_helpers/string.d.ts +15 -1
- package/types/index.d.ts +1 -2
- package/types/interfaces/AuthenticationOptions.d.ts +1 -1
- package/types/middlewares/Environment.d.ts +1 -1
- package/types/package.d.ts +0 -93
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,28 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
|
|
4
|
+
## [1.0.26] - 2023/6/11
|
|
5
|
+
### Changed
|
|
6
|
+
- Update Sequelize from v5 to v6.
|
|
7
|
+
- Changed the framework debug log to output only when the environment variable EXPRESS_DEBUG is defined.
|
|
8
|
+
.env:
|
|
9
|
+
```
|
|
10
|
+
EXPRESS_DEBUG=true
|
|
11
|
+
```
|
|
12
|
+
- A demo application was added [here](./demo).
|
|
13
|
+
|
|
14
|
+
## [1.0.25] - 2022/11/24
|
|
15
|
+
### Added
|
|
16
|
+
- Added format_bytes view helper to convert bytes to appropriate units.
|
|
17
|
+
```html
|
|
18
|
+
{{format_bytes 1024}} => 1 KB
|
|
19
|
+
{{format_bytes 1234 2}} => 1.21 KB
|
|
20
|
+
{{format_bytes 1234 3}} => 1.205 KB
|
|
21
|
+
{{format_bytes 0}} => 0 Bytes
|
|
22
|
+
```
|
|
23
|
+
|
|
4
24
|
## [1.0.24] - 2022/10/24
|
|
5
|
-
###
|
|
25
|
+
### Added
|
|
6
26
|
- Added is_ajax option to user authentication.
|
|
7
27
|
config/authentication.js:
|
|
8
28
|
```js
|
|
@@ -23,7 +43,7 @@ All notable changes to this project will be documented in this file.
|
|
|
23
43
|
```
|
|
24
44
|
|
|
25
45
|
## [1.0.23] - 2022/10/20
|
|
26
|
-
###
|
|
46
|
+
### Added
|
|
27
47
|
- A request body object has been added to the parameters of the callback function for user authentication.
|
|
28
48
|
config/authentication.js:
|
|
29
49
|
```js
|
|
@@ -55,7 +75,7 @@ All notable changes to this project will be documented in this file.
|
|
|
55
75
|
```
|
|
56
76
|
|
|
57
77
|
## [1.0.22] - 2022/7/27
|
|
58
|
-
###
|
|
78
|
+
### Added
|
|
59
79
|
- You can now set hook functions that are called before the view is rendered.
|
|
60
80
|
Hook functions can be used, for example, to set local variables that can be used in the view.
|
|
61
81
|
|
|
@@ -79,7 +99,7 @@ All notable changes to this project will be documented in this file.
|
|
|
79
99
|
```
|
|
80
100
|
|
|
81
101
|
## [1.0.21] - 2022/526
|
|
82
|
-
###
|
|
102
|
+
### Added
|
|
83
103
|
- Added an option to the face indexing method to retrieve details (gender, emotion, age group) of indexed faces.
|
|
84
104
|
```js
|
|
85
105
|
const sweet = require('../dist/build.common');
|
|
@@ -123,7 +143,7 @@ All notable changes to this project will be documented in this file.
|
|
|
123
143
|
```
|
|
124
144
|
|
|
125
145
|
## [1.0.20] - 2022/5/25
|
|
126
|
-
###
|
|
146
|
+
### Added
|
|
127
147
|
- Added an option to get details (emotion, gender, age group) to the face detection method.
|
|
128
148
|
```js
|
|
129
149
|
const sweet = require('../dist/build.common');
|
|
@@ -182,7 +202,7 @@ All notable changes to this project will be documented in this file.
|
|
|
182
202
|
```
|
|
183
203
|
|
|
184
204
|
## [1.0.19] - 2022/5/20
|
|
185
|
-
###
|
|
205
|
+
### Added
|
|
186
206
|
- Add date format helper to view.
|
|
187
207
|
```html
|
|
188
208
|
{{format_date 'YYYY/MM/DD' "2021-10-24T02:13:06.610Z"}} => 2021/10/24
|
|
@@ -191,7 +211,7 @@ All notable changes to this project will be documented in this file.
|
|
|
191
211
|
```
|
|
192
212
|
|
|
193
213
|
## [1.0.18] - 2022/5/18
|
|
194
|
-
###
|
|
214
|
+
### Added
|
|
195
215
|
- User authentication sessions can now be stored in redis.
|
|
196
216
|
To use redis for session storage, simply add the following option to config/authentication.js.
|
|
197
217
|
Please give it a try.
|
|
@@ -215,7 +235,7 @@ All notable changes to this project will be documented in this file.
|
|
|
215
235
|
```
|
|
216
236
|
|
|
217
237
|
## [1.0.17] - 2022/5/17
|
|
218
|
-
###
|
|
238
|
+
### Changed
|
|
219
239
|
- Updated documentation and refactored variable names.
|
|
220
240
|
|
|
221
241
|
## [1.0.16] - 2022/2/14
|
|
@@ -223,11 +243,11 @@ All notable changes to this project will be documented in this file.
|
|
|
223
243
|
- I forgot to include the build file, so I added the build file.
|
|
224
244
|
|
|
225
245
|
## [1.0.15] - 2022/2/14
|
|
226
|
-
###
|
|
246
|
+
### Changed
|
|
227
247
|
- Changed the type of 'config/authentication.js#allow_unauthenticated' from'string[]' to'(string|RegExp)[]}'.
|
|
228
248
|
|
|
229
249
|
## [1.0.14] - 2022/1/17
|
|
230
|
-
###
|
|
250
|
+
### Changed
|
|
231
251
|
- empty view helper can now check any type. Previously I could only check arrays.
|
|
232
252
|
```html
|
|
233
253
|
// If the value is an array.
|
|
@@ -271,7 +291,7 @@ All notable changes to this project will be documented in this file.
|
|
|
271
291
|
```
|
|
272
292
|
|
|
273
293
|
## [1.0.13] - 2021/12/13
|
|
274
|
-
###
|
|
294
|
+
### Added
|
|
275
295
|
- The model's begin method now accepts the transaction option.
|
|
276
296
|
See [Transaction | Sequelize](https://sequelize.org/master/class/lib/transaction.js~Transaction.html) for transaction options.
|
|
277
297
|
```js
|
|
@@ -297,7 +317,7 @@ All notable changes to this project will be documented in this file.
|
|
|
297
317
|
```
|
|
298
318
|
|
|
299
319
|
## [1.0.12] - 2021/11/16
|
|
300
|
-
###
|
|
320
|
+
### Added
|
|
301
321
|
- Added a method to the model that can execute raw SQL.
|
|
302
322
|
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.
|
|
303
323
|
|
|
@@ -316,7 +336,7 @@ All notable changes to this project will be documented in this file.
|
|
|
316
336
|
- Fixed a bug that the database config was read before NODE_ENV was set and the database config matching NODE_ENV could not be read.
|
|
317
337
|
|
|
318
338
|
## [1.0.10] - 2021/10/19
|
|
319
|
-
###
|
|
339
|
+
### Changed
|
|
320
340
|
- Added face similarity found to face search results in collection.
|
|
321
341
|
|
|
322
342
|
```js
|
|
@@ -341,7 +361,7 @@ All notable changes to this project will be documented in this file.
|
|
|
341
361
|
```
|
|
342
362
|
|
|
343
363
|
## [1.0.9] - 2021/10/13
|
|
344
|
-
###
|
|
364
|
+
### Changed
|
|
345
365
|
- Updated dependent package'sharp'from 0.25.4 to 0.29.1.
|
|
346
366
|
This update statically links sharp's pre-built libvips binaries, eliminating the need to install Phton.
|
|
347
367
|
Click [here](https://sharp.pixelplumbing.com/changelog) for sharp change log.
|
|
@@ -351,15 +371,15 @@ All notable changes to this project will be documented in this file.
|
|
|
351
371
|
- Fixed a bug where the default router couldn't aqua from the endpoint URL.
|
|
352
372
|
|
|
353
373
|
## [1.0.7] - 2021/8/13
|
|
354
|
-
###
|
|
374
|
+
### Added
|
|
355
375
|
- Added where member functions to Model class. Please see [here](https://takuya-motoshima.github.io/express-sweet/#model-class) for details.
|
|
356
376
|
|
|
357
377
|
## [1.0.6] - 2021/8/13
|
|
358
|
-
###
|
|
378
|
+
### Added
|
|
359
379
|
- Added fn, col and literal member functions to Model class. Please see [here](https://takuya-motoshima.github.io/express-sweet/#model-class) for details.
|
|
360
380
|
|
|
361
381
|
## [1.0.5] - 2021/8/12
|
|
362
|
-
###
|
|
382
|
+
### Changed
|
|
363
383
|
- Changed the maximum size per field for multipart (multipart/form-data) requests from 1MB to unlimited.
|
|
364
384
|
|
|
365
385
|
## [1.0.4] - 2021/6/13
|
|
@@ -367,7 +387,7 @@ All notable changes to this project will be documented in this file.
|
|
|
367
387
|
- Fixed a bug where the referrer URL was set in app.locals.currentPath instead of the current URL.
|
|
368
388
|
|
|
369
389
|
## [1.0.3] - 2021/6/13
|
|
370
|
-
###
|
|
390
|
+
### Changed
|
|
371
391
|
- Change 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.
|
|
372
392
|
|
|
373
393
|
```js
|
|
@@ -376,8 +396,10 @@ All notable changes to this project will be documented in this file.
|
|
|
376
396
|
```
|
|
377
397
|
|
|
378
398
|
## [1.0.2] - 2021//6/10
|
|
379
|
-
###
|
|
399
|
+
### Changed
|
|
380
400
|
- Updated rollup from version 2.44 to 2.51.
|
|
401
|
+
|
|
402
|
+
### Fixed
|
|
381
403
|
- Fixed a bug where preloading models failed in cjs.
|
|
382
404
|
|
|
383
405
|
## [1.0.1] - 2021/6/2
|
|
@@ -407,4 +429,6 @@ All notable changes to this project will be documented in this file.
|
|
|
407
429
|
[1.0.21]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.20...v1.0.21
|
|
408
430
|
[1.0.22]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.21...v1.0.22
|
|
409
431
|
[1.0.23]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.22...v1.0.23
|
|
410
|
-
[1.0.24]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.23...v1.0.24
|
|
432
|
+
[1.0.24]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.23...v1.0.24
|
|
433
|
+
[1.0.25]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.24...v1.0.25
|
|
434
|
+
[1.0.26]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.25...v1.0.26
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[](https://takuya-motoshima.github.io/express-sweet/#install)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Express framework extension.
|
|
4
4
|
|
|
5
5
|
## Documentation
|
|
6
6
|
* [Express Sweet Documentation](https://takuya-motoshima.github.io/express-sweet/)
|