@ztl-uwu/nuxt-content 2.13.7 → 2.13.9

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
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@ztl-uwu/nuxt-content",
3
- "version": "2.13.7",
3
+ "version": "2.13.9",
4
4
  "configKey": "content",
5
5
  "compatibility": {
6
6
  "nuxt": ">=3.0.0-rc.3"
7
7
  },
8
8
  "builder": {
9
- "@nuxt/module-builder": "1.0.1",
10
- "unbuild": "3.5.0"
9
+ "@nuxt/module-builder": "1.0.2",
10
+ "unbuild": "3.6.1"
11
11
  }
12
12
  }
package/dist/module.mjs CHANGED
@@ -15,7 +15,7 @@ import { WebSocketServer } from 'ws';
15
15
  import { consola } from 'consola';
16
16
 
17
17
  const name = "@ztl-uwu/nuxt-content";
18
- const version = "2.13.7";
18
+ const version = "2.13.9";
19
19
 
20
20
  const logger = consola.withTag("@nuxt/content");
21
21
  const CACHE_VERSION = 2;
@@ -141,7 +141,7 @@ function resolveMarkdownPlugins(plugins) {
141
141
  return plugins || {};
142
142
  }
143
143
 
144
- const module = defineNuxtModule({
144
+ const module$1 = defineNuxtModule({
145
145
  meta: {
146
146
  name,
147
147
  version,
@@ -693,4 +693,4 @@ const module = defineNuxtModule({
693
693
  }
694
694
  });
695
695
 
696
- export { module as default };
696
+ export { module$1 as default };
@@ -31,7 +31,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
31
31
  default: boolean;
32
32
  };
33
33
  }>> & Readonly<{}>, {
34
- unwrap: string | boolean;
35
34
  use: Function;
35
+ unwrap: string | boolean;
36
36
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
37
37
  export default _default;
@@ -25,7 +25,7 @@ declare const _default: import("vue").DefineComponent<{}, {
25
25
  default: boolean;
26
26
  };
27
27
  }>> & Readonly<{}>, {
28
- unwrap: string | boolean;
29
28
  use: Function;
29
+ unwrap: string | boolean;
30
30
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
31
31
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { type Storage, type StorageValue } from 'unstorage';
2
2
  import type { NavItem, ContentQueryBuilderParams } from '@nuxt/content';
3
- export declare const contentStorage: Storage<StorageValue>;
3
+ export declare const contentStorage: Storage<any>;
4
4
  export declare function createDB(storage: Storage): {
5
5
  storage: Storage<StorageValue>;
6
6
  fetch: (query: NavItem<unknown>) => Promise<NavItem<unknown>>;
@@ -4,7 +4,8 @@ export declare const defineMiniSearchOptions: <DataItem>(options: MiniSearchOpti
4
4
  fields: string[];
5
5
  idField?: string | undefined;
6
6
  storeFields?: string[] | undefined;
7
- extractField?: ((document: DataItem, fieldName: string) => string) | undefined;
7
+ extractField?: ((document: DataItem, fieldName: string) => any) | undefined;
8
+ stringifyField?: ((fieldValue: any, fieldName: string) => string) | undefined;
8
9
  tokenize?: ((text: string, fieldName?: string) => string[]) | undefined;
9
10
  processTerm?: ((term: string, fieldName?: string) => string | string[] | null | undefined | false) | undefined;
10
11
  logger?: ((level: "error" | "debug" | "info" | "warn", message: string, code?: string) => void) | undefined;
@@ -66,7 +67,8 @@ export declare const defineMiniSearchOptions: <DataItem>(options: MiniSearchOpti
66
67
  fields: string[];
67
68
  idField?: string | undefined;
68
69
  storeFields?: string[] | undefined;
69
- extractField?: ((document: DataItem, fieldName: string) => string) | undefined;
70
+ extractField?: ((document: DataItem, fieldName: string) => any) | undefined;
71
+ stringifyField?: ((fieldValue: any, fieldName: string) => string) | undefined;
70
72
  tokenize?: ((text: string, fieldName?: string) => string[]) | undefined;
71
73
  processTerm?: ((term: string, fieldName?: string) => string | string[] | null | undefined | false) | undefined;
72
74
  logger?: ((level: "error" | "debug" | "info" | "warn", message: string, code?: string) => void) | undefined;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "@ztl-uwu/nuxt-content",
4
- "version": "2.13.7",
4
+ "version": "2.13.9",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ztl-uwu/nuxt-content",
3
- "version": "2.13.7",
3
+ "version": "2.13.9",
4
4
  "description": "Write your content inside your Nuxt app",
5
5
  "homepage": "https://content.nuxt.com",
6
6
  "keywords": [
@@ -42,11 +42,11 @@
42
42
  "test:unit": "nuxi prepare test/fixtures/basic && nuxi prepare test/fixtures/document-driven && vitest run"
43
43
  },
44
44
  "dependencies": {
45
- "@nuxt/kit": "^3.17.2",
46
- "@nuxtjs/mdc": "^0.17.0",
47
- "@vueuse/core": "^13.1.0",
45
+ "@nuxt/kit": "^3.21.0",
46
+ "@nuxtjs/mdc": "^0.20.0",
47
+ "@vueuse/core": "^14.2.0",
48
48
  "@vueuse/head": "^2.0.0",
49
- "@vueuse/nuxt": "^13.1.0",
49
+ "@vueuse/nuxt": "^14.2.0",
50
50
  "consola": "^3.4.2",
51
51
  "defu": "^6.1.4",
52
52
  "destr": "^2.0.5",
@@ -59,44 +59,44 @@
59
59
  "micromark-util-sanitize-uri": "^2.0.1",
60
60
  "micromark-util-types": "^2.0.2",
61
61
  "minimist": "^1.2.8",
62
- "minisearch": "^7.1.2",
62
+ "minisearch": "^7.2.0",
63
63
  "ohash": "^2.0.11",
64
64
  "pathe": "^2.0.3",
65
65
  "scule": "^1.3.0",
66
- "shiki": "^3.4.0",
66
+ "shiki": "^3.22.0",
67
67
  "slugify": "^1.6.6",
68
- "socket.io-client": "^4.8.1",
69
- "ufo": "^1.6.1",
68
+ "socket.io-client": "^4.8.3",
69
+ "ufo": "^1.6.3",
70
70
  "unist-util-stringify-position": "^4.0.0",
71
- "unstorage": "^1.16.0",
72
- "ws": "^8.18.2"
71
+ "unstorage": "^1.17.4",
72
+ "ws": "^8.19.0"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@nuxt/content": "link:",
76
- "@nuxt/eslint-config": "^1.3.0",
77
- "@nuxt/module-builder": "^1.0.1",
76
+ "@nuxt/eslint-config": "^1.13.0",
77
+ "@nuxt/module-builder": "^1.0.2",
78
78
  "@nuxt/schema": "3.16.2",
79
79
  "@nuxt/test-utils": "3.17.2",
80
80
  "@nuxthq/studio": "^2.2.1",
81
81
  "@nuxtjs/tailwindcss": "^6.14.0",
82
82
  "@types/ws": "^8.18.1",
83
83
  "c8": "^10.1.3",
84
- "csvtojson": "^2.0.10",
85
- "eslint": "^9.26.0",
86
- "globby": "^14.1.0",
84
+ "csvtojson": "^2.0.14",
85
+ "eslint": "^9.39.2",
86
+ "globby": "^16.1.0",
87
87
  "husky": "^9.1.7",
88
- "jiti": "^2.4.2",
89
- "lint-staged": "^16.0.0",
88
+ "jiti": "^2.6.1",
89
+ "lint-staged": "^16.2.7",
90
90
  "nuxt": "3.16.2",
91
91
  "rehype-figure": "^1.0.1",
92
92
  "rehype-wrap-all": "^1.1.0",
93
- "release-it": "^19.0.2",
93
+ "release-it": "^19.2.4",
94
94
  "remark-oembed": "^1.2.2",
95
- "vitest": "^3.1.3",
95
+ "vitest": "^4.0.18",
96
96
  "vue-docgen-web-types": "^0.1.8",
97
97
  "vue-tsc": "2.2.8"
98
98
  },
99
- "packageManager": "pnpm@10.10.0",
99
+ "packageManager": "pnpm@10.28.2",
100
100
  "release-it": {
101
101
  "git": {
102
102
  "commitMessage": "chore(release): release v${version}"