Skip to content
Open
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
24 changes: 24 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,30 @@ jobs:
- name: Unit tests
run: make test

codegen:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Go 1.22
uses: actions/setup-go@v3
with:
go-version: '1.22.0'

- name: Install jq
run: sudo apt-get install -y jq

- name: Run codegen
run: make codegen-types

- name: Verify generated types are up to date
run: |
if ! git diff --exit-code sdk-clients/; then
echo "Generated types are out of date. Run 'make codegen-types' and commit the changes."
exit 1
fi

lint:
runs-on: ubuntu-latest
steps:
Expand Down
14 changes: 14 additions & 0 deletions BREAKING_CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

This document tracks breaking changes between major versions of the SDK that affect users importing and integrating the library.

## Unreleased

### Removed `*Fixed` Types (Replaced by Spec Patches)

The following types have been removed because spec patches now fix the upstream OpenAPI type errors, making the generated types correct:

| Removed Type | Package | Replacement |
|---|---|---|
| `PresetClassFixed` | `fusion` | `PresetClass` |
| `QuotePresetsClassFixed` | `fusion` | `QuotePresetsClass` |
| `GetQuoteOutputFixed` | `fusionplus` | `GetQuoteOutput` |
| `GetOrderFillsByHashOutputFixed` | `fusionplus` | `GetOrderFillsByHashOutput` |
| `TokenInfoDtoFixed` | `tokens` | *(removed, was unused)* |

## Version 3.0.0

### New Shared `fusionorder` Package
Expand Down
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,26 @@ 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.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) starting with the *v1.0.0-beta.1* release.

## [Unreleased]

### Breaking Changes
- **`fusion.PresetClassFixed`** removed — use `fusion.PresetClass` (generated type now correct via spec patch)
- **`fusion.QuotePresetsClassFixed`** removed — use `fusion.QuotePresetsClass`
- **`fusionplus.GetQuoteOutputFixed`** removed — use `fusionplus.GetQuoteOutput` (generated type now correct via spec patch)
- **`fusionplus.GetOrderFillsByHashOutputFixed`** removed — use `fusionplus.GetOrderFillsByHashOutput`
- **`tokens.TokenInfoDtoFixed`** removed (was unused)

### Added
- Spec patch system (`codegen/patches/*.jq`) for fixing upstream OpenAPI type errors at codegen time
- CI enforcement: PRs now verify generated types are up to date

### Fixed
- OpenAPI spec bugs fixed via patches: `ExclusiveResolver` (fusion/fusionplus), `QuoteId` (fusionplus), `DstTokenPriceUsd`/`SrcTokenPriceUsd` (fusionplus), `Points` array (fusionplus), `Amount`/`Fee`/`IsPermit2` parameter types (fusionplus)

### Changed
- Codegen now uses a staging directory — specs in `codegen/openapi/` are no longer mutated in-place
- Upgraded `oapi-codegen` from deprecated `v1.16.2` (`deepmap`) to `v2.5.1` (`oapi-codegen`)

## [v3.0.0] - 2026-02-06

### Breaking Changes
Expand Down
Loading