@mulanjs/mulanjs 1.0.1-dev.20260228084130 → 1.0.1-dev.20260228085805
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 +3 -1
- package/package.json +1 -1
- package/src/cli/index.js +4 -4
package/README.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@mulanjs/mulanjs)
|
|
4
4
|
[](https://opensource.org/licenses/MIT)
|
|
5
|
+
[](#iron-fortress-security)
|
|
5
6
|
|
|
6
7
|
> **"The Framework of Power. Zero Runtime Overhead. Pure ASTR Evolution."**
|
|
7
8
|
|
|
@@ -21,6 +22,7 @@ Want to try the latest features before they are stable? Use the development buil
|
|
|
21
22
|
|
|
22
23
|
**Option A: Create a New Project (Recommended)**
|
|
23
24
|
```bash
|
|
25
|
+
# Secured with Iron Fortress (Auto-overrides for known vulnerabilities)
|
|
24
26
|
npx @mulanjs/mulanjs@dev init my-project
|
|
25
27
|
```
|
|
26
28
|
|
|
@@ -33,7 +35,7 @@ npm install @mulanjs/mulanjs@dev
|
|
|
33
35
|
|
|
34
36
|
* **Signal Reactivity Engine** ⚡: Fine-grained reactivity that tracks exact dependencies, eliminating the need for a Virtual DOM.
|
|
35
37
|
* **ASTR-Q+ Engine** 🌌: Simulated quantum registers with **Quantum Loops** (`muParallel`, `muSwitch`) for complex probabilistic branching.
|
|
36
|
-
* **Iron Fortress Security** 🛡️: Built-in
|
|
38
|
+
* **Iron Fortress Security** 🛡️: Built-in security module that auto-sanitizes inputs, enforces dependency overrides, and generates CSP headers.
|
|
37
39
|
* **Mulan Cycle** 🔄: A redefined component lifecycle (Init, Mount, Destroy) for predictable state management.
|
|
38
40
|
* **TypeScript First** 🟦: Built from the ground up with TypeScript for world-class type safety.
|
|
39
41
|
* **Mulan Power Server** 🚀: Instant, state-preserving Hot Module Replacement (HMR) powered by the Compiler.
|
package/package.json
CHANGED
package/src/cli/index.js
CHANGED
|
@@ -8,10 +8,12 @@ const readline = require('readline');
|
|
|
8
8
|
|
|
9
9
|
const program = new Command();
|
|
10
10
|
|
|
11
|
+
const ownPackage = require('../../package.json');
|
|
12
|
+
|
|
11
13
|
program
|
|
12
14
|
.name('mulan')
|
|
13
15
|
.description('MulanJS CLI - The World\'s Most Powerful ASTR-Q Framework CLI')
|
|
14
|
-
.version(
|
|
16
|
+
.version(ownPackage.version);
|
|
15
17
|
|
|
16
18
|
// --- Auditor Helper Functions (Legitimate Shell Access) ---
|
|
17
19
|
function shell(command, options = {}) {
|
|
@@ -50,7 +52,7 @@ const delay = ms => new Promise(res => setTimeout(res, ms));
|
|
|
50
52
|
|
|
51
53
|
async function printBanner() {
|
|
52
54
|
const lines = [
|
|
53
|
-
|
|
55
|
+
`\x1b[35mMULANJS v${ownPackage.version}\x1b[0m`,
|
|
54
56
|
'\x1b[33m⚡ THE WORLD\'S MOST POWERFUL ASTR-Q FRAMEWORK ⚡\x1b[0m',
|
|
55
57
|
'\x1b[36mIron Fortress Security: ACTIVE\x1b[0m',
|
|
56
58
|
'-'.repeat(50)
|
|
@@ -131,8 +133,6 @@ program
|
|
|
131
133
|
await fs.ensureDir(compPath);
|
|
132
134
|
await fs.ensureDir(pagesPath);
|
|
133
135
|
|
|
134
|
-
const ownPackage = require('../../package.json');
|
|
135
|
-
|
|
136
136
|
// 2. config files
|
|
137
137
|
const packageJson = {
|
|
138
138
|
name: projectName,
|