express-sweet 1.0.36 → 1.0.37
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 +23 -2
- package/dist/build.common.js +8 -8
- package/dist/build.esm.js +1 -1
- package/docs/index.html +280 -2
- package/package.json +1 -1
- package/types/handlebars_helpers/index.d.ts +2 -1
- package/types/handlebars_helpers/math.d.ts +81 -0
- package/types/interfaces/ViewConfig.d.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,29 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
|
|
4
|
+
## [1.0.37] - 2023/7/17
|
|
5
|
+
### Changed
|
|
6
|
+
- The beforeRender option in the view configuration (config/view.js) can now specify asynchronous functions.
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
- New Math-related view helpers have been added.
|
|
10
|
+
|
|
11
|
+
See [here](https://takuya-motoshima.github.io/express-sweet/#view-math-helper) how to use the helper.
|
|
12
|
+
|
|
13
|
+
Added view helpers:
|
|
14
|
+
|Helper|Description|
|
|
15
|
+
|--|--|
|
|
16
|
+
|add|Calculates the sum of two numbers.|
|
|
17
|
+
|sub|Calculates the difference of the given values.|
|
|
18
|
+
|multiply|Calculate the multiplication of the given values.|
|
|
19
|
+
|divide|Compute the division of the given values.|
|
|
20
|
+
|ceil|Round up the value.|
|
|
21
|
+
|floor|Rounds down a number.|
|
|
22
|
+
|abs|Returns an absolute value.|
|
|
23
|
+
|
|
4
24
|
## [1.0.36] - 2023/7/12
|
|
5
25
|
### Changed
|
|
6
|
-
- Moved the Ajax determination option (is_ajax) in the authentication configuration (config/authentication) to the basic configuration (config/config).
|
|
26
|
+
- Moved the Ajax determination option (is_ajax) in the authentication configuration (config/authentication.js) to the basic configuration (config/config.js).
|
|
7
27
|
|
|
8
28
|
config/config.js:
|
|
9
29
|
```js
|
|
@@ -670,4 +690,5 @@ All notable changes to this project will be documented in this file.
|
|
|
670
690
|
[1.0.33]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.32...v1.0.33
|
|
671
691
|
[1.0.34]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.33...v1.0.34
|
|
672
692
|
[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
|
|
693
|
+
[1.0.36]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.35...v1.0.36
|
|
694
|
+
[1.0.37]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.36...v1.0.37
|