@thi.ng/math 5.0.7 → 5.1.2

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 +167 -130
  2. package/README.md +1 -1
  3. package/package.json +131 -126
package/CHANGELOG.md CHANGED
@@ -1,228 +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.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@5.0.6...@thi.ng/math@5.0.7) (2021-11-03)
7
-
8
- **Note:** Version bump only for package @thi.ng/math
9
-
3
+ - **Last updated**: 2021-11-21T17:09:28Z
4
+ - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
10
5
 
6
+ All notable changes to this project will be documented in this file.
7
+ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
11
8
 
9
+ **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
+ and/or version bumps of transitive dependencies.
12
11
 
12
+ ## [5.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@5.1.0) (2021-11-17)
13
13
 
14
- # [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)
15
-
16
-
17
- ### Build System
18
-
19
- * major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
14
+ #### 🚀 Features
20
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
21
21
 
22
- ### BREAKING CHANGES
22
+ #### ♻️ Refactoring
23
23
 
24
- * 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.
25
30
 
26
- - only ESM modules will be published from now on
27
- - CJS obsolete due to ESM support in recent versions of node:
28
- - i.e. launch NodeJS via:
29
- - `node --experimental-specifier-resolution=node --experimental-repl-await`
30
- - in the node REPL use `await import(...)` instead of `require()`
31
- - 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)
32
32
 
33
- Also:
34
- - normalize/restructure/reorg all package.json files
35
- - cleanup all build scripts, remove obsolete
36
- - switch from mocha to @thi.ng/testament for all tests
33
+ #### ♻️ Refactoring
37
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
38
38
 
39
+ # [5.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@5.0.0) (2021-10-12)
39
40
 
41
+ #### 🛑 Breaking changes
40
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
41
55
 
56
+ #### ♻️ Refactoring
42
57
 
43
- ## [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)
44
61
 
45
- ### Bug Fixes
62
+ ### [4.0.6](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@4.0.6) (2021-09-03)
46
63
 
