fumadocs-core 16.0.11 → 16.0.13

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.
@@ -5,19 +5,14 @@ import "../chunk-U67V476Y.js";
5
5
 
6
6
  // src/framework/tanstack.tsx
7
7
  import { useMemo } from "react";
8
- import {
9
- useParams,
10
- Link,
11
- useRouter,
12
- useLocation
13
- } from "@tanstack/react-router";
8
+ import { useParams, Link, useRouter, useMatch } from "@tanstack/react-router";
14
9
  import { jsx } from "react/jsx-runtime";
15
10
  var framework = {
16
11
  Link({ href, prefetch, ...props }) {
17
12
  return /* @__PURE__ */ jsx(Link, { to: href, preload: prefetch ? "intent" : false, ...props, children: props.children });
18
13
  },
19
14
  usePathname() {
20
- return useLocation().pathname;
15
+ return useMatch({ strict: false, select: (s) => s.pathname });
21
16
  },
22
17
  useRouter() {
23
18
  const router = useRouter();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-core",
3
- "version": "16.0.11",
3
+ "version": "16.0.13",
4
4
  "description": "The library for building a documentation website in any React.js framework",
5
5
  "keywords": [
6
6
  "Fumadocs",
@@ -107,8 +107,8 @@
107
107
  "dependencies": {
108
108
  "@formatjs/intl-localematcher": "^0.6.2",
109
109
  "@orama/orama": "^3.1.16",
110
- "@shikijs/rehype": "^3.14.0",
111
- "@shikijs/transformers": "^3.14.0",
110
+ "@shikijs/rehype": "^3.15.0",
111
+ "@shikijs/transformers": "^3.15.0",
112
112
  "estree-util-value-to-estree": "^3.5.0",
113
113
  "github-slugger": "^2.0.0",
114
114
  "hast-util-to-estree": "^3.1.3",
@@ -121,27 +121,27 @@
121
121
  "remark-gfm": "^4.0.1",
122
122
  "remark-rehype": "^11.1.2",
123
123
  "scroll-into-view-if-needed": "^3.1.0",
124
- "shiki": "^3.14.0",
124
+ "shiki": "^3.15.0",
125
125
  "unist-util-visit": "^5.0.0"
126
126
  },
127
127
  "devDependencies": {
128
128
  "@mdx-js/mdx": "^3.1.1",
129
- "@mixedbread/sdk": "^0.38.0",
129
+ "@mixedbread/sdk": "^0.44.0",
130
130
  "@orama/core": "^1.2.13",
131
- "@tanstack/react-router": "^1.134.12",
131
+ "@tanstack/react-router": "^1.136.6",
132
132
  "@types/estree-jsx": "^1.0.5",
133
133
  "@types/hast": "^3.0.4",
134
134
  "@types/mdast": "^4.0.4",
135
135
  "@types/negotiator": "^0.6.4",
136
- "@types/node": "24.10.0",
137
- "@types/react": "^19.2.2",
138
- "@types/react-dom": "^19.2.2",
139
- "algoliasearch": "5.42.0",
140
- "lucide-react": "^0.552.0",
136
+ "@types/node": "24.10.1",
137
+ "@types/react": "^19.2.5",
138
+ "@types/react-dom": "^19.2.3",
139
+ "algoliasearch": "5.44.0",
140
+ "lucide-react": "^0.553.0",
141
141
  "mdast-util-mdx-jsx": "^3.2.0",
142
142
  "mdast-util-mdxjs-esm": "^2.0.1",
143
- "next": "16.0.1",
144
- "react-router": "^7.9.5",
143
+ "next": "16.0.3",
144
+ "react-router": "^7.9.6",
145
145
  "remark-directive": "^4.0.0",
146
146
  "remark-mdx": "^3.1.1",
147
147
  "remove-markdown": "^0.6.2",
@@ -163,7 +163,7 @@
163
163
  "react": "^19.2.0",
164
164
  "react-dom": "^19.2.0",
165
165
  "react-router": "7.x.x",
166
- "waku": "^0.26.0"
166
+ "waku": "^0.26.0 || ^0.27.0"
167
167
  },
168
168
  "peerDependenciesMeta": {
169
169
  "@mixedbread/sdk": {