Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/early-beds-create.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/encode-plain-struct.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/http-api.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/http-json-fallback.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/http-robustness.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/inflate-any-size.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/ir-nesting-cap.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/jsdoc-1-0.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/limits-rename.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/node-22.md

This file was deleted.

4 changes: 0 additions & 4 deletions .changeset/pre.json

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/python-1-0-api.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/python-annotated.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/python-http-parity.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/python-ir-values.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/python-json-bytes-validators.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/python-readme-1-0.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/python-zero-bit-arrays.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/read-body-chunks.md

This file was deleted.

4 changes: 0 additions & 4 deletions .changeset/rust-1-0-api.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/rust-encode-precedence.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/rust-grammar-render.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/rust-int-float.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/rust-ir-nesting.md

This file was deleted.

3 changes: 0 additions & 3 deletions .changeset/small-islands-hammer.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/stable-hyperfly.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/stable-python.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/stable-rust.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/train-options-strict.md

This file was deleted.

6 changes: 3 additions & 3 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions packages/hyperfly/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# hyperfly

## 1.0.0

### Major Changes

- 6880138: First stable release of the TypeScript codec, Zod adapter (`hyperfly/zod`) and HTTP helpers (`hyperfly/http`). The public API and wire format stay compatible throughout 1.x per [STABILITY.md](https://github.com/eliahilse/hyperfly/blob/main/STABILITY.md).

### Minor Changes

- 57ef0a3: `NegotiateOptions.accept` is now `httpAccept`, `WellKnownResponse` is now `ArtifactResponse`, `FetchHandlerOptions` is now `RespondOptions`, and `onFallback` moves to `EncodeOptions` with `(error, "encoder-limit")`. JSON negotiations and `readBody` refusals carry a `reason` (`FallbackReason`, `RequestRefusal`), and `CodecRegistry<T>` types its codecs.
- 1508d69: JSON fallback preserves bytes as canonical padded base64 and decodes values using the first registered codec, with consistent request and response failures. Artifact loading reports unreadable responses and malformed JSON with the `artifact` error code.
- c9565d7: `DecodeLimits` is renamed to `Limits`, since the same bounds apply to encoding and decoding.
- f9863e0: Requires Node.js 22 or later. The `hyperfly`, `hyperfly/zod` and `hyperfly/http` entry points no longer support Node.js 18 or 20.
- fc9d2ca: `train` now rejects invalid `minOccurrences`, `maxEntries` and options values with a `HyperflyError` of code `options`, and clamps `minOccurrences` 0 to 1 and `maxEntries` above 16383 to 16383.

### Patch Changes

- 9a33ecb: A struct value must be an object tagged "[object Object]", class instances included, so a typed array, `Map`, `Set`, `Date` or boxed primitive fails with `type` as in Python and Rust. A `bytes` value may come from another realm.
- de7f289: `respond` and `discovery` answer HEAD, 204, 205 and 304 without a body; HTTP helpers, deflate hooks and `serializeArtifact` throw coded `HyperflyError`s. `readBody` answers bad bodies with 400, 413 or 415 and rejects only invalid options, `validate: true` checks apply once, and `hyperfly/package.json` is exported.
- ef98f2a: Packed string columns of any size now decode in browsers and edge runtimes without node:zlib, matching node:zlib when `maxByteLength` is raised past 512 MiB.
- fa55ea3: Schemas nested up to the 512-level artifact limit now compile on every entry point, and deeper schemas are rejected with code `ir` instead of exhausting the stack.
- ba9d30f: Every public export now has JSDoc, including defaults, error codes and spec references. The README links the stability and security policies.
- a11cc63: `readBody` and `fetchArtifact` now read bodies correctly from streams that reuse one buffer across chunks.

## 1.0.0-alpha.1

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/hyperfly/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hyperfly",
"version": "1.0.0-alpha.1",
"version": "1.0.0",
"description": "Binary compression for typed APIs. Schema-compiled codecs with a fingerprinted wire format and transparent JSON fallback.",
"type": "module",
"sideEffects": false,
Expand Down
16 changes: 16 additions & 0 deletions python/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# @hyperfly/python

## 1.0.0

### Major Changes

- 6880138: First stable release of the Python codec, Pydantic adapter and HTTP helpers. The public API and wire format stay compatible throughout 1.x per [STABILITY.md](https://github.com/eliahilse/hyperfly/blob/main/STABILITY.md).

### Patch Changes

- fd2998a: `Codec` is generic, `hyperfly.pydantic.compile` returns a `ModelCodec` that works anywhere a `Codec` does, and `PackHooks` and `validate_profile` are exported. `Codec(...)` now takes keyword arguments checked like `compile_ir`, and `train` raises `options` for invalid samples or thresholds.
- 99535ed: Nested integer bounds follow field validation, so values changed by field validators encode safely; affected fingerprints change. Unvalidated defaults keep declared bounds and can raise `range`; unsupported schemas, recursive models and wire field names raise `UnsupportedSchemaError`.
- 54eaaf4: JSON bodies decoded under a codec are converted and checked against its schema. JSON fallback writes bytes at declared bytes positions and in plain containers as standard padded base64; `offer=""` suppresses the offer.
- eb7c7f8: Integral floats such as `1.0` now encode in int fields and int literals as they do in TypeScript. Schemas nested up to the 512-level artifact limit compile, deeper ones raise code `ir` instead of hitting Python's recursion limit, and a profile must be JSON data.
- 13d0583: HTTP JSON fallback now encodes declared bytes beneath field validators as standard padded base64, so binary payloads round trip reliably, including non-UTF-8 data. Custom serializers keep their existing output.
- f41b658: The README documents the pydantic type mapping and int bound rules, a raw IR example, the client helpers, JSON conversion under a codec and the public API.
- 76d97f7: Columnar bodies with arrays of empty fixed-length arrays now decode the same as in the TypeScript and Rust implementations. Python now accepts the bodies its own encoder writes and rejects truncated ones with `truncated`.

## 1.0.0-alpha.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion python/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hyperfly/python",
"version": "1.0.0-alpha.1",
"version": "1.0.0",
"private": true,
"description": "Release metadata for the hyperfly PyPI distribution. Changesets bumps this version and .github/scripts/sync-versions.ts writes it to pyproject.toml."
}
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "hyperfly"
version = "1.0.0a1"
version = "1.0.0"
description = "Binary compression for typed APIs. Schema-compiled codecs with a fingerprinted wire format and transparent JSON fallback."
readme = "README.md"
license = "Apache-2.0"
Expand Down
17 changes: 17 additions & 0 deletions rust/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# @hyperfly/rust

## 1.0.0

### Major Changes

- f2e9f68: `Codec::compile` takes a `CompileOptions` value, errors are read through `Error::code()` and `Error::message()`, and option structs and enums are `#[non_exhaustive]` so 1.x can extend them without breaking callers.
- 6880138: First stable release of `hyperfly-core`, the Rust codec for row and columnar encoding with optional trained profiles. The public API and wire format stay compatible throughout 1.x per [STABILITY.md](https://github.com/eliahilse/hyperfly/blob/main/STABILITY.md).

### Minor Changes

- e4c7200: Integer fields and integer literals accept an integral `Value::Float` such as `1.0`, matching the TypeScript package.

### Patch Changes

- e2d0e87: When a columnar array has several invalid values, encoding now reports the first one in value order, matching the TypeScript and Python packages.
- 609a58a: Decoding grammar-coded string columns allocates less per value and runs faster.
- 9737c8f: Compiling an IR whose artifact nests deeper than 512 levels fails with `ir` instead of risking a stack overflow, as the wire format requires.

## 0.1.1-alpha.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hyperfly-core"
version = "0.1.1-alpha.0"
version = "1.0.0"
edition = "2021"
rust-version = "1.82"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion rust/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hyperfly/rust",
"version": "0.1.1-alpha.0",
"version": "1.0.0",
"private": true,
"description": "Release metadata for the hyperfly-core crate. Changesets bumps this version and .github/scripts/sync-versions.ts writes it to Cargo.toml and Cargo.lock."
}
Loading