From b4128a94ac7890df7aba775df12d407bdfa864ae Mon Sep 17 00:00:00 2001 From: JR Date: Thu, 17 Aug 2023 20:07:16 +0200 Subject: [PATCH] v2.0.0 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`. --- README.md | 2 +- source/lu/semver.d | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9e7fe5f..0acd5bb 100644 --- a/README.md +++ b/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. diff --git a/source/lu/semver.d b/source/lu/semver.d index b61b3a7..7532b00 100644 --- a/source/lu/semver.d +++ b/source/lu/semver.d @@ -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.