@redocly/openapi-core 2.43.1 → 2.43.3

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.
Files changed (2) hide show
  1. package/README.md +5 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -177,9 +177,14 @@ async function loadConfig(options?: {
177
177
  configPath?: string;
178
178
  // allows to add custom `extends` instead of the one from the config file
179
179
  customExtends?: string[];
180
+ // whether to resolve plugin paths without importing the plugin code
181
+ skipPluginEval?: boolean;
180
182
  }): Promise<Config>;
181
183
  ```
182
184
 
185
+ Use `skipPluginEval` to read a config without executing any plugin code, for example when the plugins come from an untrusted source.
186
+ The returned config is incomplete: rules and decorators from plugins aren't loaded, and `extends` isn't resolved, so the presets it lists are ignored.
187
+
183
188
  ### `lintConfig`
184
189
 
185
190
  Lint a configuration file to validate its structure and rules.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/openapi-core",
3
- "version": "2.43.1",
3
+ "version": "2.43.3",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "types": "lib/index.d.ts",
@@ -53,7 +53,7 @@
53
53
  ],
54
54
  "dependencies": {
55
55
  "@redocly/ajv": "^8.18.1",
56
- "@redocly/config": "^0.53.0",
56
+ "@redocly/config": "^0.53.1",
57
57
  "ajv": "npm:@redocly/ajv@8.18.1",
58
58
  "ajv-formats": "^3.0.1",
59
59
  "colorette": "^1.2.0",