Skip to content

Commit b898fb6

Browse files
author
Maxime Mangel
committed
Release 4.10.0
1 parent dc4b07e commit b898fb6

File tree

11 files changed

+146
-19
lines changed

11 files changed

+146
-19
lines changed

src/Fable.Build/Publish.fs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ let updateLibraryVersionInFableTransforms
4949
// Save changes on the disk
5050
File.WriteAllText(filePath, fileContent)
5151

52-
let private publishNuget (fsprojDir: string) =
52+
let private publishNuget (fsprojDir: string) (noSymbols: bool) =
5353
let fsprojFiles = Directory.GetFiles(fsprojDir, "*.fsproj")
5454

5555
if Array.length fsprojFiles <> 1 then
@@ -79,7 +79,7 @@ let private publishNuget (fsprojDir: string) =
7979

8080
File.WriteAllText(fsprojPath, updatedFsprojContent)
8181
let nupkgPath = Dotnet.pack fsprojDir
82-
Dotnet.Nuget.push (nupkgPath, nugetKey)
82+
Dotnet.Nuget.push (nupkgPath, nugetKey, noSymbols = noSymbols)
8383
printfn $"Published!"
8484
else
8585
printfn $"Already up-to-date, skipping..."
@@ -153,11 +153,11 @@ let handle (args: string list) =
153153
Npm.getVersionFromProjectDir ProjectDir.temp_fable_library
154154
|}
155155

156-
publishNuget ProjectDir.fableAst
157-
publishNuget ProjectDir.fableCore
158-
publishNuget ProjectDir.fableCompiler
159-
publishNuget ProjectDir.fableCli
160-
publishNuget ProjectDir.fablePublishUtils
156+
publishNuget ProjectDir.fableAst false
157+
publishNuget ProjectDir.fableCore false
158+
publishNuget ProjectDir.fableCompiler true
159+
publishNuget ProjectDir.fableCli false
160+
publishNuget ProjectDir.fablePublishUtils false
161161

162162
// Release fable-compiler-js and fable-standalone after Fable.Cli
163163
// otherwise the reported version for Fable will be wrong

src/Fable.Build/Utils/Nuget.fs

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,33 @@ namespace Build.Utils
22

33
open SimpleExec
44
open System.Text.RegularExpressions
5+
open BlackFox.CommandLine
56

67
module Dotnet =
78

89
type Nuget =
910

10-
static member push(nupkgPath: string, nugetKey: string) =
11+
static member push
12+
(
13+
nupkgPath: string,
14+
nugetKey: string,
15+
?noSymbols: bool
16+
)
17+
=
18+
let noSymbols = defaultArg noSymbols false
19+
1120
Command.Run(
1221
"dotnet",
13-
$"nuget push {nupkgPath} -s https://api.nuget.org/v3/index.json -k {nugetKey}"
22+
CmdLine.empty
23+
|> CmdLine.appendRaw "nuget"
24+
|> CmdLine.appendRaw "push"
25+
|> CmdLine.appendRaw nupkgPath
26+
|> CmdLine.appendPrefix
27+
"-s"
28+
"https://api.nuget.org/v3/index.json"
29+
|> CmdLine.appendPrefix "-k" nugetKey
30+
|> CmdLine.appendIf noSymbols "--no-symbols"
31+
|> CmdLine.toString
1432
)
1533

1634
let pack (projectDir: string) =

src/Fable.Cli/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## Unreleased
99

10+
## 4.10.0 - 2024-01-25
11+
1012
### Fixed
1113

1214
#### All

src/Fable.Cli/Fable.Cli.fsproj

Lines changed: 98 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,108 @@
44
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
55
<OutputType>Exe</OutputType>
66
<TargetFramework>net6.0</TargetFramework>
7-
<Version>4.9.0</Version>
8-
<PackageReleaseNotes>## Fixed
7+
<Version>4.10.0</Version>
8+
<PackageReleaseNotes>## Added
99

1010

1111
### Python
1212

