express-sweet 1.0.25 → 1.0.27
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 +26 -1
- package/README.md +1 -1
- package/dist/build.common.js +4 -4
- package/dist/build.esm.js +6 -6
- package/docs/index.html +4 -4
- package/package.json +6 -8
- package/types/database/Database.d.ts +103 -84
- package/types/handlebars_helpers/string.d.ts +1 -1
- package/types/index.d.ts +1 -2
- package/types/interfaces/ViewOptions.d.ts +2 -2
- package/types/middlewares/Environment.d.ts +1 -1
- package/types/package.d.ts +0 -93
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,29 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
|
|
4
|
+
## [1.0.27] - 2023/6/12
|
|
5
|
+
### Changed
|
|
6
|
+
- Request object has been added to the arguments of the beforeRender function in the view configuration (config/view.js).
|
|
7
|
+
express-sweet v1.0.27 or later (current):
|
|
8
|
+
```js
|
|
9
|
+
beforeRender: (req, res) => {}
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
express-sweet v1.0.26 or earlier:
|
|
13
|
+
```js
|
|
14
|
+
beforeRender: res => {}
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## [1.0.26] - 2023/6/11
|
|
18
|
+
### Changed
|
|
19
|
+
- Update Sequelize from v5 to v6.
|
|
20
|
+
- Changed the framework debug log to output only when the environment variable EXPRESS_DEBUG is defined.
|
|
21
|
+
.env:
|
|
22
|
+
```
|
|
23
|
+
EXPRESS_DEBUG=true
|
|
24
|
+
```
|
|
25
|
+
- A demo application was added [here](./demo).
|
|
26
|
+
|
|
4
27
|
## [1.0.25] - 2022/11/24
|
|
5
28
|
### Added
|
|
6
29
|
- Added format_bytes view helper to convert bytes to appropriate units.
|
|
@@ -420,4 +443,6 @@ All notable changes to this project will be documented in this file.
|
|
|
420
443
|
[1.0.22]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.21...v1.0.22
|
|
421
444
|
[1.0.23]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.22...v1.0.23
|
|
422
445
|
[1.0.24]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.23...v1.0.24
|
|
423
|
-
[1.0.25]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.24...v1.0.25
|
|
446
|
+
[1.0.25]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.24...v1.0.25
|
|
447
|
+
[1.0.26]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.25...v1.0.26
|
|
448
|
+
[1.0.27]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.26...v1.0.27
|
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/)
|