47
- - **math:** removing deprecated eqDeltaFixed() ([1de245b](https://github.com/thi-ng/umbrella/commit/1de245bff0d2c1d9436e39240ecd648cef744488))
64
+ #### 🩹 Bug fixes
48
65
 
49
- # [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))
50
67
 
51
- ### Features
68
+ # [4.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@4.0.0) (2021-04-24)
52
69
 
53
- - **math:** add libc math fns ([28b41a8](https://github.com/thi-ng/umbrella/commit/28b41a824758b83cea09c29f48e6f14f56368c40))
54
- - **math:** add/update modulo functions ([be7b02b](https://github.com/thi-ng/umbrella/commit/be7b02beaf4ab1ab1030597a5f4eb94d43e1469b))
70
+ #### 🛑 Breaking changes
55
71
 
56
- ### 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
57
79
 
58
- - **math:** Introduction of standard libc math functions causes behavior change of existing `fmod()` function...
59
- - rename `fmod()` => `mod()` to align w/ GLSL counterpart
60
- - add new `fmod()` w/ standard libc behavior (same as JS % op)
61
- - add `remainder()` w/ standard libc behavior
62
- - update doc strings
80
+ #### 🚀 Features
63
81
 
64
- # [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()
65
89
 
66
- ### Bug Fixes
90
+ ## [3.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@3.4.0) (2021-04-03)
67
91
 
68
- - **math:** fix sigmoid01() signature ([378cb17](https://github.com/thi-ng/umbrella/commit/378cb17d4ad2ef2f301039e067af251c867d7da8))
92
+ #### 🚀 Features
69
93
 
70
- ### 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()
71
98
 
72
- - **math:** add lanczos(), fix/update/add sinc ([e661b7a](https://github.com/thi-ng/umbrella/commit/e661b7a8e8ce49e4d34ae572818d6b0e8e7a292d))
99
+ #### 🩹 Bug fixes
73
100
 
74
- # [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))
75
102
 
76
- ### Features
103
+ ## [3.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@3.3.0) (2021-03-17)
77
104
 
78
- - **math:** add mixBicubic(), mixCubicHermiteFromPoints() ([30dda42](https://github.com/thi-ng/umbrella/commit/30dda424cc1a433a71dfa762f0b8c453114466a0))
105
+ #### 🚀 Features
79
106
 
80
- ### Performance Improvements
107
+ - add mixBicubic(), mixCubicHermiteFromPoints() ([30dda42](https://github.com/thi-ng/umbrella/commit/30dda42))
81
108
 
82
- - **math:** replace mixBilinear() w/ inline impl ([bb16dc5](https://github.com/thi-ng/umbrella/commit/bb16dc591dd9455b8d0061a664375a9dc8c74a36))
109
+ #### Performance improvements
83
110
 
84
- # [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
85
113
 
86
- ### Features
114
+ ## [3.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@3.2.0) (2021-02-20)
87
115
 
88
- - **math:** add clamp0() ([d18c869](https://github.com/thi-ng/umbrella/commit/d18c869b59499ee081bee7c75e6ed0ebd4720efb))
116
+ #### 🚀 Features
89
117
 
90
- # [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))
91
119
 
92
- ### Features
120
+ ## [3.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@3.1.0) (2021-01-10)
93
121
 
94
- - **math:** add floorTo/ceilTo() ([595fe83](https://github.com/thi-ng/umbrella/commit/595fe83475f4a4080408033d3448fd4c36ef1652))
122
+ #### 🚀 Features
95
123
 
96
- # [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))
97
125
 
98
- ### Bug Fixes
126
+ # [3.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@3.0.0) (2020-12-22)
99
127
 
100
- - **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
101
129
 
102
- ### 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
103
138
 
104
- - **math:** update/fix sigmoid() behavior ([07a278f](https://github.com/thi-ng/umbrella/commit/07a278fdd82004610aa9b7acb585c3c841af24ba))
139
+ #### 🚀 Features
105
140
 
106
- ### 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))
107
144
 
108
- - **math:** add gaussian() ([138befe](https://github.com/thi-ng/umbrella/commit/138befe1f2d14eb9a4fb3829179b8d03d49e6bbc))
109
- - **math:** add more parametric T-norms ([38bd40e](https://github.com/thi-ng/umbrella/commit/38bd40e1595e318c6472a526e03c8c8a06ebf396))
110
- - **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)
111
146
 
112
- ### BREAKING CHANGES
147
+ #### ♻️ Refactoring
113
148
 
114
- - **math:** replace Crossing enum w/ type alias
115
- - **math:** add new bias arg for sigmoid() to satisfy more use cases. Use sigmoid01() for old behavior.
116
- - add/update docstrings
117
- - add desmos links
149
+ - update type-only imports in various tests/pkgs ([3fd9c24](https://github.com/thi-ng/umbrella/commit/3fd9c24))
118
150
 
119
- # [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)
120
152
 
121
- ### Features
153
+ #### 🚀 Features
122
154
 
123
- - **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))
124
156
 
125
- # [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)
126
158
 
127
- ### Features
159
+ #### 🚀 Features
128
160
 
129
- - **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))
130
162
 
131
- # [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
132
164
 
133
- ### 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))
134
167
 
135
- - **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)
136
169
 
137
- ### BREAKING CHANGES
170
+ #### ♻️ Refactoring
138
171
 
139
- - **math:** Revert/rename `eqDeltaFixed()` => `eqDelta()`. Rename curr `eqDelta()` => `eqDeltaScaled()`
140
- - this is essentially a revert to 5018009
141
- - also keep, but deprecate `eqDeltaFixed()` (synonym for `eqDelta` now)
172
+ - switch to non-const enums ([783e5e3](https://github.com/thi-ng/umbrella/commit/783e5e3))
142
173
 
143
- # [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)
144
175
 
145
- ### Features
176
+ #### 🚀 Features
146
177
 
147
- - **math:** add minNonZero2/3() ([49c88d9](https://github.com/thi-ng/umbrella/commit/49c88d917ca7089841f5c26ca92293582d80f148))
148
- - **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))
149
180
 
150
- # [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)
151
182
 
152
- ### Features
183
+ #### 🚀 Features
153
184
 
154
- - **math:** add clamp05, update wrapOnce, wrap01, wrap11 ([19af252](https://github.com/thi-ng/umbrella/commit/19af2527a3c7afee4f829e36bf06acaeaf045be7))
155
- - **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
156
193
 
157
- # [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)
158
195
 
159
- ### Features
196
+ #### 🚀 Features
160
197
 
161
- - **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))
162
199
 
163
- # [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)
164
201
 
165
- ### Features
202
+ #### 🚀 Features
166
203
 
167
- - **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))
168
205
 
169
- # [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)
170
207
 
171
- ### Features
208
+ #### 🚀 Features
172
209
 
173
- - **math:** add extrema & crossing fns and Crossing enum ([e102f39](https://github.com/thi-ng/umbrella/commit/e102f39))
174
- - **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))
175
212
 
176
- # [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)
177
214
 
178
- ### Features
215
+ #### 🚀 Features
179
216
 
180
- - **math:** add consts ([28e9898](https://github.com/thi-ng/umbrella/commit/28e9898))
181
- - **math:** add cos/sin approximations, loc(), add docstrings ([78ed751](https://github.com/thi-ng/umbrella/commit/78ed751))
182
- - **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))
183
220
 
184
- # [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)
185
222
 
186
- ### Features
223
+ #### 🚀 Features
187
224
 
188
- - **math:** add minError() search ([cae8394](https://github.com/thi-ng/umbrella/commit/cae8394))
189
- - **math:** add PHI const ([57d4488](https://github.com/thi-ng/umbrella/commit/57d4488))
190
- - **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))
191
226
 
192
- # [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)
193
228
 
194
- ### Build System
229
+ #### 🛑 Breaking changes
195
230
 
196
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.
197
238
 
198
- ### Features
239
+ #### 🚀 Features
199
240
 
200
- - **math:** add absInnerAngle() ([a78bd87](https://github.com/thi-ng/umbrella/commit/a78bd87))
201
- - **math:** add constants ([8fa05c3](https://github.com/thi-ng/umbrella/commit/8fa05c3))
202
- - **math:** add cossin(), add opt scale arg for sincos() ([0043fb5](https://github.com/thi-ng/umbrella/commit/0043fb5))
203
- - **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))
204
243
 
205
- ### BREAKING CHANGES
244
+ #### ♻️ Refactoring
206
245
 
207
- - enabled multi-outputs (ES6 modules, CJS, UMD)
208
- - build scripts now first build ES6 modules in package root, then call `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
209
- - 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))
210
247
 
211
- ## [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)
212
249
 
213
- ### Bug Fixes
250
+ #### 🩹 Bug fixes
214
251
 
215
- - **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))
216
253
 
217
- # [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)
218
255
 
219
- ### Features
256
+ #### 🚀 Features
220
257
 
221
- - **math:** add sincos() & roundEps() ([f891c41](https://github.com/thi-ng/umbrella/commit/f891c41))
222
- - **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))
223
260
 
224
- # 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)
225
262
 
226
- ### Features
263
+ #### 🚀 Features
227
264
 
228
- - **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.7",
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.1.0"
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": "852cd2450617c86d15d18477dc634f17f04202eb"
127
- }
2
+ "name": "@thi.ng/math",
3
+ "version": "5.1.2",
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.2"
38
+ },
39
+ "devDependencies": {
40
+ "@microsoft/api-extractor": "^7.18.19",
41
+ "@thi.ng/testament": "^0.2.2",
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": "e8a7c2a40191b391cef182c2978e5a6c85987a87\n"
132
+ }