@thi.ng/binary 3.0.0 → 3.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,38 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.0.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/binary@3.0.3...@thi.ng/binary@3.0.4) (2021-10-25)
7
+
8
+ **Note:** Version bump only for package @thi.ng/binary
9
+
10
+
11
+
12
+
13
+
14
+ ## [3.0.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/binary@3.0.2...@thi.ng/binary@3.0.3) (2021-10-15)
15
+
16
+ **Note:** Version bump only for package @thi.ng/binary
17
+
18
+
19
+
20
+
21
+
22
+ ## [3.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/binary@3.0.1...@thi.ng/binary@3.0.2) (2021-10-15)
23
+
24
+ **Note:** Version bump only for package @thi.ng/binary
25
+
26
+
27
+
28
+
29
+
30
+ ## [3.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/binary@3.0.0...@thi.ng/binary@3.0.1) (2021-10-13)
31
+
32
+ **Note:** Version bump only for package @thi.ng/binary
33
+
34
+
35
+
36
+
37
+
6
38
  # [3.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/binary@2.2.11...@thi.ng/binary@3.0.0) (2021-10-12)
7
39
 
8
40
 
package/README.md CHANGED
@@ -47,10 +47,11 @@ ES module import:
47
47
 
48
48
  [Skypack documentation](https://docs.skypack.dev/)
49
49
 
50
- For NodeJS (v14.6+):
50
+ For Node.js REPL:
51
51
 
52
52
  ```text
53
- node --experimental-specifier-resolution=node --experimental-repl-await
53
+ # with flag only for < v16
54
+ node --experimental-repl-await
54
55
 
55
56
  > const binary = await import("@thi.ng/binary");
56
57
  ```
package/align.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Pow2 } from "./api";
1
+ import type { Pow2 } from "./api.js";
2
2
  /**
3
3
  * Aligns `addr` to next multiple of `size`. The latter must be a power
4
4
  * of 2.
package/bytes.js CHANGED
@@ -1,4 +1,4 @@
1
- import { floatToUintBits, floatToUintBits64 } from "./float";
1
+ import { floatToUintBits, floatToUintBits64 } from "./float.js";
2
2
  export const bytes16 = (x, le = false) => {
3
3
  const b0 = x & 0xff;
4
4
  const b1 = (x >> 8) & 0xff;
package/edit.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { FnU3 } from "@thi.ng/api";
2
- import type { Bit } from "./api";
2
+ import type { Bit } from "./api.js";
3
3
  /**
4
4
  * Clears bit in given uint `x`.
5
5
  *
package/edit.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defMask } from "./mask";
1
+ import { defMask } from "./mask.js";
2
2
  /**
3
3
  * Clears bit in given uint `x`.
4
4
  *
package/index.d.ts CHANGED
@@ -1,16 +1,16 @@
1
- export * from "./align";
2
- export * from "./api";
3
- export * from "./bytes";
4
- export * from "./constants";
5
- export * from "./count";
6
- export * from "./edit";
7
- export * from "./float";
8
- export * from "./gray";
9
- export * from "./logic";
10
- export * from "./mask";
11
- export * from "./one-hot";
12
- export * from "./pow";
13
- export * from "./rotate";
14
- export * from "./splat";
15
- export * from "./swizzle";
1
+ export * from "./align.js";
2
+ export * from "./api.js";
3
+ export * from "./bytes.js";
4
+ export * from "./constants.js";
5
+ export * from "./count.js";
6
+ export * from "./edit.js";
7
+ export * from "./float.js";
8
+ export * from "./gray.js";
9
+ export * from "./logic.js";
10
+ export * from "./mask.js";
11
+ export * from "./one-hot.js";
12
+ export * from "./pow.js";
13
+ export * from "./rotate.js";
14
+ export * from "./splat.js";
15
+ export * from "./swizzle.js";
16
16
  //# sourceMappingURL=index.d.ts.map
package/index.js CHANGED
@@ -1,15 +1,15 @@
1
- export * from "./align";
2
- export * from "./api";
3
- export * from "./bytes";
4
- export * from "./constants";
5
- export * from "./count";
6
- export * from "./edit";
7
- export * from "./float";
8
- export * from "./gray";
9
- export * from "./logic";
10
- export * from "./mask";
11
- export * from "./one-hot";
12
- export * from "./pow";
13
- export * from "./rotate";
14
- export * from "./splat";
15
- export * from "./swizzle";
1
+ export * from "./align.js";
2
+ export * from "./api.js";
3
+ export * from "./bytes.js";
4
+ export * from "./constants.js";
5
+ export * from "./count.js";
6
+ export * from "./edit.js";
7
+ export * from "./float.js";
8
+ export * from "./gray.js";
9
+ export * from "./logic.js";
10
+ export * from "./mask.js";
11
+ export * from "./one-hot.js";
12
+ export * from "./pow.js";
13
+ export * from "./rotate.js";
14
+ export * from "./splat.js";
15
+ export * from "./swizzle.js";
package/logic.js CHANGED
@@ -1,4 +1,4 @@
1
- import { maskL } from "./mask";
1
+ import { maskL } from "./mask.js";
2
2
  export const bitNot = (x) => ~x;
3
3
  export const bitAnd = (a, b) => a & b;
4
4
  export const bitNand = (a, b) => ~(a & b);
package/mask.js CHANGED
@@ -1,4 +1,4 @@
1
- import { MASKS } from "./constants";
1
+ import { MASKS } from "./constants.js";
2
2
  /**
3
3
  * Creates bit mask by enabling bit `a` to bit `b-1`, both in range
4
4
  * 0-32. `b` MUST be >= `a`.
package/one-hot.js CHANGED
@@ -1,4 +1,4 @@
1
- import { clz32 } from "./count";
1
+ import { clz32 } from "./count.js";
2
2
  /**
3
3
  * Converts binary `x` to one-hot format.
4
4
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/binary",
3
- "version": "3.0.0",
3
+ "version": "3.0.4",
4
4
  "description": "100+ assorted binary / bitwise operations, conversions, utilities, lookup tables",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,10 +34,10 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.0.0"
37
+ "@thi.ng/api": "^8.0.4"
38
38
  },
39
39
  "devDependencies": {
40
- "@thi.ng/testament": "^0.1.0"
40
+ "@thi.ng/testament": "^0.1.4"
41
41
  },
42
42
  "keywords": [
43
43
  "align",
@@ -62,6 +62,9 @@
62
62
  "publishConfig": {
63
63
  "access": "public"
64
64
  },
65
+ "engines": {
66
+ "node": ">=12.7"
67
+ },
65
68
  "files": [
66
69
  "*.js",
67
70
  "*.d.ts"
@@ -121,5 +124,5 @@
121
124
  "transducers-binary"
122
125
  ]
123
126
  },
124
- "gitHead": "9ac1344b38b565eb894306fbf72233b6c0b2d115"
127
+ "gitHead": "9ff00a103f76cc4917ef3f244132e218f2300a05"
125
128
  }
package/pow.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { FnN } from "@thi.ng/api";
2
- import type { Pow2 } from "./api";
2
+ import type { Pow2 } from "./api.js";
3
3
  export declare const isPow2: (x: number) => x is Pow2;
4
4
  export declare const ceilPow2: FnN;
5
5
  export declare const floorPow2: FnN;
package/rotate.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Bit } from "./api";
1
+ import type { Bit } from "./api.js";
2
2
  /**
3
3
  * Rotates `x` `n` bits to the left.
4
4
  *
package/swizzle.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { FnN, FnN3 } from "@thi.ng/api";
2
- import type { Lane16, Lane2, Lane4, Lane8 } from "./api";
2
+ import type { Lane16, Lane2, Lane4, Lane8 } from "./api.js";
3
3
  /**
4
4
  * Extracts 16-bit lane from given 32bit uint and returns as unsigned
5
5
  * half word [0x0000 .. 0xffff].