@gjsify/runtime 0.36.0 → 0.37.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.
@@ -5,10 +5,9 @@ export declare const isDeno: boolean;
5
5
  /**
6
6
  * `true` when running on GJS (GNOME JavaScript).
7
7
  *
8
- * Checks the ambient GJS host (`imports.gi`) as well as `process.versions.gjs`:
9
- * the latter is set by `@gjsify/process` via `@gjsify/node-globals`, so a bare
10
- * GJS program that does not pull the Node globals in has no `process` at all
11
- * and used to report `'Unknown'` about itself.
8
+ * Checks the ambient GJS host (`imports.gi`) as well as `process.versions.gjs`,
9
+ * which only `@gjsify/process` sets: a bare GJS program that never pulls the Node
10
+ * globals in has no `process` at all and would report `'Unknown'` about itself.
12
11
  */
13
12
  export declare const isGJS: boolean;
14
13
  /** `true` when running on Node.js — and NOT on Bun, Deno or GJS. */
@@ -22,20 +21,18 @@ export declare const isNode: boolean;
22
21
  */
23
22
  export declare const runtimeName: string;
24
23
  /**
25
- * The runtime as the CLI spells it — `'gjs' | 'node' | 'bun' | 'deno'`, the
26
- * vocabulary of `--runtime` and of `gjsify.example.runtimes`. `undefined` on an
27
- * unrecognised host.
24
+ * The runtime as the CLI spells it — the vocabulary of `--runtime` and of
25
+ * `gjsify.example.runtimes`; `undefined` on an unrecognised host.
28
26
  *
29
- * Kept distinct from {@link runtimeName}, which is prose for a user interface:
30
- * one of these two is safe to pass back to the tooling and the other is not.
27
+ * Distinct from {@link runtimeName}, which is prose for a user interface: only this
28
+ * one is safe to pass back to the tooling.
31
29
  */
32
30
  export declare const runtimeTarget: 'gjs' | 'node' | 'bun' | 'deno' | undefined;
33
31
  /**
34
- * Runtime version string, e.g. `'1.86.0'` (GJS), `'24.1.0'` (Node.js),
35
- * `'1.2.0'` (Bun), `'2.1.0'` (Deno). `undefined` if it cannot be determined.
32
+ * Runtime version string, or `undefined` if it cannot be determined.
36
33
  *
37
- * Bun and Deno are read from their own globals rather than
38
- * `process.versions.node`, which on both reports the Node version they emulate
39
- * — a real number, about a runtime you are not on.
34
+ * Bun and Deno are read from their own globals, not `process.versions.node`, which
35
+ * on both reports the Node version they emulate — a real number about a runtime you
36
+ * are not on.
40
37
  */
41
38
  export declare const runtimeVersion: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gjsify/runtime",
3
- "version": "0.36.0",
3
+ "version": "0.37.0",
4
4
  "description": "Platform-independent runtime detection for GJS, Node.js, Bun and Deno",
5
5
  "keywords": [
6
6
  "gjs",
@@ -39,8 +39,8 @@
39
39
  "test:cross-runtime": "gjsify run build:test:node && gjsify run test:node && gjsify run test:bun && gjsify run test:deno"
40
40
  },
41
41
  "devDependencies": {
42
- "@gjsify/cli": "^0.36.0",
43
- "@gjsify/unit": "^0.36.0",
42
+ "@gjsify/cli": "^0.37.0",
43
+ "@gjsify/unit": "^0.37.0",
44
44
  "@types/node": "^25.9.2",
45
45
  "typescript": "^6.0.3"
46
46
  },