@redocly/revel-reef 0.133.0-next.6 → 0.133.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,78 @@
1
1
  # @redocly/revel-reef
2
2
 
3
+ ## 0.133.1
4
+
5
+ ### Patch Changes
6
+
7
+ - e69c304a76: Fixed an issue where in rare cases, clicking on a link on a Markdown page, could trigger navigation twice, taking the user to the first link on the target page.
8
+ - Updated dependencies [3aa79f51c8]
9
+ - @redocly/realm-asyncapi-sdk@0.11.1
10
+ - @redocly/theme@0.65.0
11
+
12
+ ## 0.133.0
13
+
14
+ ### Minor Changes
15
+
16
+ - 0f097a8536: Added multi-version API support for Docs MCP tools.
17
+ - 76cad3a2f3: Updated styles for page navigation buttons.
18
+ - b5906fb936: Updated the icon displayed alongside hyperlinks in the project.
19
+ - 0858f54ae5: Added Client ID Metadata Document (CIMD) support to the MCP OAuth flow.
20
+ - f2f525c850: Added support for callback URLs in `developerOnboarding`.
21
+ - 7e407eeb7c: Added `hreflang` alternate links for translated pages.
22
+ - 7e407eeb7c: Improved language picker accessibility by converting menu options to links.
23
+
24
+ ### Patch Changes
25
+
26
+ - e271a42c40: Prevented search engines from indexing Markdown pages generated by the `llms.txt` feature.
27
+ - ba76c06785: Fixed unauthenticated callback execution in the MCP docs server.
28
+ - 3367a23fae: Fixed an issue in OpenAPI docs route resolution where lines not tied to an operation generated incorrect URLs by duplicating the base slug.
29
+ - e13c79eb30: Fixed an issue where searching in projects without searchable content caused a server error.
30
+ - 36c67eafc2: Fixed rendering of non-Latin characters by enforcing UTF-8 encoding.
31
+ - f7725b9cc7: Fixed an issue where login and logout redirects caused 404 and URI mismatch errors in projects with path prefix.
32
+ - eeb767e9b4: Fixed an issue where preview login redirects failed when the branch hostname contained double hyphens.
33
+ - 49d39a0486: Fixed 404 error when opening login from locale-prefixed URLs.
34
+ - fac8607a7b: Fixed an issue where closing the search dialog modal locked page scrolling.
35
+ - 7cd2d9f19e: Fixed an issue in Realm Markdown image handling where inline `data:` image URLs were incorrectly treated as broken local routes.
36
+ - 84838a59f0: Excluded buttons and links from heading content to improve accessibility.
37
+ - 86ded9afea: Fixed API function responses with status `204` to prevent errors when calling JSON or text helpers.
38
+ - c9c36d6ac3: Fixed curation in Typesense search.
39
+ - 7447d30745: Fixed security vulnerabilities `CVE-2026-44455`, `CVE-2026-44456`, `CVE-2026-44457`, `CVE-2026-44458` and `CVE-2026-44459` by upgrading `hono` to version `4.12.18`.
40
+ - d3c1f3870c: Fixed an issue where API functions failed to hot-reload after files were added in Reunite's Webview or local preview.
41
+ - ba76c06785: Fixed an issue where MCP auth URLs were displayed after MCP docs had been disabled.
42
+ - 46f103f0c4: Updated `@redocly/openapi-core` to version `2.30.5`.
43
+ - 9f60402b86: Fixed an issue where navigating on a code walkthrough page prevented automatic scrolling to the active step.
44
+ - 49d39a0486: Fixed an issue where the login page didn't respect language preferences selected by the user.
45
+ - Updated dependencies [e2b2f2e27f]
46
+ - Updated dependencies [76cad3a2f3]
47
+ - Updated dependencies [3367a23fae]
48
+ - Updated dependencies [b5906fb936]
49
+ - Updated dependencies [36c67eafc2]
50
+ - Updated dependencies [f2f525c850]
51
+ - Updated dependencies [49d39a0486]
52
+ - Updated dependencies [f2a18386e5]
53
+ - Updated dependencies [7e407eeb7c]
54
+ - Updated dependencies [fac8607a7b]
55
+ - Updated dependencies [5e5d990eac]
56
+ - Updated dependencies [84838a59f0]
57
+ - Updated dependencies [4d93e20695]
58
+ - Updated dependencies [7e407eeb7c]
59
+ - Updated dependencies [a1bb760b29]
60
+ - Updated dependencies [ab8c509bb9]
61
+ - Updated dependencies [e5a4a33708]
62
+ - Updated dependencies [4a857b489d]
63
+ - Updated dependencies [46f103f0c4]
64
+ - Updated dependencies [59198fb803]
65
+ - Updated dependencies [9f60402b86]
66
+ - Updated dependencies [4002f20f63]
67
+ - Updated dependencies [62ea0748ec]
68
+ - @redocly/theme@0.65.0
69
+ - @redocly/openapi-docs@3.21.0
70
+ - @redocly/asyncapi-docs@1.10.0
71
+ - @redocly/graphql-docs@1.10.0
72
+ - @redocly/realm-asyncapi-sdk@0.11.0
73
+ - @redocly/portal-plugin-mock-server@0.18.0
74
+ - @redocly/portal-legacy-ui@0.16.0
75
+
3
76
  ## 0.133.0-next.6
