Skip to content

Commit

Permalink
Bump version to 2.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
alfonsogarciacaro committed Oct 27, 2018
1 parent 1b4f084 commit 6e17c89
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
13 changes: 10 additions & 3 deletions src/dotnet/Fable.Compiler/CLI/Agent.fs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,19 @@ let tryGetOption name (opts: IDictionary<string, string>) =
| true, value -> Some value
| false, _ -> None

let splitVersion (version: string) =
match System.Version.TryParse(version) with
| true, v -> v.Major, v.Minor, v.Revision
| _ -> 0, 0, 0

let checkFableCoreVersion (checkedProject: FSharpCheckProjectResults) =
for ref in checkedProject.ProjectContext.GetReferencedAssemblies() do
if ref.SimpleName = "Fable.Core" then
let version = System.Text.RegularExpressions.Regex.Match(ref.QualifiedName, @"Version=(\d+\.\d+)\.\d+")
if version.Groups.[1].Value <> Literals.CORE_VERSION then
failwithf "Fable.Core v%s detected, expecting v%s" version.Groups.[1].Value Literals.CORE_VERSION
let version = System.Text.RegularExpressions.Regex.Match(ref.QualifiedName, @"Version=(\d+\.\d+\.\d+)")
let expectedMajor, expectedMinor, _ = splitVersion Literals.CORE_VERSION
let actualMajor, actualMinor, _ = splitVersion version.Groups.[1].Value
if not(actualMajor = expectedMajor && actualMinor = expectedMinor) then
failwithf "Fable.Core v%i.%i detected, expecting v%i.%i" actualMajor actualMinor expectedMajor expectedMinor
// else printfn "Fable.Core version matches"

let createProject checker dirtyFiles (prevProject: Project option) (msg: Parser.Message) projFile =
Expand Down
2 changes: 1 addition & 1 deletion src/dotnet/Fable.Compiler/CLI/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.0.7"
let [<Literal>] VERSION = "2.0.8"
let [<Literal>] CORE_VERSION = "2.0.1"
let [<Literal>] DEFAULT_PORT = 61225
let [<Literal>] FORCE = "force:"
Expand Down
4 changes: 2 additions & 2 deletions src/dotnet/Fable.Compiler/Fable.Compiler.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>Fable: F# to JS Compiler</Description>
<Version>2.0.7</Version>
<PackageVersion>2.0.7</PackageVersion>
<Version>2.0.8</Version>
<PackageVersion>2.0.8</PackageVersion>
<OutputType>Exe</OutputType>
<PackageType>DotnetCliTool</PackageType>
<AssemblyName>dotnet-fable</AssemblyName>
Expand Down
2 changes: 1 addition & 1 deletion src/dotnet/Fable.Compiler/RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### 2.0.7
### 2.0.8

* Implement eprintf and eprintfn @inosik
* Fix #1389: Throw proper error when match cases are incomplete @Zaid-Aja
Expand Down

0 comments on commit 6e17c89

Please sign in to comment.