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
2 changes: 1 addition & 1 deletion .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"mode": "pre",
"mode": "exit",
"tag": "alpha"
}
5 changes: 0 additions & 5 deletions .changeset/pre/bounded-accept-header.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pre/bounded-python-accept.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pre/bounded-rust-inflate.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pre/byte-budget.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pre/client-artifact-bootstrap.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pre/closed-ir-objects.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pre/coded-errors.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pre/decode-item-budget.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pre/edge-safe-fetch-adapter.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pre/fiery-snakes-travel.md

This file was deleted.

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

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pre/long-humans-show.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pre/maxbytes-options.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pre/package-readme.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pre/portable-inflate.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pre/python-byte-budget.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pre/python-decode-budget.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pre/python-error-codes.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pre/python-error-contract.md

This file was deleted.

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

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pre/python-integral-ir-numbers.md

This file was deleted.

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

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pre/python-options-errors.md

This file was deleted.

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

This file was deleted.

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

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pre/ready-moles-count.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pre/rust-byte-budget.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pre/rust-compact-string-columns.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pre/rust-crate-metadata.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pre/rust-decode-budget.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/pre/rust-decode-proptest.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pre/rust-literal-zero.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pre/rust-public-api.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pre/short-pigs-reply.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pre/strict-ir-field-flags.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pre/tame-berries-wear.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pre/trim-root-exports.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/stable-hyperfly.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"hyperfly": major
---

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).
5 changes: 5 additions & 0 deletions .changeset/stable-python.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hyperfly/python": major
---

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).
5 changes: 5 additions & 0 deletions .changeset/stable-rust.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hyperfly/rust": major
---

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).
7 changes: 6 additions & 1 deletion .github/scripts/release.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect, test } from "bun:test"
import { changelogSection, distTag, needsRelease, publishedCommit, pythonDists, repositoryMatches, vcsInfoCommit, withGitHead } from "./release"
import { changelogSection, distTag, needsRelease, publishedCommit, pythonDists, releaseFlags, repositoryMatches, vcsInfoCommit, withGitHead } from "./release"

const sha = "0123456789abcdef0123456789abcdef01234567"

Expand All @@ -16,6 +16,11 @@ test("prereleases publish under next, never latest", () => {
expect(distTag("1.0.0")).toBe("latest")
})

test("only prereleases get prerelease GitHub release flags", () => {
expect(releaseFlags("1.0.0")).toEqual([])
expect(releaseFlags("1.0.0-alpha.1")).toEqual(["--prerelease", "--latest=false"])
})

