Skip to content

Commit aa2a2db

Browse files
committed
chore: Update website for grain-v0.6.1
1 parent 01dfc72 commit aa2a2db

File tree

4 files changed

+62
-6
lines changed

4 files changed

+62
-6
lines changed

src/getting_grain.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,30 +22,30 @@ _The `--no-quarantine` flag will avoid having to approve the binary in the Secur
2222

2323
### MacOS x64 - Download
2424

25-
If you'd prefer not to use homebrew, you can [download it](https://github.com/grain-lang/grain/releases/download/grain-v0.6.0/grain-mac-x64) directly from GitHub or using `curl`.
25+
If you'd prefer not to use homebrew, you can [download it](https://github.com/grain-lang/grain/releases/download/grain-v0.6.1/grain-mac-x64) directly from GitHub or using `curl`.
2626

2727
```sh
2828
sudo curl -L --output /usr/local/bin/grain \
29-
https://github.com/grain-lang/grain/releases/download/grain-v0.6.0/grain-mac-x64 \
29+
https://github.com/grain-lang/grain/releases/download/grain-v0.6.1/grain-mac-x64 \
3030
&& sudo chmod +x /usr/local/bin/grain
3131
```
3232

3333
### Linux x64 - Download
3434

35-
You can [download it](https://github.com/grain-lang/grain/releases/download/grain-v0.6.0/grain-linux-x64) directly from GitHub or using `curl`.
35+
You can [download it](https://github.com/grain-lang/grain/releases/download/grain-v0.6.1/grain-linux-x64) directly from GitHub or using `curl`.
3636

3737
```sh
3838
sudo curl -L --output /usr/local/bin/grain \
39-
https://github.com/grain-lang/grain/releases/download/grain-v0.6.0/grain-linux-x64 \
39+
https://github.com/grain-lang/grain/releases/download/grain-v0.6.1/grain-linux-x64 \
4040
&& sudo chmod +x /usr/local/bin/grain
4141
```
4242

4343
### Windows x64 - Download
4444

45-
You can [download it](https://github.com/grain-lang/grain/releases/download/grain-v0.6.0/grain-win-x64.exe) directly from GitHub or using `curl`.
45+
You can [download it](https://github.com/grain-lang/grain/releases/download/grain-v0.6.1/grain-win-x64.exe) directly from GitHub or using `curl`.
4646

4747
```batch
48-
curl -LO https://github.com/grain-lang/grain/releases/download/grain-v0.6.0/grain-win-x64.exe
48+
curl -LO https://github.com/grain-lang/grain/releases/download/grain-v0.6.1/grain-win-x64.exe
4949
```
5050

5151
You'll either want to put it into your path or keep it inside your project and invoke with `.\grain-win-x64.exe`.

src/stdlib/hash.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ Returns:
5050
|----|-----------|
5151
|`Number`|A hash for the given value|
5252

53+
Throws:
54+
55+
`Failure(String)`
56+
57+
* If WASI random_get fails
58+
5359
Examples:
5460

5561
```grain

src/stdlib/json.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,44 @@ enum Json {
4040

4141
Data structure representing JSON in Grain.
4242

43+
Variants:
44+
45+
```grain
46+
JsonNull
47+
```
48+
49+
Represents the JSON `null` value.
50+
51+
```grain
52+
JsonBoolean(Bool)
53+
```
54+
55+
Represents a JSON boolean value.
56+
57+
```grain
58+
JsonNumber(Number)
59+
```
60+
61+
Represents a JSON number value.
62+
63+
```grain
64+
JsonString(String)
65+
```
66+
67+
Represents a JSON string value.
68+
69+
```grain
70+
JsonArray(List<Json>)
71+
```
72+
73+
Represents a JSON array value.
74+
75+
```grain
76+
JsonObject(List<(String, Json)>)
77+
```
78+
79+
Represents a JSON object value, as a list of (key, value).
80+
4381
Examples:
4482

4583
```grain

src/stdlib/runtime/numberUtils.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,18 @@ utoa64 : (value: WasmI64, radix: WasmI32) => String
6060
itoa64 : (value: WasmI64, radix: WasmI32) => String
6161
```
6262

63+
### NumberUtils.**isFinite**
64+
65+
```grain
66+
isFinite : (value: WasmF64) => Bool
67+
```
68+
69+
### NumberUtils.**isNaN**
70+
71+
```grain
72+
isNaN : (value: WasmF64) => Bool
73+
```
74+
6375
### NumberUtils.**dtoa**
6476

6577
```grain

0 commit comments

Comments
 (0)