Skip to content

Commit

Permalink
v2.0.0
Browse files Browse the repository at this point in the history
This release includes some breaking changes and bumps the major version,
true to semver.

* `lu.string.contains` was removed and is now a deprecated compatibility
  alias to Phobos' `std.algorithm.searching.canFind`. It performed the
  same function, but was worse at it. This is a breaking change in that
  the Phobos' equivalent is not `@nogc nothrow`. It may be removed in a
  future release.
* `lu.string.beginsWith` was removed and is now a deprecated
  compatibility alias to Phobos' `std.algorithm.searching.startsWith`.
  As with `contains`, it was just worse at what it did. It may be removed
  in a future release.
* `lu.strings.nom` was renamed to `.advancePast`, but the old name is
  still available as a non-deprecated compatibility alias. It may become
  deprecated and ultimately be removed in a future release.
* `lu.strings.nom!(Flag!"inherit")` was also renamed to `advancePast`,
  and in addition to this the `inherit` flag is now a runtime parameter.
  The template-parameter overload remains, however it is deprecated and
  may be removed in a future release.
* `lu.strings.beginsWithOneOf` is now deprecated, and reverse use of
  `std.algorithm.searching.canFind` or `std.string.indexOf` is suggested.
  It may be removed in a future release.

Lastly, this library now successfully compiles with `-dip1000`.
  • Loading branch information
zorael committed Aug 17, 2023
1 parent 996f4dc commit b4128a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
@@ -1,4 +1,4 @@
# lu [![Linux/macOS/Windows](https://img.shields.io/github/actions/workflow/status/zorael/lu/d.yml?branch=master)](https://github.com/zorael/lu/actions?query=workflow%3AD) [![Linux](https://img.shields.io/circleci/project/github/zorael/lu/master.svg?logo=circleci&style=flat&maxAge=3600)](https://circleci.com/gh/zorael/lu) [![Windows](https://img.shields.io/appveyor/ci/zorael/lu/master.svg?logo=appveyor&style=flat&maxAge=3600)](https://ci.appveyor.com/project/zorael/lu) [![Commits since last release](https://img.shields.io/github/commits-since/zorael/lu/v1.2.5.svg?logo=github&style=flat&maxAge=3600)](https://github.com/zorael/lu/compare/v1.2.5...master)
# lu [![Linux/macOS/Windows](https://img.shields.io/github/actions/workflow/status/zorael/lu/d.yml?branch=master)](https://github.com/zorael/lu/actions?query=workflow%3AD) [![Linux](https://img.shields.io/circleci/project/github/zorael/lu/master.svg?logo=circleci&style=flat&maxAge=3600)](https://circleci.com/gh/zorael/lu) [![Windows](https://img.shields.io/appveyor/ci/zorael/lu/master.svg?logo=appveyor&style=flat&maxAge=3600)](https://ci.appveyor.com/project/zorael/lu) [![Commits since last release](https://img.shields.io/github/commits-since/zorael/lu/v2.0.0.svg?logo=github&style=flat&maxAge=3600)](https://github.com/zorael/lu/compare/v2.0.0...master)

Miscellaneous general-purpose library modules. Nothing extraordinary.

Expand Down
6 changes: 3 additions & 3 deletions source/lu/semver.d
Expand Up @@ -13,17 +13,17 @@ enum LuSemVer
/++
SemVer major version of the library.
+/
major = 1,
major = 2,

/++
SemVer minor version of the library.
+/
minor = 2,
minor = 0,

/++
SemVer patch version of the library.
+/
patch = 5,
patch = 0,

/++
SemVer version of the library. Deprecated; use `LuSemVer.major` instead.
Expand Down

0 comments on commit b4128a9

Please sign in to comment.