mhx 2026.1.15 → 2026.1.16

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/index.mjs CHANGED
@@ -9636,7 +9636,7 @@ const get_instance = () => f4ah6o$mhx$core$$global_mhx;
9636
9636
 
9637
9637
  export const init_mhx = f4ah6o$mhx$core$$init_mhx;
9638
9638
  export { process, handle_event, get_instance };
9639
- export const version = f4ah6o$mhx$$version;
9639
+ export const version = "2026.1.16";
9640
9640
  export const on_fetch_success = f4ah6o$mhx$network$$on_fetch_success;
9641
9641
  export const on_fetch_error = f4ah6o$mhx$network$$on_fetch_error;
9642
9642
  export const on_mutation_observed = f4ah6o$mhx$core$$on_mutation_observed;
package/npm/postbuild.mjs CHANGED
@@ -1,4 +1,9 @@
1
- import { copyFileSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
1
+ import {
2
+ copyFileSync,
3
+ mkdirSync,
4
+ readFileSync,
5
+ writeFileSync,
6
+ } from "node:fs";
2
7
  import { join } from "node:path";
3
8
 
4
9
  const root = process.cwd();
@@ -9,6 +14,8 @@ const buildFfi = join(root, "src/ffi/mhx_ffi.js");
9
14
  mkdirSync(distDir, { recursive: true });
10
15
 
11
16
  const rawMainJs = readFileSync(buildMain, "utf8");
17
+ const packageJson = JSON.parse(readFileSync(join(root, "package.json"), "utf8"));
18
+ const packageVersion = String(packageJson.version ?? "0.0.0");
12
19
  let esmMainJs = rawMainJs;
13
20
  const ffiHeader =
14
21
  'import mhxFfi from "./mhx_ffi.js";\nconst mhx_ffi = mhxFfi;\n';
@@ -29,7 +36,7 @@ if (!esmMainJs.startsWith('import mhxFfi from "./mhx_ffi.js";')) {
29
36
  const exportsBlock = `
30
37
  export const init_mhx = f4ah6o$mhx$core$$init_mhx;
31
38
  export { process, handle_event, get_instance };
32
- export const version = f4ah6o$mhx$$version;
39
+ export const version = ${JSON.stringify(packageVersion)};
33
40
  export const on_fetch_success = f4ah6o$mhx$network$$on_fetch_success;
34
41
  export const on_fetch_error = f4ah6o$mhx$network$$on_fetch_error;
35
42
  export const on_mutation_observed = f4ah6o$mhx$core$$on_mutation_observed;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mhx",
3
- "version": "2026.1.15",
3
+ "version": "2026.1.16",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./npm/index.js",