@mionjs/core 0.8.0-alpha.0 → 0.8.3-alpha.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/.dist/cjs/src/aot/aotCaches.cjs +18 -0
- package/.dist/cjs/src/aot/aotCaches.cjs.map +1 -0
- package/.dist/cjs/src/aot/aotCaches.d.ts +6 -0
- package/.dist/cjs/src/aot/emptyCaches.cjs +9 -0
- package/.dist/cjs/src/aot/emptyCaches.cjs.map +1 -0
- package/.dist/cjs/src/aot/emptyCaches.d.ts +3 -0
- package/.dist/esm/src/aot/aotCaches.d.ts +6 -0
- package/.dist/esm/src/aot/aotCaches.js +18 -0
- package/.dist/esm/src/aot/aotCaches.js.map +1 -0
- package/.dist/esm/src/aot/emptyCaches.d.ts +3 -0
- package/.dist/esm/src/aot/emptyCaches.js +9 -0
- package/.dist/esm/src/aot/emptyCaches.js.map +1 -0
- package/package.json +8 -2
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const src_aot_emptyCaches = require("./emptyCaches.cjs");
|
|
4
|
+
const core = require("@mionjs/core");
|
|
5
|
+
function loadAOTCaches() {
|
|
6
|
+
core.addAOTCaches(src_aot_emptyCaches.jitFnsCache, src_aot_emptyCaches.pureFnsCache);
|
|
7
|
+
core.addRoutesToCache(src_aot_emptyCaches.routerCache);
|
|
8
|
+
}
|
|
9
|
+
function getRawAOTCaches() {
|
|
10
|
+
return {
|
|
11
|
+
jitFnsCache: src_aot_emptyCaches.jitFnsCache,
|
|
12
|
+
pureFnsCache: src_aot_emptyCaches.pureFnsCache,
|
|
13
|
+
routerCache: src_aot_emptyCaches.routerCache
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
exports.getRawAOTCaches = getRawAOTCaches;
|
|
17
|
+
exports.loadAOTCaches = loadAOTCaches;
|
|
18
|
+
//# sourceMappingURL=aotCaches.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aotCaches.cjs","sources":["../../../../src/aot/aotCaches.ts"],"sourcesContent":["/* ########\n * 2026 mion\n * Author: Ma-jerez\n * License: MIT\n * The software is provided \"as is\", without warranty of any kind.\n * ######## */\n\n// this caches will be replaced by a virtual module by the mion Vite plugin with actual AOT caches when AOT is enabled\nimport {jitFnsCache, pureFnsCache, routerCache} from './emptyCaches.ts';\nimport {addAOTCaches, addRoutesToCache} from '@mionjs/core';\n\n/** Loads pre-compiled AOT caches from virtual modules and registers them in the global caches. */\nexport function loadAOTCaches(): void {\n addAOTCaches(jitFnsCache, pureFnsCache);\n addRoutesToCache(routerCache);\n}\n\n/** Returns the global caches. */\nexport function getRawAOTCaches() {\n return {\n jitFnsCache,\n pureFnsCache,\n routerCache,\n };\n}\n"],"names":["addAOTCaches","jitFnsCache","pureFnsCache","addRoutesToCache","routerCache"],"mappings":";;;;AAYO,SAAS,gBAAsB;AAClCA,OAAAA,aAAaC,oBAAAA,aAAaC,gCAAY;AACtCC,OAAAA,iBAAiBC,oBAAAA,WAAW;AAChC;AAGO,SAAS,kBAAkB;AAC9B,SAAO;AAAA,IAAA,aACHH,oBAAAA;AAAAA,IAAA,cACAC,oBAAAA;AAAAA,IAAA,aACAE,oBAAAA;AAAAA,EAAA;AAER;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jitFnsCache = {};
|
|
4
|
+
const pureFnsCache = {};
|
|
5
|
+
const routerCache = {};
|
|
6
|
+
exports.jitFnsCache = jitFnsCache;
|
|
7
|
+
exports.pureFnsCache = pureFnsCache;
|
|
8
|
+
exports.routerCache = routerCache;
|
|
9
|
+
//# sourceMappingURL=emptyCaches.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emptyCaches.cjs","sources":["../../../../src/aot/emptyCaches.ts"],"sourcesContent":["/* ########\n * 2026 mion\n * Author: Ma-jerez\n * License: MIT\n * The software is provided \"as is\", without warranty of any kind.\n * ######## */\n\n/**\n * Empty AOT caches.\n * This file will be replaced by a virtual module by the mion Vite plugin with actual AOT caches when AOT is enabled.\n */\nexport const jitFnsCache = {};\nexport const pureFnsCache = {};\nexport const routerCache = {};\n"],"names":[],"mappings":";;AAWO,MAAM,cAAc,CAAA;AACpB,MAAM,eAAe,CAAA;AACrB,MAAM,cAAc,CAAA;;;;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { routerCache, pureFnsCache, jitFnsCache } from "./emptyCaches.js";
|
|
2
|
+
import { addAOTCaches, addRoutesToCache } from "@mionjs/core";
|
|
3
|
+
function loadAOTCaches() {
|
|
4
|
+
addAOTCaches(jitFnsCache, pureFnsCache);
|
|
5
|
+
addRoutesToCache(routerCache);
|
|
6
|
+
}
|
|
7
|
+
function getRawAOTCaches() {
|
|
8
|
+
return {
|
|
9
|
+
jitFnsCache,
|
|
10
|
+
pureFnsCache,
|
|
11
|
+
routerCache
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
getRawAOTCaches,
|
|
16
|
+
loadAOTCaches
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=aotCaches.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aotCaches.js","sources":["../../../../src/aot/aotCaches.ts"],"sourcesContent":["/* ########\n * 2026 mion\n * Author: Ma-jerez\n * License: MIT\n * The software is provided \"as is\", without warranty of any kind.\n * ######## */\n\n// this caches will be replaced by a virtual module by the mion Vite plugin with actual AOT caches when AOT is enabled\nimport {jitFnsCache, pureFnsCache, routerCache} from './emptyCaches.ts';\nimport {addAOTCaches, addRoutesToCache} from '@mionjs/core';\n\n/** Loads pre-compiled AOT caches from virtual modules and registers them in the global caches. */\nexport function loadAOTCaches(): void {\n addAOTCaches(jitFnsCache, pureFnsCache);\n addRoutesToCache(routerCache);\n}\n\n/** Returns the global caches. */\nexport function getRawAOTCaches() {\n return {\n jitFnsCache,\n pureFnsCache,\n routerCache,\n };\n}\n"],"names":[],"mappings":";;AAYO,SAAS,gBAAsB;AAClC,eAAa,aAAa,YAAY;AACtC,mBAAiB,WAAW;AAChC;AAGO,SAAS,kBAAkB;AAC9B,SAAO;AAAA,IACH;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAER;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emptyCaches.js","sources":["../../../../src/aot/emptyCaches.ts"],"sourcesContent":["/* ########\n * 2026 mion\n * Author: Ma-jerez\n * License: MIT\n * The software is provided \"as is\", without warranty of any kind.\n * ######## */\n\n/**\n * Empty AOT caches.\n * This file will be replaced by a virtual module by the mion Vite plugin with actual AOT caches when AOT is enabled.\n */\nexport const jitFnsCache = {};\nexport const pureFnsCache = {};\nexport const routerCache = {};\n"],"names":[],"mappings":"AAWO,MAAM,cAAc,CAAA;AACpB,MAAM,eAAe,CAAA;AACrB,MAAM,cAAc,CAAA;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mionjs/core",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3-alpha.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Core functionality required across multiple mion packages",
|
|
6
6
|
"keywords": [
|
|
@@ -26,6 +26,12 @@
|
|
|
26
26
|
"types": "./.dist/esm/index.d.ts",
|
|
27
27
|
"require": "./.dist/cjs/index.cjs",
|
|
28
28
|
"default": "./.dist/esm/index.js"
|
|
29
|
+
},
|
|
30
|
+
"./aot-caches": {
|
|
31
|
+
"source": "./src/aot/aotCaches.ts",
|
|
32
|
+
"types": "./.dist/esm/src/aot/aotCaches.d.ts",
|
|
33
|
+
"require": "./.dist/cjs/src/aot/aotCaches.cjs",
|
|
34
|
+
"default": "./.dist/esm/src/aot/aotCaches.js"
|
|
29
35
|
}
|
|
30
36
|
},
|
|
31
37
|
"directories": {
|
|
@@ -54,5 +60,5 @@
|
|
|
54
60
|
"bugs": {
|
|
55
61
|
"url": "https://github.com/MionKit/mion/issues"
|
|
56
62
|
},
|
|
57
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "54d13e9fe5fa16b2d57db8aeb21523b9cf4e7a18"
|
|
58
64
|
}
|