Andy59469
Andy59469

Reputation: 2044

What does the * [asterisk] signify in bower.json?

Does it signify latest commit OR latest release OR latest tag ?

I tried looking for answer in bower docs.

Upvotes: 2

Views: 2417

Answers (2)

Dror Bereznitsky
Dror Bereznitsky

Reputation: 20386

Bower is using semantic versioning (semver) for its version numbers.
The asterisk (*) is used for X-Ranges, which are defined as (quoted from node-semver):

X-Ranges

Any of X, x, or * may be used to "stand in" for one of the numeric values in the [major, minor, patch] tuple.

* := >=0.0.0 (Any version satisfies)
1.x := >=1.0.0 <2.0.0 (Matching major version)
1.2.x := >=1.2.0 <1.3.0 (Matching major and minor versions)

A partial version range is treated as an X-Range, so the special character is in fact optional.

"" (empty string) := * := >=0.0.0
1 := 1.x.x := >=1.0.0 <2.0.0
1.2 := 1.2.x := >=1.2.0 <1.3.0

Upvotes: 3

ozke
ozke

Reputation: 1620

It's a wildcard character. Very common in Computer Science: http://en.wikipedia.org/wiki/Wildcard_character

Upvotes: -1

Related Questions