4
77
 
5
78
  ### Patch Changes
@@ -193,7 +266,7 @@
193
266
  - e88064ce2d: Added support for Excalidraw and PlantUML diagrams.
194
267
  Improved dark mode for Mermaid diagrams.
195
268
  - ae3272861b: Added support for `x-badges` in OpenAPI and AsyncAPI parameters and schema properties.
196
- Badges can now be rendered before and after field names.
269
+ Badges can be rendered before and after field names.
197
270
  - ce5a165177: Added support for `or` functions in RBAC conditions within Markdoc content.
198
271
 
199
272
  ### Patch Changes
@@ -410,7 +483,7 @@
410
483
  - 60b9b77bc39: Fixed a bug that caused search result highlighting to break in Flexsearch when the query contained duplicate words.
411
484
  - f1edba375c0: Updated translate memoization to depend on the active language, ensuring hooks recompute and translations update on language switch.
412
485
  - ae3272861b4: Added support for `x-badges` in OpenAPI and AsyncAPI parameters and schema properties.
413
- Badges can now be rendered before and after field names.
486
+ Badges can be rendered before and after field names.
414
487
  - 87a97521127: Fixed an issue where `partial` Markdoc tags in OpenAPI and AsyncAPI `description` fields did not resolve when path separators differed.
415
488
  - Updated dependencies [4003b73d9ca]
416
489
  - Updated dependencies [ae3272861b4]
@@ -497,7 +570,7 @@
497
570
  - 466f4ca3ba: Fixed an issue where custom Markdoc heading IDs were not used in search results.
498
571
  - f7b6c52055: Improved appearance and deep linking for the `tabs` Markdoc tag.
499
572
  - 2d305eec36: Fixed the built-in CORS proxy failing with "fetch failed" for certain URLs.
500
- Now the browser's `accept-encoding` header isn't forwarded and the error message surfaces the underlying cause.
573
+ The browser's `accept-encoding` header isn't forwarded and the error message surfaces the underlying cause.
501
574
  - 807547ecbd: Improved build memory usage for large projects.
502
575
  - 7276b4e5d6: Fixed an issue in AI Search where clearing the product tag would still include the product in the search request.
503
576
  - a9a1ee0fe1: Fixed an issue where page actions remained visible even though `search` was disabled.
@@ -558,7 +631,7 @@
558
631
  ### Patch Changes
559
632
 
560
633
  - 2d305eec36a: Fixed the built-in CORS proxy failing with "fetch failed" for certain URLs.
561
- Now the browser's `accept-encoding` header isn't forwarded and the error message surfaces the underlying cause.
634
+ The browser's `accept-encoding` header isn't forwarded and the error message surfaces the underlying cause.
562
635
 
563
636
  ## 0.131.0-next.13
564
637
 
@@ -828,7 +901,7 @@
828
901
 
829
902
  - ac12b3523a: Added an interactive lightbox viewer for Mermaid diagrams with zoom, pan, and keyboard navigation.
830
903
  - 1ff6da217d: Added support for branch-specific configuration in `redocly.yaml`.
831
- - 12fd642835: Transitioned AI Search to agent mode, now featuring expanded search capabilities and direct integration with the Docs MCP.
904
+ - 12fd642835: Transitioned AI Search to agent mode, featuring expanded search capabilities and direct integration with the Docs MCP.
832
905
  - ec292cdaaa: Made the **403 Forbidden** error page layout ejectable and improved its styling.
