sigx 0.4.0 → 0.4.1

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 CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Andreas Ekdahl
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.
1
+ MIT License
2
+
3
+ Copyright (c) 2025-2026 Andreas Ekdahl
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.
package/README.md CHANGED
@@ -1,45 +1,45 @@
1
- # SignalX
2
-
3
- Lightweight reactive component framework with signals and TSX support. This is the main entry point that re-exports the public API from `@sigx/reactivity`, `@sigx/runtime-core`, and `@sigx/runtime-dom`.
4
-
5
- ## Install
6
-
7
- ```bash
8
- npm install sigx
9
- ```
10
-
11
- ## Usage
12
-
13
- ```tsx
14
- import { component, signal, render } from 'sigx';
15
-
16
- const Counter = component(() => {
17
- const count = signal(0);
18
-
19
- return () => (
20
- <div>
21
- <p>Count: {count.value}</p>
22
- <button onClick={() => count.value++}>Increment</button>
23
- </div>
24
- );
25
- });
26
-
27
- render(<Counter />, document.getElementById('app')!);
28
- ```
29
-
30
- ## Key Exports
31
-
32
- - **Reactivity** — `signal`, `computed`, `effect`, `batch`, `watch`, `untrack`
33
- - **Components** — `component`, `lazy`, `defineApp`
34
- - **Lifecycle** — `onMounted`, `onUnmounted`, `onCreated`, `onUpdated`
35
- - **Rendering** — `render`, `Portal`, `Suspense`, `Fragment`
36
- - **Control Flow** — `Show`, `Switch`, `Match`
37
- - **JSX** — `jsx`, `jsxs`, `jsxDEV`
38
-
39
- ## Documentation
40
-
41
- Full documentation and guides are available at the [SignalX repository](https://github.com/signalxjs/core).
42
-
43
- ## License
44
-
45
- [MIT](https://github.com/signalxjs/core/blob/main/LICENSE)
1
+ # SignalX
2
+
3
+ Lightweight reactive component framework with signals and TSX support. This is the main entry point that re-exports the public API from `@sigx/reactivity`, `@sigx/runtime-core`, and `@sigx/runtime-dom`.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install sigx
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```tsx
14
+ import { component, signal, render } from 'sigx';
15
+
16
+ const Counter = component(() => {
17
+ const count = signal(0);
18
+
19
+ return () => (
20
+ <div>
21
+ <p>Count: {count.value}</p>
22
+ <button onClick={() => count.value++}>Increment</button>
23
+ </div>
24
+ );
25
+ });
26
+
27
+ render(<Counter />, document.getElementById('app')!);
28
+ ```
29
+
30
+ ## Key Exports
31
+
32
+ - **Reactivity** — `signal`, `computed`, `effect`, `batch`, `watch`, `untrack`
33
+ - **Components** — `component`, `lazy`, `defineApp`
34
+ - **Lifecycle** — `onMounted`, `onUnmounted`, `onCreated`, `onUpdated`
35
+ - **Rendering** — `render`, `Portal`, `Suspense`, `Fragment`
36
+ - **Control Flow** — `Show`, `Switch`, `Match`
37
+ - **JSX** — `jsx`, `jsxs`, `jsxDEV`
38
+
39
+ ## Documentation
40
+
41
+ Full documentation and guides are available at the [SignalX repository](https://github.com/signalxjs/core).
42
+
43
+ ## License
44
+
45
+ [MIT](https://github.com/signalxjs/core/blob/main/LICENSE)
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,mBAAmB,CAAC;AAG3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AAGnC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACvF,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,mBAAmB,CAAC;AAG3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AAGnC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACvF,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sigx",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "SignalX - Lightweight reactive component framework with signals and TSX support",
5
5
  "type": "module",
6
6
  "main": "./dist/sigx.js",
@@ -52,14 +52,14 @@
52
52
  "node": "^20.19.0 || >=22.12.0"
53
53
  },
54
54
  "dependencies": {
55
- "@sigx/runtime-dom": "^0.4.0",
56
- "@sigx/reactivity": "^0.4.0",
57
- "@sigx/runtime-core": "^0.4.0"
55
+ "@sigx/reactivity": "^0.4.1",
56
+ "@sigx/runtime-dom": "^0.4.1",
57
+ "@sigx/runtime-core": "^0.4.1"
58
58
  },
59
59
  "devDependencies": {
60
- "typescript": "^5.9.3",
61
- "vite": "^8.0.3",
62
- "@sigx/vite": "^0.4.0"
60
+ "typescript": "^6.0.3",
61
+ "vite": "^8.0.11",
62
+ "@sigx/vite": "^0.4.1"
63
63
  },
64
64
  "scripts": {
65
65
  "build": "vite build && tsgo --emitDeclarationOnly",