Skip to content

Commit cdaf94c

Browse files
author
Maxime Mangel
committed
Release 4.12.0
1 parent 53238bc commit cdaf94c

File tree

18 files changed

+89
-25
lines changed

18 files changed

+89
-25
lines changed

src/Fable.Build/FableLibrary/TypeScript.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ type BuildFableLibraryTypeScript() =
4141
Shell.copyFile this.OutDir packageJson
4242

4343
// Copy the README.md file to the build directory
44-
let readme = Path.Combine(this.SourceDir, "README.md")
45-
Shell.copyFile this.OutDir readme
44+
Shell.copyFile this.OutDir (Path.Combine(this.SourceDir, "CHANGELOG.md"))
45+
Shell.copyFile this.OutDir (Path.Combine(this.SourceDir, "README.md"))

src/Fable.Build/Publish.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ let handle (args: string list) =
125125

126126
// For fable-library, we use the compiled version of the project for publishing
127127
// This is because we want to publish the JavaScript code and not a mix of F# and TypeScript
128-
publishNpm ProjectDir.temp_fable_library_js
128+
// publishNpm ProjectDir.temp_fable_library_js
129129
publishNpm ProjectDir.temp_fable_library_ts
130130

131131
// We also want to update the original package.json if needed

src/Fable.Build/Utils/Npm.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Error:
4444
version <> versionToCheck
4545

4646
let publish (projectDir: string) =
47-
Command.Run("npm", "publish", workingDirectory = projectDir)
47+
Command.Run("npm", "publish --access public", workingDirectory = projectDir)
4848

4949
let replaceVersion (packageJsonContent: string) (version: string) =
5050
Regex.Replace(packageJsonContent, Regex.VERSION, (fun (m: Match) -> $"\"version\": \"{version}\""))

src/Fable.Cli/CHANGELOG.md

Lines changed: 8 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.12.0 - 2024-02-12
11+
1012
### Added
1113

1214
#### All
@@ -57,6 +59,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5759

5860
* [GH-3744](https://github.com/fable-compiler/Fable/pull/3744) Fix behaviour when passing `--verbose` to be consistent with behaviour before changing the logging library (by @nojaf)
5961

62+
### Changed
63+
64+
#### JavaScript
65+
66+
* [GH-3749](https://github.com/fable-compiler/Fable/pull/3749) Rename `fable-library` to `fable-library-js` (by @MangelMaxime)
67+
6068
## 4.11.0 - 2024-01-30
6169

6270
### Changed

src/Fable.Cli/Fable.Cli.fsproj

Lines changed: 49 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,66 @@
44
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
55
<OutputType>Exe</OutputType>
66
<TargetFramework>net6.0</TargetFramework>
7-
<Version>4.11.0</Version>
8-
<PackageReleaseNotes>## Changed
7+
<Version>4.12.0</Version>
8+
<PackageReleaseNotes>## Added
99

1010

1111
### All
1212

13-
- [GH-3719](https://github.com/fable-compiler/Fable/issues/3719) Restore dependencies against the `.fsproj` after evaluating the `fable-temp.csproj` file (Improves IDE supports) (by @MangelMaxime)
14-
- Don't delete `fable_modules` when re-evaluating the project file after a changes has been detected (Improves HMR experience) (by @MangelMaxime)
13+
- [GH-3733](https://github.com/fable-compiler/Fable/pull/3733) [GH-3727](https://github.com/fable-compiler/Fable/pull/3727) Add support for more `Result` API (by @zprobinson)
14+
* `Result.isOk`
15+
* `Result.isError`
16+
* `Result.Contains`
17+
* `Result.Count`
18+
* `Result.DefaultValue`
19+
* `Result.DefaultWith`
20+
* `Result.Exists`
21+
* `Result.Fold`
22+
* `Result.FoldBack`
23+
* `Result.ForAll`
24+
* `Result.Iterate`
25+
* `Result.ToArray`
26+
* `Result.ToList`
27+
* `Result.ToOption`
28+
- [GH-3721](https://github.com/fable-compiler/Fable/pull/3721) Add `--test:MSBuildCracker` flag allowing to use the experimental MSBuildCracker (by @nojaf)
1529

16-
## Fixed
30+
### JavaScript
1731

32+
- [GH-3745](https://github.com/fable-compiler/Fable/pull/3745) Add support for `ListCollector` (by @nojaf)
33+
* `instance.Add`
34+
* `instance.AddMany`
35+
* `instance.AddManyAndClose`
36+
* `instance.Close`
1837

19-
### All
38+
## Changed
2039

21-
- [GH-3723](https://github.com/fable-compiler/Fable/pull/3723) Fix logger initialisation to allow `--version` to work (by @MangelMaxime)
2240

2341
### JavaScript
2442

25-
- [GH-3716](https://github.com/fable-compiler/Fable/pull/3716) System.Array.Resize: also handle the case where the array is null (by @chkn)
43+
- [GH-3749](https://github.com/fable-compiler/Fable/pull/3749) Rename `fable-library` to `fable-library-js` (by @MangelMaxime)
44+
45+
## Removed
46+
47+
48+
### JavaScript
49+
50+
- Remove `Choice.d.ts` from source code of `fable-library` (by @MangelMaxime)
51+
52+
### TypeScript
53+
54+
- Remove `Choice.d.ts` from source code of `fable-library` (by @MangelMaxime)
55+
56+
## Fixed
57+
58+
59+
### Python
60+
61+
- [GH-3717](https://github.com/fable-compiler/Fable/issues/3717) Nested type with Custom Equality gives false negative equality (by @dbrattli)
62+
- Generate assert statements for `assert` expressions in debug mode (by @dbrattli)
63+
64+
### All
65+
66+
- [GH-3744](https://github.com/fable-compiler/Fable/pull/3744) Fix behaviour when passing `--verbose` to be consistent with behaviour before changing the logging library (by @nojaf)
2667

2768
</PackageReleaseNotes>
2869
<!-- 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-005 - 2024-02-12
11+
1012
### Changed
1113

1214
* [GH-3742](https://github.com/fable-compiler/Fable/pull/3742) Return diagnostics in compile response (by @nojaf)

src/Fable.Compiler/Fable.Compiler.fsproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
77
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
88
<RootNamespace>Fable.Compiler</RootNamespace>
9-
<Version>4.0.0-alpha-004</Version>
9+
<Version>4.0.0-alpha-005</Version>
1010
<PackageReleaseNotes>## Changed
1111

12-
- [GH-3724](https://github.com/fable-compiler/Fable/pull/3724) Internalize `GetFableModulesFromDir` &amp; `GetFableModulesFromProject` (by @nojaf)
12+
- [GH-3742](https://github.com/fable-compiler/Fable/pull/3742) Return diagnostics in compile response (by @nojaf)
13+
- [GH-3746](https://github.com/fable-compiler/Fable/pull/3746) Extract type-checking from compilation (by @nojaf)
1314

1415
</PackageReleaseNotes>
1516
<DebugType>embedded</DebugType>

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.11.0"
7+
let VERSION = "4.12.0"
88

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

src/fable-compiler-js/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+
## 1.0.0-beta-001 - 2024-02-12
11+
1012
### Added
1113

1214
* First release as part of `@fable-org` scope

src/fable-compiler-js/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)