neobiz 5.0.1 → 5.1.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/f.js +19 -0
- package/index.d.ts +145 -0
- package/index.js +1726 -1
- package/package.json +1 -1
- package/readme.md +18 -0
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -2,8 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
> **A simple view engine that has 100% JS features**
|
|
4
4
|
|
|
5
|
+
## Changelog
|
|
6
|
+
|
|
7
|
+
### 5.1.0 – 2026-11-27
|
|
8
|
+
|
|
9
|
+
- Default `nodoctype` is now `true`.
|
|
10
|
+
- XSS‑safe escaping for text and attributes (`escapeHtml`, `escapeAttr`).
|
|
11
|
+
- Support for class list resolution (`class` can be string, array, or object).
|
|
12
|
+
- CSS nesting with `&` and pseudo‑selectors; `compileCss` now handles `@media`.
|
|
13
|
+
- New selector engine for `.query()` supporting descendant, child, attribute, pseudo‑classes, and `:not`.
|
|
14
|
+
- Declarative control flow: `when`, `elseIf`, `else`, and `switch`/`cases`.
|
|
15
|
+
- Subtree caching via `cache` property and `clearCache`.
|
|
16
|
+
- Async error boundaries (`fallback`, `onError`).
|
|
17
|
+
- Streaming SSR (`_renderStream`) with proper fallback handling.
|
|
18
|
+
- DOM mounting API (`mount`) with event binding and scoped styles.
|
|
19
|
+
- Added CommonJS named exports for all public APIs.
|
|
20
|
+
|
|
5
21
|
Neobiz.js allows you to construct, compose, query, style, and render HTML structures using native JavaScript objects. It eliminates template compilers, JSX transpilation, and external runtime dependencies—working identically in **Node.js** and **Browsers** to generate pure HTML strings or manipulate the live DOM.
|
|
6
22
|
|
|
23
|
+
**now inline style automatically rendered without explicite .cssText **
|
|
24
|
+
|
|
7
25
|
[Express.js Integration with v4 (old) (`neobiz-express`)](https://www.npmjs.com/package/neobiz-express?activeTab=dependencies)
|
|
8
26
|
|
|
9
27
|
`if you still prefer to use v4, it is under the file name browser_v4.js`
|