kreftjs 0.0.4-beta → 0.0.5-beta

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/LICENSE ADDED
@@ -0,0 +1,95 @@
1
+ Copyright 2026 Maxamuud Xuseen
2
+
3
+ Elastic License 2.0
4
+
5
+ URL: https://www.elastic.co/licensing/elastic-license
6
+
7
+ ## Acceptance
8
+
9
+ By using the software, you agree to all of the terms and conditions below.
10
+
11
+ ## Copyright License
12
+
13
+ The licensor grants you a non-exclusive, royalty-free, worldwide,
14
+ non-sublicensable, non-transferable license to use, copy, distribute, make
15
+ available, and prepare derivative works of the software, in each case subject to
16
+ the limitations and conditions below.
17
+
18
+ ## Limitations
19
+
20
+ You may not provide the software to third parties as a hosted or managed
21
+ service, where the service provides users with access to any substantial set of
22
+ the features or functionality of the software.
23
+
24
+ You may not move, change, disable, or circumvent the license key functionality
25
+ in the software, and you may not remove or obscure any functionality in the
26
+ software that is protected by the license key.
27
+
28
+ You may not alter, remove, or obscure any licensing, copyright, or other notices
29
+ of the licensor in the software. Any use of the licensor’s trademarks is subject
30
+ to applicable law.
31
+
32
+ ## Patents
33
+
34
+ The licensor grants you a license, under any patent claims the licensor can
35
+ license, or becomes able to license, to make, have made, use, sell, offer for
36
+ sale, import and have imported the software, in each case subject to the
37
+ limitations and conditions in this license. This license does not cover any
38
+ patent claims that you cause to be infringed by modifications or additions to
39
+ the software. If you or your company make any written claim that the software
40
+ infringes or contributes to infringement of any patent, your patent license for
41
+ the software granted under these terms ends immediately. If your company makes
42
+ such a claim, your patent license ends immediately for work on behalf of your
43
+ company.
44
+
45
+ ## Notices
46
+
47
+ You must ensure that anyone who gets a copy of any part of the software from you
48
+ also gets a copy of these terms.
49
+
50
+ If you modify the software, you must include in any modified copies of the
51
+ software prominent notices stating that you have modified the software.
52
+
53
+ ## No Other Rights
54
+
55
+ These terms do not imply any licenses other than those expressly granted in
56
+ these terms.
57
+
58
+ ## Termination
59
+
60
+ If you use the software in violation of these terms, such use is not licensed,
61
+ and your licenses will automatically terminate. If the licensor provides you
62
+ with a notice of your violation, and you cease all violation of this license no
63
+ later than 30 days after you receive that notice, your licenses will be
64
+ reinstated retroactively. However, if you violate these terms after such
65
+ reinstatement, any additional violation of these terms will cause your licenses
66
+ to terminate automatically and permanently.
67
+
68
+ ## No Liability
69
+
70
+ *As far as the law allows, the software comes as is, without any warranty or
71
+ condition, and the licensor will not be liable to you for any damages arising
72
+ out of these terms or the use or nature of the software, under any kind of
73
+ legal claim.*
74
+
75
+ ## Definitions
76
+
77
+ The **licensor** is the entity offering these terms, and the **software** is the
78
+ software the licensor makes available under these terms, including any portion
79
+ of it.
80
+
81
+ **you** refers to the individual or entity agreeing to these terms.
82
+
83
+ **your company** is any legal entity, sole proprietorship, or other kind of
84
+ organization that you work for, plus all organizations that have control over,
85
+ are under the control of, or are under common control with that
86
+ organization. **control** means ownership of substantially all the assets of an
87
+ entity, or the power to direct its management and policies by vote, contract, or
88
+ otherwise. Control can be direct or indirect.
89
+
90
+ **your licenses** are all the licenses granted to you for the software under
91
+ these terms.
92
+
93
+ **use** means anything you do with the software requiring one of your licenses.
94
+
95
+ **trademark** means trademarks, service marks, and similar rights.
package/README.md CHANGED
@@ -75,7 +75,7 @@ Views are escaped, logins use HttpOnly cookies with CSRF protection, passwords u
75
75
 
76
76
  ## Migrating from Som.js
77
77
 
78
- Kreft is Som.js under a new name: the package is `kreftjs` (version 0.0.4-beta), the command is `kreft` (`kreftjs` works too), the global is `Kreftjs` and component files end in `.kreftjs`. The old names keep working, so an existing project runs without edits. New files and everything the tools write use the new names. Move over when it suits you. (`kreft` was an earlier spelling of the new name; it is accepted in the same places.)
78
+ Kreft is Som.js under a new name: the package is `kreftjs` (version 0.0.5-beta), the command is `kreft` (`kreftjs` works too), the global is `Kreftjs` and component files end in `.kreftjs`. The old names keep working, so an existing project runs without edits. New files and everything the tools write use the new names. Move over when it suits you. (`kreft` was an earlier spelling of the new name; it is accepted in the same places.)
79
79
 
80
80
  | Som.js | Kreft | Still works? |
81
81
  |---|---|---|
