Skip to content

Commit

Permalink
Release 4.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MangelMaxime committed Jan 25, 2024
1 parent dc4b07e commit b898fb6
Show file tree
Hide file tree
Showing 11 changed files with 146 additions and 19 deletions.
14 changes: 7 additions & 7 deletions src/Fable.Build/Publish.fs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ let updateLibraryVersionInFableTransforms
// Save changes on the disk
File.WriteAllText(filePath, fileContent)

let private publishNuget (fsprojDir: string) =
let private publishNuget (fsprojDir: string) (noSymbols: bool) =
let fsprojFiles = Directory.GetFiles(fsprojDir, "*.fsproj")

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

File.WriteAllText(fsprojPath, updatedFsprojContent)
let nupkgPath = Dotnet.pack fsprojDir
Dotnet.Nuget.push (nupkgPath, nugetKey)
Dotnet.Nuget.push (nupkgPath, nugetKey, noSymbols = noSymbols)
printfn $"Published!"
else
printfn $"Already up-to-date, skipping..."
Expand Down Expand Up @@ -153,11 +153,11 @@ let handle (args: string list) =
Npm.getVersionFromProjectDir ProjectDir.temp_fable_library
|}

publishNuget ProjectDir.fableAst
publishNuget ProjectDir.fableCore
publishNuget ProjectDir.fableCompiler
publishNuget ProjectDir.fableCli
publishNuget ProjectDir.fablePublishUtils
publishNuget ProjectDir.fableAst false
publishNuget ProjectDir.fableCore false
publishNuget ProjectDir.fableCompiler true
publishNuget ProjectDir.fableCli false
publishNuget ProjectDir.fablePublishUtils false

// Release fable-compiler-js and fable-standalone after Fable.Cli
// otherwise the reported version for Fable will be wrong
Expand Down
22 changes: 20 additions & 2 deletions src/Fable.Build/Utils/Nuget.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,33 @@ namespace Build.Utils

open SimpleExec
open System.Text.RegularExpressions
open BlackFox.CommandLine

module Dotnet =

type Nuget =

static member push(nupkgPath: string, nugetKey: string) =
static member push
(
nupkgPath: string,
nugetKey: string,
?noSymbols: bool
)
=
let noSymbols = defaultArg noSymbols false

Command.Run(
"dotnet",
$"nuget push {nupkgPath} -s https://api.nuget.org/v3/index.json -k {nugetKey}"
CmdLine.empty
|> CmdLine.appendRaw "nuget"
|> CmdLine.appendRaw "push"
|> CmdLine.appendRaw nupkgPath
|> CmdLine.appendPrefix
"-s"
"https://api.nuget.org/v3/index.json"
|> CmdLine.appendPrefix "-k" nugetKey
|> CmdLine.appendIf noSymbols "--no-symbols"
|> CmdLine.toString
)

let pack (projectDir: string) =
Expand Down
2 changes: 2 additions & 0 deletions src/Fable.Cli/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

## 4.10.0 - 2024-01-25

### Fixed

#### All
Expand Down
102 changes: 98 additions & 4 deletions src/Fable.Cli/Fable.Cli.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,108 @@
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<Version>4.9.0</Version>
<PackageReleaseNotes>## Fixed
<Version>4.10.0</Version>
<PackageReleaseNotes>## Added


### Python

