summaryrefslogtreecommitdiff
path: root/CHANGELOG.md
blob: 0bcb843f1f6b407d7b8337c598a776ca99b7d260 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [1.5.0] - 2026-02-01

### Changed

- Prefer IPv4 addresses in DNS resolution to avoid connectivity issues
- Increase default `keep_alive_timeout` to 30 seconds for better connection reuse
- Set TLS `min_version` to TLS 1.2 by default for improved security
- Improve retry logging format with structured error details

### Added

- Add thread-safe connection pooling with LRU eviction
- Add DNS pre-resolution with configurable timeout to prevent indefinite hangs
- Add DNS caching with TTL support
- Add persistent HTTP sessions to avoid `Connection: close` overhead
- Add `head` and `options` HTTP methods
- Add `close_all` method to release all pooled connections
- Add `reset_default_client!` method to reset the default client
- Add configuration options: `keep_alive_timeout`, `max_retries`, `min_version`, `continue_timeout`, `ignore_eof`, `max_connections`, `dns_timeout`, `dns_ttl`
- Parse TLS certificates once at initialization for performance

### Fixed

- Fix connection leak when racing threads create duplicate connections

## [1.4.0] - 2025-10-08
### Added
- Streaming response support via block parameter
- Backward compatible with existing block API (arity-based detection)

## [1.3.0] - 2025-04-30
### Changed
- Ruby 2.3+ required

### Fixed
- Add explicit dependency on `base64` gem
- Add explicit dependency on `json` gem
- Add explicit dependency on `net-http` gem
- Add explicit dependency on `openssl` gem

## [1.2.0] - 2024-12-05
### Changed
- Disable logger by default

## [1.1.1] - 2021-01-30
### Changed
- Update Gem Metadata

## [1.1.0] - 2020-12-26
### Added
- Add support for Ruby 3.0

## [1.0.1] - 2020-07-31
### Fixed
- Load version before client

## [1.0.0] - 2020-07-31
### Added
- Add simpler API to remove the need to instantiate a `Client` directly.
- Default to 3 retries using simple API.
- Re-use client connection for connections to the same scheme, host, and port.

### Removed
- Remove support for Ruby 2.4
- Remove legacy `Api` class.

### Changed
- Limit mutable options on Client.
- Change default `read_timeout` to 10 seconds.
- Change default `open_timeout` to 10 seconds.
- Log to `STDERR` by default instead of `STDOUT`.

## [0.3.2] - 2020-01-28
### Fixed
- Follow relative path redirects

## [0.3.1] - 2020-01-14
### Fixed
- Parse location header in response then follow redirect.
- Follow redirect using GET regardless of the original request method.

## [0.3.0] - 2020-01-13
### Added
- Allow following HTTP redirects.

## [0.2.7] - 2019-10-04
### Added
- add additional connection errors

### Changed
- specify ruby 2.4 and minimum required.

## [0.2.6] - 2019-04-30
### Added
- add support for PATCH verb.

## [0.2.5] - 2019-02-06
### Changed
- revert change introduced in 0.2.4. See [5.12][https://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html]

## [0.2.4] - 2019-02-06
### Changed
- Send path instead of full uri.

## [0.2.3] - 2019-02-01
### Added
- Default verify mode

## [0.2.2] - 2019-02-01
### Added
- open\_timeout added to client.

## [0.2.1] - 2019-02-01
### Added
- with\_retry.
- authorization header helpers

[Unreleased]: https://src.mokhan.ca/xlgmokha/net-hippie/compare/v1.5.0...HEAD
[1.5.0]: https://src.mokhan.ca/xlgmokha/net-hippie/compare/v1.4.0...v1.5.0
[1.4.0]: https://src.mokhan.ca/xlgmokha/net-hippie/compare/v1.3.0...v1.4.0
[1.3.0]: https://src.mokhan.ca/xlgmokha/net-hippie/compare/v1.2.0...v1.3.0
[1.2.0]: https://src.mokhan.ca/xlgmokha/net-hippie/compare/v1.1.1...v1.2.0
[1.1.1]: https://src.mokhan.ca/xlgmokha/net-hippie/compare/v1.1.0...v1.1.1
[1.1.0]: https://src.mokhan.ca/xlgmokha/net-hippie/compare/v1.0.1...v1.1.0
[1.0.1]: https://src.mokhan.ca/xlgmokha/net-hippie/compare/v1.0.0...v1.0.1
[1.0.0]: https://src.mokhan.ca/xlgmokha/net-hippie/compare/v0.3.2...v1.0.0
[0.3.2]: https://src.mokhan.ca/xlgmokha/net-hippie/compare/v0.3.1...v0.3.2
[0.3.1]: https://src.mokhan.ca/xlgmokha/net-hippie/compare/v0.3.0...v0.3.1
[0.3.0]: https://src.mokhan.ca/xlgmokha/net-hippie/compare/v0.2.7...v0.3.0
[0.2.7]: https://src.mokhan.ca/xlgmokha/net-hippie/compare/v0.2.6...v0.2.7
[0.2.6]: https://src.mokhan.ca/xlgmokha/net-hippie/compare/v0.2.5...v0.2.6
[0.2.5]: https://src.mokhan.ca/xlgmokha/net-hippie/compare/v0.2.4...v0.2.5
[0.2.4]: https://src.mokhan.ca/xlgmokha/net-hippie/compare/v0.2.3...v0.2.4
[0.2.3]: https://src.mokhan.ca/xlgmokha/net-hippie/compare/v0.2.2...v0.2.3
[0.2.2]: https://src.mokhan.ca/xlgmokha/net-hippie/compare/v0.2.1...v0.2.2
[0.2.1]: https://src.mokhan.ca/xlgmokha/net-hippie/compare/v0.2.0...v0.2.1
[0.2.0]: https://src.mokhan.ca/xlgmokha/net-hippie/compare/v0.1.9...v0.2.0
[0.1.9]: https://src.mokhan.ca/xlgmokha/net-hippie/compare/v0.1.8...v0.1.9
[0.1.8]: https://src.mokhan.ca/xlgmokha/net-hippie/compare/v0.1.7...v0.1.8
[0.1.7]: https://src.mokhan.ca/xlgmokha/net-hippie/compare/v0.1.6...v0.1.7
[0.1.6]: https://src.mokhan.ca/xlgmokha/net-hippie/compare/v0.1.5...v0.1.6
[0.1.5]: https://src.mokhan.ca/xlgmokha/net-hippie/compare/v0.1.4...v0.1.5
[0.1.4]: https://src.mokhan.ca/xlgmokha/net-hippie/compare/v0.1.3...v0.1.4
[0.1.3]: https://src.mokhan.ca/xlgmokha/net-hippie/compare/v0.1.2...v0.1.3
[0.1.2]: https://src.mokhan.ca/xlgmokha/net-hippie/compare/v0.1.1...v0.1.2
[0.1.1]: https://src.mokhan.ca/xlgmokha/net-hippie/compare/v0.1.0...v0.1.1