express-sweet 1.0.36 → 1.0.38

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 CHANGED
@@ -1,9 +1,33 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## [1.0.38] - 2023/7/17
5
+ ### Fixed
6
+ - Fixed a bug that login user data (req.user) could not be referenced in the function called just before view rendering (config/view.js#beforeRender).
7
+
8
+ ## [1.0.37] - 2023/7/17
9
+ ### Changed
10
+ - The beforeRender option in the view configuration (config/view.js) can now specify asynchronous functions.
11
+
12
+ ### Added
13
+ - New Math-related view helpers have been added.
14
+
15
+ See [here](https://takuya-motoshima.github.io/express-sweet/#view-math-helper) how to use the helper.
16
+
17
+ Added view helpers:
18
+ |Helper|Description|
19
+ |--|--|
20
+ |add|Calculates the sum of two numbers.|
21
+ |sub|Calculates the difference of the given values.|
22
+ |multiply|Calculate the multiplication of the given values.|
23
+ |divide|Compute the division of the given values.|
24
+ |ceil|Round up the value.|
25
+ |floor|Rounds down a number.|
26
+ |abs|Returns an absolute value.|
27
+
4
28
  ## [1.0.36] - 2023/7/12
5
29
  ### Changed
6
- - Moved the Ajax determination option (is_ajax) in the authentication configuration (config/authentication) to the basic configuration (config/config).
30
+ - Moved the Ajax determination option (is_ajax) in the authentication configuration (config/authentication.js) to the basic configuration (config/config.js).
7
31
 
8
32
  config/config.js:
9
33
  ```js
@@ -670,4 +694,6 @@ All notable changes to this project will be documented in this file.
670
694
  [1.0.33]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.32...v1.0.33
671
695
  [1.0.34]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.33...v1.0.34
672
696
  [1.0.35]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.34...v1.0.35
673
- [1.0.36]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.35...v1.0.36
697
+ [1.0.36]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.35...v1.0.36
698
+ [1.0.37]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.36...v1.0.37
699
+ [1.0.38]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.37...v1.0.38