@gluhar/core 6.0.0-next.0 → 6.0.0-next.3

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 CHANGED
@@ -3,6 +3,36 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [6.0.0-next.3](https://github.com/gluharco/gluhar/compare/v6.0.0-next.2...v6.0.0-next.3) (2026-10-21)
7
+
8
+ **📝 Note:** Version bump only for package @gluhar/core
9
+
10
+
11
+
12
+
13
+
14
+ # [6.0.0-next.2](https://github.com/gluharco/gluhar/compare/v6.0.0-next.1...v6.0.0-next.2) (2026-10-21)
15
+
16
+
17
+ ### 🩹 Fixes
18
+
19
+ - **build:** Publish real module builds from CI ([68adc79](https://github.com/gluharco/gluhar/commit/68adc794b3140a00eee6a30713ea2867505ed52c))
20
+
21
+
22
+
23
+
24
+
25
+ # [6.0.0-next.1](https://github.com/gluharco/gluhar/compare/v6.0.0-next.0...v6.0.0-next.1) (2026-10-20)
26
+
27
+
28
+ ### 🚀 Enhancements
29
+
30
+ - **release:** Publish from GitHub Actions with npm trusted publishing ([8773cd9](https://github.com/gluharco/gluhar/commit/8773cd99c43cbe6a7dc415e50af8b13a7b8d4daf))
31
+
32
+
33
+
34
+
35
+
6
36
  # [4.2.0](https://github.com/gluharco/gluhar/compare/@gluhar/core@4.1.5...@gluhar/core@4.2.0) (2026-04-28)
7
37
 
8
38
 
package/dist/module.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@gluhar/core",
3
3
  "configKey": "gluharCore",
4
- "version": "6.0.0-next.0",
4
+ "version": "6.0.0-next.3",
5
5
  "builder": {
6
- "@nuxt/module-builder": "0.8.3",
7
- "unbuild": "2.0.0"
6
+ "@nuxt/module-builder": "1.0.3",
7
+ "unbuild": "3.6.1"
8
8
  }
9
9
  }
package/dist/module.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineNuxtModule, createResolver, installModule, addImportsDir } from '@nuxt/kit';
2
2
 
3
- const module = defineNuxtModule({
3
+ const module$1 = defineNuxtModule({
4
4
  meta: {
5
5
  name: "@gluhar/core",
6
6
  configKey: "gluharCore"
@@ -15,4 +15,4 @@ const module = defineNuxtModule({
15
15
  }
16
16
  });
17
17
 
18
- export { module as default };
18
+ export { module$1 as default };
@@ -1,5 +1,5 @@
1
1
  import { type ComputedRef } from "vue";
2
- import type { GluharBreakpoints } from "../types.js";
2
+ import type { GluharBreakpoints } from "../types/index.js";
3
3
  /**
4
4
  * Viewport state for BEHAVIOUR — event handlers, GSAP/ScrollTrigger setup,
5
5
  * imperative measurement. Never for layout: responsive layout is Tailwind
@@ -26,17 +26,17 @@ import type { GluharBreakpoints } from "../types.js";
26
26
  export declare const useResponsive: () => {
27
27
  isMobileDevice: boolean;
28
28
  /** True once hydrated — for guarding client-only behaviour explicitly. */
29
- mounted: any;
29
+ mounted: import("vue").Ref<boolean, boolean>;
30
30
  breakpoints: GluharBreakpoints;
31
- up: (name: string) => ComputedRef<any>;
32
- down: (name: string) => ComputedRef<any>;
33
- between: (from: string, to: string) => ComputedRef<any>;
34
- mobile: ComputedRef<any>;
35
- tablet: ComputedRef<any>;
36
- tabletExact: ComputedRef<any>;
37
- desktop: ComputedRef<any>;
38
- desktopExact: ComputedRef<any>;
39
- wide: ComputedRef<any>;
31
+ up: (name: string) => ComputedRef<boolean>;
32
+ down: (name: string) => ComputedRef<boolean>;
33
+ between: (from: string, to: string) => ComputedRef<boolean>;
34
+ mobile: ComputedRef<boolean>;
35
+ tablet: ComputedRef<boolean>;
36
+ tabletExact: ComputedRef<boolean>;
37
+ desktop: ComputedRef<boolean>;
38
+ desktopExact: ComputedRef<boolean>;
39
+ wide: ComputedRef<boolean>;
40
40
  /** Below desktop width. A width, not touch capability. */
41
- touch: ComputedRef<any>;
41
+ touch: ComputedRef<boolean>;
42
42
  };
@@ -9,3 +9,14 @@ export declare const readModule: <T extends Record<string, any>>(path: string |
9
9
  rootDir?: string;
10
10
  default?: boolean;
11
11
  }) => Promise<T>;
12
+ /**
13
+ * True during a module package's own `nuxt-module-build prepare`: rootDir is the package
14
+ * (`src/module.ts`, no `nuxt.config`), not a project, so there is no `config/` or `lang/` to read.
15
+ * Setup that needs project files must be skipped then; registering imports and components is fine.
16
+ */
17
+ export declare const isModulePrepare: (nuxt: {
18
+ options: {
19
+ _prepare?: boolean;
20
+ rootDir: string;
21
+ };
22
+ }) => boolean;
@@ -1,4 +1,4 @@
1
- import { readFileSync } from "fs";
1
+ import { existsSync, readFileSync } from "fs";
2
2
  import { isAbsolute, join } from "path";
3
3
  import { evalModule } from "mlly";
4
4
  export const readModule = async (path, options = {}) => {
@@ -11,3 +11,7 @@ export const readModule = async (path, options = {}) => {
11
11
  const module = await evalModule(sanitizedFile);
12
12
  return options.default ? module.default : module;
13
13
  };
14
+ export const isModulePrepare = (nuxt) => {
15
+ const { _prepare, rootDir } = nuxt.options;
16
+ return !!_prepare && existsSync(join(rootDir, "src/module.ts")) && !["ts", "js", "mjs"].some((ext) => existsSync(join(rootDir, `nuxt.config.${ext}`)));
17
+ };
@@ -1,4 +1,4 @@
1
- import type { NonNegativeInteger } from "../types.js";
1
+ import type { NonNegativeInteger } from "../types/index.js";
2
2
  export declare const getRandomInt: (max?: number) => number;
3
3
  export declare const getRandomBetween: (min: number, max: number) => number;
4
4
  export declare const getRandomDigits: <N extends number>(count: NonNegativeInteger<N>) => number;
package/dist/types.d.mts CHANGED
@@ -1,7 +1,9 @@
1
1
  import type { NuxtModule } from '@nuxt/schema'
2
2
 
3
- import type { default as Module } from './module.js'
3
+ import type { default as Module } from './module.mjs'
4
4
 
5
5
  export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
6
6
 
7
- export { default } from './module.js'
7
+ export { default } from './module.mjs'
8
+
9
+ export { type GluharCoreOptions } from './module.mjs'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gluhar/core",
3
- "version": "6.0.0-next.0",
3
+ "version": "6.0.0-next.3",
4
4
  "description": "Gluhar Core packages.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -59,6 +59,5 @@
59
59
  },
60
60
  "peerDependencies": {
61
61
  "nuxt": "^4.5.0"
62
- },
63
- "gitHead": "8773cd99c43cbe6a7dc415e50af8b13a7b8d4daf"
62
+ }
64
63
  }
package/dist/module.cjs DELETED
@@ -1,5 +0,0 @@
1
- module.exports = function(...args) {
2
- return import('./module.mjs').then(m => m.default.call(this, ...args))
3
- }
4
- const _meta = module.exports.meta = require('./module.json')
5
- module.exports.getMeta = () => Promise.resolve(_meta)
package/dist/module.d.ts DELETED
@@ -1,8 +0,0 @@
1
- import * as _nuxt_schema from '@nuxt/schema';
2
-
3
- interface GluharCoreOptions {
4
- }
5
- declare const _default: _nuxt_schema.NuxtModule<GluharCoreOptions, GluharCoreOptions, false>;
6
-
7
- export { _default as default };
8
- export type { GluharCoreOptions };
package/dist/types.d.ts DELETED
@@ -1,7 +0,0 @@
1
- import type { NuxtModule } from '@nuxt/schema'
2
-
3
- import type { default as Module } from './module'
4
-
5
- export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
6
-
7
- export { default } from './module'