Skip to content

Releases: petamoriken/float16

v3.4.12

16 Oct 00:07
v3.4.12
01f55f1
Compare
Choose a tag to compare
  • Fix: Stop using Proxy for Float16Array prototype methods (29b6eba)
  • Fix: Float16Array's Proxy get/set handlers do not affect accessor properties not related to TypedArray prototype (88ff220, e92d4e0)
  • Fix: Throw TypeError when input BigUint64Array/BigInt64Array (47803fa)
  • Fix: Throw TypeError when @@species doesn't return TypedArray or returns BigUint64Array/BigInt64Array (572fe6e)

v3.4.11

11 Oct 13:43
v3.4.11
c9213f4
Compare
Choose a tag to compare
  • Fix types
  • Fix custom inspect types for Deno
  • Update README.md

v3.4.10

11 Oct 01:11
v3.4.10
78c85df
Compare
Choose a tag to compare
  • Refactoring
  • Update custom inspection
  • Update README.md

v3.4.9

09 Oct 12:04
v3.4.9
558fc75
Compare
Choose a tag to compare
  • Refactoring
  • Update to use .cjs extension for CommonJS (24d6855)
  • Add custom inspection for Node.js and Deno (6ec5f2f)

Float16Array custom inspection

Provides custom inspection for Node.js and Deno, which makes the results of console.log more readable.

Node.js

// ES Modules
import { Float16Array } from "@petamoriken/float16";
import { customInspect } from "@petamoriken/float16/inspect";

Float16Array.prototype[Symbol.for("nodejs.util.inspect.custom")] = customInspect;
// CommonJS
const { Float16Array } = require("@petamoriken/float16");
const { customInspect } = require("@petamoriken/float16/inspect");

Float16Array.prototype[Symbol.for("nodejs.util.inspect.custom")] = customInspect;

Deno

import { Float16Array } from "https://deno.land/x/float16/mod.ts";
import { customInspect } from "https://deno.land/x/float16/inspect.ts";

// deno-lint-ignore no-explicit-any
(Float16Array.prototype as any)[Symbol.for("Deno.customInspect")] = customInspect;

v3.4.8

07 Oct 08:39
v3.4.8
3fa12ca
Compare
Choose a tag to compare
  • Refactoring
  • Set generatedCode: "es2015" in rollup config for browser build (b37194a)

v3.4.7

14 Sep 21:23
v3.4.7
324f1e8
Compare
Choose a tag to compare
  • Refactoring
  • Fix hfround to throw TypeError when value is bigint (3096f45)

v3.4.6

10 Sep 15:37
v3.4.6
4e1e651
Compare
Choose a tag to compare
  • Fix ToIntegerOrInfinity bug (3868ad6)

v3.4.5

10 Sep 14:20
v3.4.5
3ee63fa
Compare
Choose a tag to compare
  • Support call Float16Array.{from, of} from subclass (11cf434, 90e4c57)

v3.4.4

05 Sep 13:50
v3.4.4
771b009
Compare
Choose a tag to compare
  • Update README.md
  • Fix a broken link for the algorithm details & Update the information in package.json (2eb4786)
  • Fix index.d.ts (0727b02)
  • Stop using @babel/preset-env (948b34e)
    • Babel transform is only used for CommonJS
  • Make the codes more solid (31a9d9a, f66063d)

v3.4.3

04 Sep 02:59
v3.4.3
68133c0
Compare
Choose a tag to compare
  • Update dev dependencies
  • Update Babel config for pre-transpiled JavaScript files (0b55cce)
  • Change entry points for Deno