Module

Inspect

Changes by version

Elixir 1.19.0

· 2 changes

Enhancement Tool: Elixir

Allow optional: :all when deriving Inspect

Bugfix Tool: Elixir

Inspect ill-formed structs as maps

Elixir 1.15.0

· 1 change

Enhancement Tool: Elixir

Inspect now renders 'charlists' as ~c"charlists" by default

Elixir 1.14.4

· 1 change

Enhancement Tool: Elixir

Add :sort_maps to Inspect.Opts.custom_options

Elixir 1.14.0

· 4 changes

Enhancement Tool: Elixir

Improve error reporting when there is a faulty implementation of the Inspect protocol

Enhancement Tool: Elixir

Allow :optional when deriving the Inspect protocol for hiding fields that match their default value

Enhancement Tool: Elixir

Inspect struct fields in the order they are declared in defstruct

Enhancement Tool: Elixir

Use expression-based inspection for Date.Range, MapSet, and Version.Requirement

Elixir 1.13.0

· 2 changes

Enhancement Tool: Elixir

Allow default inspect fun to be set globally with Inspect.Opts.default_inspect_fun/1

Bugfix Tool: Elixir

Fix a bug when inspecting a non-binary bitstring with colors

Elixir 1.12.0

· 1 change

Bugfix Tool: Elixir

Do not override user supplied :limit option for derived implementations

Elixir 1.9.0

· 1 change

Enhancement Tool: Elixir

Add :inspect_fun and :custom_options to Inspect.Opts

Elixir 1.8.0

· 1 change

Enhancement Tool: Elixir

Allow Inspect protocol to be derivable with the :only/:except options

Elixir 1.6.0

· 2 changes

Enhancement Tool: Elixir

Show UTF-8 BOM on inspected strings

Bugfix Tool: Elixir

Properly handle minus signal for non-decimal negative integers

Elixir 1.5.0

· 2 changes

Enhancement Tool: Elixir

Add :printable_limit to control the limit of printable structures

Bugfix Tool: Elixir

Do not use colors when inspecting error messages

Elixir 1.4.0

· 1 change

Enhancement Tool: Elixir

Support syntax coloring via the :syntax_color option

Elixir 1.3.0

· 2 changes

Enhancement Tool: Elixir

Support :base option when inspecting binaries

Bugfix Tool: Elixir

Ensure binaries break into new lines when inspected

Elixir 1.1.0

· 1 change

Enhancement Tool: Elixir

Add the :safe option to inspect/2 and make it safe by default, meaning failures while inspecting won't trigger other failures. Instead, it will be wrapped in an exception which is properly formatted

Elixir 1.0.3

· 1 change

Enhancement Tool: Elixir

Keep original stacktrace on Inspect errors

Elixir 0.15.1

· 1 change

Enhancement Tool: Elixir

Support :base option in inspect/2 to choose the base (:binary, :octal, :decimal or :hex) numbers a printed

Elixir 0.15.0

· 2 changes

Enhancement Tool: Elixir

Inspect.Algebra.surround_many/6 now expects Inspect.Opts instead of an integer limit

Enhancement Tool: Elixir

Inspect.Algebra.pretty/2 is deprecated in favor of Inspect.Algebra.format/2 that instead returns iodata. This function was used only by documentation examples and it is unlikely to affect actual code

Elixir 0.14.3

· 1 change

Enhancement Tool: Elixir

Ensure Inspect.Algebra.to_doc/2 doesn't go into a loop when there is a failure printing a struct