833
906
  - f117f86b3b: Added `login-button` Markdoc tag to render a login button on project pages.
834
907
  - 053051e82f: Added `rbac` support for banners to allow conditional visibility based on user team membership.
@@ -890,7 +963,7 @@
890
963
 
891
964
  ### Minor Changes
892
965
 
893
- - 12fd642835: Transitioned AI Search to agent mode, now featuring expanded search capabilities and direct integration with the Docs MCP.
966
+ - 12fd642835: Transitioned AI Search to agent mode, featuring expanded search capabilities and direct integration with the Docs MCP.
894
967
  - 053051e82f: Added `rbac` support for banners to allow conditional visibility based on user team membership.
895
968
 
896
969
  ### Patch Changes
@@ -3681,13 +3754,13 @@
3681
3754
  - 470c8696d4: Fixed an issue with links inside Markdown files, where links to OpenAPI documents were not resolved properly.
3682
3755
  - 27ac3236e5: Fixed an issue that caused launching with the `redocly preview` command to fail if you installed dependencies using `yarn`.
3683
3756
  - 99358a34e5: Resolved an issue where switching to a product opened a non-priority page instead of an index page.
3684
- Now, if a product has an index page, it is displayed first.
3757
+ If a product has an index page, it is displayed first.
3685
3758
  - 0cbb078d72: Updated version of the `@redocly/openapi-core` dependency to `1.31.1`.
3686
3759
  - 9e76b1f148: Updated version of the `@markdoc/markdoc` from `0.4.0` to `0.5.1`
3687
3760
  - 34a049d3d0: Fixed an issue where Markdown pages with `frontmatter.slug` directed users to a 404 error page when selected in a different language locale.
3688
3761
  - 03608f2a01: Fixed AI search error handling for Unauthorized and Forbidden errors.
3689
3762
  - a85ddf0b86: Resolved an issue with AI search resource styles being overridden by custom styles for `<Tag>` component.
3690
- - 6b9933d961: Fixed script handling in single page application (SPA) mode. Inline scripts are now executed on navigation.
3763
+ - 6b9933d961: Fixed script handling in single page application (SPA) mode. Inline scripts are executed on navigation.
3691
3764
  - c34c0da390: Fixed an issue where in development mode updates to `redocly.yaml` config were processed much longer than updates to other files.
3692
3765
  - 463b9fb93e: Fixed an issue where the `navigation.nextButton.text` and `navigation.previousButton.text` config properties did not change the text of the navigation buttons.
3693
3766
  - 7e80929731: Fixed an issue where the SEO `meta` tags were not updated during navigation between pages.
@@ -3759,9 +3832,9 @@
3759
3832
  ### Patch Changes
3760
3833
 
3761
3834
  - 99358a34e5: Resolved an issue where switching to a product opened a non-priority page instead of an index page.
3762
- Now, if a product has an index page, it is displayed first.
3835
+ If a product has an index page, it is displayed first.
3763
3836
  - 34a049d3d0: Fixed an issue where Markdown pages with `frontmatter.slug` directed users to a 404 error page when selected in a different language locale.
3764
- - 6b9933d961: Fixed script handling in single page application (SPA) mode. Inline scripts are now executed on navigation.
3837
+ - 6b9933d961: Fixed script handling in single page application (SPA) mode. Inline scripts are executed on navigation.
3765
3838
  - Updated dependencies [bcb712fe03]
3766
3839
  - Updated dependencies [ec9eff8ad9]
3767
3840
  - @redocly/openapi-docs@3.7.0-next.2
@@ -3860,7 +3933,7 @@
3860
3933
  ### Minor Changes
3861
3934
 
3862
3935
  - bc13399880: Enhanced development mode error handling showing compilation errors instead of `Internal Server Error` page.
3863
- CSS errors now display in an a toast message.
3936
+ CSS errors display in an a toast message.
3864
3937
  Pages automatically rebuild after fixing errors without server restart.
3865
3938
 
3866
3939
  ## 0.115.1
@@ -3957,8 +4030,8 @@
3957
4030
 
3958
4031
  ### Patch Changes
3959
4032
 
