@redocly/revel-reef 0.130.0-next.6 → 0.130.0-next.7

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,16 @@
1
1
  # @redocly/revel-reef
2
2
 
3
+ ## 0.130.0-next.7
4
+
5
+ ### Patch Changes
6
+
7
+ - 8cb9a82a7a: Fixed support for `.redocly.lint-ignore.yaml` in the scorecard and `openapi-language-server`.
8
+ - 8cb9a82a7a: Updated `@redocly/openapi-core` to version `0.0.0-snapshot.1769511679`.
9
+ - Updated dependencies [8cb9a82a7a]
10
+ - @redocly/openapi-docs@3.18.0-next.6
11
+ - @redocly/asyncapi-docs@1.7.0-next.6
12
+ - @redocly/portal-plugin-mock-server@0.15.0-next.6
13
+
3
14
  ## 0.130.0-next.6
4
15
 
5
16
  ### Patch Changes
@@ -1,7 +1,7 @@
1
- import{telemetry as l}from"./app/telemetry/index.js";l.init({otel:{isProd:process.env.NODE_ENV==="production",serviceVersion:`${b}@${process.env.REDOCLY_PORTAL_VERSION}`,version:"1.0.0",collectorTraceUrl:new URL(r(D.OTEL_TRACES),location.origin).toString(),serviceName:"realm-ui",tracerName:"client-telemetry",instrumentations:[new u,new R,new E]},disabled:!h});import e from"react";import{hydrateRoot as m}from"react-dom/client";import{RouterProvider as p,createBrowserRouter as f}from"react-router-dom";import{HelmetProvider as d}from"@dr.pogodin/react-helmet";import{DocumentLoadInstrumentation as u}from"@opentelemetry/instrumentation-document-load";import{XMLHttpRequestInstrumentation as E}from"@opentelemetry/instrumentation-xml-http-request";import{FetchInstrumentation as R}from"@opentelemetry/instrumentation-fetch";import{getLocaleFromPathname as L,withoutPathPrefix as O,withPathPrefix as r}from"@redocly/theme/core/utils";import{DEFAULT_LOCALE_PLACEHOLDER as _,ServerRoutes as D}from"../constants/common";import{TELEMETRY_ENABLED as h}from"../server/constants/common.js";import{initL10n as g}from"./app/l10n/initL10n";import{Loader as v,useRefresh as x,globalData as t}from"./runtime/loader";import{App as A,routes as P}from"./App";import{PACKAGE_NAME as b,PRODUCT_NAME as N}from"../config/product-gates";import"./polyfills";import{ServerStyleSheet as j,StyleSheetManager as J}from"styled-components";function T(){return x(),e.createElement(d,{context:{}},e.createElement(A,null))}function w(){t?.removeAttribution&&process.env.REDOCLY_PORTAL_VERSION?console.log(`
1
+ import{telemetry as s}from"./app/telemetry/index.js";s.init({otel:{isProd:process.env.NODE_ENV==="production",serviceVersion:`${x}@${process.env.REDOCLY_PORTAL_VERSION}`,version:"1.0.0",collectorTraceUrl:new URL(r(L.OTEL_TRACES),location.origin).toString(),serviceName:"realm-ui",tracerName:"client-telemetry"},disabled:!O});import e from"react";import{hydrateRoot as p}from"react-dom/client";import{RouterProvider as m,createBrowserRouter as d}from"react-router-dom";import{HelmetProvider as f}from"@dr.pogodin/react-helmet";import{getLocaleFromPathname as u,withoutPathPrefix as E,withPathPrefix as r}from"@redocly/theme/core/utils";import{DEFAULT_LOCALE_PLACEHOLDER as R,ServerRoutes as L}from"../constants/common";import{TELEMETRY_ENABLED as O}from"../server/constants/common.js";import{initL10n as _}from"./app/l10n/initL10n";import{Loader as D,useRefresh as g,globalData as t}from"./runtime/loader";import{App as h,routes as v}from"./App";import{PACKAGE_NAME as x,PRODUCT_NAME as A}from"../config/product-gates";import"./polyfills";import{ServerStyleSheet as z,StyleSheetManager as G}from"styled-components";function P(){return g(),e.createElement(f,{context:{}},e.createElement(h,null))}function b(){t?.removeAttribution&&process.env.REDOCLY_PORTAL_VERSION?console.log(`
2
2
  %c Version: ${process.env.REDOCLY_PORTAL_VERSION} %c
3
3
  `,"background:#ffffff ; padding: 1px; border:1px solid #0044D4; border-radius: 3px; color: #0044D4","background:transparent"):process.env.REDOCLY_PORTAL_VERSION&&console.log(`
4
- %c Redocly ${N} %c ${process.env.REDOCLY_PORTAL_VERSION} %c
4
+ %c Redocly ${A} %c ${process.env.REDOCLY_PORTAL_VERSION} %c
5
5
 
6
6
  %chttps://redocly.com
7
- `,"background:#0044D4 ; padding: 1px; border-radius: 3px 0 0 3px; color: #fff; border:1px solid #0044D4","background:#ffffff ; padding: 1px; border:1px solid #0044D4; border-radius: 0 3px 3px 0; color: #0044D4","background:transparent","font-size: 10px; font-style: italic;")}async function S(){process.env.NODE_ENV!=="production"&&import("./runtime/ws-client").then(s=>s.listenWs()),await v.load(window.location.pathname,void 0,window.location.search),w();const o=t?.l10n,n=o?.locales||[],i=o?.defaultLocale||_,a=L(O(location.pathname),i,n);await g(o,a);const c=f([{Component:T,path:r("/*"),children:P}]);m(document.getElementById("app_root"),e.createElement(p,{future:{v7_startTransition:!1},router:c}))}S();export{j as ServerStyleSheet,J as StyleSheetManager};
7
+ `,"background:#0044D4 ; padding: 1px; border-radius: 3px 0 0 3px; color: #fff; border:1px solid #0044D4","background:#ffffff ; padding: 1px; border:1px solid #0044D4; border-radius: 0 3px 3px 0; color: #0044D4","background:transparent","font-size: 10px; font-style: italic;")}async function N(){process.env.NODE_ENV!=="production"&&import("./runtime/ws-client").then(l=>l.listenWs()),await D.load(window.location.pathname,void 0,window.location.search),b();const o=t?.l10n,n=o?.locales||[],i=o?.defaultLocale||R,a=u(E(location.pathname),i,n);await _(o,a);const c=d([{Component:P,path:r("/*"),children:v}]);p(document.getElementById("app_root"),e.createElement(m,{future:{v7_startTransition:!1},router:c}))}N();export{z as ServerStyleSheet,G as StyleSheetManager};
@@ -1,2 +1,2 @@
1
- import{eq as E,and as g,gte as m,gt as M,lt as f,asc as D,desc as B,or as K,isNull as b,sql as c,inArray as q,count as N}from"drizzle-orm";import{logger as d}from"../../../tools/notifiers/logger.js";import{kvTable as t}from"../../../providers/database/databases/sqld-sqlite/schemas/kv-table.js";import{BaseRepository as $}from"../../../providers/database/base-repository.js";import{DatabaseConnectionFactory as I}from"../../../providers/database/database-connection-factory.js";import{createKvValue as S}from"../mappers/create-kv-value.js";import{createKvDbRecord as V,encodeKvKey as l}from"../mappers/create-kv-db-record.js";import{decodeCursor as L}from"../helpers/decode-cursor.js";import{encodeCursor as Q}from"../helpers/encode-cursor.js";import{createKvListEntry as C}from"../mappers/create-kv-list-entry.js";const U="";class u extends ${static#e;#t=!1;constructor(e){super(e)}static async getInstance(e){if(!u.#e)try{const r=await I.create("sqld-remote",e);if(!r)return u.#e=null,null;u.#e=new u(r)}catch(r){return d.error("Error creating kv remote repository",r),u.#e=null,null}return u.#e}async sync(){if(!this.#t&&this.isNonRemoteDatabaseMode()){d.warn(`KV database is currently operating in local mode: not connected to the remote database.
2
- All changes and data will only persist locally and will not be synced remotely.`),this.#t=!0;return}await this.databaseClient.sync()}async get(e){try{const r=l(e),n=await this.databaseClient.client.select().from(t).where(g(E(t.encodedKey,r),K(b(t.expiresAt),m(c`datetime(${t.expiresAt})`,c`datetime('now')`)))).get();return n?S(n):null}catch(r){return d.error("Error getting kv entry by key",r),null}}async getMany(e){try{if(e.length===0)return[];const r=e.map(i=>l(i)),n=K(b(t.expiresAt),m(c`datetime(${t.expiresAt})`,c`datetime('now')`)),a=await this.databaseClient.client.select().from(t).where(g(q(t.encodedKey,r),n)).all(),s=new Map(a.map(i=>[i.encodedKey,i]));return e.map((i,w)=>{const h=r[w],x=s.get(h);return x?C(x):null})}catch(r){return d.error("Error getting multiple kv entries",r),[]}}async list(e,r){try{const n=r?.limit??100,a=r?.reverse??!1,s=[],v=K(b(t.expiresAt),m(c`datetime(${t.expiresAt})`,c`datetime('now')`));if(s.push(v),"prefix"in e){const o=l(e.prefix),y="start"in e?l(e.start):o,k="end"in e?l(e.end):o+U;s.push(m(t.encodedKey,y)),s.push(f(t.encodedKey,k))}else if("start"in e&&"end"in e){const o=l(e.start),y=l(e.end);s.push(m(t.encodedKey,o)),s.push(f(t.encodedKey,y))}if(r?.cursor){const o=L(r.cursor),y=a?f(t.encodedKey,o):M(t.encodedKey,o);s.push(y)}const i=this.databaseClient.client.select().from(t),w=s.length>0?i.where(g(...s)):i,h=this.databaseClient.client.select({count:N()}).from(t),A=(await(s.length>0?h.where(g(...s)):h).get())?.count??0,p=await w.orderBy(a?B(t.encodedKey):D(t.encodedKey)).limit(n).all();return{items:p.map(o=>C(o)),total:A,cursor:A>p.length?Q(p[p.length-1]?.encodedKey):null}}catch(n){return d.error("Error listing kv entries",n),{items:[],total:0,cursor:null}}}async set(e,r,n){try{const a=V({key:e,value:r,ttlInSeconds:n?.ttlInSeconds});return await this.databaseClient.client.insert(t).values(a).onConflictDoUpdate({target:[t.encodedKey],set:{value:a.value,expiresAt:a.expiresAt,updatedAt:a.updatedAt}}),C(a)}catch(a){return d.error("Error saving kv entry",a),null}}async delete(e){try{const r=l(e);await this.databaseClient.client.delete(t).where(E(t.encodedKey,r))}catch(r){d.error("Error deleting kv entry by key",r)}}async clearExpired(){try{await this.databaseClient.client.delete(t).where(f(c`datetime(${t.expiresAt})`,c`datetime('now')`))}catch(e){d.error("Error clearing expired kv entries",e)}}async transaction(e){return this.databaseClient.transactionsManager.transaction(async()=>e({get:async n=>this.get(n),getMany:async n=>this.getMany(n),set:async(n,a,s)=>this.set(n,a,s),delete:async n=>this.delete(n)}))}}export{U as KV_KEY_END_BOUNDARY,u as KvRemoteRepository};
1
+ import{eq as E,and as g,gte as m,gt as M,lt as f,asc as D,desc as B,or as K,isNull as b,sql as c,inArray as q,count as N}from"drizzle-orm";import{logger as d}from"../../../tools/notifiers/logger.js";import{kvTable as t}from"../../../providers/database/databases/sqld-sqlite/schemas/kv-table.js";import{BaseRepository as $}from"../../../providers/database/base-repository.js";import{DatabaseConnectionFactory as I}from"../../../providers/database/database-connection-factory.js";import{createKvValue as S}from"../mappers/create-kv-value.js";import{createKvDbRecord as V,encodeKvKey as l}from"../mappers/create-kv-db-record.js";import{decodeCursor as L}from"../helpers/decode-cursor.js";import{encodeCursor as Q}from"../helpers/encode-cursor.js";import{createKvListEntry as C}from"../mappers/create-kv-list-entry.js";const U="";class u extends ${static#e;#t=!1;constructor(e){super(e)}static async getInstance(e){if(!u.#e)try{const r=await I.create("sqld-remote",e);if(!r)return u.#e=null,null;u.#e=new u(r)}catch(r){return d.error("Error creating kv remote repository",r),u.#e=null,null}return u.#e}async sync(){if(this.isNonRemoteDatabaseMode()){this.#t||(d.warn(`KV database is currently operating in local mode: not connected to the remote database.
2
+ All changes and data will only persist locally and will not be synced remotely.`),this.#t=!0);return}await this.databaseClient.sync()}async get(e){try{const r=l(e),n=await this.databaseClient.client.select().from(t).where(g(E(t.encodedKey,r),K(b(t.expiresAt),m(c`datetime(${t.expiresAt})`,c`datetime('now')`)))).get();return n?S(n):null}catch(r){return d.error("Error getting kv entry by key",r),null}}async getMany(e){try{if(e.length===0)return[];const r=e.map(i=>l(i)),n=K(b(t.expiresAt),m(c`datetime(${t.expiresAt})`,c`datetime('now')`)),a=await this.databaseClient.client.select().from(t).where(g(q(t.encodedKey,r),n)).all(),s=new Map(a.map(i=>[i.encodedKey,i]));return e.map((i,w)=>{const h=r[w],x=s.get(h);return x?C(x):null})}catch(r){return d.error("Error getting multiple kv entries",r),[]}}async list(e,r){try{const n=r?.limit??100,a=r?.reverse??!1,s=[],v=K(b(t.expiresAt),m(c`datetime(${t.expiresAt})`,c`datetime('now')`));if(s.push(v),"prefix"in e){const o=l(e.prefix),y="start"in e?l(e.start):o,k="end"in e?l(e.end):o+U;s.push(m(t.encodedKey,y)),s.push(f(t.encodedKey,k))}else if("start"in e&&"end"in e){const o=l(e.start),y=l(e.end);s.push(m(t.encodedKey,o)),s.push(f(t.encodedKey,y))}if(r?.cursor){const o=L(r.cursor),y=a?f(t.encodedKey,o):M(t.encodedKey,o);s.push(y)}const i=this.databaseClient.client.select().from(t),w=s.length>0?i.where(g(...s)):i,h=this.databaseClient.client.select({count:N()}).from(t),A=(await(s.length>0?h.where(g(...s)):h).get())?.count??0,p=await w.orderBy(a?B(t.encodedKey):D(t.encodedKey)).limit(n).all();return{items:p.map(o=>C(o)),total:A,cursor:A>p.length?Q(p[p.length-1]?.encodedKey):null}}catch(n){return d.error("Error listing kv entries",n),{items:[],total:0,cursor:null}}}async set(e,r,n){try{const a=V({key:e,value:r,ttlInSeconds:n?.ttlInSeconds});return await this.databaseClient.client.insert(t).values(a).onConflictDoUpdate({target:[t.encodedKey],set:{value:a.value,expiresAt:a.expiresAt,updatedAt:a.updatedAt}}),C(a)}catch(a){return d.error("Error saving kv entry",a),null}}async delete(e){try{const r=l(e);await this.databaseClient.client.delete(t).where(E(t.encodedKey,r))}catch(r){d.error("Error deleting kv entry by key",r)}}async clearExpired(){try{await this.databaseClient.client.delete(t).where(f(c`datetime(${t.expiresAt})`,c`datetime('now')`))}catch(e){d.error("Error clearing expired kv entries",e)}}async transaction(e){return this.databaseClient.transactionsManager.transaction(async()=>e({get:async n=>this.get(n),getMany:async n=>this.getMany(n),set:async(n,a,s)=>this.set(n,a,s),delete:async n=>this.delete(n)}))}}export{U as KV_KEY_END_BOUNDARY,u as KvRemoteRepository};
@@ -1 +1 @@
1
- import a from"node:path";import{createConfig as g}from"@redocly/openapi-core";import{ruleTypes as l}from"@redocly/config";import{deepMerge as u}from"../../../../utils/object/deep-merge.js";import{CONFIG_FILE_NAME as m}from"../../../../constants/common.js";import{getScorecardConfig as p}from"../get-scorecard-config.js";async function E(t,n){const o=await n.getConfig(),e=p(o),r=e.levels??[],i=a.join(n.fs.cwd,m),s=await c(r,o.plugins,i),f=await d(e.targets,r,o.plugins,i);return{levelsConfig:r,configs:s,targets:f}}async function c(t,n=[],o){const e={};for(const r of t)e[r.name]=await g({...r,plugins:n},{configPath:o});return e}async function d(t,n,o=[],e){return t?Promise.all(t?.filter(r=>!!r.rules).map(async r=>{const i=n.map(s=>({...s,...C(s,r.rules)}));return{...r,configs:await c(i,o,e)}})||[]):[]}function C(t,n){return l.reduce((o,e)=>(o[e]=u(t[e]??{},n??{}),o),{})}export{E as scorecardConfigLoader};
1
+ import l from"node:path";import{createConfig as m,loadIgnoreConfig as u}from"@redocly/openapi-core";import{ruleTypes as p}from"@redocly/config";import{ExternalResolver as C}from"../../../fs/utils/external-ref-resolver.js";import{deepMerge as d}from"../../../../utils/object/deep-merge.js";import{CONFIG_FILE_NAME as v}from"../../../../constants/common.js";import{getScorecardConfig as w}from"../get-scorecard-config.js";async function N(i,r){const e=await r.getConfig(),n=w(e),t=n.levels??[],o=l.join(r.fs.cwd,v),f=new C(r.fs),s=await u(o,f),c=await a(t,e.plugins,o,s),g=await y(n.targets,t,e.plugins,o,s);return{levelsConfig:t,configs:c,targets:g}}async function a(i,r=[],e,n){const t={};for(const o of i)t[o.name]=await m({...o,plugins:r},{configPath:e,ignore:n});return t}async function y(i,r,e=[],n,t){return i?Promise.all(i?.filter(o=>!!o.rules).map(async o=>{const f=r.map(s=>({...s,...L(s,o.rules)}));return{...o,configs:await a(f,e,n,t)}})||[]):[]}function L(i,r){return p.reduce((e,n)=>(e[n]=d(i[n]??{},r??{}),e),{})}export{N as scorecardConfigLoader};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/revel-reef",
3
- "version": "0.130.0-next.6",
3
+ "version": "0.130.0-next.7",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "bin": {
@@ -23,16 +23,13 @@
23
23
  "@opentelemetry/core": "2.0.1",
24
24
  "@opentelemetry/exporter-trace-otlp-http": "0.202.0",
25
25
  "@opentelemetry/instrumentation": "0.202.0",
26
- "@opentelemetry/instrumentation-document-load": "0.47.0",
27
- "@opentelemetry/instrumentation-fetch": "0.202.0",
28
26
  "@opentelemetry/instrumentation-http": "0.202.0",
29
- "@opentelemetry/instrumentation-xml-http-request": "0.202.0",
30
27
  "@opentelemetry/resources": "2.0.1",
31
28
  "@opentelemetry/sdk-trace-node": "2.0.1",
32
29
  "@opentelemetry/sdk-trace-web": "2.0.1",
33
30
  "@opentelemetry/semantic-conventions": "1.34.0",
34
31
  "@redocly/ajv": "8.17.2",
35
- "@redocly/openapi-core": "0.0.0-snapshot.1769415576",
32
+ "@redocly/openapi-core": "0.0.0-snapshot.1769511679",
36
33
  "@shikijs/transformers": "3.21.0",
37
34
  "@tanstack/react-query": "5.62.3",
38
35
  "@tanstack/react-table": "8.21.3",
@@ -71,10 +68,10 @@
71
68
  "os-browserify": "0.3.0",
72
69
  "path-browserify": "1.0.1",
73
70
  "picomatch": "2.3.1",
74
- "react": "19.2.3",
71
+ "react": "19.2.4",
75
72
  "react-calendar": "5.1.0",
76
73
  "react-date-picker": "11.0.0",
77
- "react-dom": "19.2.3",
74
+ "react-dom": "19.2.4",
78
75
  "react-router-dom": "^6.21.1",
79
76
  "react-select": "5.10.1",
80
77
  "reactjs-popup": "2.0.6",
@@ -93,18 +90,18 @@
93
90
  "xml-crypto": "6.0.1",
94
91
  "xpath": "0.0.34",
95
92
  "yaml-ast-parser": "0.0.43",
96
- "@redocly/asyncapi-docs": "1.7.0-next.5",
93
+ "@redocly/asyncapi-docs": "1.7.0-next.6",
97
94
  "@redocly/config": "0.41.2",
98
95
  "@redocly/graphql-docs": "1.7.0-next.0",
99
- "@redocly/openapi-docs": "3.18.0-next.5",
96
+ "@redocly/openapi-docs": "3.18.0-next.6",
100
97
  "@redocly/portal-legacy-ui": "0.13.0-next.0",
101
- "@redocly/portal-plugin-mock-server": "0.15.0-next.5",
98
+ "@redocly/portal-plugin-mock-server": "0.15.0-next.6",
102
99
  "@redocly/realm-asyncapi-sdk": "0.8.0-next.1",
103
100
  "@redocly/theme": "0.62.0-next.4"
104
101
  },
105
102
  "peerDependencies": {
106
- "react": "19.2.3",
107
- "react-dom": "19.2.3"
103
+ "react": "19.2.4",
104
+ "react-dom": "19.2.4"
108
105
  },
109
106
  "nx": {
110
107
  "implicitDependencies": [