Skip to content

Commit 6e59f44

Browse files
authored
Document env_const_get removal in 0.5.0 and 0.6.0 (#115)
1 parent 7916f1f commit 6e59f44

File tree

4 files changed

+26
-0
lines changed

4 files changed

+26
-0
lines changed

docs/0.5.0-alpha/getting_started/migration_guide.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,3 +183,15 @@ dir_create("my_directory") exited(code) {
183183
echo "Failed to create directory."
184184
}
185185
```
186+
187+
## Removed `env_const_get` Function
188+
189+
The `env_const_get` function has been removed from `std/env`. Use `env_var_get` instead, which provides the same functionality.
190+
191+
```ab
192+
// Before
193+
env_const_get("VAR")
194+
195+
// After
196+
env_var_get("VAR")
197+
```

docs/0.5.0-alpha/getting_started/whats_new.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ my_failable_func() exited(code) {
182182
- `math_sum` no longer uses `awk`, improving portability. Thanks [@Ph0enixKM](https://github.com/Ph0enixKM). <!-- #768 -->
183183
- Five standard library functions (`symlink_create`, `dir_create`, `file_chmod`, `file_chown`, `file_download`) have been updated to be failable, providing more robust error handling. Thanks [@lens0021](https://github.com/lens0021). <!-- #791 -->
184184
- New standard library function `array_filled` (in `std/array`) to create an array of a specified size, filled with a given value. Thanks [@UrbanCoffee](https://github.com/UrbanCoffee). <!-- #783 -->
185+
- Removed `env_const_get` function from `std/env`. Use `env_var_get` instead.
185186

186187
## `std/date` <!-- #712 -->
187188

docs/0.6.0-alpha/getting_started/migration_guide.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,3 +183,15 @@ dir_create("my_directory") exited(code) {
183183
echo "Failed to create directory."
184184
}
185185
```
186+
187+
## Removed `env_const_get` Function
188+
189+
The `env_const_get` function has been removed from `std/env`. Use `env_var_get` instead, which provides the same functionality.
190+
191+
```ab
192+
// Before
193+
env_const_get("VAR")
194+
195+
// After
196+
env_var_get("VAR")
197+
```

docs/0.6.0-alpha/getting_started/whats_new.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ my_failable_func() exited(code) {
177177
- `math_sum` no longer uses `awk`, improving portability. Thanks [@Ph0enixKM](https://github.com/Ph0enixKM). <!-- #768 -->
178178
- Five standard library functions (`symlink_create`, `dir_create`, `file_chmod`, `file_chown`, `file_download`) have been updated to be failable, providing more robust error handling. Thanks [@lens0021](https://github.com/lens0021). <!-- #791 -->
179179
- New standard library function `array_filled` (in `std/array`) to create an array of a specified size, filled with a given value. Thanks [@UrbanCoffee](https://github.com/UrbanCoffee). <!-- #783 -->
180+
- Removed `env_const_get` function from `std/env`. Use `env_var_get` instead.
180181

181182
## `std/date` <!-- #712 -->
182183

0 commit comments

Comments
 (0)