3960
- - f08b1cfdd2: Headers are now excluded from page data for anonymous users to prevent potential cache deception attacks.
3961
- - 7a285f0828: Improved AI search dialog: now links opening in new tabs, the search button is always enabled, and the search field label is updated.
4033
+ - f08b1cfdd2: Headers are excluded from page data for anonymous users to prevent potential cache deception attacks.
4034
+ - 7a285f0828: Improved AI search dialog: links opening in new tabs, the search button is always enabled, and the search field label is updated.
3962
4035
  - 44110c4c7c: Changed the text color in the total page counter to improve readability in light mode.
3963
4036
  - 698f536b5c: Updated version of the `@redocly/openapi-core` dependency to `1.26.1`.
3964
4037
  - Updated dependencies [44110c4c7c]
@@ -4031,7 +4104,7 @@
4031
4104
  ### Patch Changes
4032
4105
 
4033
4106
  - 5ffc1db4e8: Updated version of the `@redocly/openapi-core` dependency to `1.26.0`.
4034
- - 001406d157: Improved error handling in the project: project pages that display an error message are now automatically refreshed after the user resolves the error in the editor.
4107
+ - 001406d157: Improved error handling in the project: project pages that display an error message are automatically refreshed after the user resolves the error in the editor.
4035
4108
  This occurs both for Reunite and local projects.
4036
4109
  - Updated dependencies [5ffc1db4e8]
4037
4110
  - Updated dependencies [b6b91308d6]
@@ -4218,7 +4291,7 @@
4218
4291
 
4219
4292
  ### Patch Changes
4220
4293
 
4221
- - ae03d1fc71: Improved the `output` property for `apis` configuration. The property now works as a reference from `openapi` Markdoc tags.
4294
+ - ae03d1fc71: Improved the `output` property for `apis` configuration. The property works as a reference from `openapi` Markdoc tags.
4222
4295
  - be7d2e6286: Fixed an issue where if you set `REDOCLY_PREFIX_PATHS` in the environment variables for a project, the Reunite Webview would stop updating based on the page selected in the editor.
4223
4296
  - Updated dependencies [9574a87b33]
4224
4297
  - Updated dependencies [47065856c6]
@@ -4400,7 +4473,7 @@
4400
4473
 
4401
4474
  ### Patch Changes
4402
4475
 
4403
- - 5e5916b415: Resolved an issue that caused the page to crash when using the OpenAPI Code Sample Markdoc tags if the `descriptionFile` value was an incorrect path. Now if the path is invalid, users are presented with an error directing them to correct it.
4476
+ - 5e5916b415: Resolved an issue that caused the page to crash when using the OpenAPI Code Sample Markdoc tags if the `descriptionFile` value was an incorrect path. If the path is invalid, users are presented with an error directing them to correct it.
4404
4477
 
4405
4478
  ## 0.104.3
4406
4479
 
@@ -4726,8 +4799,8 @@
4726
4799
 
4727
4800
  ### Minor Changes
4728
4801
 
4729
- - 176b280257: Deprecated the `theme.imports` property. Themes and plugins must now be enabled through the `plugins` configuration property. Using the `theme.imports` does not fail the build for now, but produces warnings in the build log.
4730
- - 7e71bf855b: Deprecated the `theme` property of `redocly.yaml` config. All of the configuration properties under `theme` now reside in the root of the config.
4802
+ - 176b280257: Deprecated the `theme.imports` property. Themes and plugins must be enabled through the `plugins` configuration property. Using the `theme.imports` does not fail the build, but produces warnings in the build log.
4803
+ - 7e71bf855b: Deprecated the `theme` property of `redocly.yaml` config. All of the configuration properties under `theme` reside in the root of the config.
4731
4804
 
4732
4805
  ### Patch Changes
4733
4806
 
@@ -4825,13 +4898,13 @@
4825
4898
 
4826
4899
  ### Patch Changes
4827
4900
 
4828
- - ed391e8607: Resolved an issue with audience verification. Users without access permissions to the project are now redirected to the sign up page.
4901
+ - ed391e8607: Resolved an issue with audience verification. Users without access permissions to the project are redirected to the sign up page.
4829
4902
 
4830
4903
  ## 0.92.2
4831
4904
 
4832
4905
  ### Patch Changes
4833
4906
 
4834
- - 8b3aa69af2: Each error in the `redocly.yaml` file is now reported separately. Previously, all validation errors from `redocly.yaml` were bundled and reported as one error.
4907
+ - 8b3aa69af2: Each error in the `redocly.yaml` file is reported separately. Previously, all validation errors from `redocly.yaml` were bundled and reported as one error.
4835
4908
  - Updated dependencies [ac665b40f7]
