Skip to content

Commit 50c1be3

Browse files
authored
Move inline expression evaluation from API to GBO (#3687)
1 parent 319a1e5 commit 50c1be3

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"gitbook": minor
3+
---
4+
5+
Move inline expression evaluation from API to GBO

bun.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@
304304
"react-dom": "^19.0.0",
305305
},
306306
"catalog": {
307-
"@gitbook/api": "^0.142.0",
307+
"@gitbook/api": "0.143.1",
308308
"bidc": "^0.0.2",
309309
},
310310
"packages": {
@@ -676,7 +676,7 @@
676676

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

679-
"@gitbook/api": ["@gitbook/api@0.142.0", "", { "dependencies": { "event-iterator": "^2.0.0", "eventsource-parser": "^3.0.0" } }, "sha512-Lq1IbepAykHNG8y0fBvC7hQj3i/f1XATX58wLYXWCL3W1x6Z9f6Rs5K2qCOONswJh3l2NrX3ujrbxx3D8goRdw=="],
679+
"@gitbook/api": ["@gitbook/api@0.143.1", "", { "dependencies": { "event-iterator": "^2.0.0", "eventsource-parser": "^3.0.0" } }, "sha512-5k7PnMe9W8EhmSejqayCbAIIJDGB4C2m+o6+dD+asmlv+6jE/LqoxuAvbP8o+kG83tMnbsr5I5d73B/9cAYbag=="],
680680

681681
"@gitbook/browser-types": ["@gitbook/browser-types@workspace:packages/browser-types"],
682682

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.142.0",
37+
"@gitbook/api": "0.143.1",
3838
"bidc": "^0.0.2"
3939
}
4040
},

packages/gitbook/src/lib/data/api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ const getRevisionPageDocument = cache(
344344
params.revisionId,
345345
params.pageId,
346346
{
347-
evaluated: true,
347+
evaluated: 'deterministic-only',
348348
},
349349
{
350350
...noCacheFetchOptions,
@@ -377,7 +377,7 @@ const getRevisionReusableContentDocument = cache(
377377
params.revisionId,
378378
params.reusableContentId,
379379
{
380-
evaluated: true,
380+
evaluated: 'deterministic-only',
381381
},
382382
{
383383
...noCacheFetchOptions,

0 commit comments

Comments
 (0)