use-l5 0.0.1 → 0.0.2

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/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.16"
6
6
  },
7
- "version": "0.0.1",
7
+ "version": "0.0.2",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "3.6.1"
@@ -5,6 +5,5 @@ export interface UseL5Return<S extends SchemaDefinition> {
5
5
  queryForApi: ShallowRef<Record<string, unknown>>;
6
6
  updateFilters: (newFilters: Partial<Filters<S>>, _options?: Partial<Pick<Options<S>, 'urlUpdateStrategy'>>) => void;
7
7
  updateDefaults: (newDefaults: Partial<InferFromL5Schema<S>>) => void;
8
- defaultsRef: Ref<Partial<InferFromL5Schema<S>>>;
9
8
  }
10
9
  export declare function useL5<S extends SchemaDefinition>(scheme: S, options?: Options<S>): UseL5Return<S>;
@@ -71,7 +71,6 @@ export function useL5(scheme, options = {}) {
71
71
  filters,
72
72
  queryForApi,
73
73
  updateFilters,
74
- updateDefaults,
75
- defaultsRef
74
+ updateDefaults
76
75
  };
77
76
  }
@@ -1,8 +1,8 @@
1
1
  export const BASE_PARAMS_DEFAULTS = {
2
2
  page: 1,
3
3
  limit: 10,
4
- sortedBy: "id",
5
- orderBy: "desc",
4
+ sortedBy: "desc",
5
+ orderBy: "id",
6
6
  searchJoin: "and",
7
7
  searchFields: null,
8
8
  search: null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "use-l5",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Nuxt-модуль с типизированным useL5-композаблом для парсинга фильтров, синхронизации с query в роуте и сборки параметров для API/URL",
5
5
  "author": {
6
6
  "name": "Kirill Merkulov",