@thi.ng/math 5.3.14 → 5.3.16

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
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2022-11-23T22:46:54Z
3
+ - **Last updated**: 2022-12-16T12:52:25Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  <!-- This file is generated - DO NOT EDIT! -->
2
2
 
3
- # ![math](https://media.thi.ng/umbrella/banners-20220914/thing-math.svg?9dfcf861)
3
+ # ![@thi.ng/math](https://media.thi.ng/umbrella/banners-20220914/thing-math.svg?9dfcf861)
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/@thi.ng/math.svg)](https://www.npmjs.com/package/@thi.ng/math)
6
6
  ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/math.svg)
7
- [![Twitter Follow](https://img.shields.io/twitter/follow/thing_umbrella.svg?style=flat-square&label=twitter)](https://twitter.com/thing_umbrella)
7
+ [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
8
8
 
9
9
  This project is part of the
10
10
  [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo.
@@ -19,13 +19,11 @@ For the Clojure version, please visit: [thi.ng/math-clj](https://thi.ng/math-clj
19
19
  - [Usage examples](#usage-examples)
20
20
  - [API](#api)
21
21
  - [Authors](#authors)
22
- - [Maintainer](#maintainer)
23
- - [Contributors](#contributors)
24
22
  - [License](#license)
25
23
 
26
24
  ## About
27
25
 
28
- Assorted common math functions & utilities.
26
+ Assorted common math functions & utilities
29
27
 
30
28
  Partially ported from Clojure version
31
29
  [thi.ng/math-clj](https://github.com/thi-ng/math),
@@ -64,14 +62,11 @@ ES module import:
64
62
 
65
63
  For Node.js REPL:
66
64
 
67
- ```text
68
- # with flag only for < v16
69
- node --experimental-repl-await
70
-
71
- > const math = await import("@thi.ng/math");
65
+ ```js
66
+ const math = await import("@thi.ng/math");
72
67
  ```
73
68
 
74
- Package sizes (gzipped, pre-treeshake): ESM: 4.29 KB
69
+ Package sizes (brotli'd, pre-treeshake): ESM: 3.91 KB
75
70
 
76
71
  ## Dependencies
77
72
 
@@ -105,13 +100,8 @@ TODO
105
100
 
106
101
  ## Authors
107
102
 
108
- ### Maintainer
109
-
110
- - Karsten Schmidt ([@postspectacular](https://github.com/postspectacular))
111
-
112
- ### Contributors
113
-
114
- - [@nkint](https://github.com/nkint)
103
+ - [Karsten Schmidt](https://thi.ng) (Main author)
104
+ - [@nkint](https://github.com/nkint)
115
105
 
116
106
  If this project contributes to an academic publication, please cite it as:
117
107
 
@@ -126,4 +116,4 @@ If this project contributes to an academic publication, please cite it as:
126
116
 
127
117
  ## License
128
118
 
129
- &copy; 2013 - 2022 Karsten Schmidt // Apache Software License 2.0
119
+ &copy; 2013 - 2022 Karsten Schmidt // Apache License 2.0
package/abs.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import type { FnN2 } from "@thi.ng/api";
2
2
  export declare const absDiff: FnN2;
3
- export declare const sign: (x: number, eps?: number) => 1 | -1 | 0;
3
+ export declare const sign: (x: number, eps?: number) => 0 | 1 | -1;
4
4
  //# sourceMappingURL=abs.d.ts.map
package/api.d.ts CHANGED
@@ -18,7 +18,7 @@ export declare const THIRD: number;
18
18
  export declare const TWO_THIRD: number;
19
19
  export declare const SIXTH: number;
20
20
  export declare let EPS: number;
21
- export declare type Crossing =
21
+ export type Crossing =
22
22
  /**
23
23
  * lines A & B are equal
24
24
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/math",
3
- "version": "5.3.14",
3
+ "version": "5.3.16",
4
4
  "description": "Assorted common math functions & utilities",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -21,7 +21,10 @@
21
21
  "url": "https://patreon.com/thing_umbrella"
22
22
  }
23
23
  ],
24
- "author": "Karsten Schmidt <k+npm@thi.ng>",
24
+ "author": "Karsten Schmidt (https://thi.ng)",
25
+ "contributors": [
26
+ "@nkint (https://github.com/nkint)"
27
+ ],
25
28
  "license": "Apache-2.0",
26
29
  "scripts": {
27
30
  "build": "yarn clean && tsc --declaration",
@@ -34,15 +37,15 @@
34
37
  "test": "testament test"
35
38
  },
36
39
  "dependencies": {
37
- "@thi.ng/api": "^8.5.0"
40
+ "@thi.ng/api": "^8.6.0"
38
41
  },
39
42
  "devDependencies": {
40
- "@microsoft/api-extractor": "^7.33.5",
41
- "@thi.ng/testament": "^0.3.5",
43
+ "@microsoft/api-extractor": "^7.33.7",
44
+ "@thi.ng/testament": "^0.3.7",
42
45
  "rimraf": "^3.0.2",
43
46
  "tools": "^0.0.1",
44
- "typedoc": "^0.23.20",
45
- "typescript": "^4.8.4"
47
+ "typedoc": "^0.23.22",
48
+ "typescript": "^4.9.4"
46
49
  },
47
50
  "keywords": [
48
51
  "animation",
@@ -132,5 +135,5 @@
132
135
  "thi.ng": {
133
136
  "year": 2013
134
137
  },
135
- "gitHead": "75ec32ff7f1b7b5e72e7a04ace24732cd5d6c774\n"
138
+ "gitHead": "f445a9cc8022bcdebbf6ff91fd66ced016d72f01\n"
136
139
  }