@expressots/core 2.14.1 → 2.15.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/lib/CHANGELOG.md +23 -0
- package/lib/cjs/index.js +0 -1
- package/lib/cjs/types/index.d.ts +0 -1
- package/lib/package.json +8 -8
- package/package.json +8 -8
- package/lib/cjs/render/handlebars.interface.js +0 -2
- package/lib/cjs/render/index.js +0 -2
- package/lib/cjs/render/render.type.js +0 -2
- package/lib/cjs/types/render/handlebars.interface.d.ts +0 -46
- package/lib/cjs/types/render/index.d.ts +0 -2
- package/lib/cjs/types/render/render.type.d.ts +0 -12
package/lib/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## [2.15.0](https://github.com/expressots/expressots/compare/2.14.1...2.15.0) (2024-07-17)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* bump @types/node from 20.14.9 to 20.14.10 ([2061291](https://github.com/expressots/expressots/commit/20612919e11dcaaebe06cf740e7513efc80acdf9))
|
|
9
|
+
* bump @typescript-eslint/eslint-plugin from 7.15.0 to 7.16.0 ([4c33e38](https://github.com/expressots/expressots/commit/4c33e38d1d3c7041c72758d1b9001b7e0788927a))
|
|
10
|
+
* bump @typescript-eslint/parser from 7.15.0 to 7.16.0 ([db38183](https://github.com/expressots/expressots/commit/db381837868cb0701b332ac5f23437c3bd5ba180))
|
|
11
|
+
* bump prettier from 3.3.2 to 3.3.3 ([1d3ee41](https://github.com/expressots/expressots/commit/1d3ee41902344a5fde5e79a0f6fafdde52ea31cd))
|
|
12
|
+
* bump release-it from 17.4.1 to 17.5.0 ([a4aa310](https://github.com/expressots/expressots/commit/a4aa3103f0b9df81dfa78f4de34ea3fbc7e407c9))
|
|
13
|
+
* bump vitest and @vitest/coverage-v8 ([f186dc3](https://github.com/expressots/expressots/commit/f186dc30c271267f0995276216a616f7b99e21ef))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* remove git modules cmds ([be88854](https://github.com/expressots/expressots/commit/be888548ed225feb43ad6db6929bf8d820ff8e1b))
|
|
19
|
+
* update index ([ebb6e8e](https://github.com/expressots/expressots/commit/ebb6e8ece46e343203136e8fc502a95ce23c2440))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Code Refactoring
|
|
23
|
+
|
|
24
|
+
* remove render from core ([70ba135](https://github.com/expressots/expressots/commit/70ba135593466cccb5d895029c588e544434dd26))
|
|
25
|
+
|
|
3
26
|
## [2.14.1](https://github.com/expressots/expressots/compare/2.14.0...2.14.1) (2024-07-04)
|
|
4
27
|
|
|
5
28
|
|
package/lib/cjs/index.js
CHANGED
package/lib/cjs/types/index.d.ts
CHANGED
package/lib/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expressots/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.15.0",
|
|
4
4
|
"description": "Expressots - modern, fast, lightweight nodejs web framework (@core)",
|
|
5
5
|
"author": "Richard Zampieri",
|
|
6
6
|
"main": "./lib/cjs/index.js",
|
|
@@ -79,19 +79,19 @@
|
|
|
79
79
|
"@expressots/adapter-express": "latest",
|
|
80
80
|
"@release-it/conventional-changelog": "8.0.1",
|
|
81
81
|
"@types/express": "4.17.21",
|
|
82
|
-
"@types/node": "20.14.
|
|
83
|
-
"@typescript-eslint/eslint-plugin": "7.
|
|
84
|
-
"@typescript-eslint/parser": "7.
|
|
85
|
-
"@vitest/coverage-v8": "
|
|
82
|
+
"@types/node": "20.14.10",
|
|
83
|
+
"@typescript-eslint/eslint-plugin": "7.16.0",
|
|
84
|
+
"@typescript-eslint/parser": "7.16.0",
|
|
85
|
+
"@vitest/coverage-v8": "2.0.2",
|
|
86
86
|
"eslint": "8.57.0",
|
|
87
87
|
"eslint-config-prettier": "9.1.0",
|
|
88
88
|
"husky": "9.0.11",
|
|
89
|
-
"prettier": "3.3.
|
|
90
|
-
"release-it": "17.
|
|
89
|
+
"prettier": "3.3.3",
|
|
90
|
+
"release-it": "17.5.0",
|
|
91
91
|
"typescript": "5.5.3",
|
|
92
92
|
"vite": "5.3.3",
|
|
93
93
|
"vite-tsconfig-paths": "4.3.2",
|
|
94
|
-
"vitest": "
|
|
94
|
+
"vitest": "2.0.2"
|
|
95
95
|
},
|
|
96
96
|
"release-it": {
|
|
97
97
|
"git": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expressots/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.15.0",
|
|
4
4
|
"description": "Expressots - modern, fast, lightweight nodejs web framework (@core)",
|
|
5
5
|
"author": "Richard Zampieri",
|
|
6
6
|
"main": "./lib/cjs/index.js",
|
|
@@ -79,19 +79,19 @@
|
|
|
79
79
|
"@expressots/adapter-express": "latest",
|
|
80
80
|
"@release-it/conventional-changelog": "8.0.1",
|
|
81
81
|
"@types/express": "4.17.21",
|
|
82
|
-
"@types/node": "20.14.
|
|
83
|
-
"@typescript-eslint/eslint-plugin": "7.
|
|
84
|
-
"@typescript-eslint/parser": "7.
|
|
85
|
-
"@vitest/coverage-v8": "
|
|
82
|
+
"@types/node": "20.14.10",
|
|
83
|
+
"@typescript-eslint/eslint-plugin": "7.16.0",
|
|
84
|
+
"@typescript-eslint/parser": "7.16.0",
|
|
85
|
+
"@vitest/coverage-v8": "2.0.2",
|
|
86
86
|
"eslint": "8.57.0",
|
|
87
87
|
"eslint-config-prettier": "9.1.0",
|
|
88
88
|
"husky": "9.0.11",
|
|
89
|
-
"prettier": "3.3.
|
|
90
|
-
"release-it": "17.
|
|
89
|
+
"prettier": "3.3.3",
|
|
90
|
+
"release-it": "17.5.0",
|
|
91
91
|
"typescript": "5.5.3",
|
|
92
92
|
"vite": "5.3.3",
|
|
93
93
|
"vite-tsconfig-paths": "4.3.2",
|
|
94
|
-
"vitest": "
|
|
94
|
+
"vitest": "2.0.2"
|
|
95
95
|
},
|
|
96
96
|
"release-it": {
|
|
97
97
|
"git": {
|
package/lib/cjs/render/index.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Configuration options for Express Handlebars.
|
|
3
|
-
* @interface ConfigOptions
|
|
4
|
-
*/
|
|
5
|
-
interface ConfigOptions {
|
|
6
|
-
extname?: string;
|
|
7
|
-
layoutDir?: string;
|
|
8
|
-
defaultLayout?: string | false;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Callback function for rendering templates.
|
|
12
|
-
* @callback RenderCallback
|
|
13
|
-
*
|
|
14
|
-
* @param {Error | null} err - The error object.
|
|
15
|
-
* @param {string} [content] - The rendered content.
|
|
16
|
-
*/
|
|
17
|
-
interface RenderCallback {
|
|
18
|
-
(err: Error | null, content?: string): void;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Function for rendering templates.
|
|
22
|
-
* @typedef Engine
|
|
23
|
-
*
|
|
24
|
-
* @param {string} viewPath - The path to the directory containing the templates.
|
|
25
|
-
* @param {ConfigOptions} options - The configuration options for the template engine.
|
|
26
|
-
* @param {RenderCallback} [callback] - The callback function for rendering templates.
|
|
27
|
-
*/
|
|
28
|
-
type Engine = (viewPath: string, options: ConfigOptions, callback?: RenderCallback) => void;
|
|
29
|
-
/**
|
|
30
|
-
* Interface representing the configuration options for Handlebars templates.
|
|
31
|
-
*/
|
|
32
|
-
interface IHandlebars {
|
|
33
|
-
/**
|
|
34
|
-
* Specifies the extension name for the Handlebars templates.
|
|
35
|
-
*/
|
|
36
|
-
extName: string;
|
|
37
|
-
/**
|
|
38
|
-
* Specifies the path to the directory containing the Handlebars templates.
|
|
39
|
-
*/
|
|
40
|
-
viewPath: string;
|
|
41
|
-
/**
|
|
42
|
-
* Specifies the function for rendering Handlebars templates.
|
|
43
|
-
*/
|
|
44
|
-
engine: Engine;
|
|
45
|
-
}
|
|
46
|
-
export { IHandlebars };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IHandlebars } from "./handlebars.interface";
|
|
2
|
-
/**
|
|
3
|
-
* Type alias for the configuration options for rendering templates.
|
|
4
|
-
*
|
|
5
|
-
* Currently, this type alias is equivalent to the `IHandlebars` interface,
|
|
6
|
-
* and represents the configuration options for Handlebars templates.
|
|
7
|
-
*
|
|
8
|
-
* In the future, this type could be expanded to include configuration options
|
|
9
|
-
* for other template engines.
|
|
10
|
-
*/
|
|
11
|
-
type RenderTemplateOptions = IHandlebars;
|
|
12
|
-
export { RenderTemplateOptions };
|