iodine 0.8.1 → 0.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 44f03917758e0311ac3af4953b3882eb6dee6d589ea09d0fe7eb035d3d05dd25
4
- data.tar.gz: 16268d987f44fcadaef05c851f9bb74975d29607fc074b378f1404726f3661b2
3
+ metadata.gz: 3302d0502e4bdfbd9ec6424ce93452a4d5eb5fe1bbe9c590ef961cf5f64c9f31
4
+ data.tar.gz: be5fbd8b1f1da34e21980e4ee02f413115a7517c3b206f116ced895491b479aa
5
5
  SHA512:
6
- metadata.gz: 73151eec8f17b4fa8072cf08af667a8682a9f759fd0868b04132fb7c90456e1a8f31b315178699dc79567230a614188fb0d77ff968b794be650bbc8a807cf061
7
- data.tar.gz: 24c112ecadfb9a7031230a41c5b8c7c980425b60a1cab14a023a1b58ea0c7ee22861bd631ede2674bee45321f528f143f2c06d6596240cd595f0ba240c37a453
6
+ metadata.gz: b41b9da11d0e6d590e775d6ad20c092ae74d3c8ebffa8f389464d7296eaf7f959e3eca5ec58126a9e3a35edaf60082ed2815c9f06c2ffec744a07f76883c9c8a
7
+ data.tar.gz: 9571ae2f6a068cfe46a0d53a91cba562116c43a738079ce15f836f582b6e2fea395a65c573f46201c16ec5789d23933929e30392a0854e8dacf75fcd68e37869
data/CHANGELOG.md CHANGED
@@ -7,6 +7,36 @@ Please refer to the current gem version to review the relevant changes for your
7
7
 
8
8
  ## Changes
9
9
 
10
+ #### 0.8.3 - unreleased
11
+
12
+ [facil.io C STL](https://github.com/facil-io/cstl) updates:
13
+
14
+ **API**: (`http`) the HTTP params helpers now follow the NeoRack `params` extension, including its conflict-resolution rules: `fio_http_query_parse` parses the query string, `fio_http_body_parse` parses URL-encoded, multipart and JSON bodies, and `fio_http_params_parse` parses the query and then the body into a single map. Query and form names use dot / bracket paths (`a.b`, `a[b]`, terminal `[]`), repeated scalars become Arrays in arrival order, maps merge, and scalar/map conflicts nest the scalar under the empty-string key. Multipart file uploads stream in chunks and fields are limited by the new `fio_http_settings_s.max_params` (default `FIO_HTTP_PARAMS_MAX_FIELDS`, 4096).
15
+
16
+ **API**: (`fiobj`) `FIOBJ_T_DATA` objects now carry upload metadata: `fiobj_data_filename`, `fiobj_data_type` and `fiobj_data_headers` (and their setters). `fio_http_params2FIOBJ` returns the request params as a FIOBJ Hash, with file uploads stored as Data objects.
17
+
18
+ **API**: (`json`) the JSON parser callback contract was reworked to support conflict resolution: containers are placed in their parent when opened (`on_map` / `on_array` receive a borrowed `fio_buf_info_s` key and may report a replaced value through `void **old`), `map_push` receives a borrowed key, and the new `is_map` / `is_array` callbacks support `fio_json_parse_update` and the conflict-resolution helpers. `Iodine::JSON` keeps last-wins semantics, matching the FIOBJ parser.
19
+
20
+ **Feature**: (`http`) the NeoRack `params` extension (version 0.0.1) is now implemented: `Iodine::Connection#params` returns a memoized parameter Hash merging the URL query string and the request body (URL-encoded, multipart, and JSON bodies including `application/*+json` media types), with bracket / dot path nesting, Array creation for repeated scalars and `[]`, and conflict resolution. `#query2params` and `#body2params` parse a single source each (query-first precedence). Multipart file uploads are exposed as `Iodine::Base::Upload` objects (an internal class): readable binary streams (`read`, `rewind`, `size`, `save`, `close`, `closed?`) with `filename`, `type`, `name` and `headers` metadata readers and Rack-style `[]` access (`upload[:tempfile]` returns the upload). Uploads close automatically at request end and when garbage collected. Parser resource limits raise a `RangeError` (iodine convention: native Ruby errors only). Iodine extensions now report `params: "0.0.1"`.
21
+
22
+ #### 0.8.2 - 2026-10-22
23
+
24
+ [facil.io C STL](https://github.com/facil-io/cstl) updates:
25
+
26
+ **Security**: (`ipc`) cluster peers must complete the UUID handshake before any other message is handled. Messages sent before the handshake are rejected. A peer is refused when its UUID is zero, equals this instance's UUID, or was already connected. Each instance now draws a non-zero UUID at startup.
27
+
28
+ **Fix**: (`http`) `fio_http_body_read` overflow protection when a caller passes a very large length.
29
+
30
+ **Fix**: (`http1` client) the offset into the request header buffer was calculated backwards when sending an HTTP/1 request.
31
+
32
+ **Fix**: (`ipc`) periodic UDP discovery broadcasts ran only once after startup, because `repetitions = 0` was treated as a single run. Broadcasts now repeat every 4–5 seconds, with jitter.
33
+
34
+ **API**: (`http`) added case-insensitive method tests for `HEAD`, `OPTIONS`, `CONNECT`, `TRACE`, `COPY`, `MOVE`, `LOCK`, `UNLOCK`, `SEARCH`, `MKCOL`, `PROPFIND`, and `PROPPATCH`: `fio_http_method_is_head`, `fio_http_method_is_options`, and so on.
35
+
36
+ **API**: (`core`) `fio_buf_info_is_eq` provides a safe `!memcmp` alternative. `FIO_BUF_INFO_IS_EQ` and `FIO_STR_INFO_IS_EQ` call it when `FIO_MEMALT` is set.
37
+
38
+ **API**: (`ipc`) added `fio_ipc_cluster_on_peer` to receive cluster peer attach and detach events. Register up to 32 subscribers on the master before `fio_io_start`. Callbacks borrow each event; call `fio_ipc_dup` to keep one. An attached event holds a reference to the peer IO, and its data holds the peer UUID.
39
+
10
40
  #### 0.8.1 - 2026-10-15
11
41
 
12
42
  **Feature**: `Iodine.connect(...)` forwards arguments and keyword options to `Iodine::Connection.new(...)` and returns the new outbound connection.