Skip to content

Commit 455eb4c

Browse files
author
José Valim
committed
Deprecate GenFSM
We plan to provide better abstractions around GenServer and GenEvent in upcoming releases but we won't do so for GenFSM. There are other interesting approaches out there, like `plain_fsm`, which are easier to understand and use than OTP's FSM.
1 parent a6f048b commit 455eb4c

File tree

3 files changed

+6
-43
lines changed

3 files changed

+6
-43
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,16 @@
66

77
* Deprecations
88
* [File] `File.stream_to!/3` is deprecated
9+
* [GenFSM] `GenFSM` is deprecated
910
* [Kernel] `%` for sigils is deprecated in favor of `~`
1011
* [Kernel] `is_range/1` and `is_regex/1` are deprecated in favor of `Range.range?/1` and `Regex.regex?/1`
1112
* [Stream] `Stream.after/1` is deprecated
1213
* [URI] `URI.decode_query/1` is deprecated in favor of `URI.decode_query/2` with explicit dict argument
1314
* [URI] Passing lists as key or values in `URI.encode_query/1` is deprecated
1415

16+
* Backwards incompatible changes
17+
* [Mix] Remove `MIX_GIT_FORCE_HTTPS` as Git itself already provides mechanisms for doing so
18+
1519
# v0.12.4 (2014-02-12)
1620

1721
* Enhancements

lib/elixir/lib/gen_fsm/behaviour.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ defmodule GenFSM.Behaviour do
166166
@doc false
167167
defmacro __using__(_) do
168168
quote location: :keep do
169+
IO.puts :stderr, "warning: GenFSM is deprecated and it will be removed in upcoming releases\n#{Exception.format_stacktrace}"
170+
169171
@behaviour :gen_fsm
170172

171173
@doc false

lib/elixir/test/elixir/gen_fsm/behaviour_test.exs

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)