Skip to content

Commit f3010bd

Browse files
authored
Stop using deprecated search API param (#3638)
1 parent 8ff1e3b commit f3010bd

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

bun.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@
300300
"react-dom": "^19.0.0",
301301
},
302302
"catalog": {
303-
"@gitbook/api": "^0.139.0",
303+
"@gitbook/api": "^0.140.0",
304304
"bidc": "^0.0.2",
305305
},
306306
"packages": {
@@ -666,7 +666,7 @@
666666

667667
"@fortawesome/fontawesome-svg-core": ["@fortawesome/fontawesome-svg-core@6.6.0", "", { "dependencies": { "@fortawesome/fontawesome-common-types": "6.6.0" } }, "sha512-KHwPkCk6oRT4HADE7smhfsKudt9N/9lm6EJ5BVg0tD1yPA5hht837fB87F8pn15D8JfTqQOjhKTktwmLMiD7Kg=="],
668668

669-
"@gitbook/api": ["@gitbook/api@0.139.0", "", { "dependencies": { "event-iterator": "^2.0.0", "eventsource-parser": "^3.0.0" } }, "sha512-6VqN4BVvOdaRng2xz5wh0gj6NJmJJZwtswKZ6g9RMWedp2UkeMXi+kcO3fBo2VYJsxhIgbtWikqGEePgHTx67g=="],
669+
"@gitbook/api": ["@gitbook/api@0.140.0", "", { "dependencies": { "event-iterator": "^2.0.0", "eventsource-parser": "^3.0.0" } }, "sha512-DBBUwdJOueA8aY/90KLwXJpLeKoX7hGu+PEqERpefiW2kZoFPKEVcmXARDk4txxEjvPgS3EylPSZaxFTi8R+Jg=="],
670670

671671
"@gitbook/browser-types": ["@gitbook/browser-types@workspace:packages/browser-types"],
672672

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"workspaces": {
3535
"packages": ["packages/*"],
3636
"catalog": {
37-
"@gitbook/api": "^0.139.0",
37+
"@gitbook/api": "^0.140.0",
3838
"bidc": "^0.0.2"
3939
}
4040
},

packages/gitbook/src/components/Search/server-actions.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,7 @@ export async function streamAskQuestion({
123123
},
124124
scope: {
125125
mode: 'default',
126-
// Include the current site space regardless.
127-
includedSiteSpaces: [context.siteSpace.id],
126+
currentSiteSpace: context.siteSpace.id,
128127
},
129128
},
130129
{ format: 'document' }

0 commit comments

Comments
 (0)