jj 2.9.0 β†’ 3.0.0-rc.3

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 CHANGED
@@ -4,8 +4,39 @@
4
4
 
5
5
  **JJ** is a lightweight, no-transpilation library for modern web development. What You Write Is What Is Run (WYWIWIR).
6
6
 
7
+ JJ complements browser-native capabilities instead of replacing them with a thick abstraction layer.
8
+ It is designed for moderate to advanced web developers and AI agents that want fluent DOM helpers while staying close to standards.
9
+
7
10
  ## ⚑ Quick Start
8
11
 
12
+ CDN:
13
+
14
+ [Import map](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/script/type/importmap): Add this to your HTML:
15
+
16
+ ```html
17
+ <script type="importmap">
18
+ {
19
+ "jj": "https://cdn.jsdelivr.net/npm/jj/lib/bundle.min.js"
20
+ // Or a specific version
21
+ "jj": "https://cdn.jsdelivr.net/npm/jj@2/lib/bundle.min.js
22
+ }
23
+ </script>
24
+ ```
25
+
26
+ And then:
27
+
28
+ ```js
29
+ import { JJHE } from 'jj'
30
+ ```
31
+
32
+ CDN:
33
+
34
+ ```js
35
+ import { JJHE } from 'https://cdn.jsdelivr.net/npm/jj/lib/bundle.min.js'
36
+ ```
37
+
38
+ NPM:
39
+
9
40
  ```bash
10
41
  npm i jj
11
42
  ```
@@ -19,12 +50,26 @@ JJHE.create('div')
19
50
  .on('click', () => console.log('Hi'))
20
51
  ```
21
52
 
53
+ Use namespace-aware wrappers for non-HTML elements:
54
+
55
+ ```js
56
+ import { JJSE, JJME } from 'jj'
57
+
58
+ const icon = JJSE.create('svg').setAttr('viewBox', '0 0 24 24')
59
+ const formula = JJME.create('math').addChild(JJME.create('mi').setText('x'))
60
+ ```
61
+
22
62
  ## πŸš€ Why JJ?
23
63
 
24
64
  - **Zero Build** – Runs directly in modern browsers
65
+ - **Zero Dependencies** – Integrated, efficient, and not vulnerable to supply chain attacks
25
66
  - **Native Speed** – Direct DOM manipulation, no VDOM overhead
26
67
  - **Web Standards** – First-class Web Components support
27
68
  - **Fluent API** – Chainable methods for cleaner code
69
+ - **AI-Optimized** – Comes with up to date skills that are versioned with the lib
70
+ - **Well documented** - Tutorials, guides, API docs and FAQs
71
+
72
+ JJ is **not** a reactive framework, template compiler, or state-management system.
28
73
 
29
74
  ## πŸ“š Learn More
30
75
 
@@ -49,8 +94,8 @@ The skill definition (`SKILL.md`) is also included in the npm package at `node_m
49
94
 
50
95
  ## βœ… Testing
51
96
 
52
- The entire public API is tested thoroghly.
53
- Tests live in the `test/` folder and mirror the source filenames (e.g., `test/JJE.test.ts` for `src/JJE.ts`) while importing the target from `./src/index.js`.
97
+ The entire public API is tested thoroughly.
98
+ Tests live in the `test/` folder and mirror the source filenames (e.g., `test/JJE.test.ts` for `src/JJE.ts`, `test/JJME.test.ts` for `src/wrappers/JJME.ts`) while importing the target from `./src/index.js`.
54
99
 
55
100
  Run tests with:
56
101
 
@@ -63,3 +108,7 @@ npm test
63
108
  MIT
64
109
 
65
110
  _Made in Sweden πŸ‡ΈπŸ‡ͺ by [Alex EwerlΓΆf](https://alexewerlof.com/)_
111
+
112
+ ```
113
+
114
+ ```