Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stoplight/spectral

Package Overview
Dependencies
Maintainers
18
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stoplight/spectral - npm Package Compare versions

Comparing version 4.1.1-beta4 to 4.1.1

39

CHANGELOG.md

@@ -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 @@

2

dist/rulesets/finder.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc