Skip to content

Releases

v0.2.0

Choose a tag to compare

@haiyon haiyon released this 15 Jun 03:00
b301da5

Breaking Changes

  • CLI now uses subcommands instead of flags
  • Old: ./fitobj -input=./nested -output=./flat -reverse
  • New: fitobj unflatten ./nested ./flat

New Features

  • Added Cobra CLI framework with better help system
  • Configuration file support (.fitobj.yaml)
  • Health check endpoint for API mode (/health)

Bug Fixes

  • Fixed nested array flattening recursion issues
  • Improved bracket notation parsing
  • Better error handling for empty files

Migration Guide

# Old commands → New commands
-input/-output/-reverse     → unflatten [input] [output]
-input/-output              → flatten [input] [output]  
-api -port=8080             → api --port=8080
-i18n -cleanup              → i18n clean [source] [json]

v0.1.1

Choose a tag to compare

@haiyon haiyon released this 21 Mar 03:39
0bf0fee

Features

  • Add version flag

Installation

go install github.com/haiyon/fitobj

v0.1.0

Choose a tag to compare

@haiyon haiyon released this 21 Mar 03:06
66c6090

Features

  • Transform nested JSON objects to flat structures and reverse
  • Customizable separators for flattened keys (default: ".")
  • Support for different array notations: index (items.0) and bracket (items[0])
  • Simple command-line interface
  • API server mode with RESTful endpoints

Installation

go install github.com/haiyon/fitobj