@thi.ng/math 5.0.6 → 5.1.1

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +168 -171
  2. package/README.md +1 -1
  3. package/package.json +131 -126
package/CHANGELOG.md CHANGED
@@ -1,268 +1,265 @@
1
1
  # Change Log
2
2
 
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## [5.0.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@5.0.5...@thi.ng/math@5.0.6) (2021-10-28)
7
-
8
- **Note:** Version bump only for package @thi.ng/math
9
-
10
-
11
-
12
-
13
-
14
- ## [5.0.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@5.0.4...@thi.ng/math@5.0.5) (2021-10-28)
15
-
16
- **Note:** Version bump only for package @thi.ng/math
17
-
18
-
19
-
20
-
21
-
22
- ## [5.0.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@5.0.3...@thi.ng/math@5.0.4) (2021-10-25)
23
-
24
- **Note:** Version bump only for package @thi.ng/math
25
-
26
-
27
-
28
-
3
+ - **Last updated**: 2021-11-19T07:59:51Z
4
+ - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
29
5
 
30
- ## [5.0.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@5.0.2...@thi.ng/math@5.0.3) (2021-10-15)
31
-
32
- **Note:** Version bump only for package @thi.ng/math
33
-
34
-
35
-
36
-
37
-
38
- ## [5.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@5.0.1...@thi.ng/math@5.0.2) (2021-10-15)
39
-
40
- **Note:** Version bump only for package @thi.ng/math
41
-
42
-
43
-
44
-
45
-
46
- ## [5.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@5.0.0...@thi.ng/math@5.0.1) (2021-10-13)
47
-
48
- **Note:** Version bump only for package @thi.ng/math
49
-
50
-
51
-
52
-
53
-
54
- # [5.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@4.0.6...@thi.ng/math@5.0.0) (2021-10-12)
6
+ All notable changes to this project will be documented in this file.
7
+ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
55
8
 
9
+ **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
+ and/or version bumps of transitive dependencies.
56
11
 
57
- ### Build System
12
+ ## [5.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@5.1.0) (2021-11-17)
58
13
 
59
- * major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
14
+ #### 🚀 Features
60
15
 
