Skip to content

Commit

Permalink
Release 4.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MangelMaxime committed Feb 12, 2024
1 parent 53238bc commit cdaf94c
Show file tree
Hide file tree
Showing 18 changed files with 89 additions and 25 deletions.
4 changes: 2 additions & 2 deletions src/Fable.Build/FableLibrary/TypeScript.fs
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ type BuildFableLibraryTypeScript() =
Shell.copyFile this.OutDir packageJson

// Copy the README.md file to the build directory
let readme = Path.Combine(this.SourceDir, "README.md")
Shell.copyFile this.OutDir readme
Shell.copyFile this.OutDir (Path.Combine(this.SourceDir, "CHANGELOG.md"))
Shell.copyFile this.OutDir (Path.Combine(this.SourceDir, "README.md"))
2 changes: 1 addition & 1 deletion src/Fable.Build/Publish.fs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ let handle (args: string list) =

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

// We also want to update the original package.json if needed
Expand Down
2 changes: 1 addition & 1 deletion src/Fable.Build/Utils/Npm.fs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Error:
version <> versionToCheck

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

let replaceVersion (packageJsonContent: string) (version: string) =
Regex.Replace(packageJsonContent, Regex.VERSION, (fun (m: Match) -> $"\"version\": \"{version}\""))
8 changes: 8 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.12.0 - 2024-02-12

### Added

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

* [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)

### Changed

#### JavaScript

* [GH-3749](https://github.com/fable-compiler/Fable/pull/3749) Rename `fable-library` to `fable-library-js` (by @MangelMaxime)

## 4.11.0 - 2024-01-30

### Changed
Expand Down
57 changes: 49 additions & 8 deletions src/Fable.Cli/Fable.Cli.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,66 @@
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<Version>4.11.0</Version>
<PackageReleaseNotes>## Changed
<Version>4.12.0</Version>
<PackageReleaseNotes>## Added


### All

- [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)
- Don't delete `fable_modules` when re-evaluating the project file after a changes has been detected (Improves HMR experience) (by @MangelMaxime)
- [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)
* `Result.isOk`
* `Result.isError`
* `Result.Contains`
* `Result.Count`
* `Result.DefaultValue`
* `Result.DefaultWith`
* `Result.Exists`
* `Result.Fold`
* `Result.FoldBack`
* `Result.ForAll`
* `Result.Iterate`
* `Result.ToArray`
* `Result.ToList`
* `Result.ToOption`
- [GH-3721](https://github.com/fable-compiler/Fable/pull/3721) Add `--test:MSBuildCracker` flag allowing to use the experimental MSBuildCracker (by @nojaf)

## Fixed
### JavaScript

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

### All
## Changed

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

### JavaScript

- [GH-3716](https://github.com/fable-compiler/Fable/pull/3716) System.Array.Resize: also handle the case where the array is null (by @chkn)
- [GH-3749](https://github.com/fable-compiler/Fable/pull/3749) Rename `fable-library` to `fable-library-js` (by @MangelMaxime)

## Removed


### JavaScript

- Remove `Choice.d.ts` from source code of `fable-library` (by @MangelMaxime)

### TypeScript

- Remove `Choice.d.ts` from source code of `fable-library` (by @MangelMaxime)

## Fixed


### Python

- [GH-3717](https://github.com/fable-compiler/Fable/issues/3717) Nested type with Custom Equality gives false negative equality (by @dbrattli)
- Generate assert statements for `assert` expressions in debug mode (by @dbrattli)

### All

- [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)

</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-005 - 2024-02-12

### Changed

* [GH-3742](https://github.com/fable-compiler/Fable/pull/3742) Return diagnostics in compile response (by @nojaf)
Expand Down
5 changes: 3 additions & 2 deletions src/Fable.Compiler/Fable.Compiler.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<RootNamespace>Fable.Compiler</RootNamespace>
<Version>4.0.0-alpha-004</Version>
<Version>4.0.0-alpha-005</Version>
<PackageReleaseNotes>## Changed

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

</PackageReleaseNotes>
<DebugType>embedded</DebugType>
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.11.0"
let VERSION = "4.12.0"

[<Literal>]
let JS_LIBRARY_VERSION = "1.1.1"
Expand Down
2 changes: 2 additions & 0 deletions src/fable-compiler-js/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

## 1.0.0-beta-001 - 2024-02-12

### Added

* First release as part of `@fable-org` scope
4 changes: 2 additions & 2 deletions src/fable-compiler-js/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/fable-compiler-js/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"type": "module",
"name": "@fable-org/fable-compiler-js",
"version": "3.3.0",
"private": false,
"version": "1.0.0-beta-001",
"main": "index.js",
"bin": {
"fable": "index.js"
Expand Down
2 changes: 2 additions & 0 deletions src/fable-library-ts/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

## 1.0.0-beta-001 - 2024-02-12

### Changed

* Separate `Result` from `Choice`
Expand Down
3 changes: 2 additions & 1 deletion src/fable-library-ts/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"sideEffects": false,
"private": false,
"type": "module",
"name": "@fable-org/fable-library-ts",
"version": "1.1.1",
"version": "1.0.0-beta-001",
"description": "Core library used by F# projects compiled with fable.io",
"author": "Fable Contributors",
"license": "MIT",
Expand Down
2 changes: 2 additions & 0 deletions src/fable-metadata/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

## 1.0.0-beta-001 - 2024-02-12

### Added

* First release as part of `@fable-org` scope
3 changes: 2 additions & 1 deletion src/fable-metadata/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@fable-org/fable-metadata",
"version": "1.0.0",
"private": false,
"version": "1.0.0-beta-001",
"description": "Assemblies needed to compile F# projects with Fable",
"main": "index.js",
"type": "module",
Expand Down
2 changes: 2 additions & 0 deletions src/fable-standalone/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

## 1.0.0-beta-001 - 2024-02-12

### Changed

* First release as part of `@fable-org` scope
Expand Down
8 changes: 4 additions & 4 deletions src/fable-standalone/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/fable-standalone/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"type": "module",
"name": "@fable-org/fable-standalone",
"version": "3.8.0",
"private": false,
"version": "1.0.0-beta-001",
"main": "./dist/bundle.min.js",
"description": "Fable compiler",
"keywords": [
Expand Down

0 comments on commit cdaf94c

Please sign in to comment.