Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
- uses: actions/checkout@v3
- uses: erlef/setup-beam@v1
with:
otp-version: "26.2"
gleam-version: "1.4.0"
otp-version: "27"
gleam-version: "1.10.0"
rebar3-version: "3"
- run: gleam test
- run: gleam format --check src test
38 changes: 38 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,43 @@
# Changelog

## v1.0.0-rc1 - Unreleased

- The `supervisor` module has been removed.
- The `intensity_tracker` module has been removed.
- The `task` module has been removed.
- The supervision module has been introduced. This module contains types and
functions usable by different supervisor implementations.
- In the `gleam/otp/static_supervisor` module:
- The `start_link` module has been removed.
- The `start` module has been added.
- The `supervised` module has been added.
- Types and functions for defining child specifications have been moved to the
`supervision` module.
- Child ids are now generated, removing possibility of a collision.
- The `Supervisor` type has been added.
- In the `gleam/otp/actor` module:
- The `to_erlang_start_result` function has been removed.
- The `InitResult` type has been removed.
- The `Spec` type has been replaced with the `Builder` type.
- The `new` function has been added.
- The `new_with_initialiser` function has been added.
- The `start` function has been removed.
- The `start_spec` function has been renamed to `start`.
- The `Initialised` type has been added, along with the `initialised`,
`selecting`, and `returning` functions to create and work with it.
- The `InitCrashed` variant of `StartError` has been replaced with the
`InitExited` variant.
- The `InitFailed` variant of `StartError` now contains a string rather than
an `StartError`.
- The `Next` type now has the state type as the first type parameter and the
message type as the second.
- The `Next` type is now opaque.
- The argument order of the actor message handler callback function has been
changed so the state is the first argument, and the message is the second.
- The argument order of `call` has changed.
- The `StartResult` alias has been removed.
- The `ErlangStartResult` alias has been removed.

## Unreleased

- Fixed a bug where using `actor.Stop()` with other reasons than `Normal`
Expand Down
6 changes: 3 additions & 3 deletions gleam.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name = "gleam_otp"
version = "0.16.1"
version = "1.0.0-rc1"
licences = ["Apache-2.0"]
description = "Fault tolerant multicore Gleam programs with OTP"

Expand All @@ -12,8 +12,8 @@ links = [
]

[dependencies]
gleam_stdlib = ">= 0.32.0 and < 1.0.0"
gleam_erlang = ">= 0.22.0 and < 1.0.0"
gleam_stdlib = ">= 0.59.0 and < 2.0.0"
gleam_erlang = ">= 1.0.0-rc1 and < 2.0.0"

[dev-dependencies]
gleeunit = ">= 1.0.0 and < 2.0.0"
Expand Down
10 changes: 5 additions & 5 deletions manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# You typically do not need to edit this file

packages = [
{ name = "gleam_erlang", version = "0.33.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_erlang", source = "hex", outer_checksum = "A1D26B80F01901B59AABEE3475DD4C18D27D58FA5C897D922FCB9B099749C064" },
{ name = "gleam_stdlib", version = "0.45.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "206FCE1A76974AECFC55AEBCD0217D59EDE4E408C016E2CFCCC8FF51278F186E" },
{ name = "gleeunit", version = "1.2.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "F7A7228925D3EE7D0813C922E062BFD6D7E9310F0BEE585D3A42F3307E3CFD13" },
{ name = "gleam_erlang", version = "1.0.0-rc1", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_erlang", source = "hex", outer_checksum = "6E0CF4E1F66E2C9226B7554589544F00F12CE14858440EB1BF7EFDACDE1BBC64" },
{ name = "gleam_stdlib", version = "0.59.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "F8FEE9B35797301994B81AF75508CF87C328FE1585558B0FFD188DC2B32EAA95" },
{ name = "gleeunit", version = "1.3.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "0E6C83834BA65EDCAAF4FE4FB94AC697D9262D83E6F58A750D63C9F6C8A9D9FF" },
{ name = "logging", version = "1.3.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "logging", source = "hex", outer_checksum = "1098FBF10B54B44C2C7FDF0B01C1253CAFACDACABEFB4B0D027803246753E06D" },
]

[requirements]
gleam_erlang = { version = ">= 0.22.0 and < 1.0.0" }
gleam_stdlib = { version = ">= 0.32.0 and < 1.0.0" }
gleam_erlang = { version = ">= 1.0.0-rc1 and < 2.0.0" }
gleam_stdlib = { version = ">= 0.59.0 and < 2.0.0" }
gleeunit = { version = ">= 1.0.0 and < 2.0.0" }
logging = { version = ">= 1.3.0 and < 2.0.0" }
Loading