13-
- [GH-3655](https://github.com/fable-compiler/Fable/issues/3655) Fix for Python output file names (by @dbrattli)
14-
- [GH-3660](https://github.com/fable-compiler/Fable/issues/3660) Fix for decimal to string with culture (by @dbrattli)
13+
- [GH-3663](https://github.com/fable-compiler/Fable/pull/3663) Complete rewrite of `DateTime` supports (by @MangelMaxime)
14+
*Special thanks to @dbrattli and @ncave for their help*
15+
16+
* Constructors
17+
* From `(year, month, day)` up to `(year, month, day, hour, minute, second, millisecond, microsecond)` (with and without `DateTimeKind`)
18+
* From `ticks` (with and without `DateTimeKind`)
19+
* Instance methods:
20+
* `dt.Year`
21+
* `dt.Month`
22+
* `dt.Day`
23+
* `dt.Hour`
24+
* `dt.Minute`
25+
* `dt.Second`
26+
* `dt.Millisecond`
27+
* `dt.Microsecond`
28+
* `dt.ToUniversalTime`
29+
* `dt.DayOfWeek`
30+
* `dt.DayOfYear`
31+
* `dt.ToShortDateString`
32+
* `dt.ToShortTimeString`
33+
* `dt.ToLongDateString`
34+
* `dt.ToLongTimeString`
35+
* `dt.ToString`
36+
* `dt.ToLocalTime`
37+
* `dt.Date`
38+
* `dt.AddYears`
39+
* `dt.AddMonths`
40+
* `dt.AddDays`
41+
* `dt.AddHours`
42+
* `dt.AddMinutes`
43+
* `dt.AddSeconds`
44+
* `dt.AddMilliseconds`
45+
* `dt.AddMicroseconds`
46+
* `dt.Kind`
47+
* Static methods:
48+
* `DateTime.Today`
49+
* `DateTime.Now`
50+
* `DateTime.Now`
51+
* `DateTime.UtcNow`
52+
* `DateTime.MinValue`
53+
* `DateTime.MaxValue`
54+
* `DateTime.Parse`
55+
* `DateTime.TryParse`
56+
* `DateTime.SpecifyKind`
57+
58+
### JavaScript
59+
60+
- [GH-3715](https://github.com/fable-compiler/Fable/pull/3715) Add support for System.Array.Resize (by @chkn)
61+
62+
## Changed
63+
64+
65+
### All
66+
67+
- [GH-3671](https://github.com/fable-compiler/Fable/pull/3671) Use `Microsoft.Extensions.Logging` (by @nojaf)
68+
- [GH-3634](https://github.com/fable-compiler/Fable/issues/3634) Suffix temporary `csproj` with `.fable-temp.csproj` and include a comment in the file (by @MangelMaxime)
69+
70+
### Dart
71+
72+
- Fix `DateTime.DayOfWeek` (by @MangelMaxime)
73+
74+
## Fixed
75+
76+
77+
### All
78+
79+
- Fixed function composition types (by @ncave)
80+
- [GH-3668](https://github.com/fable-compiler/Fable/pull/3668) Normalize fable-library argument (by @nojaf)
81+
- [GH-3682](https://github.com/fable-compiler/Fable/pull/3682) Support some custom unary math operors (Acos, Asin, Atan, Atan2, Cos, Cosh, Exp, Log, Log2, Log10, Sin, Sinh, Sqrt, Tan, Tanh) (by @PierreYvesR)
82+
- [GH-3603](https://github.com/fable-compiler/Fable/issues/3603) Port back fixes for missing `.gitignore` file in the generated `fable_modules/` folder (by @MangelMaxime)
83+
- [GH-3684](https://github.com/fable-compiler/Fable/pull/3684) Re-compile files from `fable_modules` after changing the project file in watch mode (by @OrfeasZ)
84+
85+
### Javascript
86+
87+
- Fixed 'System.Collections.Generic.Queue' bug (by @PierreYvesR)
88+
- Fixed instance calls for generic comparers (by @ncave)
89+
90+
### Python
91+
92+
- Fixed nested type with custom hashcode (by @dbrattli)
93+
- Add 'Double.IsPositiveInfinity' (by @PierreYvesR)
94+
- [GH-3666](https://github.com/fable-compiler/Fable/pull/3666) Fix for `DateTime` and `TimeSpan` addition (by @dbrattli)
95+
- [GH-3663](https://github.com/fable-compiler/Fable/pull/3663) Fix `DateTime.Parse` and `DateTime.TryParse` (by @MangelMaxime)
96+
97+
### JavaScript
98+
99+
- Fix `DateTime.Parse` when providing a 1 digit hour for PM times (`3:5:34 PM`) (by @MangelMaxime)
100+
101+
### Rust
102+
103+
- Fixed unary negation for signed integer MinValue (by @ncave)
104+
- Fixed excluding signature files from imports (by @ncave)
105+
- Fixed generic try_catch closure trait (by @ncave)
106+
- Fixed `self` arg capture in methods (by @ncave)
107+
- Fixed 'System.Collections.Generic.Queue' bug (by @PierreYvesR)
108+
- Added support for generic comparers (by @ncave)
15109

16110
</PackageReleaseNotes>
17111
<!-- Allow users with newer dotnet SDK to run Fable, see #1910 -->

src/Fable.Compiler/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## Unreleased
99

10+
## 4.0.0-alpha-002 - 2024-01-25
11+
1012
### Changed
1113

1214
* Respect file extension from `CliArgs`

src/Fable.Compiler/Fable.Compiler.fsproj

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@
66
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
77
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
88
<RootNamespace>Fable.Compiler</RootNamespace>
9-
<Version>4.0.0-alpha-001</Version>
10-
<PackageReleaseNotes>
11-
- Initial release
9+
<Version>4.0.0-alpha-002</Version>
10+
<PackageReleaseNotes>## Changed
11+
12+
- Respect file extension from `CliArgs`
13+
- Use `Microsoft.Extensions.Logging`
14+
- Load Fable plugins
1215

1316
</PackageReleaseNotes>
1417
<DebugType>embedded</DebugType>

src/Fable.Core/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## Unreleased
99

10+
## 4.3.0 - 2024-01-25
11+
1012
### Added
1113

1214
#### JavaScript

src/Fable.Core/Fable.Core.fsproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<Description>Fable Core Library</Description>
66
<TargetFramework>netstandard2.0</TargetFramework>
77
<GenerateDocumentationFile>true</GenerateDocumentationFile>
8-
<Version>4.2.0</Version>
8+
<Version>4.3.0</Version>
99
<PublishRepositoryUrl>true</PublishRepositoryUrl>
1010
</PropertyGroup>
1111
<ItemGroup>

src/Fable.Transforms/Global/Compiler.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ open System
44

55
module Literals =
66
[<Literal>]
7-
let VERSION = "4.9.0"
7+
let VERSION = "4.10.0"
88

99
[<Literal>]
1010
let JS_LIBRARY_VERSION = "1.1.1"

src/fable-standalone/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## Unreleased
99

10+
## 3.7.0 - 2024-01-25
11+
12+
### Changed
13+
14+
* Fable 4.10.0
15+
1016
## 3.6.0 - 2023-12-12
1117

1218
### Changed

0 commit comments

Comments
 (0)