Skip to content

Releases: evg4b/uncors

v0.2.2

04 Jan 17:28
Compare
Choose a tag to compare

Bugfixing

  • Fixed a bug with incorrect Сontent-Encoding on the error page
  • Added logging for default handler errors

Changelog

v0.2.1

13 Dec 15:40
Compare
Choose a tag to compare

Bugfixing

Fixed a bug with incorrect Сontent-Length in specific cases.

Changelog

  • 3346a5d Allowed different values in the Location header
  • 0787263 Removed Content-length from coping
  • 4ecc45e Updated json schema
  • 328f0c1 Updated roadmap

v0.2.0

25 Nov 14:30
Compare
Choose a tag to compare

Response caching

Added in memory response caching for requests. That allows to reduce response time for requests that are repeated often
or have long response time.

Each mapping has own cache settings that can be configured in config file.

mappings:
  - from: localhost
    to: https://github.com
    cache:
      /api/path
      /other-path

By default, cached only GET requests. To enable caching for other methods use methods option in cache-config section:

mappings:
  - from: localhost
    to: https://github.com
    cache: [...]
cache-config:
  methods:
    - GET
    - POST
    - PUT

Also, you can configure cache expiration time and cache clear time.

mappings:
  - from: localhost
    to: https://github.com
    cache: [...]
cache-config:
  methods: [GET, POST]
  expiration-time: 10m
  clear-time: 1h

Config Schema file

Added JSON Schema for configuration file

  • Schema URL: https://raw.githubusercontent.com/evg4b/uncors/develop/schema.json
  • Schema version: JSON Schema version 4
  • File paths patterns: *.uncors.yml, *.uncors.yaml, .uncors.yml, .uncors.yaml

Other points

  • Automatically restarts the server after configuration files change.
  • Config file validation before starting or reloading the server

Changelog

v0.1.0

03 Jun 20:22
Compare
Choose a tag to compare

Changelog

0.0.9

23 Apr 22:46
Compare
Choose a tag to compare
  • Added ability deley mock response via delay property:
mocks:
  - path: /demo
    method: GET
    response:
      code: 200
      delay: 110s
      raw-content: hello word
  • Changed npm distribution library (fixed support npm 8.x)

Changelog

  • 1cdcd43 Delay for mocked response (#11)
  • d70a1f6 Moved new version check login in separated package
  • cc948bc Updated config loading system (#9)
  • b8b21ee Updated npm distribution lib
  • 0595bdb Updated uncors server structure

0.0.8-beta

14 Dec 15:33
Compare
Choose a tag to compare
0.0.8-beta Pre-release
Pre-release

Realise for npm regestry.

Changelog

0.0.8

21 Nov 19:19
Compare
Choose a tag to compare
  • Added ability to pass multiple URL mappings from CLI arguments: uncors --from host1.local --to host1.com --from host2.local --to host2.com ...
  • Added ability to return mock content from file
  • Added disclaimer message
  • Added new version check

Changelog

0.0.7

01 Nov 12:31
78369b9
Compare
Choose a tag to compare
  • Fixed issues mock header writing

Changelog

0.0.6

16 Oct 12:06
Compare
Choose a tag to compare
  • Added uncors to scoop bucket (see more here)
  • Added responce mocks mechanism (see more here)

Changelog

  • c5977e4 Added scoop bucket configuration
  • bb59aad Added tests for Make replacer method
  • c96105b Changed graceful shutdown mechanism
  • fffece1 Cleanup code
  • fc9bc7b Fixed publishing
  • 0a673b0 Merge proxy and options midelwares
  • 432577a Replace default mux to gorilla/mux
  • 9c2bfa1 Responce mocks (#3)
  • bfe40b0 Transform middleware to simple http handler

0.0.5

10 Oct 20:08
Compare
Choose a tag to compare

Changelog

  • 9f90069 Different port handling fix