@stoplight/spectral
Advanced tools
Comparing version 4.1.1-beta4 to 4.1.1
@@ -8,16 +8,45 @@ # Changelog | ||
## [4.0.2] - 2019-08-31 | ||
## [4.1.0] - 2019-09-04 | ||
### Added | ||
- Rulesets can be loaded using `Spectral#loadRuleset` method | ||
- Custom functions can be registered directly in rulesets | ||
- Rulesets can be registered against document format | ||
- New rules: no-$ref-siblings, oas2-anyOf, oas2-oneOf | ||
- YAML's [merge keys](https://yaml.org/type/merge.html) are supported | ||
- $refs can be used in rulesets | ||
- Resolved document is accessible now if you use `Spectral#runWithResolved` method [#398](https://github.com/stoplightio/spectral/issues/398) | ||
### Changed | ||
- valid-example rule has been broken into smaller, more specific rules [#223](https://github.com/stoplightio/spectral/issues/223) | ||
- YAML scalar values are parsed according to YAML 1.2 spec [#481](https://github.com/stoplightio/spectral/issues/481) | ||
- We swapped oclif with yargs | ||
### Deprecated | ||
- `addRules` and `addFunctions` have been deprecated, use `setRules` and `setFunctions` instead | ||
- Importing built-in ruleset in cjs/esm module way (via require or import) is no longer recommended. Consider using `#loadRuleset` instead | ||
### Fixed | ||
- CLI: relative paths to documents are supported [#474](https://github.com/stoplightio/spectral/issues/474) | ||
- Improved path and ranges generation [#458](https://github.com/stoplightio/spectral/pull/458), [#459](https://github.com/stoplightio/spectral/pull/459) | ||
- Unknown schema formats are no longer printed [#396](https://github.com/stoplightio/spectral/issues/396) | ||
- Graceful handling of circular rulesets | ||
- A few other minor issues | ||
- Tweaked JSON Path lookup for paths to avoid deep scan, speeding up linting for large documents [#413](https://github.com/stoplightio/spectral/pull/413) | ||
## [4.0.3] - 2019-08-26 | ||
### Fixed | ||
## [4.0.1] - 2019-08-16 | ||
- Resolve references to files with relative paths | ||
## [4.0.2] - 2019-07-31 | ||
### Fixed | ||
- Tweaked JSON Path lookup for paths to avoid deep scan, speeding up linting for large documents [#413](https://github.com/stoplightio/spectral/pull/413) | ||
## [4.0.1] - 2019-07-16 | ||
### Fixed | ||
- NPM install for Windows users was failing due to a dependency not supporting Windows in their build script | ||
## [4.0.0] - 2019-08-09 | ||
## [4.0.0] - 2019-07-09 | ||
### Added | ||
@@ -24,0 +53,0 @@ |
@@ -9,3 +9,3 @@ "use strict"; | ||
function resolveSpectralVersion(pkg) { | ||
return String(pkg).replace('@stoplight/spectral', '@stoplight/spectral@4.1.1-beta4'); | ||
return String(pkg).replace('@stoplight/spectral', '@stoplight/spectral@4.1.1'); | ||
} | ||
@@ -12,0 +12,0 @@ function resolveFromNPM(pkg) { |
{ | ||
"name": "@stoplight/spectral", | ||
"version": "4.1.1-beta4", | ||
"version": "4.1.1", | ||
"description": "A flexible object linter with out of the box support for OpenAPI v2 and v3.", | ||
@@ -96,3 +96,3 @@ "keywords": [ | ||
"jest-mock": "^24.8.0", | ||
"jest-when": "~2.7", | ||
"jest-when": "~2.6", | ||
"karma": "^4.2.0", | ||
@@ -103,3 +103,3 @@ "karma-chrome-launcher": "^3.0.0", | ||
"lint-staged": "^9.0.2", | ||
"nock": "~11.3.2", | ||
"nock": "~10.0.6", | ||
"pkg": "^4.4.0", | ||
@@ -106,0 +106,0 @@ "recast": "^0.18.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
3278801
0