@k37z3r/jbase 2.1.1 → 2.1.2
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 +8 -1
- package/README.md +1 -1
- package/dist/browser.d.ts +2 -3
- package/dist/browser.d.ts.map +1 -1
- package/dist/index.cjs +8 -3
- package/dist/index.cjs.map +2 -2
- package/dist/index.d.ts +97 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +8 -3
- package/dist/index.mjs.map +2 -2
- package/dist/jbase.browser.js +474 -9
- package/dist/jbase.browser.js.map +3 -3
- package/dist/jbase.min.js +2 -2
- package/dist/jbase.min.js.map +3 -3
- package/dist/server.js +10 -2
- package/dist/server.js.map +2 -2
- package/package.json +1 -1
- package/wiki/Home.md +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -61,4 +61,11 @@ All notable changes to this project will be documented in this file.
|
|
|
61
61
|
|
|
62
62
|
* **CSS Module (`css/styles.ts`):** Enhanced the `css()` method to support passing an object (`Record<string, string | number>`) for setting multiple CSS properties simultaneously (e.g., `css({'background-color': 'blue', 'font-size': '14px'})`).
|
|
63
63
|
* **CSS Module (`css/styles.ts`):** Improved handling of kebab-case property names inside the `css()` method by utilizing `style.setProperty()` for greater robustness.
|
|
64
|
-
* **HTTP Module (`http/get.ts`):** Fixed a critical bug in `getText()` where it incorrectly attempted to parse the response with `JSON.parse()` instead of returning the raw text. It now safely returns the raw string/HTML as intended.
|
|
64
|
+
* **HTTP Module (`http/get.ts`):** Fixed a critical bug in `getText()` where it incorrectly attempted to parse the response with `JSON.parse()` instead of returning the raw text. It now safely returns the raw string/HTML as intended.
|
|
65
|
+
|
|
66
|
+
## [2.1.2] - 2026-02-22
|
|
67
|
+
|
|
68
|
+
### 🛡️ Fixed (Core & Browser Scope)
|
|
69
|
+
|
|
70
|
+
* **Core (`src/index.ts`):** Fixed an architectural bug where the `http` and `data` modules were not accessible via the main `$` wrapper (e.g., `$.http` or `$.data`) as documented in the wiki. They are now properly attached to the `init` factory function using `Object.assign()`.
|
|
71
|
+
* **Browser Module (`src/browser.ts`):** Removed the unintended global `window.http` export to prevent global namespace pollution. The HTTP module must now be accessed exclusively through the framework instance (e.g., `$.http` or `jBase.http`).
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# jBase
|
|
2
2
|
|
|
3
|
-

|
|
4
4
|

|
|
5
5
|

|
|
6
6
|

|
package/dist/browser.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file src/browser.ts
|
|
3
|
-
* @version 2.0.
|
|
3
|
+
* @version 2.0.3
|
|
4
4
|
* @since 2.0.0
|
|
5
5
|
* @license GPL-3.0-or-later
|
|
6
6
|
* @copyright Sven Minio 2026
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* @description
|
|
10
10
|
* * Browser Entry Point. Attaches the jBase library and utilities to the global window object so they can be accessed via `$` or `jBase` in inline scripts.
|
|
11
11
|
*/
|
|
12
|
-
import { $, jBase,
|
|
12
|
+
import { $, jBase, jB, _jB, __jB, _jBase, __jBase, __ } from './index';
|
|
13
13
|
/**
|
|
14
14
|
* * TypeScript declaration merging to extend the global Window interface.
|
|
15
15
|
*/
|
|
@@ -23,7 +23,6 @@ declare global {
|
|
|
23
23
|
_jBase: typeof _jBase;
|
|
24
24
|
__jBase: typeof __jBase;
|
|
25
25
|
__: typeof __;
|
|
26
|
-
http: typeof http;
|
|
27
26
|
}
|
|
28
27
|
}
|
|
29
28
|
//# sourceMappingURL=browser.d.ts.map
|
package/dist/browser.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAEvE;;GAEG;AACH,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;QACZ,CAAC,EAAE,OAAO,CAAC,CAAC;QACZ,KAAK,EAAE,OAAO,KAAK,CAAC;QACpB,EAAE,EAAE,OAAO,EAAE,CAAC;QACd,GAAG,EAAE,OAAO,GAAG,CAAC;QAChB,IAAI,EAAE,OAAO,IAAI,CAAC;QAClB,MAAM,EAAE,OAAO,MAAM,CAAC;QACtB,OAAO,EAAE,OAAO,OAAO,CAAC;QACxB,EAAE,EAAE,OAAO,EAAE,CAAC;KACjB;CACJ"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @k37z3r/jbase - A modern micro-framework for the web: jBase offers the familiar syntax of classic DOM libraries, but without their baggage. Fully typed, modular, and optimized for modern browser engines.
|
|
3
|
-
* @version 2.1.
|
|
3
|
+
* @version 2.1.2
|
|
4
4
|
* @homepage https://github.com/k37z3r/jBase-2
|
|
5
5
|
* @author Sven Minio (https://github.com/k37z3r/jBase-2)
|
|
6
6
|
* @license GPL-3.0-or-later
|
|
@@ -1859,9 +1859,14 @@ Object.assign(jBase.prototype, cssMethods);
|
|
|
1859
1859
|
Object.assign(jBase.prototype, eventMethods);
|
|
1860
1860
|
Object.assign(jBase.prototype, domMethods);
|
|
1861
1861
|
Object.assign(jBase.prototype, effectMethods);
|
|
1862
|
-
var
|
|
1862
|
+
var initFn = (selector) => {
|
|
1863
1863
|
return new jBase(selector);
|
|
1864
1864
|
};
|
|
1865
|
+
var init = Object.assign(initFn, {
|
|
1866
|
+
http,
|
|
1867
|
+
data,
|
|
1868
|
+
fn: jBase.prototype
|
|
1869
|
+
});
|
|
1865
1870
|
var bind = (window2) => {
|
|
1866
1871
|
const doc = window2.document;
|
|
1867
1872
|
const boundInit = (selector) => new jBase(selector, doc);
|
|
@@ -2287,7 +2292,7 @@ var __ = init;
|
|
|
2287
2292
|
*/
|
|
2288
2293
|
/**
|
|
2289
2294
|
* @file src/index.ts
|
|
2290
|
-
* @version 2.1.
|
|
2295
|
+
* @version 2.1.2
|
|
2291
2296
|
* @since 2.0.0
|
|
2292
2297
|
* @license GPL-3.0-or-later
|
|
2293
2298
|
* @copyright Sven Minio 2026
|