Skip to content

Commit

Permalink
deploy: 76b1be3
Browse files Browse the repository at this point in the history
  • Loading branch information
MangelMaxime committed Sep 3, 2024
1 parent 912c011 commit ea5611f
Show file tree
Hide file tree
Showing 6 changed files with 232 additions and 219 deletions.
424 changes: 212 additions & 212 deletions js/repl/bundle.min.js

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions js/repl/fable-library-js/BigInt.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,11 @@ export function toFloat16(x) { return Number(x); }
export function toFloat32(x) { return Number(x); }
export function toFloat64(x) { return Number(x); }
export function toDecimal(x) {
const low = Number(BigInt.asUintN(32, x));
const mid = Number(BigInt.asUintN(32, x >> 32n));
const high = Number(BigInt.asUintN(32, x >> 64n));
const isNegative = x < zero;
const bits = abs(x);
const low = Number(BigInt.asUintN(32, bits));
const mid = Number(BigInt.asUintN(32, bits >> 32n));
const high = Number(BigInt.asUintN(32, bits >> 64n));
const scale = 0;
return fromParts(low, mid, high, isNegative, scale);
}
Expand Down
12 changes: 12 additions & 0 deletions js/repl/fable-library-js/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

## 1.4.2 - 2024-06-13

### Fixed

* [JS/TS] Fixed BigInt.ToDecimal with negative values (#3500) (by @ncave)

## 1.4.1 - 2024-06-13

### Fixed

* [JS/TS] Fixed DateTime.MinValue, DateTime.MaxValue (#3836) (by @ncave)

## 1.4.0 - 2024-03-20

### Added
Expand Down
4 changes: 2 additions & 2 deletions js/repl/fable-library-js/Date.js
Original file line number Diff line number Diff line change
Expand Up @@ -469,11 +469,11 @@ export function getTicks(date) {
}
export function minValue() {
// This is "0001-01-01T00:00:00.000Z", actual JS min value is -8640000000000000
return DateTime(-62135596800000, 0 /* DateKind.Unspecified */);
return DateTime(-62135596800000, 1 /* DateKind.UTC */);
}
export function maxValue() {
// This is "9999-12-31T23:59:59.999Z", actual JS max value is 8640000000000000
return DateTime(253402300799999, 0 /* DateKind.Unspecified */);
return DateTime(253402300799999, 1 /* DateKind.UTC */);
}
export function parseRaw(input) {
function fail() {
Expand Down
2 changes: 1 addition & 1 deletion js/repl/fable-library-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": false,
"type": "module",
"name": "@fable-org/fable-library-js",
"version": "1.4.0",
"version": "1.4.2",
"description": "Core library used by F# projects compiled with fable.io",
"author": "Fable Contributors",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion js/repl/worker.min.js

Large diffs are not rendered by default.

0 comments on commit ea5611f

Please sign in to comment.