16
+ - Using workspaces for local tools ([bf7a404](https://github.com/thi-ng/umbrella/commit/bf7a404))
17
+ Improving the overall build ergonomics
18
+ - introduced a tools workspaces
19
+ - imported it in all needed packages/examples
20
+ - inclusive project root
61
21
 
62
- ### BREAKING CHANGES
22
+ #### ♻️ Refactoring
63
23
 
64
- * discontinue CommonJS & UMD versions
24
+ - testrunner to binary ([4ebbbb2](https://github.com/thi-ng/umbrella/commit/4ebbbb2))
25
+ this commit reverts (partly) changes made in:
26
+ ef346d7a8753590dc9094108a3d861a8dbd5dd2c
27
+ overall purpose is better testament ergonomics:
28
+ instead of having to pass NODE_OPTIONS with every invocation
29
+ having a binary to handle this for us.
65
30
 
66
- - only ESM modules will be published from now on
67
- - CJS obsolete due to ESM support in recent versions of node:
68
- - i.e. launch NodeJS via:
69
- - `node --experimental-specifier-resolution=node --experimental-repl-await`
70
- - in the node REPL use `await import(...)` instead of `require()`
71
- - UMD obsolete due to widespread browser support for ESM
31
+ ### [5.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@5.0.1) (2021-10-13)
72
32
 
73
- Also:
74
- - normalize/restructure/reorg all package.json files
75
- - cleanup all build scripts, remove obsolete
76
- - switch from mocha to @thi.ng/testament for all tests
33
+ #### ♻️ Refactoring
77
34
 
35
+ - update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
36
+ - update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
37
+ - add .js suffix for all relative imports
78
38
 
39
+ # [5.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@5.0.0) (2021-10-12)
79
40
 
41
+ #### 🛑 Breaking changes
80
42
 
43
+ - major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
44
+ - BREAKING CHANGE: discontinue CommonJS & UMD versions
45
+ - only ESM modules will be published from now on
46
+ - CJS obsolete due to ESM support in recent versions of node:
47
+ - i.e. launch NodeJS via:
48
+ - `node --experimental-specifier-resolution=node --experimental-repl-await`
49
+ - in the node REPL use `await import(...)` instead of `require()`
50
+ - UMD obsolete due to widespread browser support for ESM
51
+ Also:
52
+ - normalize/restructure/reorg all package.json files
53
+ - cleanup all build scripts, remove obsolete
54
+ - switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
81
55
 
56
+ #### ♻️ Refactoring
82
57
 
83
- ## [4.0.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@4.0.5...@thi.ng/math@4.0.6) (2021-09-03)
58
+ - update imports ([138571a](https://github.com/thi-ng/umbrella/commit/138571a))
59
+ - update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
60
+ - update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
84
61
 
85
- ### Bug Fixes
62
+ ### [4.0.6](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@4.0.6) (2021-09-03)
86
63
 
87
- - **math:** removing deprecated eqDeltaFixed() ([1de245b](https://github.com/thi-ng/umbrella/commit/1de245bff0d2c1d9436e39240ecd648cef744488))
64
+ #### 🩹 Bug fixes
88
65
 
89
- # [4.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@3.4.0...@thi.ng/math@4.0.0) (2021-04-24)
66
+ - removing deprecated eqDeltaFixed() ([1de245b](https://github.com/thi-ng/umbrella/commit/1de245b))
90
67
 
91
- ### Features
68
+ # [4.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@4.0.0) (2021-04-24)
92
69
 
93
- - **math:** add libc math fns ([28b41a8](https://github.com/thi-ng/umbrella/commit/28b41a824758b83cea09c29f48e6f14f56368c40))
94
- - **math:** add/update modulo functions ([be7b02b](https://github.com/thi-ng/umbrella/commit/be7b02beaf4ab1ab1030597a5f4eb94d43e1469b))
70
+ #### 🛑 Breaking changes
95
71
 
96
- ### BREAKING CHANGES
72
+ - add/update modulo functions ([be7b02b](https://github.com/thi-ng/umbrella/commit/be7b02b))
73
+ - BREAKING CHANGE: Introduction of standard libc math functions causes
74
+ behavior change of existing `fmod()` function...
75
+ - rename `fmod()` => `mod()` to align w/ GLSL counterpart
76
+ - add new `fmod()` w/ standard libc behavior (same as JS % op)
77
+ - add `remainder()` w/ standard libc behavior
78
+ - update doc strings
97
79
 
98
- - **math:** Introduction of standard libc math functions causes behavior change of existing `fmod()` function...
99
- - rename `fmod()` => `mod()` to align w/ GLSL counterpart
100
- - add new `fmod()` w/ standard libc behavior (same as JS % op)
101
- - add `remainder()` w/ standard libc behavior
102
- - update doc strings
80
+ #### 🚀 Features
103
81
 
104
- # [3.4.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@3.3.0...@thi.ng/math@3.4.0) (2021-04-03)
82
+ - add libc math fns ([28b41a8](https://github.com/thi-ng/umbrella/commit/28b41a8))
83
+ - add copysign()
84
+ - add exp2()
85
+ - add fdim()
86
+ - add fma()
87
+ - add frexp()
88
+ - add ldexp()
105
89
 
106
- ### Bug Fixes
90
+ ## [3.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@3.4.0) (2021-04-03)
107
91
 
108
- - **math:** fix sigmoid01() signature ([378cb17](https://github.com/thi-ng/umbrella/commit/378cb17d4ad2ef2f301039e067af251c867d7da8))
92
+ #### 🚀 Features
109
93
 
110
- ### Features
94
+ - add lanczos(), fix/update/add sinc ([e661b7a](https://github.com/thi-ng/umbrella/commit/e661b7a))
95
+ - replace broken sinc() fn w/ non-normalized real sinc
96
+ - add sincNormalized()
97
+ - add lanczos()
111
98
 
112
- - **math:** add lanczos(), fix/update/add sinc ([e661b7a](https://github.com/thi-ng/umbrella/commit/e661b7a8e8ce49e4d34ae572818d6b0e8e7a292d))
99
+ #### 🩹 Bug fixes
113
100
 
114
- # [3.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@3.2.5...@thi.ng/math@3.3.0) (2021-03-17)
101
+ - fix sigmoid01() signature ([378cb17](https://github.com/thi-ng/umbrella/commit/378cb17))
115
102
 
116
- ### Features
103
+ ## [3.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@3.3.0) (2021-03-17)
117
104
 
118
- - **math:** add mixBicubic(), mixCubicHermiteFromPoints() ([30dda42](https://github.com/thi-ng/umbrella/commit/30dda424cc1a433a71dfa762f0b8c453114466a0))
105
+ #### 🚀 Features
119
106
 
120
- ### Performance Improvements
107
+ - add mixBicubic(), mixCubicHermiteFromPoints() ([30dda42](https://github.com/thi-ng/umbrella/commit/30dda42))
121
108
 
122
- - **math:** replace mixBilinear() w/ inline impl ([bb16dc5](https://github.com/thi-ng/umbrella/commit/bb16dc591dd9455b8d0061a664375a9dc8c74a36))
109
+ #### Performance improvements
123
110
 
124
- # [3.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@3.1.0...@thi.ng/math@3.2.0) (2021-02-20)
111
+ - replace mixBilinear() w/ inline impl ([bb16dc5](https://github.com/thi-ng/umbrella/commit/bb16dc5))
112
+ - new impl ~1.7x faster
125
113
 
126
- ### Features
114
+ ## [3.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@3.2.0) (2021-02-20)
127
115
 
128
- - **math:** add clamp0() ([d18c869](https://github.com/thi-ng/umbrella/commit/d18c869b59499ee081bee7c75e6ed0ebd4720efb))
116
+ #### 🚀 Features
129
117
 
130
- # [3.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@3.0.1...@thi.ng/math@3.1.0) (2021-01-10)
118
+ - add clamp0() ([d18c869](https://github.com/thi-ng/umbrella/commit/d18c869))
131
119
 
132
- ### Features
120
+ ## [3.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@3.1.0) (2021-01-10)
133
121
 
134
- - **math:** add floorTo/ceilTo() ([595fe83](https://github.com/thi-ng/umbrella/commit/595fe83475f4a4080408033d3448fd4c36ef1652))
122
+ #### 🚀 Features
135
123
 
136
- # [3.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@2.2.2...@thi.ng/math@3.0.0) (2020-12-22)
124
+ - add floorTo/ceilTo() ([595fe83](https://github.com/thi-ng/umbrella/commit/595fe83))
137
125
 
138
- ### Bug Fixes
126
+ # [3.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@3.0.0) (2020-12-22)
139
127
 
140
- - **math:** fix [#256](https://github.com/thi-ng/umbrella/issues/256) replace enum w/ type alias ([8f00375](https://github.com/thi-ng/umbrella/commit/8f00375722ff3e207f1711229acff69c3bd1343f))
128
+ #### 🛑 Breaking changes
141
129
 
142
- ### Code Refactoring
130
+ - fix [#256](https://github.com/thi-ng/umbrella/issues/256) replace enum w/ type alias ([8f00375](https://github.com/thi-ng/umbrella/commit/8f00375))
131
+ - update comparison order in classifyCrossing()
132
+ - BREAKING CHANGE: replace Crossing enum w/ type alias
133
+ - update/fix sigmoid() behavior ([07a278f](https://github.com/thi-ng/umbrella/commit/07a278f))
134
+ - BREAKING CHANGE: add new bias arg for sigmoid() to satisfy more use cases.
135
+ Use sigmoid01() for old behavior.
136
+ - add/update docstrings
137
+ - add desmos links
143
138
 
144
- - **math:** update/fix sigmoid() behavior ([07a278f](https://github.com/thi-ng/umbrella/commit/07a278fdd82004610aa9b7acb585c3c841af24ba))
139
+ #### 🚀 Features
145
140
 
146
- ### Features
141
+ - add more parametric T-norms ([38bd40e](https://github.com/thi-ng/umbrella/commit/38bd40e))
142
+ - add gaussian() ([138befe](https://github.com/thi-ng/umbrella/commit/138befe))
143
+ - add various T-norm functions ([ab4a810](https://github.com/thi-ng/umbrella/commit/ab4a810))
147
144
 
148
- - **math:** add gaussian() ([138befe](https://github.com/thi-ng/umbrella/commit/138befe1f2d14eb9a4fb3829179b8d03d49e6bbc))
149
- - **math:** add more parametric T-norms ([38bd40e](https://github.com/thi-ng/umbrella/commit/38bd40e1595e318c6472a526e03c8c8a06ebf396))
150
- - **math:** add various T-norm functions ([ab4a810](https://github.com/thi-ng/umbrella/commit/ab4a810981c08c54365d5ea3212cd465d2589cf0))
145
+ ### [2.2.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@2.2.2) (2020-12-07)
151
146
 
152
- ### BREAKING CHANGES
147
+ #### ♻️ Refactoring
153
148
 
154
- - **math:** replace Crossing enum w/ type alias
155
- - **math:** add new bias arg for sigmoid() to satisfy more use cases. Use sigmoid01() for old behavior.
156
- - add/update docstrings
157
- - add desmos links
149
+ - update type-only imports in various tests/pkgs ([3fd9c24](https://github.com/thi-ng/umbrella/commit/3fd9c24))
158
150
 
159
- # [2.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@2.1.1...@thi.ng/math@2.2.0) (2020-11-24)
151
+ ## [2.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@2.2.0) (2020-11-24)
160
152
 
161
- ### Features
153
+ #### 🚀 Features
162
154
 
163
- - **math:** add generalized schlick curve ([4b6eb84](https://github.com/thi-ng/umbrella/commit/4b6eb844f3588679ee78d0e7d60b52cfcec8eb87))
155
+ - add generalized schlick curve ([4b6eb84](https://github.com/thi-ng/umbrella/commit/4b6eb84))
164
156
 
165
- # [2.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@2.0.4...@thi.ng/math@2.1.0) (2020-09-13)
157
+ ## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@2.1.0) (2020-09-13)
166
158
 
167
- ### Features
159
+ #### 🚀 Features
168
160
 
169
- - **math:** add lens(), invCircular() interpolators ([56dce17](https://github.com/thi-ng/umbrella/commit/56dce1779ee314179771fa14f31d0f36e1ec6a12))
161
+ - add lens(), invCircular() interpolators ([56dce17](https://github.com/thi-ng/umbrella/commit/56dce17))
170
162
 
171
- # [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@1.7.13...@thi.ng/math@2.0.0) (2020-07-17)
163
+ #### ♻️ Refactoring
172
164
 
173
- ### Code Refactoring
165
+ - update deps, imports, use new Fn types ([a40840d](https://github.com/thi-ng/umbrella/commit/a40840d))
166
+ - use new function aliases, update deps ([dd0337f](https://github.com/thi-ng/umbrella/commit/dd0337f))
174
167
 
175
- - **math:** swap `eqDelta()` impls, rename ([5404a56](https://github.com/thi-ng/umbrella/commit/5404a5699a44d7ef6c2ccb5804f2b099a4358eb1))
168
+ ### [1.7.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@1.7.5) (2020-04-05)
176
169
 
177
- ### BREAKING CHANGES
170
+ #### ♻️ Refactoring
178
171
 
179
- - **math:** Revert/rename `eqDeltaFixed()` => `eqDelta()`. Rename curr `eqDelta()` => `eqDeltaScaled()`
180
- - this is essentially a revert to 5018009
181
- - also keep, but deprecate `eqDeltaFixed()` (synonym for `eqDelta` now)
172
+ - switch to non-const enums ([783e5e3](https://github.com/thi-ng/umbrella/commit/783e5e3))
182
173
 
183
- # [1.7.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@1.6.0...@thi.ng/math@1.7.0) (2020-02-25)
174
+ ## [1.7.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@1.7.0) (2020-02-25)
184
175
 
185
- ### Features
176
+ #### 🚀 Features
186
177
 
187
- - **math:** add minNonZero2/3() ([49c88d9](https://github.com/thi-ng/umbrella/commit/49c88d917ca7089841f5c26ca92293582d80f148))
188
- - **math:** add safeDiv() (from [@nkint](https://github.com/nkint) PR [#206](https://github.com/thi-ng/umbrella/issues/206)) ([0567b93](https://github.com/thi-ng/umbrella/commit/0567b93b881467c634fc4723cad986432faecd83))
178
+ - add minNonZero2/3() ([49c88d9](https://github.com/thi-ng/umbrella/commit/49c88d9))
179
+ - add safeDiv() (from @nkint PR [#206](https://github.com/thi-ng/umbrella/issues/206)) ([0567b93](https://github.com/thi-ng/umbrella/commit/0567b93))
189
180
 
190
- # [1.6.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@1.5.1...@thi.ng/math@1.6.0) (2020-01-24)
181
+ ## [1.6.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@1.6.0) (2020-01-24)
191
182
 
192
- ### Features
183
+ #### 🚀 Features
193
184
 
194
- - **math:** add clamp05, update wrapOnce, wrap01, wrap11 ([19af252](https://github.com/thi-ng/umbrella/commit/19af2527a3c7afee4f829e36bf06acaeaf045be7))
195
- - **math:** add expFactor(), update wrap/wrapOnce() ([bb07348](https://github.com/thi-ng/umbrella/commit/bb07348da2e252641c1bc4de1e577451ead3607b))
185
+ - add clamp05, update wrapOnce, wrap01, wrap11 ([19af252](https://github.com/thi-ng/umbrella/commit/19af252))
186
+ - add clamp05()
187
+ - wrap fns now consistently use *closed* intervals
188
+ - add expFactor(), update wrap/wrapOnce() ([bb07348](https://github.com/thi-ng/umbrella/commit/bb07348))
189
+ - rename wrap => wrapOnce()
190
+ - add new wrap() which wraps any value, regardless of
191
+ dist to interval border
192
+ - update docs
196
193
 
197
- # [1.5.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@1.4.2...@thi.ng/math@1.5.0) (2019-11-09)
194
+ ## [1.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@1.5.0) (2019-11-09)
198
195
 
199
- ### Features
196
+ #### 🚀 Features
200
197
 
201
- - **math:** add mixCubicHermite & tangent fns ([d6b4b37](https://github.com/thi-ng/umbrella/commit/d6b4b3710b80fa1366cb40c193ad745bc63d4253))
198
+ - add mixCubicHermite & tangent fns ([d6b4b37](https://github.com/thi-ng/umbrella/commit/d6b4b37))
202
199
 
203
- # [1.4.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@1.3.0...@thi.ng/math@1.4.0) (2019-07-07)
200
+ ## [1.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@1.4.0) (2019-07-07)
204
201
 
205
- ### Features
202
+ #### 🚀 Features
206
203
 
207
- - **math:** add signed/unsigned int math ops ([518d79a](https://github.com/thi-ng/umbrella/commit/518d79a))
204
+ - add signed/unsigned int math ops ([518d79a](https://github.com/thi-ng/umbrella/commit/518d79a))
208
205
 
209
- # [1.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@1.2.3...@thi.ng/math@1.3.0) (2019-05-22)
206
+ ## [1.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@1.3.0) (2019-05-22)
210
207
 
211
- ### Features
208
+ #### 🚀 Features
212
209
 
213
- - **math:** add extrema & crossing fns and Crossing enum ([e102f39](https://github.com/thi-ng/umbrella/commit/e102f39))
214
- - **math:** add sigmoid / sigmoid11 fns ([3f085a3](https://github.com/thi-ng/umbrella/commit/3f085a3))
210
+ - add sigmoid / sigmoid11 fns ([3f085a3](https://github.com/thi-ng/umbrella/commit/3f085a3))
211
+ - add extrema & crossing fns and Crossing enum ([e102f39](https://github.com/thi-ng/umbrella/commit/e102f39))
215
212
 
216
- # [1.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@1.1.1...@thi.ng/math@1.2.0) (2019-03-18)
213
+ ## [1.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@1.2.0) (2019-03-18)
217
214
 
218
- ### Features
215
+ #### 🚀 Features
219
216
 
220
- - **math:** add consts ([28e9898](https://github.com/thi-ng/umbrella/commit/28e9898))
221
- - **math:** add cos/sin approximations, loc(), add docstrings ([78ed751](https://github.com/thi-ng/umbrella/commit/78ed751))
222
- - **math:** more trigonometry ([b5e1c02](https://github.com/thi-ng/umbrella/commit/b5e1c02))
217
+ - add cos/sin approximations, loc(), add docstrings ([78ed751](https://github.com/thi-ng/umbrella/commit/78ed751))
218
+ - add consts ([28e9898](https://github.com/thi-ng/umbrella/commit/28e9898))
219
+ - more trigonometry ([b5e1c02](https://github.com/thi-ng/umbrella/commit/b5e1c02))
223
220
 
224
- # [1.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@1.0.1...@thi.ng/math@1.1.0) (2019-02-05)
221
+ ## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@1.1.0) (2019-02-05)
225
222
 
226
- ### Features
223
+ #### 🚀 Features
227
224
 
228
- - **math:** add minError() search ([cae8394](https://github.com/thi-ng/umbrella/commit/cae8394))
229
- - **math:** add PHI const ([57d4488](https://github.com/thi-ng/umbrella/commit/57d4488))
230
- - **math:** add simplifyRatio() ([31e369b](https://github.com/thi-ng/umbrella/commit/31e369b))
225
+ - add PHI const ([57d4488](https://github.com/thi-ng/umbrella/commit/57d4488))
231
226
 
232
- # [1.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@0.2.2...@thi.ng/math@1.0.0) (2019-01-21)
227
+ # [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@1.0.0) (2019-01-21)
233
228
 
234
- ### Build System
229
+ #### 🛑 Breaking changes
235
230
 
236
- - update package build scripts & outputs, imports in ~50 packages ([b54b703](https://github.com/thi-ng/umbrella/commit/b54b703))
231
+ - update package build scripts & outputs, imports in ~50 packages ([b54b703](https://github.com/thi-ng/umbrella/commit/b54b703))
232
+ - BREAKING CHANGE: enabled multi-outputs (ES6 modules, CJS, UMD)
233
+ - build scripts now first build ES6 modules in package root, then call
234
+ `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
235
+ - all imports MUST be updated to only refer to package level
236
+ (not individual files anymore). tree shaking in user land will get rid of
237
+ all unused imported symbols.
237
238
 
238
- ### Features
239
+ #### 🚀 Features
239
240
 
240
- - **math:** add absInnerAngle() ([a78bd87](https://github.com/thi-ng/umbrella/commit/a78bd87))
241
- - **math:** add constants ([8fa05c3](https://github.com/thi-ng/umbrella/commit/8fa05c3))
242
- - **math:** add cossin(), add opt scale arg for sincos() ([0043fb5](https://github.com/thi-ng/umbrella/commit/0043fb5))
243
- - **math:** update eqDelta w/ adaptive eps, rename old => eqDeltaFixed ([5018009](https://github.com/thi-ng/umbrella/commit/5018009))
241
+ - add absInnerAngle() ([a78bd87](https://github.com/thi-ng/umbrella/commit/a78bd87))
242
+ - update eqDelta w/ adaptive eps, rename old => eqDeltaFixed ([5018009](https://github.com/thi-ng/umbrella/commit/5018009))
244
243
 
245
- ### BREAKING CHANGES
244
+ #### ♻️ Refactoring
246
245
 
247
- - enabled multi-outputs (ES6 modules, CJS, UMD)
248
- - build scripts now first build ES6 modules in package root, then call `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
249
- - all imports MUST be updated to only refer to package level (not individual files anymore). tree shaking in user land will get rid of all unused imported symbols.
246
+ - use arrow fns ([560207a](https://github.com/thi-ng/umbrella/commit/560207a))
250
247
 
251
- ## [0.2.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@0.2.0...@thi.ng/math@0.2.1) (2018-11-20)
248
+ ### [0.2.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@0.2.1) (2018-11-20)
252
249
 
253
- ### Bug Fixes
250
+ #### 🩹 Bug fixes
254
251
 
255
- - **math:** fix [#60](https://github.com/thi-ng/umbrella/issues/60), add range check for norm() ([143c47c](https://github.com/thi-ng/umbrella/commit/143c47c))
252
+ - fix [#60](https://github.com/thi-ng/umbrella/issues/60), add range check for norm() ([143c47c](https://github.com/thi-ng/umbrella/commit/143c47c))
256
253
 
257
- # [0.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@0.1.0...@thi.ng/math@0.2.0) (2018-10-21)
254
+ ## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@0.2.0) (2018-10-21)
258
255
 
259
- ### Features
256
+ #### 🚀 Features
260
257
 
261
- - **math:** add sincos() & roundEps() ([f891c41](https://github.com/thi-ng/umbrella/commit/f891c41))
262
- - **math:** migrate mixCubic()/mixQuadratic() from geom package ([4a47daa](https://github.com/thi-ng/umbrella/commit/4a47daa))
258
+ - migrate mixCubic()/mixQuadratic() from geom package ([4a47daa](https://github.com/thi-ng/umbrella/commit/4a47daa))
259
+ - add sincos() & roundEps() ([f891c41](https://github.com/thi-ng/umbrella/commit/f891c41))
263
260
 
264
- # 0.1.0 (2018-10-17)
261
+ ## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@0.1.0) (2018-10-17)
265
262
 
266
- ### Features
263
+ #### 🚀 Features
267
264
 
268
- - **math:** extract maths fns from [@thi](https://github.com/thi).ng/vectors as new package ([4af1fba](https://github.com/thi-ng/umbrella/commit/4af1fba))
265
+ - extract maths fns from [@thi.ng/vectors](https://github.com/thi-ng/umbrella/tree/main/packages/vectors) as new package ([4af1fba](https://github.com/thi-ng/umbrella/commit/4af1fba))
package/README.md CHANGED
@@ -71,7 +71,7 @@ node --experimental-repl-await
71
71
  > const math = await import("@thi.ng/math");
72
72
  ```
73
73
 
74
- Package sizes (gzipped, pre-treeshake): ESM: 3.93 KB
74
+ Package sizes (gzipped, pre-treeshake): ESM: 4.11 KB
75
75
 
76
76
  ## Dependencies
77
77
 
package/package.json CHANGED
@@ -1,127 +1,132 @@
1
1
  {
2
- "name": "@thi.ng/math",
3
- "version": "5.0.6",
4
- "description": "Assorted common math functions & utilities",
5
- "type": "module",
6
- "module": "./index.js",
7
- "typings": "./index.d.ts",
8
- "sideEffects": false,
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/thi-ng/umbrella.git"
12
- },
13
- "homepage": "https://github.com/thi-ng/umbrella/tree/develop/packages/math#readme",
14
- "funding": [
15
- {
16
- "type": "github",
17
- "url": "https://github.com/sponsors/postspectacular"
18
- },
19
- {
20
- "type": "patreon",
21
- "url": "https://patreon.com/thing_umbrella"
22
- }
23
- ],
24
- "author": "Karsten Schmidt <k+npm@thi.ng>",
25
- "license": "Apache-2.0",
26
- "scripts": {
27
- "build": "yarn clean && tsc --declaration",
28
- "clean": "rimraf *.js *.d.ts *.map doc",
29
- "doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
30
- "doc:ae": "mkdir -p .ae/doc .ae/temp && node_modules/.bin/api-extractor run --local --verbose",
31
- "doc:readme": "yarn doc:stats && ../../scripts/node-esm ../../tools/src/readme.ts",
32
- "doc:stats": "../../scripts/node-esm ../../tools/src/module-stats.ts",
33
- "pub": "yarn build && yarn publish --access public",
34
- "test": "testament test"
35
- },
36
- "dependencies": {
37
- "@thi.ng/api": "^8.0.6"
38
- },
39
- "devDependencies": {
40
- "@thi.ng/testament": "^0.1.6"
41
- },
42
- "keywords": [
43
- "animation",
44
- "bezier",
45
- "cubic",
46
- "hermite",
47
- "interpolation",
48
- "interval",
49
- "math",
50
- "quadratic",
51
- "smooth",
52
- "solver",
53
- "t-norm",
54
- "trigonometry",
55
- "typescript"
56
- ],
57
- "publishConfig": {
58
- "access": "public"
59
- },
60
- "engines": {
61
- "node": ">=12.7"
62
- },
63
- "files": [
64
- "*.js",
65
- "*.d.ts"
66
- ],
67
- "exports": {
68
- ".": {
69
- "import": "./index.js"
70
- },
71
- "./abs": {
72
- "import": "./abs.js"
73
- },
74
- "./angle": {
75
- "import": "./angle.js"
76
- },
77
- "./api": {
78
- "import": "./api.js"
79
- },
80
- "./crossing": {
81
- "import": "./crossing.js"
82
- },
83
- "./eqdelta": {
84
- "import": "./eqdelta.js"
85
- },
86
- "./extrema": {
87
- "import": "./extrema.js"
88
- },
89
- "./fit": {
90
- "import": "./fit.js"
91
- },
92
- "./int": {
93
- "import": "./int.js"
94
- },
95
- "./interval": {
96
- "import": "./interval.js"
97
- },
98
- "./libc": {
99
- "import": "./libc.js"
100
- },
101
- "./min-error": {
102
- "import": "./min-error.js"
103
- },
104
- "./mix": {
105
- "import": "./mix.js"
106
- },
107
- "./prec": {
108
- "import": "./prec.js"
109
- },
110
- "./ratio": {
111
- "import": "./ratio.js"
112
- },
113
- "./safe-div": {
114
- "import": "./safe-div.js"
115
- },
116
- "./solve": {
117
- "import": "./solve.js"
118
- },
119
- "./step": {
120
- "import": "./step.js"
121
- }
122
- },
123
- "thi.ng": {
124
- "year": 2013
125
- },
126
- "gitHead": "c17a556ad25f6882dfa8f806a1d9e8ed7ac7cd71"
127
- }
2
+ "name": "@thi.ng/math",
3
+ "version": "5.1.1",
4
+ "description": "Assorted common math functions & utilities",
5
+ "type": "module",
6
+ "module": "./index.js",
7
+ "typings": "./index.d.ts",
8
+ "sideEffects": false,
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/thi-ng/umbrella.git"
12
+ },
13
+ "homepage": "https://github.com/thi-ng/umbrella/tree/develop/packages/math#readme",
14
+ "funding": [
15
+ {
16
+ "type": "github",
17
+ "url": "https://github.com/sponsors/postspectacular"
18
+ },
19
+ {
20
+ "type": "patreon",
21
+ "url": "https://patreon.com/thing_umbrella"
22
+ }
23
+ ],
24
+ "author": "Karsten Schmidt <k+npm@thi.ng>",
25
+ "license": "Apache-2.0",
26
+ "scripts": {
27
+ "build": "yarn clean && tsc --declaration",
28
+ "clean": "rimraf '*.js' '*.d.ts' '*.map' doc",
29
+ "doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
30
+ "doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
31
+ "doc:readme": "yarn doc:stats && tools:readme",
32
+ "doc:stats": "tools:module-stats",
33
+ "pub": "yarn npm publish --access public",
34
+ "test": "testament test"
35
+ },
36
+ "dependencies": {
37
+ "@thi.ng/api": "^8.3.1"
38
+ },
39
+ "devDependencies": {
40
+ "@microsoft/api-extractor": "^7.18.19",
41
+ "@thi.ng/testament": "^0.2.1",
42
+ "rimraf": "^3.0.2",
43
+ "tools": "^0.0.1",
44
+ "typedoc": "^0.22.9",
45
+ "typescript": "^4.5.2"
46
+ },
47
+ "keywords": [
48
+ "animation",
49
+ "bezier",
50
+ "cubic",
51
+ "hermite",
52
+ "interpolation",
53
+ "interval",
54
+ "math",
55
+ "quadratic",
56
+ "smooth",
57
+ "solver",
58
+ "t-norm",
59
+ "trigonometry",
60
+ "typescript"
61
+ ],
62
+ "publishConfig": {
63
+ "access": "public"
64
+ },
65
+ "engines": {
66
+ "node": ">=12.7"
67
+ },
68
+ "files": [
69
+ "*.js",
70
+ "*.d.ts"
71
+ ],
72
+ "exports": {
73
+ ".": {
74
+ "import": "./index.js"
75
+ },
76
+ "./abs": {
77
+ "import": "./abs.js"
78
+ },
79
+ "./angle": {
80
+ "import": "./angle.js"
81
+ },
82
+ "./api": {
83
+ "import": "./api.js"
84
+ },
85
+ "./crossing": {
86
+ "import": "./crossing.js"
87
+ },
88
+ "./eqdelta": {
89
+ "import": "./eqdelta.js"
90
+ },
91
+ "./extrema": {
92
+ "import": "./extrema.js"
93
+ },
94
+ "./fit": {
95
+ "import": "./fit.js"
96
+ },
97
+ "./int": {
98
+ "import": "./int.js"
99
+ },
100
+ "./interval": {
101
+ "import": "./interval.js"
102
+ },
103
+ "./libc": {
104
+ "import": "./libc.js"
105
+ },
106
+ "./min-error": {
107
+ "import": "./min-error.js"
108
+ },
109
+ "./mix": {
110
+ "import": "./mix.js"
111
+ },
112
+ "./prec": {
113
+ "import": "./prec.js"
114
+ },
115
+ "./ratio": {
116
+ "import": "./ratio.js"
117
+ },
118
+ "./safe-div": {
119
+ "import": "./safe-div.js"
120
+ },
121
+ "./solve": {
122
+ "import": "./solve.js"
123
+ },
124
+ "./step": {
125
+ "import": "./step.js"
126
+ }
127
+ },
128
+ "thi.ng": {
129
+ "year": 2013
130
+ },
131
+ "gitHead": "8bd27c8bde0b770e7c001943f11c951cd345d668\n"
132
+ }