Skip to content

Releases: chanced/caps

v1.0.0

11 Feb 02:27
488e6b8
Compare
Choose a tag to compare
  • Finalizes API
  • Minor performance improvements
  • Spelling error

v0.8.0

29 Sep 14:19
7650644
Compare
Choose a tag to compare
  • Explicitly declares DefaultConverter as a Converter
  • Adds tests for package text

v0.7.5

04 Sep 18:51
c17a202
Compare
Choose a tag to compare
  • 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

01 Sep 19:24
Compare
Choose a tag to compare

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

31 Aug 21:55
Compare
Choose a tag to compare
  • Moves parameters of Convert into ConvertRequest struct

v0.4.2

31 Aug 15:40
Compare
Choose a tag to compare
  • Adds:
    • WithConverter
    • WithReplaceStyle
    • WithReplaceStyleCamel
    • WithReplaceStyleScreaming
    • WithReplaceStyleLower
    • WithNumberRules
  • Deprecates the following in favor of the above:
    • UseConverter
    • UseReplaceStyle
    • UseNumberRules

v0.4.0

31 Aug 13:56
Compare
Choose a tag to compare
  • 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

30 Aug 19:01
Compare
Choose a tag to compare

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

29 Aug 06:34
Compare
Choose a tag to compare
  • renames caps.Formatter to caps.Converter

initial release

29 Aug 05:42
Compare
Choose a tag to compare
v0.1.0

v0.1.0