4836
4909
  - Updated dependencies [a0e2645687]
4837
4910
  - Updated dependencies [c848158ee4]
@@ -4849,7 +4922,7 @@
4849
4922
 
4850
4923
  ### Minor Changes
4851
4924
 
4852
- - 2ad34ae141: **IMPORTANT**: Markdoc errors will now fail a production build.\
4925
+ - 2ad34ae141: **IMPORTANT**: Markdoc errors fail production builds.\
4853
4926
  To make Realm ignore Markdoc errors during production builds, set the `reunite.ignoreMarkdocErrors` property in `redocly.yaml` to `true`.
4854
4927
 
4855
4928
  ### Patch Changes
@@ -4917,7 +4990,7 @@
4917
4990
 
4918
4991
  ### Patch Changes
4919
4992
 
4920
- - 9f25cc7efb: References to partials `@i18n` folder using absolute links must now start with `/@i18n`. Previously, this part was omitted and the path would start from the locale directory name.
4993
+ - 9f25cc7efb: References to partials `@i18n` folder using absolute links must start with `/@i18n`. Previously, this part was omitted and the path would start from the locale directory name.
4921
4994
 
4922
4995
  ## 0.90.0
4923
4996
 
@@ -4972,7 +5045,7 @@
4972
5045
 
4973
5046
  - 0fdd7f22f9: Changed the order of moods in the mood feedback type to "from negative to positive".
4974
5047
  - 67100a3e83: fix(project): Adjusted cache headers to prevent browser caching to ensure users always receive the latest version of the content.
4975
- - fde6bd8184: Improved the default behavior for versioned items in sidebars. When items from different versioned folders are available, the sidebar now prefers and displays items with the same version as the currently active page.
5048
+ - fde6bd8184: Improved the default behavior for versioned items in sidebars. When items from different versioned folders are available, the sidebar prefers and displays items with the same version as the currently active page.
4976
5049
  - Updated dependencies [0fdd7f22f9]
4977
5050
  - Updated dependencies [1b6abdc7af]
4978
5051
  - @redocly/theme@0.38.2
@@ -5032,7 +5105,7 @@
5032
5105
  ### Patch Changes
5033
5106
 
5034
5107
  - e50e90b554: Fixed an issue when versioned content had a separate sidebars.yaml defined for each version, the navbar groups and separators were displayed for all versions of the content.
5035
- Now the navbar groups and separators are displayed only for the corresponding version chosen in the version picker.
5108
+ The navbar groups and separators are displayed only for the corresponding version chosen in the version picker.
5036
5109
 
5037
5110
  ## 0.88.2
5038
5111
 
