Bump fable from 4.29.0 to 5.0.0#19
Open
dependabot[bot] wants to merge 1 commit intomainfrom
Open
Conversation
--- updated-dependencies: - dependency-name: fable dependency-version: 5.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updated fable from 4.29.0 to 5.0.0.
Release notes
Sourced from fable's releases.
5.0.0
Fixed
ResizeArrayreference equality (by @ncave)ResizeArray(System.Collections.Generic.List) equality to use reference equality instead of structural equality (fixes #3718)List.Conscall replacement and test (by @ncave)Array.Equalsto use reference equality instead of structural equality (by @ncave)Seq.foldBack2for sequences with different lengths (by @ncave)HashSetimplementations and tests (by @ncave)Array/HashMap/HashSetinternal representation (by @ncave)Arraymodule implementations and tests (by @ncave)[<CLIEvent>]members no longer produce unimplementable abstract Protocol members (fixes #3039)DateTime.TryParseincorrectly assigningDateTimeKind.Localto naive datetime strings (should beDateTimeKind.Unspecified) (fixes #3654)String.ContainsignoringStringComparisonargument (second argument was silently discarded)String.ContainsignoringStringComparisonargument (second argument was silently discarded)--noRestorenot skipping MSBuildCracker restores (by @ randrag)5.0.0-rc.7
Added
LeafExpressionConverter.EvaluateQuotation(by @dbrattli)Guid.CreateVersion7()andGuid.CreateVersion7(DateTimeOffset)(by @OnurGumus)Array,List, andSeqrandom choice/shuffle/sample members and tests (by @ncave)System.Randomimplementations and tests (by @ncave)Fixed
Importexpressions (by Repo Assist)System.Random.Next(0)implementation (by @ncave)System.Randomseeded implementation (by @ncave)System.Randomseeded implementation to use per-instance state (by @dbrattli)Array.compareWithcomparing lengths before elements, producing wrong results for arrays with common prefixes (fixes #2961)DateTimeOffset.get_Offsetand regex replacements (by @dbrattli).Valueunwrapping with safe alternatives in Python/Replacements.fs and Rust/Fable2Rust.fs (code scanning alerts IONIDE-006)[<return: Struct>]to partial active patterns in Dart and Rust targets to reduce allocations (code scanning alerts IONIDE-009)Guidto use cryptographically strong random values (by @ncave)DateTimeOffsetmillisecond constructor and property (by @ncave)DateTimeOffsetmembers and fix equality/comparison to use UTC-normalized instants (by @dbrattli)DateOnlyandTimeOnlysupport (by @dbrattli)String.IndexOf/LastIndexOfwithStringComparisonargument emitting it as a start-index instead of a compile error (by @repo-assist)String.IndexOf/LastIndexOfwithStringComparisonargument incorrectly treating the enum value as a start indexAsync.StartChildwith timeout always timing out even when the computation finishes before the deadline (fixes #4481) (by @MangelMaxime)5.0.0-rc.6
Fixed
round,sign,truncate,log,log2,log10,pow,DivRem,Min,Max,Clamp,MinMagnitude,MaxMagnitude,cosh,sinh,tanh, and floatParse(by @ncave)Math.DivRemsupport for int, int64, and bigint (by @dbrattli)System.String.Concatwith 4+ arguments not being supported (by @dbrattli)thisargument type in structs (#4453) (by @ncave)Nformat specifier (ToString("N0"),String.Format("{0:N0}", ...)) producing a trailing dot when precision is 0 (fix #2582) (by @MangelMaxime)C0andP0format specifiers producing trailing dot (e.g.,"¤1,000."→"¤1,000") (by @MangelMaxime)awaiton else branch of ternary expressions in async closures (by @dbrattli)|> ignoreon cross-module Emit calls generating variable bindings that shadow Emit case-clause variables (by @dbrattli)containsIdentRefnot checkingCallThisArg (by @dbrattli)StringEnumnow respectCompiledValueandCompiledName(by @shayanhabibi)return!in async computation expressions so inner async workflows are returned and awaited correctly (by @mizzle-mo)Regex.EscapeandRegex.Unescapehandling (by @MangelMaxime)[<AttachMembers>](fixes #3506) (by @MangelMaxime)Unchecked.defaultof<'T>for struct types with fields returningundefinedinstead of zero-initialized values (by @MangelMaxime)Unchecked.defaultof<'T>for struct types with fields returning incorrect values instead of zero-initialized instances (by @MangelMaxime)Unchecked.defaultof<char>returning""(empty string) instead of"\u0000"(null character) (by @MangelMaxime)Unchecked.defaultof<_>for declared entities (by @MangelMaxime)5.0.0-rc.5
Added
[All] Add support for
[<InlineIfLambda>](by @MangelMaxime)5.0.0-rc.4
Fixed
Array.zeroCreateproducingnullfor user-defined struct (value type) elements instead of a default-initialized instance (by @MangelMaxime).IsSome && .Valueoption pattern withOption.existsin Fable2Rust.fs (code scanning alert 1125)Unchecked.defaultof<char>being emitted asnullinstead of'\0'(by @MangelMaxime)static val mutablefields declared with[<DefaultValue>]not being zero-initialized (fix #2739) (by @MangelMaxime)static letorstatic member valgenerating extra constructor parameters for each static field, causing constructor arguments to be assigned to wrong slots (by @MangelMaxime)System.Collections.Generic.IList<T>asMutableArray<T>(by @MangelMaxime)ResizeArrayindex getter/setter not throwingIndexOutOfRangeExceptionwhen index is out of bounds (fix #3812) (by @MangelMaxime)self/0,node/0) in non-final block positions (by @dbrattli)reraise()generating unboundMatchValuevariable — use raw Erlang reason variable for re-throw (by @dbrattli)Erlang.receive<'T>()resolving to timeout overload due to F# unit argument (by @dbrattli)[<AttachMembers>](by @MangelMaxime)[<ImportAll>]generating invalidmodule:*()Erlang code when binding is used as a value (by @dbrattli)Substringwith compound expressions producing wrongbinary:partlength due to missing parentheses in emitted Erlang (by @dbrattli)<<"..."/utf8>>instead of<<"...">>(by @dbrattli)Emitexpressions withcaseleaking variables into surrounding scope — auto-wrap in IIFE for scope isolation (by @dbrattli)5.0.0-rc.3
Added
rebar.config,.app.src) after compilation;.erlfiles now placed insrc/subdirectories (by @dbrattli)[<ImportAll>]+[<Erase>]interface pattern for typed FFI bindings (by @dbrattli)Fixed
ActionDeclarationmain/0functions are now merged (by @dbrattli)%%escape in string interpolation producing double%instead of single (by @dbrattli)CompiledNameon DU cases (e.g.''EXIT''→'EXIT') (by @dbrattli)Type.GetGenericArgumentsandType.GetInterfacefor reflection (by @dbrattli)TypeScriptTaggedUnion(by @MangelMaxime and @jrwone0)stackproperty onException(by @MangelMaxime)nonlocal/globaldeclarations generated insidematch/casebodies causingSyntaxError(by @dbrattli)NameError(PEP 3110 scoping) (by @dbrattli)5.0.0-rc.2
Added
fable_random.erland fix Random seeded/NextBytes tests (by @dbrattli)Fixed
__hash__to return nativeintinstead ofint32for Python 3.14 compatibility (by @dbrattli)rctags (by @dbrattli)fable-library-beamin NuGet package sodotnet fable --lang beamworks (by @dbrattli)fable-library-tsfor Browser environment (by @goswinr)5.0.0-rc.1
Added
--lang beam). Compiles F# to.erlsource files. 2086 tests passing. (by @dbrattli)Fixed
Anyfor type vars outside function scope and prevent non-repeated generic params from leaking intoScopedTypeParams(by @dbrattli)5.0.0-alpha.24
Fixed
Array.length,.Length,Array.isEmpty, andResizeArray.Countto uselen()instead of.lengthproperty for plain Python list interop (by @dbrattli)Task<T>pass-through returns not being awaited in if/else and try/with branches (by @dbrattli):? T as xtype test pattern in closures causingUnboundLocalErrordue tocast()shadowing outer variable (by @dbrattli)--run(fix #3631) (by @MangelMaxime)5.0.0-alpha.23
Changed
__str__or__hash__for custom types. Use thePy.StringableandPy.Hashablemarker interfaces to generate these methods (by @dbrattli)Added
Fixed
StringBuilder.Charsgetter and setter (by @MangelMaxime)Removed
--legacyCrackerflag, MSBuild cracker is now the default and the only cracker supported (by @MangelMaxime)5.0.0-alpha.22
Fixed
5.0.0-alpha.21
Added
BaseExceptionsubclasses (KeyboardInterrupt,SystemExit,GeneratorExit) for Python interop (by @dbrattli)Changed
task { }expressions now generate Pythonasync deffunctions (by @dbrattli)exceptclauses for typed exception patterns (by @dbrattli)Fixed
ResizeArraycompatibility withSeq/Arrayfunctions (by @dbrattli)FSharpListgeneric type parameter handling forIEnumerable_1compatibility (by @dbrattli)5.0.0-alpha.20
Added
Array.skipWhilesupport (by @dbrattli)Array.takeWhilesupport (by @dbrattli)IEnumerator_1as base class to fix typing issues (by @dbrattli).module,..parent,...grandparent) (by @dbrattli)[<Py.DecorateTemplate>]attribute for creating custom decorator attributes (by @dbrattli)[<Py.ClassAttributesTemplate>]attribute for creating custom class attribute shortcuts (by @dbrattli)[<Py.DataClass>]as a built-in shorthand for[<Py.ClassAttributes(style = Attributes, init = false)>](by @dbrattli)Fixed
[<Erase>]on class types not preventing them from being emitted to Python (by @dbrattli)%Aformat specifier to output booleans as lowercasetrue/false(by @dbrattli)Changed
[<Py.Decorate>]now emits decorator strings verbatim and addsimportFromparameter for explicit import control (by @dbrattli)5.0.0-alpha.19
Fixed
printf.cont()not applying continuation function when currying (by @dbrattli)Added
[<Py.Decorate>]attribute on methods (previously only worked on classes)[<Py.ClassMethod>]attribute to emit @classmethod instead of @staticmethod5.0.0-alpha.18
Fixed
Changed
fable-library-rustdependencies (by @ncave)5.0.0-alpha.17
Changed
5.0.0-alpha.16
Fixed
--cwdwith quoted paths (by @MangelMaxime)--legacyCrackerflag logic (by @MangelMaxime)BuildalyzerCrackerso it can work on .NET 10 (by @MangelMaxime)Changed
5.0.0-alpha.15
Added
erasableSyntaxOnlyin TypeScript (by @ncave)Systemexception implementations (by @ncave)ofOption/toOption/ofValueOption/toValueOption(by @ncave)Decorateattribute to add Python decorators to classes (by @dbrattli)ClassAttributesattribute to control Python class generation (@dbrattli)Changed
substrmethod withslice(by @Thorium)Fixed
BitConverterreturn types (by @ncave)any(by @ncave)ErrorwithException(by @ncave)5.0.0-alpha.14
Added
Changed
Option[T]instead ofT | None(by @dbrattli)Fixed
createEmpty<T>for interfaces usingSimpleNamespacewith type casting (#3604) (by @dbrattli)Async.Sleepto handle TimeSpan correctly (#4137) (by @dbrattli)emptyCEs list tonullwhen encountered in thechildrenlist (by @MangelMaxime)unboxwhen definining properties forJSX.create(by @MangelMaxime)5.0.0-alpha.13
Fixed
Removed
Fable.Corecopy types from internal module (by @MangelMaxime)5.0.0-alpha.12
Added
nullArgCheck(by @MangelMaxime)nullness(by @MangelMaxime)Unchecked.nonNull(by @MangelMaxime)TreatWarningsAsErrors(by @MangelMaxime)Fixed
nullArgCheckreport the same error message as on .NET (by @MangelMaxime)5.0.0-alpha.11
Added
CaseRules.LowerAllonStringEnums(by @shayanhabibi)Candcformat for numeric types (by @MangelMaxime)Bandbformat for numeric types (by @MangelMaxime)nformat for numeric types (by @MangelMaxime)Fixed
[JS/TS] Fix #4025: No reflection info for pojos (by @alfonsogarciacaro)
[JS/TS] Fix #4049: decimal/bigint to integer conversion checks (by @ncave)
[JS/TS] Fix
decimaltocharconversion checks (by @ManngelMaxime)[JS/TS] Propagate non-captured exception when running
Async.StartorAsync.StartImmediate(by @MangelMaxime)[JS/TS] Report an error at compilation time when trying to use
Async.RunSynchronously(by @MangelMaxime)[JS/TS] Fix short
DateTimeandDateTimeOffsetshort format strings (by @MangelMaxime)[All] Don't scan system packages for plugins (by @MangelMaxime)
[JS/TS] Fix date formatting when repeating a format token more than the known format (example repeating 'd' more than 4 times) (by @MangelMaxime)
[Python] Fix date formatting when repeating a format token more than the known format (example repeating 'd' more than 4 times) (by @MangelMaxime)
[JS/TS] Fix #4010: Supports direct nested types when using
jsOptions(by @MangelMaxime)[JS/TS] Fix numeric formats (by @MangelMaxime)
Changed
5.0.0-alpha.10
Added
Pojoattribute support (by @alfonsogarciacaro)Fixed
importSideEffectsshouldn't generate identifier (#3965) (by @alfonsogarciacaro)5.0.0-alpha.9
Fixed
--realsig+to fixMethod not found: 'Boolean Fable.CompilerOptions.Equals(by @nojaf)5.0.0-alpha.8
Added
interfacetype when using the "ParamObject" class pattern (by @MangelMaxime)5.0.0-alpha.7
Fixed
5.0.0-alpha.6
Added
StringBuiler.Append(c: char, repeatCount: int)overload (by @roboz0r)Fixed
5.0.0-alpha.5
Added
TimeSpanoverloads support coming from .NET 9.0 (by @MangelMaxime)TimeSpanoverloads support coming from .NET 9.0 (by @ncave)Fixed
DateTimeOffset.ToLocalTime(by @MangelMaxime)5.0.0-alpha.4
Fixed
.Is*properties works (@MangelMaxime)hinDateTime.ToString(@MangelMaxime)hhinDateTime.ToString(@MangelMaxime)[<Erase>](@MangelMaxime)5.0.0-alpha.3
Fixed
uint8,uint32,uint64,decimal(@MangelMaxime)5.0.0-alpha.2
Fixed
5.0.0-alpha.1
Added
--legacyCrackeras a fallbackChanged
FABLE_COMPILER_4withFABLE_COMPILER_5as the compiler directivenet8.0Commits viewable in compare view.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)