Skip to content

Latest commit

 

History

History
95 lines (94 loc) · 6.7 KB

history.md

File metadata and controls

95 lines (94 loc) · 6.7 KB

Version history

Version content
1.0.0 Initial version
1.0.5 watch option in custom handler
1.1.1 require('reserve/mock')
colors and mime are no more dependencies
1.1.2 Performance testing, --silent
case-sensitive option in file handler
1.1.3 Changes default hostname to undefined
1.1.4 Enables external handlers in json configuration through require
1.1.5 Fixes relative path use of external handlers in json configuration
1.1.6 Improves response mocking (flushHeaders() & headersSent)
1.1.7 Compatibility with Node.js >= 12.9
Improves response mocking
1.2.0 Implements handlers' schema
Gives handlers access to a configuration interface
Prevents infinite loops during internal redirection (see max-redirect)
1.2.1 Fixes coloring in command line usage
1.3.0 Fixes infinite loop in the error handler
Adds experimental use handler for express middleware functions
Makes the mapping match member optional
1.4.0 More documentation
Exposes simple body reader (require('reserve').body)
Adds method specification (handlers & mappings)
1.5.0 headers option in status handler (enables HTTP redirect)
ignore-if-not-found option in file handler (enables folder browsing with a separate handler)
1.6.0 Implements $%1 and $&1 substitution parameters (see Custom handlers)
1.6.1 Exposes require('reserve').interpolate (see Custom handlers)
1.7.0 Adds listeners configuration option
Adds server-created event available only to listeners
Secures events processing against exceptions
Adds forward-request and forward-response options for the url handler
1.7.1 Adds more context to forward-request and forward-response callbacks
1.8.0 Improves end of streaming detection in file and url handlers
capture helper (experimental)
custom handler validation (improved)
1.8.1 Improves the forward-request callback to pass the incoming request
Reorganized documentation to enable frequent updates (that do not require publishing)
1.8.2 Fixes capture helper for big streams (decoder was not drained)
1.9.0 Allocates unique ID per requests
Introduces aborted and closed events
Improves verbose logger (based on request IDs)
Improves mocking by offering additional properties merged to the request (enables socket mocking)
mp4 mime type
file handler supports request abortion
file handler supports HEAD HTTP method
file handler supports Range HTTP header
caching-strategy option in file handler (enables cache-control and last-modified headers)
If an exception occurs during the handling of the redirected event, it is now logged (was previously ignored)
Introduces invert-match and if-match on mappings
Adds ignore-unverifiable-certificate option for the url handler
Headers in mocked Request and Response are handled case insensitively
1.9.1 Fix traces and limit the verbose output to one liners
Headers in mocked Request and Response supports Symbols (issue found with nock integration)
1.9.2 strict option in file handler (enables strict path matching)
1.9.3 Fixes a coding issue that prevented requires of REserve exports when run through the command line (#16)
Automatic port allocation (port set to 'auto' or 0)
1.10.0 Enables redirection within the url handler through the forward-response hook (only GET and HEAD requests)
1.10.1 Detects and handles blocking situations during configuration.setMappings (#39)
Introduces exclude-from-holding-list to exclude blocking requests from holding configuration.setMappings (#39)
1.11.0 HTTP/2 support
Adds request id in the blocking requests list
url handler does not pipe content on aborted request
custom handler passes configuration interface through the mapping
Introduces configuration.dispatch
Exposes ̀Request and Response mocked class
Command line supports multiple configurations (use --config with comma separated names)
1.11.1 url fix headers manipulation in case of HTTP/2
1.11.2 Fixes paths when loading listeners (#43)
Adds request headers in the incoming event parameters
1.11.3 Fixes compatibility issue with mime 1.x (#45)
1.11.4 mime-types option in file handler (enables mime type overriding)
1.11.5 Fix custom-file-system option in file handler to be relative to configuration file (#47)
1.11.6 Improve unsecure-cookies option in url handler to handle SameSite=None (#49)
1.11.7 Fix unsecure-cookies option in url handler to handle attributes without ending ; (#51)
1.12.0 Typescript definitions
Support of Node.js 16
absolute-location option in url handler
1.12.1 Improve typescript definitions
1.13.0 Introduces close to shutdown server
1.13.1 Improve typescript definitions and documentation
1.14.0 json mime type
1.15.0 Improves configuration validation
1.15.1 http-status option in file handler (enables HTTP status overriding)
1.15.2 Improves types definition (adds status mapping, fixes file mapping)
1.15.3 Fix types definition (CustomMapping::custom, MockServer::request)
1.15.4 Fix types definition (Configuration)
Fix url IP in ready event
1.15.5 Documentation as github pages
1.15.6 Fix types definition (MockServer)
1.15.7 Fix types definition (UseMapping)
1.15.8 Fix types definition (UseMapping)
1.15.9 Documentation update