@adukiorg/anza 0.3.0 → 0.3.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/CHANGELOG.md +9 -0
- package/README.md +6 -6
- package/bin/anza/anza-windows-x64.exe +0 -0
- package/package.json +1 -1
- package/src/core/ui/defs/dock.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -17,6 +17,15 @@ Versioning follows [Semantic Versioning](https://semver.org/).
|
|
|
17
17
|
|
|
18
18
|
---
|
|
19
19
|
|
|
20
|
+
## [0.3.1] — 2026-06-13
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
|
|
24
|
+
- Soften library README tone — remove sarcastic framework comparisons
|
|
25
|
+
- Update dock() example to use simplified API (no parent parameter)
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
20
29
|
## [0.3.0] — 2026-06-13
|
|
21
30
|
|
|
22
31
|
### Fixed
|
package/README.md
CHANGED
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
|
|
13
13
|
**This is** a web platform library that treats the browser as the runtime. It gives you reactive state, client-side routing, custom elements, offline sync, and animations — all as plain ES modules the browser resolves directly. No bundler. No virtual DOM. No framework lock-in.
|
|
14
14
|
|
|
15
|
-
**This is NOT** another React competitor.
|
|
15
|
+
**This is NOT** another React competitor. React is excellent for complex applications with rich ecosystems. Anza is for projects that prefer browser-native APIs and minimal tooling. We're not trying to replace React — we're offering a different approach.
|
|
16
16
|
|
|
17
|
-
**This is NOT** Angular.
|
|
17
|
+
**This is NOT** Angular. Angular provides a comprehensive framework with powerful tooling. Anza focuses on simplicity: `element('my-button', { template: '<button>Click me</button>' })`. That's the whole API.
|
|
18
18
|
|
|
19
|
-
**This is NOT** Vue.
|
|
19
|
+
**This is NOT** Vue. Vue's template compiler and virtual DOM enable great developer experiences. Anza uses native HTML parsing — the browser handles the DOM directly, which works well for many use cases.
|
|
20
20
|
|
|
21
21
|
---
|
|
22
22
|
|
|
@@ -99,7 +99,7 @@ No build step. No JSX transform. No virtual DOM reconciliation. The browser pars
|
|
|
99
99
|
```javascript
|
|
100
100
|
import { page, dock } from '@adukiorg/anza/defs';
|
|
101
101
|
|
|
102
|
-
dock('main'
|
|
102
|
+
dock('main');
|
|
103
103
|
|
|
104
104
|
page('/', {
|
|
105
105
|
tag: 'page-home',
|
|
@@ -124,7 +124,7 @@ store.subscribe('count', () => {
|
|
|
124
124
|
store.set('count', 1);
|
|
125
125
|
```
|
|
126
126
|
|
|
127
|
-
Proxy-based reactivity. Batched updates. Cross-tab sync via `BroadcastChannel`. No reducers. No actions. No sagas. Just a store that notifies subscribers when data changes.
|
|
127
|
+
Proxy-based reactivity. Batched updates. Cross-tab sync via `BroadcastChannel`. No reducers. No actions. No sagas. Just a store that notifies subscribers when data changes.
|
|
128
128
|
|
|
129
129
|
### Theme Switching (Automatic)
|
|
130
130
|
|
|
@@ -135,7 +135,7 @@ theme.toggle(); // light ↔ dark
|
|
|
135
135
|
theme.set('contrast'); // high-contrast mode
|
|
136
136
|
```
|
|
137
137
|
|
|
138
|
-
No init call needed. It auto-restores from `localStorage` on import. Respects `prefers-color-scheme` if no saved preference exists. Attaches to `window.theme` for devtools access.
|
|
138
|
+
No init call needed. It auto-restores from `localStorage` on import. Respects `prefers-color-scheme` if no saved preference exists. Attaches to `window.theme` for devtools access.
|
|
139
139
|
|
|
140
140
|
---
|
|
141
141
|
|
|
Binary file
|
package/package.json
CHANGED
package/src/core/ui/defs/dock.js
CHANGED
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
* Source: definations.md §4, tasks.md Phase 6
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import { router } from '../../router/index.js';
|
|
14
|
-
import { gate } from '../../router/boot.js';
|
|
15
13
|
import { element } from '../define/element.js';
|
|
14
|
+
import { gate } from '../../router/boot.js';
|
|
15
|
+
import { router } from '../../router/index.js';
|
|
16
16
|
import { translate } from './spec.js';
|
|
17
17
|
|
|
18
18
|
// Element-scoped containment so View Transitions are isolated to the dock.
|