Skip to content

Commit e5998f6

Browse files
committed
v0.32.0
1 parent 5d8b483 commit e5998f6

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## v0.32.0 - 2024-11-28
4+
5+
- The `gleam/os` environment functions have been deprecated in favour of the
6+
`envoy` package.
7+
38
## v0.31.0 - 2024-11-27
49

510
- The `gleam/erlang` module gains the `phash2` and

gleam.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "gleam_erlang"
22

3-
version = "0.31.0"
3+
version = "0.32.0"
44
licences = ["Apache-2.0"]
55
description = "A Gleam library for working with Erlang"
66

src/gleam/erlang/os.gleam

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import gleam/dict.{type Dict}
1616
/// // ])
1717
/// ```
1818
///
19+
@deprecated("Please use the envoy package instead")
1920
@external(erlang, "gleam_erlang_ffi", "get_all_env")
2021
pub fn get_all_env() -> Dict(String, String)
2122

@@ -32,6 +33,7 @@ pub fn get_all_env() -> Dict(String, String)
3233
/// // -> "/home/j3rn"
3334
/// ```
3435
///
36+
@deprecated("Please use the envoy package instead")
3537
@external(erlang, "gleam_erlang_ffi", "get_env")
3638
pub fn get_env(name name: String) -> Result(String, Nil)
3739

@@ -53,6 +55,7 @@ pub fn get_env(name name: String) -> Result(String, Nil)
5355
/// // -> "MYVALUE"
5456
/// ```
5557
///
58+
@deprecated("Please use the envoy package instead")
5659
@external(erlang, "gleam_erlang_ffi", "set_env")
5760
pub fn set_env(name name: String, value value: String) -> Nil
5861

@@ -77,6 +80,7 @@ pub fn set_env(name name: String, value value: String) -> Nil
7780
/// get_env("MYVAR")
7881
/// // -> Error(Nil)
7982
/// ```
83+
@deprecated("Please use the envoy package instead")
8084
@external(erlang, "gleam_erlang_ffi", "unset_env")
8185
pub fn unset_env(name name: String) -> Nil
8286

0 commit comments

Comments
 (0)