chore: v1.0.0-rc.1 (#1176)

This commit is contained in:
Andrew Tatomyr
2023-07-17 18:53:27 +03:00
committed by GitHub
parent 5cde65a7ba
commit ace3c7a348
7 changed files with 20 additions and 77 deletions

View File

@@ -3,6 +3,13 @@ toc:
maxDepth: 2
---
# Redocly CLI changelog
## 1.0.0-rc.1 (2023-07-17)
No changes.
# Redocly CLI changelog
## 1.0.0-beta.131 (2023-07-10)

38
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "@redocly/cli",
"version": "1.0.0-beta.131",
"version": "1.0.0-rc.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@redocly/cli",
"version": "1.0.0-beta.131",
"version": "1.0.0-rc.1",
"license": "MIT",
"workspaces": [
"packages/*"
@@ -9600,10 +9600,10 @@
},
"packages/cli": {
"name": "@redocly/cli",
"version": "1.0.0-beta.131",
"version": "1.0.0-rc.1",
"license": "MIT",
"dependencies": {
"@redocly/openapi-core": "1.0.0-beta.131",
"@redocly/openapi-core": "1.0.0-rc.1",
"assert-node-version": "^1.0.3",
"chokidar": "^3.5.1",
"colorette": "^1.2.0",
@@ -9637,11 +9637,6 @@
"node": ">=12.0.0"
}
},
"packages/cli/node_modules/@types/node": {
"version": "14.18.53",
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.53.tgz",
"integrity": "sha512-soGmOpVBUq+gaBMwom1M+krC/NNbWlosh4AtGA03SyWNDiqSKtwp7OulO1M6+mg8YkHMvJ/y0AkCeO8d1hNb7A=="
},
"packages/cli/node_modules/@types/yargs": {
"version": "17.0.5",
"resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.5.tgz",
@@ -9653,7 +9648,7 @@
},
"packages/core": {
"name": "@redocly/openapi-core",
"version": "1.0.0-beta.131",
"version": "1.0.0-rc.1",
"license": "MIT",
"dependencies": {
"@redocly/ajv": "^8.11.0",
@@ -10616,7 +10611,7 @@
"@redocly/cli": {
"version": "file:packages/cli",
"requires": {
"@redocly/openapi-core": "1.0.0-beta.131",
"@redocly/openapi-core": "1.0.0-rc.1",
"@types/configstore": "^5.0.1",
"@types/react": "^17.0.8",
"@types/react-dom": "^17.0.5",
@@ -10641,27 +10636,6 @@
"yargs": "17.0.1"
},
"dependencies": {
"@redocly/openapi-core": {
"version": "https://registry.npmjs.org/@redocly/openapi-core/-/openapi-core-1.0.0-beta.130.tgz",
"integrity": "sha512-P24AcEw06s002JZsG6f79/oqEJm3vRj4RySPHjHiJA4JXugbI7Msx4shmIX2PaGsxCLo2aKK/QlDK/0TYDqkrA==",
"requires": {
"@redocly/ajv": "^8.11.0",
"@types/node": "^14.11.8",
"colorette": "^1.2.0",
"js-levenshtein": "^1.1.6",
"js-yaml": "^4.1.0",
"lodash.isequal": "^4.5.0",
"minimatch": "^5.0.1",
"node-fetch": "^2.6.1",
"pluralize": "^8.0.0",
"yaml-ast-parser": "0.0.43"
}
},
"@types/node": {
"version": "14.18.53",
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.53.tgz",
"integrity": "sha512-soGmOpVBUq+gaBMwom1M+krC/NNbWlosh4AtGA03SyWNDiqSKtwp7OulO1M6+mg8YkHMvJ/y0AkCeO8d1hNb7A=="
},
"@types/yargs": {
"version": "17.0.5",
"resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.5.tgz",

View File

@@ -1,6 +1,6 @@
{
"name": "@redocly/cli",
"version": "1.0.0-beta.131",
"version": "1.0.0-rc.1",
"description": "",
"private": true,
"engines": {

View File

@@ -1,39 +0,0 @@
# Redocly CLI toolset
Redocly CLI toolbox with rich validation and bundling features.
![npm (scoped)](https://img.shields.io/npm/v/@redocly/cli)
![NPM](https://img.shields.io/npm/l/@redocly/cli)
![OpenAPI 3 CLI toolset](./media/redocly-cli.gif)
## Features
Currently, @redocly/cli supports these features:
- [x] Multifile validation. No need to bundle your file before validation.
- [x] Lightning-fast validation. Lint a 1 Mb file in less than one second.
- [x] Built-in rules for common validations.
- [x] Configurable severity levels for each rule.
- [x] Human-readable error messages with codeframes and stylish format options.
- [x] Intuitive suggestions for misspelled types or references.
- [x] Easy to implement custom rules.
- [x] Bundle a multifile definition into a single file.
- [x] Decorators to modify a validated definition during bundling.
- [x] Preview reference docs for local development.
- [x] Support for OpenAPI 2 (fka Swagger) and OpenAPI 3.0.
- [ ] Support for OpenAPI 3.1 ([coming soon](https://github.com/Redocly/redocly-cli/issues/160)).
## What makes this tool different
Unlike other OpenAPI linters, `@redocly/cli` defines the possible type tree of a valid OpenAPI definition and then traverses it. This approach is very similar to how linters for programming languages work and results in major performance benefits over other approaches. Extend functionality at different points in the lifecycle with preprocessors, rules, and decorators.
## TLDR
`npx @redocly/cli lint path-to-root-file.yaml`
## [Read the docs](https://redoc.ly/docs/cli/)
## Credits
Thanks to [graphql-js](https://github.com/graphql/graphql-js) and [eslint](https://github.com/eslint/eslint) for inspiration of the definition traversal approach and to [Swagger](https://github.com/swagger-api/swagger-editor), [Spectral](https://github.com/stoplightio/spectral), and [OAS-Kit](https://github.com/Mermade/oas-kit) for inspiring the ruleset.

1
packages/cli/README.md Symbolic link
View File

@@ -0,0 +1 @@
../../README.md

View File

@@ -1,6 +1,6 @@
{
"name": "@redocly/cli",
"version": "1.0.0-beta.131",
"version": "1.0.0-rc.1",
"description": "",
"license": "MIT",
"bin": {
@@ -34,7 +34,7 @@
"Roman Hotsiy <roman@redoc.ly> (https://redoc.ly/)"
],
"dependencies": {
"@redocly/openapi-core": "1.0.0-beta.131",
"@redocly/openapi-core": "1.0.0-rc.1",
"assert-node-version": "^1.0.3",
"chokidar": "^3.5.1",
"colorette": "^1.2.0",

View File

@@ -1,12 +1,12 @@
{
"name": "@redocly/openapi-core",
"version": "1.0.0-beta.131",
"version": "1.0.0-rc.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@redocly/openapi-core",
"version": "1.0.0-beta.131",
"version": "1.0.0-rc.1",
"license": "MIT",
"dependencies": {
"@redocly/ajv": "^8.11.0",

View File

@@ -1,6 +1,6 @@
{
"name": "@redocly/openapi-core",
"version": "1.0.0-beta.131",
"version": "1.0.0-rc.1",
"description": "",
"main": "lib/index.js",
"engines": {