This repository has been archived by the owner on Oct 7, 2024. It is now read-only.
Releases: whatisinternet/Inflector
Releases · whatisinternet/Inflector
0.11.3
0.11.2
0.11.1
Non-breaking changes:
- 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
Non-breaking changes:
- 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
tofor 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 beenstring_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 theto_camel_case("something".to_string())
this will be a
breaking change as the new syntax demandsto_camel_case("something")
.
0.8.1
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
andlazy_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
- Better documentation for new users
- Cleaned up documentation
Notes:
- This is a pre-release for 1.0.0