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

@stoplight/prism-core

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stoplight/prism-core - npm Package Versions

vincenzo
published 3.3.0-alpha.0 •

marbemac
published 3.2.5 •

Changelog

Source

3.2.5 (2020-01-30)

Fixed

  • Correctly set vary and access-control-request-headers headers for preflight and regular responses when CORS is enabled
marbemac
published 3.2.4 •

Changelog

Source

3.2.4 (2020-01-28)

Changed

  • Replaced Fastify HTTP server with its tinier counterpart: Micri #927

Fixed

  • Prism's proxy will now strip all the Hop By Hop headers #921
  • Prism is now normalising the media types so that when looking for compatible contents charsets and other parameters are not taken in consideration #944
  • Prism's external HTTP Client is now correctly constructing the internal log object #952
marbemac
published 3.2.3 •

Changelog

Source

3.2.3 (2019-12-19)

Fixed

  • Prism will not coerce JSON Payloads anymore during the schema validation #905
marbemac
published 3.2.2 •

Changelog

Source

3.2.2 (2019-12-13)

Fixed

  • Correctly handle the possibility of a body/headers generation failure #875
  • Input validation errors should not trigger a 500 status code when the --errors flag is set to true #892
marbemac
published 3.2.1 •

Changelog

Source

3.2.1 (2019-11-21)

Fixed

  • Put chalk as an explicit dependency in the CLI package #854
  • Make sure callbacks work on application/x-www-form-urlencoded data #856
marbemac
published 3.2.0 •

Changelog

Source

3.2.0 (2019-11-21)

Added

  • Support for encoding > allowReserved flag when validating application/x-www-form-urlencoded body #630
  • Validating output status code against available response specs #648
  • Support for Contract Testing #650
  • The CLI will now propose operation paths with meaningful examples #671
  • Prism reloads itself every time there are changes being made to the specified document #689
  • Path parameters are now validated against schema #702
  • The Test Harness framework now requires the ${document} parameter explicitly #720
  • Prism now includes a new proxy command that will validate the request coming in, send the request to an upstream server and then validate the response coming back #669
  • Prism has values for path/query params bolded and in color #743
  • The CLI now displays a timestamp for all the logged operations #779
  • Prism has now support for OpenAPI 3.0 callbacks #716
  • Prism body validator will now show allowed enum parameters in error messages #828

Fixed

  • Killing sub-process only if Prism is running in multi-process mode #645
  • UUIDs are never generated as URNs #661
  • Relative references for remote documents are now resolved correctly #669
  • Core types are now correctly referenced in the HTTP package, restoring the type checks when using the package separately #701
  • By upgrading Json Schema Faker to the latest version, now the schemas with additionalProperties:false / additionalProperties:true / additionalProperties:object will be correctly handled when dynamic mocking is enabled #719
  • Making a request to an operation with a deprecated parameter is no longer causing Prism to return a 422 response #721
  • The access-control-allow-origin header, when CORS is enabled, will now reflect the request origin AND set the Credentials header #797
  • When the request is missing the Accept header, Prism will now effectively treat it as a */*, according to the respective CFP #802
  • Prism will now passthrough as response anything that matches text/* instead of only text/plain #796
vincenzo
published 3.2.0-beta.12 •

vincenzo
published 3.2.0-beta.11 •

vincenzo
published 3.2.0-beta.10 •