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
This is a wrapper of the [`Composer\Semver\VersionParser::normalize()`](https://github.com/composer/semver/blob/b52829022cb18210bb84e44e457bd4e890f8d2a7/src/VersionParser.php#L98-L108) method.
34
32
35
33
```console
36
34
$ composer-semver normalize '1.2-p.5+foo'
@@ -75,9 +73,7 @@ Help:
75
73
### Parse Constraints
76
74
77
75
Parses a constraint string and strip its ignorable parts.
This is a wrapper of the [`Composer\Semver\VersionParser::parseConstraints()`](github.com/composer/semver/blob/b52829022cb18210bb84e44e457bd4e890f8d2a7/src/VersionParser.php#L251-L258) method.
Under the hood, Composer uses [`composer/semver`](https://packagist.org/packages/composer/semver) to parse and validate
161
-
versions.
156
+
Under the hood, Composer uses [`composer/semver`](https://packagist.org/packages/composer/semver) to parse and validate versions.
162
157
163
-
Despite the lie
164
-
on [Composer FAQ](https://getcomposer.org/doc/faqs/which-version-numbering-system-does-composer-itself-use.md),
165
-
the [fragmentary documentation](https://getcomposer.org/doc/articles/versions.md), and the deceitful package name
166
-
`composer/semver`, Composer implements only a subset of [Semantic Versioning](https://semver.org/) specification while
167
-
supports some uncommon versioning schemes. Working with Composer packages versions without `composer/semver` is a bit
168
-
tricky.
158
+
Despite the lie on [Composer FAQ](https://getcomposer.org/doc/faqs/which-version-numbering-system-does-composer-itself-use.md), the [fragmentary documentation](https://getcomposer.org/doc/articles/versions.md), and the deceitful package name `composer/semver`,
159
+
Composer implements only a subset of [Semantic Versioning](https://semver.org/) specification while supports some uncommon versioning schemes.
160
+
Working with Composer packages versions without `composer/semver` is a bit tricky.
Instead of the automatic setup script, you can manually configure the repository with the instructsions
224
-
on [Cloudsmith](https://cloudsmith.io/~typisttech/repos/oss/setup/#formats-deb).
215
+
Instead of the automatic setup script, you can manually configure the repository with the instructions on [Cloudsmith](https://cloudsmith.io/~typisttech/repos/oss/setup/#formats-deb).
225
216
226
217
### Manual `.deb` (Debian based distributions, for example: Ubuntu)
227
218
228
219
> [!WARNING]
229
220
> If you install the `.deb` file manually, you have to take care of updating it by yourself.
230
221
231
-
Download the latest `.deb` file from [GitHub Releases](https://github.com/typisttech/composer-semver/releases/latest),
232
-
or via [`gh`](https://cli.github.com/):
222
+
Download the latest `.deb` file from [GitHub Releases](https://github.com/typisttech/composer-semver/releases/latest), or via [`gh`](https://cli.github.com/):
233
223
234
224
```sh
235
225
# Both arm64 (aarch64) and amd64 (x86_64) architectures are available.
> If you install the binary manually, you have to take care of updating it by yourself.
255
245
256
-
Download the latest `.tar.gz` file
257
-
from [GitHub Releases](https://github.com/typisttech/composer-semver/releases/latest), or via [
258
-
`gh`](https://cli.github.com/):
246
+
Download the latest `.tar.gz` file from [GitHub Releases](https://github.com/typisttech/composer-semver/releases/latest), or via [`gh`](https://cli.github.com/):
259
247
260
248
```sh
261
249
# Both darwin (macOS) and linux operating systems are available.
[`Composer SemVer`](https://github.com/typisttech/composer-semver) is a [Typist Tech](https://typist.tech) project and maintained by [Tang Rufus](https://x.com/TangRufus), freelance developer [for hire](https://typist.tech/contact/).
292
278
293
-
Full list of contributors can be
294
-
found [on GitHub](https://github.com/typisttech/composer-semver/graphs/contributors).
279
+
Full list of contributors can be found [on GitHub](https://github.com/typisttech/composer-semver/graphs/contributors).
295
280
296
281
## Copyright and License
297
282
298
-
This project is a [free software](https://www.gnu.org/philosophy/free-sw.en.html) distributed under the terms of
299
-
the MIT license. For the full license, see [LICENSE](./LICENSE).
283
+
This project is a [free software](https://www.gnu.org/philosophy/free-sw.en.html) distributed under the terms of the MIT license.
0 commit comments