kaelum 1.4.2 → 1.4.4
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/.versionrc.js +20 -0
- package/README.md +14 -9
- package/cli/index.js +1 -1
- package/cli/templates/api/app.js +1 -1
- package/cli/templates/api/package.json +1 -1
- package/cli/templates/web/app.js +1 -1
- package/cli/templates/web/package.json +1 -1
- package/cli/templates/web/views/index.html +1 -1
- package/cli/utils.js +1 -1
- package/core/addRoute.js +1 -1
- package/core/apiRoute.js +1 -1
- package/core/errorHandler.js +1 -1
- package/core/healthCheck.js +1 -1
- package/core/redirect.js +1 -1
- package/core/setConfig.js +1 -1
- package/core/setMiddleware.js +1 -1
- package/core/start.js +1 -1
- package/createApp.js +1 -1
- package/index.js +0 -1
- package/index.mjs +2 -0
- package/package.json +17 -3
package/.versionrc.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
infile: 'docs/misc/changelog.md',
|
|
3
|
+
types: [
|
|
4
|
+
{ type: 'feat', section: 'Features' },
|
|
5
|
+
{ type: 'fix', section: 'Bug Fixes' },
|
|
6
|
+
{ type: 'perf', section: 'Performance Improvements' },
|
|
7
|
+
{ type: 'revert', section: 'Reverts' },
|
|
8
|
+
{ type: 'docs', section: 'Documentation', hidden: false },
|
|
9
|
+
{ type: 'style', section: 'Styles', hidden: true },
|
|
10
|
+
{ type: 'chore', section: 'Miscellaneous', hidden: false },
|
|
11
|
+
{ type: 'refactor', section: 'Code Refactoring', hidden: false },
|
|
12
|
+
{ type: 'test', section: 'Tests', hidden: true },
|
|
13
|
+
{ type: 'build', section: 'Build System', hidden: true },
|
|
14
|
+
{ type: 'ci', section: 'CI/CD', hidden: true },
|
|
15
|
+
],
|
|
16
|
+
commitUrlFormat: '{{host}}/{{owner}}/{{repository}}/commit/{{hash}}',
|
|
17
|
+
compareUrlFormat: '{{host}}/{{owner}}/{{repository}}/compare/{{previousTag}}...{{currentTag}}',
|
|
18
|
+
issueUrlFormat: '{{host}}/{{owner}}/{{repository}}/issues/{{id}}',
|
|
19
|
+
userUrlFormat: '{{host}}/{{user}}'
|
|
20
|
+
};
|
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<h1>Kaelum</h1>
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/kaelum)
|
|
6
|
-
[](https://github.com/kaelumjs/kaelum/actions)
|
|
7
7
|
[](LICENSE)
|
|
8
8
|
[](https://matheuscampagnolo.github.io/kaelum/)
|
|
9
9
|
|
|
@@ -99,12 +99,17 @@ my-api-app/
|
|
|
99
99
|
|
|
100
100
|
## 🧩 Core API
|
|
101
101
|
|
|
102
|
-
> Kaelum exposes a factory — use `require(
|
|
103
|
-
|
|
104
|
-
```js
|
|
105
|
-
|
|
106
|
-
const
|
|
107
|
-
|
|
102
|
+
> Kaelum exposes a factory — use `require` (CommonJS) or `import` (ESM) to get an app instance:
|
|
103
|
+
|
|
104
|
+
```js
|
|
105
|
+
// CommonJS
|
|
106
|
+
const kaelum = require("kaelum");
|
|
107
|
+
const app = kaelum();
|
|
108
|
+
|
|
109
|
+
// ESM
|
|
110
|
+
import kaelum from "kaelum";
|
|
111
|
+
const app = kaelum();
|
|
112
|
+
```
|
|
108
113
|
|
|
109
114
|
### `app.setConfig(options)`
|
|
110
115
|
|
|
@@ -226,7 +231,7 @@ This checks core functionality including `setConfig`, routes, and error handlers
|
|
|
226
231
|
## 🔧 Local development & contributing
|
|
227
232
|
|
|
228
233
|
```bash
|
|
229
|
-
git clone https://github.com/
|
|
234
|
+
git clone https://github.com/kaelumjs/kaelum.git
|
|
230
235
|
cd kaelum
|
|
231
236
|
npm install
|
|
232
237
|
npm link
|
|
@@ -258,7 +263,7 @@ npx kaelum create my-test --template web
|
|
|
258
263
|
|
|
259
264
|
## 📚 Links
|
|
260
265
|
|
|
261
|
-
- [GitHub](https://github.com/
|
|
266
|
+
- [GitHub](https://github.com/kaelumjs/kaelum)
|
|
262
267
|
- [npm](https://www.npmjs.com/package/kaelum)
|
|
263
268
|
- [Documentation](https://matheuscampagnolo.github.io/kaelum/)
|
|
264
269
|
|
package/cli/index.js
CHANGED
package/cli/templates/api/app.js
CHANGED
package/cli/templates/web/app.js
CHANGED
package/cli/utils.js
CHANGED
package/core/addRoute.js
CHANGED
package/core/apiRoute.js
CHANGED
package/core/errorHandler.js
CHANGED
|
@@ -136,4 +136,4 @@ function errorHandlerFactory(options = {}) {
|
|
|
136
136
|
|
|
137
137
|
// Export both default and named to keep compatibility with different import styles
|
|
138
138
|
module.exports = errorHandlerFactory;
|
|
139
|
-
module.exports.errorHandler = errorHandlerFactory;
|
|
139
|
+
module.exports.errorHandler = errorHandlerFactory;
|
package/core/healthCheck.js
CHANGED
package/core/redirect.js
CHANGED
package/core/setConfig.js
CHANGED
package/core/setMiddleware.js
CHANGED
package/core/start.js
CHANGED
package/createApp.js
CHANGED
package/index.js
CHANGED
package/index.mjs
ADDED
package/package.json
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kaelum",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.4",
|
|
4
4
|
"description": "A minimalist Node.js framework for building web pages and APIs with simplicity and speed.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"exports": {
|
|
7
|
-
".":
|
|
7
|
+
".": {
|
|
8
|
+
"import": "./index.mjs",
|
|
9
|
+
"require": "./index.js"
|
|
10
|
+
}
|
|
8
11
|
},
|
|
9
12
|
"bin": {
|
|
10
13
|
"kaelum": "cli/index.js"
|
|
11
14
|
},
|
|
12
15
|
"scripts": {
|
|
13
|
-
"test": "jest --verbose"
|
|
16
|
+
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js --verbose",
|
|
17
|
+
"release": "standard-version",
|
|
18
|
+
"changelog": "standard-version --skip.bump --skip.tag --skip.commit"
|
|
14
19
|
},
|
|
15
20
|
"keywords": [
|
|
16
21
|
"framework",
|
|
@@ -25,6 +30,14 @@
|
|
|
25
30
|
],
|
|
26
31
|
"author": "Matheus Campagnolo",
|
|
27
32
|
"license": "MIT",
|
|
33
|
+
"repository": {
|
|
34
|
+
"type": "git",
|
|
35
|
+
"url": "https://github.com/kaelumjs/kaelum.git"
|
|
36
|
+
},
|
|
37
|
+
"bugs": {
|
|
38
|
+
"url": "https://github.com/kaelumjs/kaelum/issues"
|
|
39
|
+
},
|
|
40
|
+
"homepage": "https://github.com/kaelumjs/kaelum#readme",
|
|
28
41
|
"dependencies": {
|
|
29
42
|
"cors": "^2.8.5",
|
|
30
43
|
"dotenv": "^17.2.3",
|
|
@@ -37,6 +50,7 @@
|
|
|
37
50
|
},
|
|
38
51
|
"devDependencies": {
|
|
39
52
|
"jest": "^30.2.0",
|
|
53
|
+
"standard-version": "^9.5.0",
|
|
40
54
|
"supertest": "^7.2.2"
|
|
41
55
|
}
|
|
42
56
|
}
|