baremetal.js 1.2.1 → 1.2.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/dist/baremetal.js CHANGED
@@ -1,12 +1,5 @@
1
1
  /**
2
- * baremetal.js v1.2.1
3
- * A lightweight, dependency-free Vanilla JavaScript SPA engine prioritizing extreme performance, native browser features, and explicit lifecycle management.
4
- * (c) 2026 dkydivyansh
5
- * Released under the GPL-3.0 License
6
- */
7
-
8
- /**
9
- * baremetal.js v1.2.1
2
+ * baremetal.js v1.2.2
10
3
  * A lightweight, dependency-free Vanilla JavaScript SPA engine prioritizing extreme performance, native browser features, and explicit lifecycle management.
11
4
  * (c) 2026 dkydivyansh
12
5
  * Released under the GPL-3.0 License
@@ -66,7 +59,7 @@ class StateManager {
66
59
  if (window.__baremetal_persist_state) {
67
60
  try {
68
61
  sessionStorage.setItem('baremetal_state', JSON.stringify(this.state));
69
- } catch(e) {}
62
+ } catch (e) { }
70
63
  }
71
64
  }
72
65
 
@@ -96,14 +89,6 @@ class StateManager {
96
89
 
97
90
  const stateManager = new StateManager();
98
91
 
99
- /**
100
- * baremetal.js v1.2.1
101
- * A lightweight, dependency-free Vanilla JavaScript SPA engine prioritizing extreme performance, native browser features, and explicit lifecycle management.
102
- * (c) 2026 dkydivyansh
103
- * Released under the GPL-3.0 License
104
- */
105
-
106
-
107
92
  const Loader = {
108
93
  activeModules: {},
109
94
  config: { keepAliveSameModules: true, debug: false, autoWrap: true, hoverPrefetch: false, showErrorNotification: false, persistState: false, virtualizeDom: false, transition: { enabled: false, simulatedDelay: 0, module: null, useViewTransitions: false } },
@@ -270,14 +255,6 @@ function loader(config) {
270
255
  return Loader.load(config);
271
256
  }
272
257
 
273
- /**
274
- * baremetal.js v1.2.1
275
- * A lightweight, dependency-free Vanilla JavaScript SPA engine prioritizing extreme performance, native browser features, and explicit lifecycle management.
276
- * (c) 2026 dkydivyansh
277
- * Released under the GPL-3.0 License
278
- */
279
-
280
-
281
258
  const Router = {
282
259
  htmlCache: {},
283
260
  scrollMemory: {},
@@ -524,13 +501,6 @@ const Router = {
524
501
  }
525
502
  };
526
503
 
527
- /**
528
- * baremetal.js v1.2.1
529
- * A lightweight, dependency-free Vanilla JavaScript SPA engine prioritizing extreme performance, native browser features, and explicit lifecycle management.
530
- * (c) 2026 dkydivyansh
531
- * Released under the GPL-3.0 License
532
- */
533
-
534
504
  class Virtualizer {
535
505
  constructor(containerId, items, renderRow, itemHeight, visibleCount = 20) {
536
506
  this.container = document.getElementById(containerId);
@@ -596,14 +566,6 @@ var virtualize$1 = /*#__PURE__*/Object.freeze({
596
566
  virtualize: virtualize
597
567
  });
598
568
 
599
- /**
600
- * baremetal.js v1.2.1
601
- * A lightweight, dependency-free Vanilla JavaScript SPA engine prioritizing extreme performance, native browser features, and explicit lifecycle management.
602
- * (c) 2026 dkydivyansh
603
- * Released under the GPL-3.0 License
604
- */
605
-
606
-
607
569
  const BareMetal = {
608
570
  state: stateManager,
609
571
  events: stateManager,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "baremetal.js",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "A lightweight, dependency-free Vanilla JavaScript SPA engine prioritizing extreme performance, native browser features, and explicit lifecycle management.",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -43,4 +43,4 @@
43
43
  "rollup": "^4.62.0",
44
44
  "vitest": "^4.1.9"
45
45
  }
46
- }
46
+ }
package/src/index.js CHANGED
@@ -1,10 +1,3 @@
1
- /**
2
- * baremetal.js v1.2.1
3
- * A lightweight, dependency-free Vanilla JavaScript SPA engine prioritizing extreme performance, native browser features, and explicit lifecycle management.
4
- * (c) 2026 dkydivyansh
5
- * Released under the GPL-3.0 License
6
- */
7
-
8
1
  import { stateManager } from './state.js';
9
2
  import { Loader, loader } from './loader.js';
10
3
  import { Router } from './router.js';
package/src/loader.js CHANGED
@@ -1,10 +1,3 @@
1
- /**
2
- * baremetal.js v1.2.1
3
- * A lightweight, dependency-free Vanilla JavaScript SPA engine prioritizing extreme performance, native browser features, and explicit lifecycle management.
4
- * (c) 2026 dkydivyansh
5
- * Released under the GPL-3.0 License
6
- */
7
-
8
1
  import { stateManager } from './state.js';
9
2
 
10
3
  export const Loader = {
package/src/router.js CHANGED
@@ -1,10 +1,3 @@
1
- /**
2
- * baremetal.js v1.2.1
3
- * A lightweight, dependency-free Vanilla JavaScript SPA engine prioritizing extreme performance, native browser features, and explicit lifecycle management.
4
- * (c) 2026 dkydivyansh
5
- * Released under the GPL-3.0 License
6
- */
7
-
8
1
  import { Loader } from './loader.js';
9
2
  import { stateManager } from './state.js';
10
3
 
package/src/state.js CHANGED
@@ -1,10 +1,3 @@
1
- /**
2
- * baremetal.js v1.2.1
3
- * A lightweight, dependency-free Vanilla JavaScript SPA engine prioritizing extreme performance, native browser features, and explicit lifecycle management.
4
- * (c) 2026 dkydivyansh
5
- * Released under the GPL-3.0 License
6
- */
7
-
8
1
  class StateManager {
9
2
  constructor() {
10
3
  this.state = {};
@@ -59,7 +52,7 @@ class StateManager {
59
52
  if (window.__baremetal_persist_state) {
60
53
  try {
61
54
  sessionStorage.setItem('baremetal_state', JSON.stringify(this.state));
62
- } catch(e) {}
55
+ } catch (e) { }
63
56
  }
64
57
  }
65
58
 
package/src/transition.js CHANGED
@@ -1,10 +1,3 @@
1
- /**
2
- * baremetal.js v1.2.1
3
- * A lightweight, dependency-free Vanilla JavaScript SPA engine prioritizing extreme performance, native browser features, and explicit lifecycle management.
4
- * (c) 2026 dkydivyansh
5
- * Released under the GPL-3.0 License
6
- */
7
-
8
1
  export function mount({ state }) {
9
2
  console.log('[Transition Module] Mounted');
10
3
 
package/src/virtualize.js CHANGED
@@ -1,10 +1,3 @@
1
- /**
2
- * baremetal.js v1.2.1
3
- * A lightweight, dependency-free Vanilla JavaScript SPA engine prioritizing extreme performance, native browser features, and explicit lifecycle management.
4
- * (c) 2026 dkydivyansh
5
- * Released under the GPL-3.0 License
6
- */
7
-
8
1
  export class Virtualizer {
9
2
  constructor(containerId, items, renderRow, itemHeight, visibleCount = 20) {
10
3
  this.container = document.getElementById(containerId);