humanjs-core 1.0.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/CHANGELOG.md +64 -0
- package/LICENSE +21 -0
- package/README.md +655 -0
- package/examples/api-example/app.js +365 -0
- package/examples/counter/app.js +141 -0
- package/examples/human-counter/app.human +27 -0
- package/examples/human-counter/app.js +77 -0
- package/examples/routing/app.js +129 -0
- package/examples/simple-js/app.js +30 -0
- package/examples/todo-app/app.js +378 -0
- package/examples/user-dashboard/app.js +0 -0
- package/package.json +78 -0
- package/scripts/human-compile.js +43 -0
- package/scripts/humanjs.js +700 -0
- package/src/compiler/human.js +194 -0
- package/src/core/component.js +381 -0
- package/src/core/events.js +130 -0
- package/src/core/render.js +173 -0
- package/src/core/router.js +274 -0
- package/src/core/state.js +114 -0
- package/src/index.js +61 -0
- package/src/plugins/http.js +167 -0
- package/src/plugins/storage.js +181 -0
- package/src/plugins/validator.js +193 -0
- package/src/utils/dom.js +0 -0
- package/src/utils/helpers.js +209 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 1.0.0
|
|
4
|
+
|
|
5
|
+
- First public release under the `humanjs-core` package name.
|
|
6
|
+
|
|
7
|
+
## 1.1.9
|
|
8
|
+
|
|
9
|
+
- Fixed the starter app render path so the scaffolded home page shows its full structure again on first run.
|
|
10
|
+
|
|
11
|
+
## 1.1.8
|
|
12
|
+
|
|
13
|
+
- Fixed async route rendering so starter pages no longer show `[object Promise]`.
|
|
14
|
+
|
|
15
|
+
## 1.1.7
|
|
16
|
+
|
|
17
|
+
- Updated the generated starter app users receive from `npx ... create`.
|
|
18
|
+
|
|
19
|
+
## 1.1.6
|
|
20
|
+
|
|
21
|
+
- Removed the temporary local demo folders from the repo workspace.
|
|
22
|
+
- Refined the generated starter into a cleaner Dracula layout with a tighter navbar and footer.
|
|
23
|
+
- Simplified the default generated app so the first screen is a straightforward counter with routing still included.
|
|
24
|
+
- Kept the generated `api`, `components`, `layouts`, `routes`, and `styles` structure while reducing filler content.
|
|
25
|
+
|
|
26
|
+
## 1.1.5
|
|
27
|
+
|
|
28
|
+
- Refined the generated starter into a cleaner counter-first app with less text.
|
|
29
|
+
- Kept routing, components, layouts, and the `api/` folder while simplifying the default pages.
|
|
30
|
+
- Updated the starter branding to use the hosted HumanJS logo.
|
|
31
|
+
- Tightened the Dracula glass styling for a cleaner navbar, footer, cards, and counter panel.
|
|
32
|
+
|
|
33
|
+
## 1.1.4
|
|
34
|
+
|
|
35
|
+
- Upgraded the generated starter design with a real navbar and footer.
|
|
36
|
+
- Added a branded HumanJS mark and inline starter favicon.
|
|
37
|
+
- Switched the starter visual system to a Dracula-inspired theme.
|
|
38
|
+
- Improved the starter landing page content and presentation.
|
|
39
|
+
|
|
40
|
+
## 1.1.3
|
|
41
|
+
|
|
42
|
+
- Upgraded the create-app scaffold to generate a fuller starter structure.
|
|
43
|
+
- New apps now include `api`, `components`, `layouts`, `routes`, and `styles` folders.
|
|
44
|
+
- Added `@/` import alias support in the generated app via import maps.
|
|
45
|
+
- Starter app now ships with routing, layouts, reusable components, and a stronger default design.
|
|
46
|
+
|
|
47
|
+
## 1.1.2
|
|
48
|
+
|
|
49
|
+
- Added `app.simple(...)` for low-boilerplate `.js` apps with `{count}` and `@click="count += 1"` syntax.
|
|
50
|
+
- Added a simple JS example and made it the default hosted demo.
|
|
51
|
+
- Updated the create-app scaffold to generate `src/app.js` instead of `src/app.human`.
|
|
52
|
+
|
|
53
|
+
## 1.1.1
|
|
54
|
+
|
|
55
|
+
- Added `humanjs create <app-name>` scaffold command.
|
|
56
|
+
- Generated apps now include a runnable structure with `index.html`, `src/app.human`, and an import map.
|
|
57
|
+
- Fixed docs to use the scoped package install and scaffold commands.
|
|
58
|
+
|
|
59
|
+
## 1.1.0
|
|
60
|
+
|
|
61
|
+
- Added `app.human(...)` high-level API.
|
|
62
|
+
- Added `.human` language compiler and browser loader.
|
|
63
|
+
- Added `humanjs` CLI for compiling `.human` files.
|
|
64
|
+
- Updated examples and docs for the new human-first workflow.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Abderrazzak Elouazghi
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|