@hybridly/vue 0.7.19 → 0.8.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/index.cjs CHANGED
@@ -509,7 +509,7 @@ function prepare(options) {
509
509
  }
510
510
  return await resolveViewComponent(name, options);
511
511
  };
512
- options.plugins ?? (options.plugins = []);
512
+ options.plugins ??= [];
513
513
  if (options.progress !== false) {
514
514
  options.plugins.push(progress(typeof options.progress === "object" ? options.progress : {}));
515
515
  }
@@ -1288,7 +1288,7 @@ function useQueryParameters() {
1288
1288
  Array.from(unusedKeys).forEach((key) => delete state[key]);
1289
1289
  }
1290
1290
  updateState();
1291
- core.registerHook("after", updateState);
1291
+ core.registerHook("navigated", updateState);
1292
1292
  return state;
1293
1293
  }
1294
1294
  function useQueryParameter(name, options = {}) {
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as vue from 'vue';
2
- import { ComputedRef, DeepReadonly, Ref, MaybeRefOrGetter, App, Plugin as Plugin$1, h, PropType } from 'vue';
2
+ import { ComputedRef, DeepReadonly, Ref, MaybeRefOrGetter, App, Plugin, h, PropType } from 'vue';
3
3
  import * as _hybridly_core from '@hybridly/core';
4
- import { HybridRequestOptions, UrlResolvable, RouterContext, registerHook as registerHook$1, RouteName, RouteParameters, RouterContextOptions, Plugin, Method } from '@hybridly/core';
4
+ import { HybridRequestOptions, UrlResolvable, RouterContext, registerHook as registerHook$1, RouteName, RouteParameters, RouterContextOptions, Plugin as Plugin$1, Method } from '@hybridly/core';
5
5
  export { can, route, router } from '@hybridly/core';
6
6
  import { Axios } from 'axios';
7
7
  import * as _vue_shared from '@vue/shared';
@@ -822,7 +822,7 @@ interface InitializeOptions {
822
822
  /** Sets up the hybridly router. */
823
823
  setup?: (options: SetupArguments) => any;
824
824
  /** List of Hybridly plugins. */
825
- plugins?: Plugin[];
825
+ plugins?: Plugin$1[];
826
826
  /** Custom Axios instance. */
827
827
  axios?: Axios;
828
828
  /**
@@ -843,7 +843,7 @@ interface SetupArguments {
843
843
  context: RouterContext;
844
844
  };
845
845
  /** Vue plugin that registers the devtools. */
846
- hybridly: Plugin$1;
846
+ hybridly: Plugin;
847
847
  /** Renders the wrapper. */
848
848
  render: () => ReturnType<typeof h>;
849
849
  /** Initial payload. */
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as vue from 'vue';
2
- import { ComputedRef, DeepReadonly, Ref, MaybeRefOrGetter, App, Plugin as Plugin$1, h, PropType } from 'vue';
2
+ import { ComputedRef, DeepReadonly, Ref, MaybeRefOrGetter, App, Plugin, h, PropType } from 'vue';
3
3
  import * as _hybridly_core from '@hybridly/core';
4
- import { HybridRequestOptions, UrlResolvable, RouterContext, registerHook as registerHook$1, RouteName, RouteParameters, RouterContextOptions, Plugin, Method } from '@hybridly/core';
4
+ import { HybridRequestOptions, UrlResolvable, RouterContext, registerHook as registerHook$1, RouteName, RouteParameters, RouterContextOptions, Plugin as Plugin$1, Method } from '@hybridly/core';
5
5
  export { can, route, router } from '@hybridly/core';
6
6
  import { Axios } from 'axios';
7
7
  import * as _vue_shared from '@vue/shared';
@@ -822,7 +822,7 @@ interface InitializeOptions {
822
822
  /** Sets up the hybridly router. */
823
823
  setup?: (options: SetupArguments) => any;
824
824
  /** List of Hybridly plugins. */
825
- plugins?: Plugin[];
825
+ plugins?: Plugin$1[];
826
826
  /** Custom Axios instance. */
827
827
  axios?: Axios;
828
828
  /**
@@ -843,7 +843,7 @@ interface SetupArguments {
843
843
  context: RouterContext;
844
844
  };
845
845
  /** Vue plugin that registers the devtools. */
846
- hybridly: Plugin$1;
846
+ hybridly: Plugin;
847
847
  /** Renders the wrapper. */
848
848
  render: () => ReturnType<typeof h>;
849
849
  /** Initial payload. */
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as vue from 'vue';
2
- import { ComputedRef, DeepReadonly, Ref, MaybeRefOrGetter, App, Plugin as Plugin$1, h, PropType } from 'vue';
2
+ import { ComputedRef, DeepReadonly, Ref, MaybeRefOrGetter, App, Plugin, h, PropType } from 'vue';
3
3
  import * as _hybridly_core from '@hybridly/core';
4
- import { HybridRequestOptions, UrlResolvable, RouterContext, registerHook as registerHook$1, RouteName, RouteParameters, RouterContextOptions, Plugin, Method } from '@hybridly/core';
4
+ import { HybridRequestOptions, UrlResolvable, RouterContext, registerHook as registerHook$1, RouteName, RouteParameters, RouterContextOptions, Plugin as Plugin$1, Method } from '@hybridly/core';
5
5
  export { can, route, router } from '@hybridly/core';
6
6
  import { Axios } from 'axios';
7
7
  import * as _vue_shared from '@vue/shared';
@@ -822,7 +822,7 @@ interface InitializeOptions {
822
822
  /** Sets up the hybridly router. */
823
823
  setup?: (options: SetupArguments) => any;
824
824
  /** List of Hybridly plugins. */
825
- plugins?: Plugin[];
825
+ plugins?: Plugin$1[];
826
826
  /** Custom Axios instance. */
827
827
  axios?: Axios;
828
828
  /**
@@ -843,7 +843,7 @@ interface SetupArguments {
843
843
  context: RouterContext;
844
844
  };
845
845
  /** Vue plugin that registers the devtools. */
846
- hybridly: Plugin$1;
846
+ hybridly: Plugin;
847
847
  /** Renders the wrapper. */
848
848
  render: () => ReturnType<typeof h>;
849
849
  /** Initial payload. */
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { shallowRef, ref, unref, triggerRef, defineComponent, toRaw, h, nextTick, createApp, isRef, reactive, readonly, computed, toValue, watch, getCurrentInstance, onUnmounted } from 'vue';
1
+ import { ref, shallowRef, unref, triggerRef, defineComponent, toRaw, h, nextTick, createApp, isRef, reactive, readonly, computed, toValue, watch, getCurrentInstance, onUnmounted } from 'vue';
2
2
  import { definePlugin, registerHook as registerHook$1, createRouter, makeUrl, router, route } from '@hybridly/core';
3
3
  export { can, route, router } from '@hybridly/core';
4
4
  import { debug, clone, random, showViewComponentErrorModal, merge, unsetPropertyAtPath, setValueAtPath, debounce } from '@hybridly/utils';
@@ -502,7 +502,7 @@ function prepare(options) {
502
502
  }
503
503
  return await resolveViewComponent(name, options);
504
504
  };
505
- options.plugins ?? (options.plugins = []);
505
+ options.plugins ??= [];
506
506
  if (options.progress !== false) {
507
507
  options.plugins.push(progress(typeof options.progress === "object" ? options.progress : {}));
508
508
  }
@@ -1281,7 +1281,7 @@ function useQueryParameters() {
1281
1281
  Array.from(unusedKeys).forEach((key) => delete state[key]);
1282
1282
  }
1283
1283
  updateState();
1284
- registerHook$1("after", updateState);
1284
+ registerHook$1("navigated", updateState);
1285
1285
  return state;
1286
1286
  }
1287
1287
  function useQueryParameter(name, options = {}) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hybridly/vue",
3
3
  "type": "module",
4
- "version": "0.7.19",
4
+ "version": "0.8.0",
5
5
  "description": "Vue adapter for Hybridly",
6
6
  "author": "Enzo Innocenzi <enzo@innocenzi.dev>",
7
7
  "license": "MIT",
@@ -44,21 +44,21 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@clickbar/dot-diver": "^1.0.7",
47
- "@vue/devtools-api": "^7.7.2",
47
+ "@vue/devtools-api": "^7.7.6",
48
48
  "defu": "^6.1.4",
49
49
  "lodash.isequal": "^4.5.0",
50
50
  "nprogress": "^0.2.0",
51
51
  "qs": "^6.14.0",
52
- "@hybridly/core": "0.7.19",
53
- "@hybridly/utils": "0.7.19"
52
+ "@hybridly/core": "0.8.0",
53
+ "@hybridly/utils": "0.8.0"
54
54
  },
55
55
  "devDependencies": {
56
- "@types/lodash": "^4.17.15",
56
+ "@types/lodash": "^4.17.17",
57
57
  "@types/lodash.isequal": "^4.5.8",
58
58
  "@types/nprogress": "^0.2.3",
59
59
  "@vue/test-utils": "^2.4.6",
60
- "axios": "^1.8.1",
61
- "vue": "^3.5.13"
60
+ "axios": "^1.10.0",
61
+ "vue": "^3.5.16"
62
62
  },
63
63
  "scripts": {
64
64
  "build": "unbuild",