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

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,95 @@
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.10](https://github.com/gluharco/gluhar/compare/v6.0.0-next.9...v6.0.0-next.10) (2026-11-13)
7
+
8
+
9
+ ### 🩹 Fixes
10
+
11
+ - Resolve sub-modules from the [@gluhar](https://github.com/gluhar) package that installs them ([a315b15](https://github.com/gluharco/gluhar/commit/a315b15e4f610470ec59a664084d9972b3b7d818))
12
+
13
+
14
+
15
+
16
+
17
+ # [6.0.0-next.9](https://github.com/gluharco/gluhar/compare/v6.0.0-next.8...v6.0.0-next.9) (2026-11-12)
18
+
19
+ **📝 Note:** Version bump only for package @gluhar/core
20
+
21
+
22
+
23
+
24
+
25
+ # [6.0.0-next.8](https://github.com/gluharco/gluhar/compare/v6.0.0-next.7...v6.0.0-next.8) (2026-11-10)
26
+
27
+ **📝 Note:** Version bump only for package @gluhar/core
28
+
29
+
30
+
31
+
32
+
33
+ # [6.0.0-next.7](https://github.com/gluharco/gluhar/compare/v6.0.0-next.6...v6.0.0-next.7) (2026-10-21)
34
+
35
+ **📝 Note:** Version bump only for package @gluhar/core
36
+
37
+
38
+
39
+
40
+
41
+ # [6.0.0-next.6](https://github.com/gluharco/gluhar/compare/v6.0.0-next.5...v6.0.0-next.6) (2026-10-21)
42
+
43
+ **📝 Note:** Version bump only for package @gluhar/core
44
+
45
+
46
+
47
+
48
+
49
+ # [6.0.0-next.5](https://github.com/gluharco/gluhar/compare/v6.0.0-next.4...v6.0.0-next.5) (2026-10-21)
50
+
51
+ **📝 Note:** Version bump only for package @gluhar/core
52
+
53
+
54
+
55
+
56
+
57
+ # [6.0.0-next.4](https://github.com/gluharco/gluhar/compare/v6.0.0-next.3...v6.0.0-next.4) (2026-10-21)
58
+
59
+ **📝 Note:** Version bump only for package @gluhar/core
60
+
61
+
62
+
63
+
64
+
65
+ # [6.0.0-next.3](https://github.com/gluharco/gluhar/compare/v6.0.0-next.2...v6.0.0-next.3) (2026-10-21)
66
+
67
+ **📝 Note:** Version bump only for package @gluhar/core
68
+
69
+
70
+
71
+
72
+
73
+ # [6.0.0-next.2](https://github.com/gluharco/gluhar/compare/v6.0.0-next.1...v6.0.0-next.2) (2026-10-21)
74
+
75
+
76
+ ### 🩹 Fixes
77
+
78
+ - **build:** Publish real module builds from CI ([68adc79](https://github.com/gluharco/gluhar/commit/68adc794b3140a00eee6a30713ea2867505ed52c))
79
+
80
+
81
+
82
+
83
+
84
+ # [6.0.0-next.1](https://github.com/gluharco/gluhar/compare/v6.0.0-next.0...v6.0.0-next.1) (2026-10-20)
85
+
86
+
87
+ ### 🚀 Enhancements
88
+
89
+ - **release:** Publish from GitHub Actions with npm trusted publishing ([8773cd9](https://github.com/gluharco/gluhar/commit/8773cd99c43cbe6a7dc415e50af8b13a7b8d4daf))
90
+
91
+
92
+
93
+
94
+
6
95
  # [4.2.0](https://github.com/gluharco/gluhar/compare/@gluhar/core@4.1.5...@gluhar/core@4.2.0) (2026-04-28)
7
96
 
8
97
 
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.10",
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,15 @@
1
- import { defineNuxtModule, createResolver, installModule, addImportsDir } from '@nuxt/kit';
1
+ import { resolveModule, installModule, defineNuxtModule, createResolver, addImportsDir } from '@nuxt/kit';
2
2
 
3
- const module = defineNuxtModule({
3
+ const installOwnModule = (name, options) => {
4
+ let path = name;
5
+ try {
6
+ path = resolveModule(name, { url: new URL(import.meta.url) });
7
+ } catch {
8
+ }
9
+ return installModule(path, options);
10
+ };
11
+
12
+ const module$1 = defineNuxtModule({
4
13
  meta: {
5
14
  name: "@gluhar/core",
6
15
  configKey: "gluharCore"
@@ -9,10 +18,10 @@ const module = defineNuxtModule({
9
18
  defaults: {},
10
19
  async setup() {
11
20
  const { resolve } = createResolver(import.meta.url);
12
- await installModule("@nuxtjs/device");
21
+ await installOwnModule("@nuxtjs/device");
13
22
  addImportsDir(resolve("runtime/composables"));
14
23
  addImportsDir(resolve("runtime/utils"));
15
24
  }
16
25
  });
17
26
 
18
- export { module as default };
27
+ 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.10",
4
4
  "description": "Gluhar Core packages.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -39,26 +39,24 @@
39
39
  "test:watch": "vitest watch"
40
40
  },
41
41
  "dependencies": {
42
- "@nuxt/kit": "^4.5.0",
43
- "@nuxtjs/device": "^3.2.2",
44
- "@vueuse/core": "^14.1.0",
42
+ "@nuxt/kit": "^4.6.2",
43
+ "@nuxtjs/device": "^4.0.0",
44
+ "@vueuse/core": "^15.0.0",
45
45
  "mlly": "^1.7.1"
46
46
  },
47
47
  "devDependencies": {
48
- "@nuxt/devtools": "latest",
49
48
  "@nuxt/eslint-config": "^1.9.0",
50
49
  "@nuxt/module-builder": "^1.0.3",
51
- "@nuxt/schema": "^4.5.0",
52
- "@nuxt/test-utils": "^3.19.2",
50
+ "@nuxt/schema": "^4.6.2",
51
+ "@nuxt/test-utils": "^4.3.4",
53
52
  "@types/node": "^22.5.4",
54
53
  "changelogen": "^0.5.5",
55
54
  "copyfiles": "^2.4.1",
56
55
  "eslint": "^9.10.0",
57
- "nuxt": "^4.5.0",
58
- "vitest": "^3.2.4"
56
+ "nuxt": "^4.6.2",
57
+ "vitest": "^5.0.5"
59
58
  },
60
59
  "peerDependencies": {
61
- "nuxt": "^4.5.0"
62
- },
63
- "gitHead": "8773cd99c43cbe6a7dc415e50af8b13a7b8d4daf"
60
+ "nuxt": "^4.6.2"
61
+ }
64
62
  }
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'