@@ -101,4 +101,4 @@ Kept on purpose, with a TODO for 3.1: the `som_migrations` table (renaming it wo
101
101
 
102
102
  ## License
103
103
 
104
- See the `LICENSE` file once it is published. Until then, no license is granted.
104
+ Kreft is released under the [Elastic License 2.0](LICENSE). You may use it, including to build and sell your own applications, copy it and change it. You may not offer Kreft itself to others as a hosted or managed service, and you may not remove or hide its license notices.
package/docs/README.md CHANGED
@@ -82,7 +82,7 @@ npx kreftjs dev
82
82
  ### Check that it works
83
83
 
84
84
  ```bash
85
- kreft --version # for example 0.0.4-beta
85
+ kreft --version # for example 0.0.5-beta
86
86
  kreft about # Kreft and Node.js versions, this project's settings and drivers
87
87
  kreft list # every command your version has
88
88
  ```
package/kreftjs.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for Kreft 0.0.4-beta
1
+ // Type definitions for Kreft 0.0.5-beta
2
2
  // Use from TypeScript or for editor hints in plain JavaScript (// @ts-check).
3
3
 
4
4
  export interface Signal<T> { value: T }
package/kreftjs.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Kreft v0.0.4-beta — reactive by nature
2
+ * Kreft v0.0.5-beta — reactive by nature
3
3
  * The .kreftjs component language (state · derive · action · when · watch · on),
4
4
  * { } views with k-if / k-each / k-model, components, slots, router, stores,
5
5
  * share / receive, event bus and a template engine.
@@ -5032,7 +5032,7 @@
5032
5032
  stores, storeLog, busLog,
5033
5033
  };
5034
5034
 
5035
- const VERSION = '0.0.4-beta';
5035
+ const VERSION = '0.0.5-beta';
5036
5036
  const Kreftjs = {
5037
5037
  version: VERSION,
5038
5038
  // PUBLIC_ values from .env (kreft dev and kreft build put them here); never secrets
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "kreftjs",
3
- "version": "0.0.4-beta",
3
+ "version": "0.0.5-beta",
4
4
  "description": "A tiny reactive framework with its own component language (.kreftjs files): router with nested routes, stores, saved data, animations, an API client, hot reload, DevTools and a template engine.",
5
+ "license": "Elastic-2.0",
5
6
  "main": "kreftjs.js",
6
7
  "browser": "kreftjs.js",
7
8
  "bin": {
@@ -90,7 +90,7 @@ action copyReport() {
90
90
  <div class="badges">
91
91
  <span class="badge danger-badge">HTTP {status}</span>
92
92
  <span class="badge solid">{currentTitle}</span>
93
- <span class="badge">Kreft {Kreftjs.version || '0.0.4-beta'}</span>
93
+ <span class="badge">Kreft {Kreftjs.version || '0.0.5-beta'}</span>
94
94
  </div>
95
95
  <div class="actions">
96
96
  <button class="sm" @click={copyReport}>{copied ? 'Copied Markdown' : 'Copy Report'}</button>
@@ -187,7 +187,7 @@ action copyReport() {
187
187
  <h3>Kreft Runtime</h3>
188
188
  <table>
189
189
  <tbody>
190
- <tr><th>Engine</th><td><code>Kreft v{Kreftjs.version || '0.0.4-beta'}</code></td></tr>
190
+ <tr><th>Engine</th><td><code>Kreft v{Kreftjs.version || '0.0.5-beta'}</code></td></tr>
191
191
  <tr><th>Sanitizer</th><td><code>Active (cleanHtml / SafeHtml)</code></td></tr>
192
192
  <tr><th>Environment</th><td><code>development (APP_DEBUG=true)</code></td></tr>
193
193
  </tbody>
@@ -1,4 +1,4 @@
1
- // Type definitions for Kreft 0.0.4-beta
1
+ // Type definitions for Kreft 0.0.5-beta
2
2
  // Use from TypeScript or for editor hints in plain JavaScript (// @ts-check).
3
3
 
4
4
  export interface Signal<T> { value: T }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Kreft v0.0.4-beta — reactive by nature
2
+ * Kreft v0.0.5-beta — reactive by nature
3
3
  * The .kreftjs component language (state · derive · action · when · watch · on),
4
4
  * { } views with k-if / k-each / k-model, components, slots, router, stores,
5
5
  * share / receive, event bus and a template engine.
@@ -5032,7 +5032,7 @@
5032
5032
  stores, storeLog, busLog,
5033
5033
  };
5034
5034
 
5035
- const VERSION = '0.0.4-beta';
5035
+ const VERSION = '0.0.5-beta';
5036
5036
  const Kreftjs = {
5037
5037
  version: VERSION,
5038
5038
  // PUBLIC_ values from .env (kreft dev and kreft build put them here); never secrets
@@ -110,7 +110,7 @@ load board = api.get('/api/dashboard')
110
110
  <div class="info-list">
111
111
  <div class="info-item">
112
112
  <span class="info-label">Framework Engine</span>
113
- <span class="info-value">Kreft {Kreftjs.version || '0.0.4-beta'}</span>
113
+ <span class="info-value">Kreft {Kreftjs.version || '0.0.5-beta'}</span>
114
114
  </div>
115
115
  <div class="info-item">
116
116
  <span class="info-label">Active Database</span>
@@ -116,7 +116,7 @@ action copyReport() {
116
116
  <div class="hero-badges">
117
117
  <span class="badge-exception">{currentTitle}</span>
118
118
  <span class="badge-env">Node.js {typeof process !== 'undefined' ? process.version : 'v22.0.0'}</span>
119
- <span class="badge-env">Kreft v0.0.4-beta</span>
119
+ <span class="badge-env">Kreft v0.0.5-beta</span>
120
120
  </div>
121
121
  <h1 class="hero-error-message">{currentMessage}</h1>
122
122
  </div>