Skip to content

Commit

Permalink
Publish 2.2.0-beta-018
Browse files Browse the repository at this point in the history
  • Loading branch information
alfonsogarciacaro committed Mar 13, 2019
1 parent 4274b5d commit 13a9f4e
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/Fable.Cli/Util.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace Fable.Cli

module Literals =

let [<Literal>] VERSION = "2.2.0-beta-017"
let [<Literal>] VERSION = "2.2.0-beta-018"
let [<Literal>] CORE_VERSION = "2.1.0"
let [<Literal>] DEFAULT_PORT = 61225
let [<Literal>] FORCE = "force:"
Expand Down
6 changes: 2 additions & 4 deletions src/Fable.Core/Fable.Core.Types.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ namespace Fable.Core

open System

/// Not used in Fable 2 but added temporarily to avoid errors when using dotnet CLI
/// to build projects with dependencies referencing Fable.Core 1.x
type Applicable = obj->obj

type CaseRules =
| None = 0
| LowerFirst = 1
Expand Down Expand Up @@ -96,6 +92,8 @@ type ReplacesAttribute(replacedTypeFullName: string) =
type OverloadSuffixAttribute(value: string) =
inherit Attribute()

/// Can be used in an optional argument decorated with Inject attribute
/// to automatically pass generic information without inlining the method
type ITypeResolver<'T> =
abstract ResolveType: unit -> Type

Expand Down
1 change: 1 addition & 0 deletions src/Fable.Core/Fable.Core.Util.fs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module Util =
try failwith "JS only" // try/catch is just for padding so it doesn't get optimized
with ex -> raise ex

module Experimental =
/// Reads the name of an identifier, a property or a type
let nameof(expr: 'a): string = jsNative

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 @@
<TargetFramework>netstandard2.0</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Version>3.0.0</Version>
<PackageVersion>3.0.0-beta-004</PackageVersion>
<PackageVersion>3.0.0-beta-005</PackageVersion>
</PropertyGroup>
<ItemGroup>
<Compile Include="AssemblyInfo.fs" />
Expand Down
4 changes: 4 additions & 0 deletions src/Fable.Core/RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 3.0.0-beta-005

* Move `nameof` operators to Experimental module

### 3.0.0-beta-004

* Move JS extensions to Fable.Core.Extensions file
Expand Down
11 changes: 10 additions & 1 deletion src/fable-compiler/RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
### 2.2.0-beta-017
### 2.2.0-beta-018

* Fix #1784: Decimal.ToString @ncave
* Fix #1785 CancellationToken.Register
* Fix #1782: Map.count
* Fix #1779: Local function imports
* Remove duplicated sources
* Lock Console.Out when writing

### 2.2.0-beta-016

* Fix #1769: Handle empty strings when parsing dates @Zaid-Ajaj
* Raise type resolve error for non-inlined functions requiring Type.Name @Zaid-Ajaj
Expand Down
2 changes: 1 addition & 1 deletion src/fable-compiler/package-lock.json

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

2 changes: 1 addition & 1 deletion src/fable-compiler/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fable-compiler",
"version": "2.2.0-beta-017",
"version": "2.2.0-beta-018",
"main": "dist/index.js",
"description": "Fable compiler",
"keywords": [
Expand Down
11 changes: 8 additions & 3 deletions tests/Main/ArithmeticTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -111,16 +111,21 @@ let tests =
equal (string 0.00123M, "0.00123")
equal (string 0.00012M, "0.00012")
equal (string 0.00001M, "0.00001")
equal (string 0.00000M, "0.00000")
equal (string 0.12300M, "0.12300")
equal (string 0.0M, "0.0")
equal (string 0M, "0")
equal (string 1M, "1")
equal (string -1M, "-1")
equal (string 00000000000000000000000000000.M, "0")
equal (string 0.0000000000000000000000000000M, "0.0000000000000000000000000000")
equal (string 79228162514264337593543950335M, "79228162514264337593543950335")
equal (string -79228162514264337593543950335M, "-79228162514264337593543950335")
// When compiling with fable-compiler-js, the non-significant zeroes are discarded
// equal (string 0.00000M, "0.00000")
// equal (string 00000000000000000000000000000.M, "0")
// equal (string 0.0000000000000000000000000000M, "0.0000000000000000000000000000")
let trim (x: string) = match x.IndexOf('.') with i when i > 0 -> x.[..i-1] | _ -> x
equal (string 0.00000M |> trim, "0")
equal (string 00000000000000000000000000000.M |> trim, "0")
equal (string 0.0000000000000000000000000000M |> trim, "0")

testCase "Decimal precision is kept" <| fun () ->
let items = [ 290.8M
Expand Down
1 change: 1 addition & 0 deletions tests/Main/JsInteropTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ open Util.Testing
#if FABLE_COMPILER
open Fable.Core
open Fable.Core.JsInterop
open Fable.Core.Experimental

[<Global>]
module GlobalModule =
Expand Down

0 comments on commit 13a9f4e

Please sign in to comment.