kaelum 1.4.2 → 1.4.3

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/README.md CHANGED
@@ -99,12 +99,17 @@ my-api-app/
99
99
 
100
100
  ## 🧩 Core API
101
101
 
102
- > Kaelum exposes a factory — use `require('kaelum')` and call it to get an app instance:
103
-
104
- ```js
105
- const kaelum = require("kaelum");
106
- const app = kaelum();
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
 
package/index.js CHANGED
@@ -1,3 +1,2 @@
1
1
  const createApp = require("./createApp");
2
-
3
- module.exports = createApp;
2
+ module.exports = createApp;
package/index.mjs ADDED
@@ -0,0 +1,2 @@
1
+ import createApp from './index.js';
2
+ export default createApp;
package/package.json CHANGED
@@ -1,16 +1,19 @@
1
1
  {
2
2
  "name": "kaelum",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
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
- ".": "./index.js"
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"
14
17
  },
15
18
  "keywords": [
16
19
  "framework",