test("the packed manifest records the commit as gitHead and keeps every other field", () => {
const original = `${JSON.stringify({ name: "hyperfly", version: "1.2.3", exports: { ".": "./dist/index.js" } }, null, 2)}\n`
expect(JSON.parse(withGitHead(original, sha))).toEqual({ name: "hyperfly", version: "1.2.3", exports: { ".": "./dist/index.js" }, gitHead: sha })
Expand Down
5 changes: 4 additions & 1 deletion .github/scripts/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ export const prerelease = (version: string) => version.includes("-")
/** npm's dist-tag for a version: prereleases never move `latest` */
export const distTag = (version: string) => (prerelease(version) ? "next" : "latest")

/** gh release flags for a version: prereleases are marked as such and never become the latest release */
export const releaseFlags = (version: string) => (prerelease(version) ? ["--prerelease", "--latest=false"] : [])

/** the body of a CHANGELOG.md section for one version, or undefined when there is none */
export function changelogSection(changelog: string, version: string): string | undefined {
const lines = changelog.split("\n")
Expand Down Expand Up @@ -138,7 +141,7 @@ async function tagAndRelease(tag: string, commit: () => Promise<string>, version
await $`git push origin ${`refs/tags/${tag}`}`
}
if (await released(tag)) return
const flags = prerelease(version) ? ["--prerelease", "--latest=false"] : []
const flags = releaseFlags(version)
await $`gh release create ${tag} --title ${tag} --notes ${body} --verify-tag ${flags}`
}

Expand Down
5 changes: 4 additions & 1 deletion .github/scripts/sync-versions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ import { describe, expect, test } from "bun:test"
import { pep440, setLockVersion, setTomlVersion, tomlString } from "./sync-versions"

describe("pep440", () => {
test("keeps a release version", () => expect(pep440("1.2.3")).toBe("1.2.3"))
test("keeps a release version", () => {
expect(pep440("1.0.0")).toBe("1.0.0")
expect(pep440("1.2.3")).toBe("1.2.3")
})
test("maps alpha, beta and rc", () => {
expect(pep440("1.0.0-alpha.0")).toBe("1.0.0a0")
expect(pep440("1.0.0-alpha.12")).toBe("1.0.0a12")
Expand Down
5 changes: 2 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ the PyPI and crates.io versions for Changesets. `bun run version-packages`
writes them into `pyproject.toml` (as PEP 440, `1.0.0-alpha.1` becomes
`1.0.0a1`), `Cargo.toml` and `Cargo.lock`.

The repository is in prerelease mode (`.changeset/pre.json`, tag `alpha`), so
every bump produces an `-alpha.N` version. `bun changeset pre exit` leaves it
before the first stable release.
A future prerelease line starts with `bun changeset pre enter <tag>` and ends with
`bun changeset pre exit`.

## Releasing

Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ Typed APIs already know what their data can contain. Production traffic reveals
the data usually contains. Hyperfly uses both to compile a binary protocol for one
exact route, instead of shipping generic JSON through a generic compressor.

**Pre-release.** The wire format is specified, three implementations agree on it
byte-for-byte, and the benchmarks below are reproducible, but nothing is stable yet:
expect breaking changes before 1.0.
The wire format is specified and the three implementations agree on it byte for byte;
the public APIs and wire format are stable for 1.x per [STABILITY.md](STABILITY.md).
The benchmarks below are reproducible.

| Package | Install | Docs |
|---|---|---|
| TypeScript, Zod adapter, HTTP | `npm install hyperfly@next zod` | [packages/hyperfly](packages/hyperfly/README.md) |
| Python, Pydantic adapter, HTTP | `pip install --pre "hyperfly[pydantic]"` | [python](python/README.md) |
| TypeScript, Zod adapter, HTTP | `npm install hyperfly zod` | [packages/hyperfly](packages/hyperfly/README.md) |
| Python, Pydantic adapter, HTTP | `pip install "hyperfly[pydantic]"` | [python](python/README.md) |
| Rust codec | `cargo add hyperfly-core` | [rust](rust/README.md) |

Zod and Pydantic are needed only for the schema adapters; the codec and HTTP layers
Expand Down
2 changes: 1 addition & 1 deletion STABILITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ release. Loosening a default is allowed in a minor release.

## Runtimes and deprecations

The supported minimums are Node.js 18, Python 3.10 and Rust 1.82 (the MSRV).
The supported minimums are Node.js 22, Python 3.10 and Rust 1.82 (the MSRV).
Raising a minimum is an exception to the breaking-change rule: it is not
treated as breaking, happens only in a minor release and is called out in
the changelog.
Expand Down
15 changes: 8 additions & 7 deletions apps/web/app/docs/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Mark } from "../mark";

const GITHUB = "https://github.com/eliahilse/hyperfly";
const README = `${GITHUB}/tree/main/packages/hyperfly`;
const STABILITY = `${GITHUB}/blob/main/STABILITY.md`;
const SECTIONS = [
["install", "Install"],
["compile", "Compile a codec"],
Expand Down Expand Up @@ -66,8 +67,9 @@ export default function DocsPage() {
</p>
</div>
<p className="docs-prose">
Hyperfly is a pre-release; expect breaking changes before 1.0. This guide covers the
first request. The <a href={`${README}#reference`}>package README</a> has the API and
Hyperfly 1.x keeps the public API and wire format compatible per the{" "}
<a href={STABILITY}>stability policy</a>. This guide covers the first request.
The <a href={`${README}#reference`}>package README</a> has the API and
runtime reference tables.
</p>
<nav className="docs-toc" aria-label="On this page">
Expand All @@ -84,18 +86,17 @@ export default function DocsPage() {
<span className="section-index">01</span>
<h2 className="section-title" id="install-title">Install</h2>
<p className="section-lead">
Pre-releases are published under npm&apos;s <code>next</code> tag and need
{" "}<code>--pre</code> with pip. Zod 4 is needed only for the Zod adapter. Python&apos;s
Zod 4 is needed only for the Zod adapter. Python&apos;s
core package has no Pydantic dependency; use the extra for the Pydantic example below.
</p>
</div>
<p className="docs-prose">
The npm package requires Node.js 22 or later and is ESM only.
</p>
<CodeBlock label="terminal">{`npm install hyperfly@next zod
pip install --pre hyperfly
<CodeBlock label="terminal">{`npm install hyperfly zod
pip install hyperfly
# With the Pydantic adapter (Pydantic >= 2.5):
pip install --pre "hyperfly[pydantic]"`}</CodeBlock>
pip install "hyperfly[pydantic]"`}</CodeBlock>
</section>

<section className="section" id="compile" aria-labelledby="compile-title">
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default function Home() {
</Link>
<span className="nav-status">
<span className="dot" aria-hidden="true" />
pre-release
1.0
</span>
<nav className="nav-links">
<a href="#size">size</a>
Expand Down
Loading
Loading