@fable-org/fable-standalone
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -10,2 +10,8 @@ # Changelog | ||
## 1.3.0 - 2024-03-18 | ||
### Changed | ||
* Fable 4.15.0 | ||
## 1.2.0 - 2024-03-01 | ||
@@ -12,0 +18,0 @@ |
import { FSharpRef } from "./Types.js"; | ||
export function tryParse(str, defValue) { | ||
if (str.match(/^\s*true\s*$/i)) { | ||
if (str != null && str.match(/^\s*true\s*$/i)) { | ||
defValue.contents = true; | ||
return true; | ||
} | ||
else if (str.match(/^\s*false\s*$/i)) { | ||
else if (str != null && str.match(/^\s*false\s*$/i)) { | ||
defValue.contents = false; | ||
@@ -9,0 +9,0 @@ return true; |
@@ -10,2 +10,6 @@ # Changelog | ||
## 1.3.0 - 2024-03-18 | ||
* [JS/TS] `Boolean.tryParse` should not crash on `null` string (@goswinr) | ||
## 1.2.0 - 2024-03-01 | ||
@@ -12,0 +16,0 @@ |
@@ -658,3 +658,3 @@ /** | ||
const newDate = DateTime(d.getTime() + ts, d.kind); | ||
if (d.kind === 2 /* DateKind.Local */) { | ||
if (d.kind !== 1 /* DateKind.UTC */) { | ||
const oldTzOffset = d.getTimezoneOffset(); | ||
@@ -661,0 +661,0 @@ const newTzOffset = newDate.getTimezoneOffset(); |
@@ -6,3 +6,3 @@ { | ||
"name": "@fable-org/fable-library-js", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "Core library used by F# projects compiled with fable.io", | ||
@@ -9,0 +9,0 @@ "author": "Fable Contributors", |
@@ -5,3 +5,3 @@ { | ||
"private": false, | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"main": "./dist/bundle.min.js", | ||
@@ -8,0 +8,0 @@ "description": "Fable compiler", |
Sorry, the diff of this file is too big to display
6546311