Skip to content

Releases: chanced/caps

v1.0.0

Choose a tag to compare

@chanced chanced released this 11 Feb 02:27
488e6b8
  • Finalizes API
  • Minor performance improvements
  • Spelling error

v0.8.0

Choose a tag to compare

@chanced chanced released this 29 Sep 14:19
7650644
  • Explicitly declares DefaultConverter as a Converter
  • Adds tests for package text

v0.7.5

Choose a tag to compare

@chanced chanced released this 04 Sep 18:51
c17a202
  • Fixes delimited methods on Caps. Previously ToSnake, ToScreamingSnake, ToKebab, ToScreamingKebab, ToDotNotation, and ToScreamingDotNotation were not using the instance ToDelimited method and thus config was not being used.
  • Adds WriteUpperFirstLowerRest, WriteSplitLowerFirstUpperRest, WriteSplitLower, WriteSplitUpper, Write, WriteUpper, WriteLower, WriteRune to token package.
  • Minor perf improvements

v0.7.0

Choose a tag to compare

@chanced chanced released this 01 Sep 19:24

This release stabilizes the API.

  • Adds caps.Caps type
  • Refactored to increase performance.
  • Signatures of caps.Tokenizer has changed.
  • Removes token.Token, moving all methods to functions on the token package.
  • Removes some unused Index methods
  • Removes some unused token methods

This release contains breaking changes

v0.5.0

Choose a tag to compare

@chanced chanced released this 31 Aug 21:55
  • Moves parameters of Convert into ConvertRequest struct

v0.4.2

Choose a tag to compare

@chanced chanced released this 31 Aug 15:40
  • Adds:
    • WithConverter
    • WithReplaceStyle
    • WithReplaceStyleCamel
    • WithReplaceStyleScreaming
    • WithReplaceStyleLower
    • WithNumberRules
  • Deprecates the following in favor of the above:
    • UseConverter
    • UseReplaceStyle
    • UseNumberRules

v0.4.0

Choose a tag to compare

@chanced chanced released this 31 Aug 13:56
  • Fixes replacements which end in numbers (e.g. UTF8)
  • Simplifies index.Index
  • Adds opt functions (caps.UseAllowedSymbols, caps.UseReplaceStyle, caps.UseConverter, caps.UseNumberRules)

V0.3.0

Choose a tag to compare

@chanced chanced released this 30 Aug 19:01

This release contains the following new features:

  • Support for unicode special cases such as Turkish and Azeri. See README for details on how to employ.
  • Used the initialisms from golint.
  • Renamed ToDot to ToDotNotation and ToScreamingDot to ToScreamingDotNotation
  • Added a text package with a text.Text type that has case conversions as we as all relevant functions from strings as methods.
  • Added an index package with a trie that indexes Replacements.

This release required a rather substantial refactor and as such, contains breaking changes. While the index.Index will likely not be of direct use to very many people, it is available for those that wish to use it in their own caps.Converter or perhaps even elsewhere.

This release contains breaking changes.

v0.2.1

Choose a tag to compare

@chanced chanced released this 29 Aug 06:34
  • renames caps.Formatter to caps.Converter

initial release

Choose a tag to compare

@chanced chanced released this 29 Aug 05:42
v0.1.0

v0.1.0