Commit Graph
11109 Commits
Author SHA1 Message Date
José Valim 7f0f970eb2 Improve docs for File.open, closes #13492 2024-04-10 21:12:47 +02:00
Jean Klingler dc6fa24edd Inline duration building in shift/2 functions (#13489)
* Inline duration building in shift/2 functions

* Rename __duration__! and define in all modules
2024-04-10 12:57:26 +09:00
Jean Klingler b829f1bae7 Fix typespec for Stream.with_index/2 (#13488) 2024-04-09 21:07:02 +09:00
Theodor Fiedler 561123508c Remove trailing whitespace in String docs (#13487) 2024-04-09 11:05:12 +02:00
José Valim f2acaf0586 Document intervals and add Stream.from_index/1 (#13486) 2024-04-09 09:51:55 +02:00
José Valim 100d63bfcc Inline and fix timeout typespec 2024-04-08 21:39:17 +02:00
Jean Klingler 98719ff200 Inline some pure functions calls (#13483) 2024-04-08 22:54:03 +09:00
Theodor Fiedler 1b8a34a5c3 Separate Duration date and time unit specs (#13480) 2024-04-07 10:33:02 +02:00
Jean Klingler f5d1aa2c8e Document supported OTP versions for 1.17 (#13478) 2024-04-06 19:52:42 +09:00
Theodor Fiedler c76b8c13f9 Add t:Duration.duration/0 and simplify shift/2 (#13476) 2024-04-05 12:46:06 +02:00
Andrea Leopardi 3a06089aec Add Kernel.to_timeout/1 (#13468) 2024-04-04 20:23:01 +02:00
Theodor Fiedler c557310c42 Consolidate shift_time_unit/3 for add/2 and shift/2 (#13472) 2024-04-04 19:00:37 +02:00
Łukasz Samson cf3a500302 Do not error when File.rm_rf is called on unix domain socket on windows (#13471) 2024-04-04 17:41:11 +02:00
Mateusz 2ea79fbb5d Fix some wording in docs (#13470) 2024-04-04 15:41:00 +02:00
Jean Klingler afab3f7da8 Make Duration.new!/1 return an ArgumentError on invalid unit (#13469) 2024-04-04 14:38:39 +02:00
Theodor Fiedler 38f62a8543 Implement Duration and shift/2 for calendar types (#13385) 2024-04-04 12:27:33 +02:00
Joshua Trees e26e9d8ffa Loosen typespec to match implementation of DateTime.to_unix/2 (#13466) 2024-04-03 23:00:54 +02:00
José Valim c3f48d71f7 Simplify prematch handling 2024-04-03 00:04:48 +02:00
José Valim ad8da2ab2f Fix markdown lint 2024-04-02 11:08:57 +02:00
José Valim 928125d05e Update library and exceptions guidelines 2024-04-02 11:05:44 +02:00
Theodor Fiedler 53bf241b04 Translate :undefined URI port to nil (#13464)
Resolves #13462

When a url string is schema less and the host is followed by a colon
without setting the actual port, `:uri_string.parse/1` returns the
port to be `:undefined`. As long as the url string is parseable,
we should translate `:undefined` to `nil`, in order to ensure we return
a valid URI struct.
2024-04-02 09:02:31 +02:00
Isaac Yonemoto 2415133d4d Add more naming conventions to the list (#13463) 2024-04-02 08:52:21 +02:00
José Valim 12f62e49ca Re-add simplified purging logic (#13455) 2024-03-30 18:30:42 +01:00
José Valim bcf747f080 Add code comments about async purging 2024-03-30 18:30:22 +01:00
Jean Klingler 1acb267e19 Mark with/1 internal clauses as generates (#13454) 2024-03-30 17:13:33 +09:00
wiehann 6138838ff8 Fix sentence in basic-types documentation (#13450) 2024-03-28 19:43:39 +01:00
José Valim 36da99bf87 More docs in Macro.Env 2024-03-25 22:03:53 +01:00
José Valim 494a018abb Ensure invalid only/except does not raise on define_import 2024-03-25 11:27:20 +01:00
José Valim 55704b92a3 Add more error handling to define_alias 2024-03-24 22:29:30 +01:00
José Valim ac844f4dba Add Macro.Env.define_import/4 2024-03-24 22:29:30 +01:00
José Valim 206a81bc64 Refactor elixir_import to work with ok/error tuples
Also do not raise if an import conflicts with a special form,
instead, discard it.
2024-03-24 22:29:30 +01:00
Michał Łępicki 030a5d0f33 Fix define_alias spec (#13436) 2024-03-22 21:23:31 +01:00
José Valim 0d4051b3d1 Fix reducer type, closes #13428 2024-03-22 19:27:01 +01:00
Artem Solomatin afec96457a Add default type to Keyword module (#13405) 2024-03-22 19:15:36 +01:00
José Valim be2e26f465 Add define_alias, define_require, and expand_alias 2024-03-22 19:11:59 +01:00
Michał Łępicki 2605c7bc3d Fix expand_import and expand_require specs (#13434) 2024-03-22 17:23:20 +01:00
ponychickenandAndrea Leopardi 7ae0f49a0f Improve the docs for String.split/2 when there are no matches (#13433)
Co-authored-by: Andrea Leopardi <an.leopardi@gmail.com>
2024-03-22 11:11:56 +01:00
José Valim 097eee9d5f Add Macro.Env.expand_import/5 and Macro.Env.expand_require/6 (#13421) 2024-03-21 10:51:10 +01:00
Jean Klingler fd7e3e45b8 Fix Access.find/1 spec (#13426) 2024-03-20 23:04:28 +09:00
Udo 937fe2978f Fix spec for Access.find/1 (#13425) 2024-03-20 13:26:09 +01:00
DerKastellan 646bd0ee8a Add Access.find/1 (#13422) 2024-03-20 12:59:10 +01:00
Jean Klingler 3da9af2150 Only infer size in pinned variable when needed (#13423) 2024-03-20 18:59:21 +09:00
José Valim 6682829e01 Improve line length docs 2024-03-18 22:10:48 +01:00
Jean Klingler 349321117e Log :$process_label in Task crash report (#13406) 2024-03-16 19:05:47 +09:00
José Valim 4db91c57ff Revert "Recompile URI.parse regex once"
Mismatched Erlang/OTP was not the root cause of the issue.

This reverts commit b8fca42e58.
2024-03-14 22:22:15 +01:00
José Valim e0ad0c020b Fix warnings in test suite 2024-03-14 22:05:20 +01:00
José Valim b8fca42e58 Recompile URI.parse regex once 2024-03-14 16:35:27 +01:00
José Valim eb5258a9ae Add parens to private macro example, closes #13411 2024-03-13 12:28:15 +01:00
sabiwara cbe0132eae Remove obsolete TODO in binary segment typing 2024-03-13 08:56:46 +09:00
Guillaume Duboc ce2210ce74 Add compatibility relation for gradual typechecking (#13407) 2024-03-12 19:15:17 +01:00