@@ -1 +1 @@
1
- import{useEffect as c,useState as s}from"react";import{useNavigate as l}from"react-router-dom";import{isLocalLink as m}from"../../utils/path/is-local-link.js";import{isJsProtocolLink as a}from"../../utils/path/is-js-protocol-link.js";import{isAssetsLink as u}from"../../utils/path/is-assets-link.js";import{isHostnameOnDomain as f}from"../app/utils/isHostnameOnDomain.js";import{loadAndNavigate as d}from"../app/utils/loadAndNavigate.js";import{isForcedNavigationLinkClick as p}from"../utils/utils.js";export*from"./page-data/hooks.js";function E(){const e=l();c(()=>{const t=n=>{const i=n.target;if(i.tagName!=="A"||p(n,i.getAttribute("target")||""))return;const r=i.getAttribute("href");!m(r)||u(r)||a(r)||(n.preventDefault(),d({navigate:e,to:r||""}))};return document.addEventListener("click",t),()=>{document.removeEventListener("click",t)}},[e])}function b(){const[e,t]=s(null);return c(()=>{if(process.env.NODE_ENV==="development"&&typeof window<"u"&&!o("localhost")&&!o("127.0.0.1")&&!o("")&&!o("redocly-local.com")&&!o("editor.redocly.xyz")&&!o("apps.codespaces.githubusercontent.com")&&!o("blueharvest.cloud")&&!o("bhstage.cloud")&&!o("cloud.redocly.com")&&!o("cloud.eu.redocly.com")&&!o("cba.au.redocly.com"))return t("Development mode is only allowed in localhost")},[typeof window]),e}function o(e){return f(window.location.hostname,e)}export{E as useRouterForLocalLinks,b as useRunningEnvironmentCheck};
1
+ import{useEffect as c,useState as s}from"react";import{useNavigate as l}from"react-router-dom";import{isLocalLink as u}from"../../utils/path/is-local-link.js";import{isJsProtocolLink as a}from"../../utils/path/is-js-protocol-link.js";import{isAssetsLink as m}from"../../utils/path/is-assets-link.js";import{isHostnameOnDomain as f}from"../app/utils/isHostnameOnDomain.js";import{loadAndNavigate as d}from"../app/utils/loadAndNavigate.js";import{isForcedNavigationLinkClick as p}from"../utils/utils.js";export*from"./page-data/hooks.js";function E(){const o=l();c(()=>{const r=t=>{if(t.defaultPrevented)return;const i=t.target;if(i.tagName!=="A"||p(t,i.getAttribute("target")||""))return;const n=i.getAttribute("href");!u(n)||m(n)||a(n)||(t.preventDefault(),d({navigate:o,to:n||""}))};return document.addEventListener("click",r),()=>{document.removeEventListener("click",r)}},[o])}function b(){const[o,r]=s(null);return c(()=>{if(process.env.NODE_ENV==="development"&&typeof window<"u"&&!e("localhost")&&!e("127.0.0.1")&&!e("")&&!e("redocly-local.com")&&!e("editor.redocly.xyz")&&!e("apps.codespaces.githubusercontent.com")&&!e("blueharvest.cloud")&&!e("bhstage.cloud")&&!e("cloud.redocly.com")&&!e("cloud.eu.redocly.com")&&!e("cba.au.redocly.com"))return r("Development mode is only allowed in localhost")},[typeof window]),o}function e(o){return f(window.location.hostname,o)}export{E as useRouterForLocalLinks,b as useRunningEnvironmentCheck};
@@ -1 +1 @@
1
- import*as p from"workerpool";import{withPathPrefix as f}from"@redocly/theme/core/utils";import{envConfig as u}from"../config/env-config.js";import{telemetry as a}from"../telemetry/index.js";import{TimeoutExceededError as E}from"./errors/timeout-exceeded.js";import{serializeRequest as _}from"./helpers/serialize-request.js";import{apiRoutesWorkers as A,API_ROUTES_WORKER_KEY as T}from"../workers/api-routes-worker-pool.js";import{API_FUNCTIONS_REQUEST_HANDLER_ID as d}from"../plugins/api-functions/index.js";const g=1e4,h=15;async function U(e,r,t){a.initialize();const s=r.get("auth"),i=await t.resolveRouteStaticData(e)||{},n=f(e.slug);try{const{status:o,headers:l,body:c}=await A.exec(T,[{serverOutDir:t.serverOutDir,slug:n,requestHandlerId:e.requestHandlerId,maxResponseSizeMB:h,ctxData:{user:{teams:s.teams,email:s.claims.email,claims:s.claims,idpAccessToken:s.idpAccessToken,idpId:s.claims.idpId,isAuthenticated:s.isAuthenticated},config:t.config,outdir:t.outdir,baseUrl:new URL(r.req.url).origin},staticData:{...i,props:{...i.props,routeSlug:n,outdir:t.outdir}},req:await _(r.req.raw),sqldRemoteDatabaseUrl:u.SQLD_REMOTE_DATABASE_URL,sqldRemoteDatabaseAuthToken:u.SQLD_REMOTE_DATABASE_AUTH_TOKEN}],{timeout:g});R({requestHandlerId:e.requestHandlerId,body:c,headers:l,status:o,ctx:r});const m=c.data?Buffer.from(c.data):null;return new Response(m,{status:o,headers:l})}catch(o){throw M({requestHandlerId:e.requestHandlerId,error:o}),o instanceof p.Promise.TimeoutError?new E("Timeout exceeded"):o}}function R({requestHandlerId:e,body:r,headers:t,status:s,ctx:i}){e.startsWith(d)?a.sendApiFunctionCalledMessage([{object:"api_function",error:null,handler:e,body:r,headers:t,status:s}]):a.sendMockServerCalledMessage([{object:"mock_server",error:null,handler:e,body:r,headers:{"user-agent":i.req.header("user-agent")??""},status:s}])}function M({requestHandlerId:e,error:r}){const t={handler:e,message:r?.message??null,stack:r?.stack??null};e.startsWith(d)?a.sendApiFunctionErrorMessage([{object:"api_function",...t}]):a.sendMockServerErrorMessage([{object:"mock_server",...t}])}export{U as runApiRoutesWorker,M as sendTelemetryErrorMessage};
1
+ import*as p from"workerpool";import{withPathPrefix as f}from"@redocly/theme/core/utils";import{envConfig as l}from"../config/env-config.js";import{telemetry as a}from"../telemetry/index.js";import{TimeoutExceededError as E}from"./errors/timeout-exceeded.js";import{serializeRequest as _}from"./helpers/serialize-request.js";import{apiRoutesWorkers as A,API_ROUTES_WORKER_KEY as T}from"../workers/api-routes-worker-pool.js";import{API_FUNCTIONS_REQUEST_HANDLER_ID as u}from"../plugins/api-functions/index.js";const g=1e4,h=15;async function U(e,r,t){a.initialize();const s=r.get("auth"),i=await t.resolveRouteStaticData(e)||{},n=f(e.slug);try{const{status:o,headers:d,body:c}=await A.exec(T,[{serverOutDir:t.serverOutDir,slug:n,requestHandlerId:e.requestHandlerId,maxResponseSizeMB:h,ctxData:{user:{teams:s.teams,email:s.claims.email,claims:s.claims,idpAccessToken:s.idpAccessToken,idpId:s.claims.idpId,isAuthenticated:s.isAuthenticated},config:t.config,outdir:t.outdir,baseUrl:new URL(r.req.url).origin},staticData:{...i,props:{...i.props,routeSlug:n,outdir:t.outdir}},req:await _(r.req.raw),sqldRemoteDatabaseUrl:l.SQLD_REMOTE_DATABASE_URL,sqldRemoteDatabaseAuthToken:l.SQLD_REMOTE_DATABASE_AUTH_TOKEN}],{timeout:g});R({requestHandlerId:e.requestHandlerId,status:o,ctx:r});const m=c.data?Buffer.from(c.data):null;return new Response(m,{status:o,headers:d})}catch(o){throw M({requestHandlerId:e.requestHandlerId,error:o}),o instanceof p.Promise.TimeoutError?new E("Timeout exceeded"):o}}function R({requestHandlerId:e,status:r,ctx:t}){e.startsWith(u)?a.sendApiFunctionCalledMessage([{object:"api_function",error:null,handler:e,status:r}]):a.sendMockServerCalledMessage([{object:"mock_server",error:null,handler:e,headers:{"user-agent":t.req.header("user-agent")??null},status:r}])}function M({requestHandlerId:e,error:r}){const t={handler:e,message:r?.message??null,stack:r?.stack??null};e.startsWith(u)?a.sendApiFunctionErrorMessage([{object:"api_function",...t}]):a.sendMockServerErrorMessage([{object:"mock_server",...t}])}export{U as runApiRoutesWorker,M as sendTelemetryErrorMessage};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/revel-reef",
3
- "version": "0.133.0-next.6",
3
+ "version": "0.133.1",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "bin": {
@@ -90,14 +90,14 @@
90
90
  "xpath": "0.0.34",
91
91
  "yaml-ast-parser": "0.0.43",
92
92
  "zod": "^3.25.76",
93
- "@redocly/asyncapi-docs": "1.10.0-next.6",
93
+ "@redocly/graphql-docs": "1.10.0",
94
94
  "@redocly/config": "0.48.1",
95
- "@redocly/graphql-docs": "1.10.0-next.6",
96
- "@redocly/openapi-docs": "3.21.0-next.6",
97
- "@redocly/portal-legacy-ui": "0.16.0-next.0",
98
- "@redocly/portal-plugin-mock-server": "0.18.0-next.6",
99
- "@redocly/realm-asyncapi-sdk": "0.11.0-next.4",
100
- "@redocly/theme": "0.65.0-next.5"
95
+ "@redocly/portal-legacy-ui": "0.16.0",
96
+ "@redocly/openapi-docs": "3.21.0",
97
+ "@redocly/asyncapi-docs": "1.10.0",
98
+ "@redocly/portal-plugin-mock-server": "0.18.0",
99
+ "@redocly/realm-asyncapi-sdk": "0.11.1",
100
+ "@redocly/theme": "0.65.0"
101
101
  },
102
102
  "peerDependencies": {
103
103
  "react": "^19.2.4",