You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.
Fixed an issue where words ending in e.g. "-ches", such as "witches"; that
would be singularized as "wit" instead of the expected "witch". -- Thanks nbaksalyar
Will be removing ascii import when current nightly goes stable.
0.11.0
Breaking changes:
Made snake case deal correctly with special characters. Behaviour now follows
rails infector
Made camel case deal correctly with special characters. Behaviour now follows
rails infector
Non-breaking changes:
Removed magic macros for testing.
Added explicit tests for all cases.
0.10.1
Non-breaking changes:
Added flags for unused macros. Any current macros with this flag with either
be moved or removed.
0.10.0
Non-breaking changes:
Changed from fold to for in which resulted in a average 10-20% boost in
performance for all castings using the case module.
Fixes:
Fixed issue with snake case like strings where numbers were incorrectly
permitted to be next to a string e.g. string1 was considered valid when it
should have been string_1. This has been corrected as part of the above
change.
Why is this not 0.9.1?
The change in this case are all on private API. This normally wouldn't cause a
breaking change as there are extensive tests wrapping all methods. This
however doesn't preclude an edge case that hasn't been considered. I've
deemed it safer to call this a 0.x.0 release for that reason.
0.9.0
Breaking changes:
Changed type signature for all casting methods to use &str. This gives the
crate a >10% increase in performance in a majority of conversions. Although
most users only use:
"my_string".to_camel_case()
or
"myString".to_string().to_snake_case()
For those using the to_camel_case("something".to_string()) this will be a
breaking change as the new syntax demands to_camel_case("something").
0.8.1
Fixes:
Fixed singularize issues with /ies/. Thanks @mthjones
Fixed issue with feature gates which may have caused downstream api
incompatibilities.
0.8.0
New features:
Feature gated pluralize, singularize, class_case, table_case, demodulize, and
deconstantize. This can be activated by passing --features=lightweight. See
README
Possible breaking change:
Feature gated items are on by default, meaning that you'll get the full
version of the crate if you install as normal. See README if you want to use
the lightweight version.
Although the application still passes all tests, substantial portions of the
core of the conversion code have been method extracted and may have caused a
change for some people. Please file an issue if this is a problem for you.
0.7.0
New features:
Added traits for various number types on ordinalize.
Possible breaking change:
Fixed issue with Boxes to Box which may cause breakages for some people
Non-breaking change:
Updated dependencies on regex and lazy_static to be the current latest
Changed the way that traits are implemented to use macros. Thus reducing
duplication issues seen previously for each type that wanted to implement
Inflector
More tests for conversion between different string formats
Resolves issues with pluralize not always correctly pluralizing strings.
Thanks, @weiznich!
Resolves issues with silently failing test on table case
Replaces complex code used for is_*_case checks with simple conversion and
check equality.
Breaking changes:
Dropping support for Rust versions below stable
0.2.1
Features:
Replaced custom implementation of lower and uppercase with Rust default
Breaking changes:
Rust 1.2 or greater required
0.2.0
Features:
Added Pluralize
Added Singularize
Added Table case
Fixes:
Fixed doc tests to properly run as rust auto wraps doc tests in a function and
never ran the inner function that was defined.
Fixed documentation for kebab case
Fixed several failed tests for various cases which were mainly typos
Breaking changes:
Class case now singularizes strings and verifies that strings are
singularized. Those wishing for the old behaviour should remain on the 0.1.6
release.
0.1.6
Features:
Added screaming snake case
0.1.5
Fixes:
Refactored tests into doc tests.
0.1.4
Features:
Significant performance improvement for casting strings between different case
types see #13.
Fixes:
Fixed performance issues with string casting.
Removed heavy reliance on Regex
0.1.3
Fixes:
Refactored code to mostly pass through snake case then be converted to lower
the number of moving parts and reduce the complexity for adding a new casting
as only snake case would need to be modified to convert to most other cases.