---
title: "github.com/huandu/xstrings v1.6.3 Breaking Changes"
description: "What each github.com/huandu/xstrings release removed, renamed or changed: 14 breaking changes in 4 versions on Go modules, each with its source."
canonical_url: https://since.dev/packages/go/github.com/huandu/xstrings
last_updated: 2026-12-04
---

# github.com/huandu/xstrings breaking changes

github.com/huandu/xstrings v1.6.3 (October 20, 2026) is its newest release with breaking changes, 7 of them. The first: Behavior changed Center. Every breaking API change we have recorded in github.com/huandu/xstrings on Go modules: 14 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `v1.6.7`, released December 2, 2026. [Source repository](https://github.com/huandu/xstrings)

Packages on Go modules run on Go. [Go end of life dates](https://since.dev/calendar/go.md).

- From [v1.5.0](#v-v1-5-0) to [v1.6.3](#v-v1-6-3): 13 breaking changes in 3 versions.

## github.com/huandu/xstrings v1.6.3 breaking changes

github.com/huandu/xstrings v1.6.3, released October 20, 2026: 7 breaking changes.

- **Behavior changed** `Center`  

Partial pad bytes are now copied unchanged rather than rewritten as U+FFFD. Valid UTF-8 results are unchanged. [github.com](https://github.com/huandu/xstrings/releases/tag/v1.6.3)
- **Behavior changed** `ExpandTabs`  

Invalid UTF-8 bytes are now copied unchanged rather than replaced with U+FFFD. Valid UTF-8 output is unchanged. [github.com](https://github.com/huandu/xstrings/releases/tag/v1.6.3)
- **Behavior changed** `FirstRuneToLower`  

FirstRuneToLower now lowercases titlecase, Roman numeral, circled and other letterlike runes that it previously left unchanged. Code relying on those runes staying the same must be updated. [github.com](https://github.com/huandu/xstrings/releases/tag/v1.6.3)
- **Behavior changed** `FirstRuneToUpper`  

FirstRuneToUpper now uppercases titlecase, Roman numeral, circled and other letterlike runes that it previously left unchanged. Code relying on those runes staying the same must be updated. [github.com](https://github.com/huandu/xstrings/releases/tag/v1.6.3)
- **Behavior changed** `LeftJustify`  

Partial pad bytes are now copied unchanged rather than rewritten as U+FFFD. Valid UTF-8 results are unchanged. [github.com](https://github.com/huandu/xstrings/releases/tag/v1.6.3)
- **Behavior changed** `RightJustify`  

Partial pad bytes are now copied unchanged rather than rewritten as U+FFFD. Valid UTF-8 results are unchanged. [github.com](https://github.com/huandu/xstrings/releases/tag/v1.6.3)
- **Behavior changed** `Squeeze`  

Invalid bytes are copied unchanged, and distinct invalid byte sequences are kept rather than squeezed together. Valid UTF-8 results are unchanged. [github.com](https://github.com/huandu/xstrings/releases/tag/v1.6.3)

## github.com/huandu/xstrings v1.6.2 breaking changes

github.com/huandu/xstrings v1.6.2, released September 30, 2026: 2 breaking changes.

- **Behavior changed** `ToCamelCase`  

A single uppercase letter behind a separator is now kept uppercase, so "option_A" becomes "optionA" instead of "optiona". Review code that depends on the old lowercased output. [github.com](https://github.com/huandu/xstrings/releases/tag/v1.6.2)
- **Behavior changed** `Translate`  

Patterns containing a literal U+FFFD replacement character are now parsed correctly, so results for such patterns change. Review code that passes U+FFFD in from or to patterns. [github.com](https://github.com/huandu/xstrings/releases/tag/v1.6.2)

## github.com/huandu/xstrings v1.6.0 breaking changes

github.com/huandu/xstrings v1.6.0, released September 14, 2026: 4 breaking changes.

- **Behavior changed** `Delete`  

Unmatched valid U+FFFD runes are now kept, and invalid bytes are copied as is instead of being rewritten as U+FFFD. Check code that depends on the exact output. [github.com](https://github.com/huandu/xstrings/releases/tag/v1.6.0)
- **Behavior changed** `Slice`  

Slice with a negative end used to return an empty string for an out-of-range start, and now it panics with "out of range". Code that relied on the empty result must now handle the panic. [github.com](https://github.com/huandu/xstrings/releases/tag/v1.6.0)
- **Behavior changed** `Successor`  

A carry no longer crosses from a letter to a digit or the reverse, matching Ruby's String#succ. Mixed input such as "8a_9" now gives different results, so check code that depends on the old output. [github.com](https://github.com/huandu/xstrings/releases/tag/v1.6.0)
- **Behavior changed** `Translate`  

Unmatched valid U+FFFD runes are now kept, and invalid bytes are copied as is instead of being rewritten as U+FFFD. Check code that depends on the exact output, such as Translate("hel\\uFFFDlo", "^\\uFFFD", "H"). [github.com](https://github.com/huandu/xstrings/releases/tag/v1.6.0)

## github.com/huandu/xstrings v1.5.0 breaking changes

github.com/huandu/xstrings v1.5.0, released June 6, 2024: 1 breaking change.

- **Behavior changed** `ToCamelCase`  

ToCamelCase now returns camelCaseString, with the first letter lower case, instead of CamelCaseString. To keep the old output, use the new ToPascalCase function. [github.com](https://github.com/huandu/xstrings/releases/tag/v1.5.0)

## Related packages

- [github.com/huandu/go-sqlbuilder](https://since.dev/packages/go/github.com/huandu/go-sqlbuilder.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