- [GH-3655](https://github.com/fable-compiler/Fable/issues/3655) Fix for Python output file names (by @dbrattli)
- [GH-3660](https://github.com/fable-compiler/Fable/issues/3660) Fix for decimal to string with culture (by @dbrattli)
- [GH-3663](https://github.com/fable-compiler/Fable/pull/3663) Complete rewrite of `DateTime` supports (by @MangelMaxime)
*Special thanks to @dbrattli and @ncave for their help*

* Constructors
* From `(year, month, day)` up to `(year, month, day, hour, minute, second, millisecond, microsecond)` (with and without `DateTimeKind`)
* From `ticks` (with and without `DateTimeKind`)
* Instance methods:
* `dt.Year`
* `dt.Month`
* `dt.Day`
* `dt.Hour`
* `dt.Minute`
* `dt.Second`
* `dt.Millisecond`
* `dt.Microsecond`
* `dt.ToUniversalTime`
* `dt.DayOfWeek`
* `dt.DayOfYear`
* `dt.ToShortDateString`
* `dt.ToShortTimeString`
* `dt.ToLongDateString`
* `dt.ToLongTimeString`
* `dt.ToString`
* `dt.ToLocalTime`
* `dt.Date`
* `dt.AddYears`
* `dt.AddMonths`
* `dt.AddDays`
* `dt.AddHours`
* `dt.AddMinutes`
* `dt.AddSeconds`
* `dt.AddMilliseconds`
* `dt.AddMicroseconds`
* `dt.Kind`
* Static methods:
* `DateTime.Today`
* `DateTime.Now`
* `DateTime.Now`
* `DateTime.UtcNow`
* `DateTime.MinValue`
* `DateTime.MaxValue`
* `DateTime.Parse`
* `DateTime.TryParse`
* `DateTime.SpecifyKind`

### JavaScript

- [GH-3715](https://github.com/fable-compiler/Fable/pull/3715) Add support for System.Array.Resize (by @chkn)

## Changed


### All

- [GH-3671](https://github.com/fable-compiler/Fable/pull/3671) Use `Microsoft.Extensions.Logging` (by @nojaf)
- [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)

### Dart

- Fix `DateTime.DayOfWeek` (by @MangelMaxime)

## Fixed


### All

- Fixed function composition types (by @ncave)
- [GH-3668](https://github.com/fable-compiler/Fable/pull/3668) Normalize fable-library argument (by @nojaf)
- [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)
- [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)
- [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)

### Javascript

- Fixed 'System.Collections.Generic.Queue' bug (by @PierreYvesR)
- Fixed instance calls for generic comparers (by @ncave)

### Python

- Fixed nested type with custom hashcode (by @dbrattli)
- Add 'Double.IsPositiveInfinity' (by @PierreYvesR)
- [GH-3666](https://github.com/fable-compiler/Fable/pull/3666) Fix for `DateTime` and `TimeSpan` addition (by @dbrattli)
- [GH-3663](https://github.com/fable-compiler/Fable/pull/3663) Fix `DateTime.Parse` and `DateTime.TryParse` (by @MangelMaxime)

### JavaScript

- Fix `DateTime.Parse` when providing a 1 digit hour for PM times (`3:5:34 PM`) (by @MangelMaxime)

### Rust

- Fixed unary negation for signed integer MinValue (by @ncave)
- Fixed excluding signature files from imports (by @ncave)
- Fixed generic try_catch closure trait (by @ncave)
- Fixed `self` arg capture in methods (by @ncave)
- Fixed 'System.Collections.Generic.Queue' bug (by @PierreYvesR)
- Added support for generic comparers (by @ncave)

</PackageReleaseNotes>
<!-- Allow users with newer dotnet SDK to run Fable, see #1910 -->
Expand Down
2 changes: 2 additions & 0 deletions src/Fable.Compiler/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

## 4.0.0-alpha-002 - 2024-01-25

### Changed

* Respect file extension from `CliArgs`
Expand Down
9 changes: 6 additions & 3 deletions src/Fable.Compiler/Fable.Compiler.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<RootNamespace>Fable.Compiler</RootNamespace>
<Version>4.0.0-alpha-001</Version>
<PackageReleaseNotes>
- Initial release
<Version>4.0.0-alpha-002</Version>
<PackageReleaseNotes>## Changed

- Respect file extension from `CliArgs`
- Use `Microsoft.Extensions.Logging`
- Load Fable plugins

</PackageReleaseNotes>
<DebugType>embedded</DebugType>
Expand Down
2 changes: 2 additions & 0 deletions src/Fable.Core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

## 4.3.0 - 2024-01-25

### Added

#### JavaScript
Expand Down
2 changes: 1 addition & 1 deletion src/Fable.Core/Fable.Core.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Description>Fable Core Library</Description>
<TargetFramework>netstandard2.0</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Version>4.2.0</Version>
<Version>4.3.0</Version>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
</PropertyGroup>
<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Fable.Transforms/Global/Compiler.fs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ open System

module Literals =
[<Literal>]
let VERSION = "4.9.0"
let VERSION = "4.10.0"

[<Literal>]
let JS_LIBRARY_VERSION = "1.1.1"
Expand Down
6 changes: 6 additions & 0 deletions src/fable-standalone/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

## 3.7.0 - 2024-01-25

### Changed

* Fable 4.10.0

## 3.6.0 - 2023-12-12

### Changed
Expand Down
2 changes: 1 addition & 1 deletion src/fable-standalone/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "module",
"name": "fable-standalone",
"version": "3.6.0",
"version": "3.7.0",
"main": "./dist/bundle.min.js",
"description": "Fable compiler",
"keywords": [
Expand Down

0 comments on commit b898fb6

Please sign in to comment.