@thi.ng/math 5.11.16 → 5.11.18

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 (2) hide show
  1. package/CHANGELOG.md +3 -266
  2. package/package.json +4 -5
package/CHANGELOG.md CHANGED
@@ -1,9 +1,11 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2025-01-04T21:07:38Z
3
+ - **Last updated**: 2025-01-23T13:39:11Z
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.
7
+ Only versions published since **2022-01-01** are listed here.
8
+ Please consult the Git history for older version information.
7
9
  See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
8
10
 
9
11
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
@@ -79,268 +81,3 @@ and/or version bumps of transitive dependencies.
79
81
  #### 🚀 Features
80
82
 
81
83
  - add ldiv() ([35d1e97](https://github.com/thi-ng/umbrella/commit/35d1e97))
82
-
83
- ## [5.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@5.2.0) (2021-12-13)
84
-
85
- #### 🚀 Features
86
-
87
- - add prime number fns ([f301256](https://github.com/thi-ng/umbrella/commit/f301256))
88
- - add nearestPrime()
89
- - add primesUntil()
90
- - add tests
91
- - update pkg
92
-
93
- ## [5.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@5.1.0) (2021-11-17)
94
-
95
- #### 🚀 Features
96
-
97
- - Using workspaces for local tools ([bf7a404](https://github.com/thi-ng/umbrella/commit/bf7a404))
98
- Improving the overall build ergonomics
99
- - introduced a tools workspaces
100
- - imported it in all needed packages/examples
101
- - inclusive project root
102
-
103
- #### ♻️ Refactoring
104
-
105
- - testrunner to binary ([4ebbbb2](https://github.com/thi-ng/umbrella/commit/4ebbbb2))
106
- this commit reverts (partly) changes made in:
107
- ef346d7a8753590dc9094108a3d861a8dbd5dd2c
108
- overall purpose is better testament ergonomics:
109
- instead of having to pass NODE_OPTIONS with every invocation
110
- having a binary to handle this for us.
111
-
112
- ### [5.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@5.0.1) (2021-10-13)
113
-
114
- #### ♻️ Refactoring
115
-
116
- - update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
117
- - add .js suffix for all relative imports
118
- - update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
119
-
120
- # [5.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@5.0.0) (2021-10-12)
121
-
122
- #### 🛑 Breaking changes
123
-
124
- - major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
125
- - BREAKING CHANGE: discontinue CommonJS & UMD versions
126
- - only ESM modules will be published from now on
127
- - CJS obsolete due to ESM support in recent versions of node:
128
- - i.e. launch NodeJS via:
129
- - `node --experimental-specifier-resolution=node --experimental-repl-await`
130
- - in the node REPL use `await import(...)` instead of `require()`
131
- - UMD obsolete due to widespread browser support for ESM
132
- Also:
133
- - normalize/restructure/reorg all package.json files
134
- - cleanup all build scripts, remove obsolete
135
- - switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
136
-
137
- #### ♻️ Refactoring
138
-
139
- - update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
140
- - update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
141
- - update imports ([138571a](https://github.com/thi-ng/umbrella/commit/138571a))
142
-
143
- ### [4.0.6](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@4.0.6) (2021-09-03)
144
-
145
- #### 🩹 Bug fixes
146
-
147
- - removing deprecated eqDeltaFixed() ([1de245b](https://github.com/thi-ng/umbrella/commit/1de245b))
148
-
149
- # [4.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@4.0.0) (2021-04-24)
150
-
151
- #### 🛑 Breaking changes
152
-
153
- - add/update modulo functions ([be7b02b](https://github.com/thi-ng/umbrella/commit/be7b02b))
154
- - BREAKING CHANGE: Introduction of standard libc math functions causes
155
- behavior change of existing `fmod()` function...
156
- - rename `fmod()` => `mod()` to align w/ GLSL counterpart
157
- - add new `fmod()` w/ standard libc behavior (same as JS % op)
158
- - add `remainder()` w/ standard libc behavior
159
- - update doc strings
160
-
161
- #### 🚀 Features
162
-
163
- - add libc math fns ([28b41a8](https://github.com/thi-ng/umbrella/commit/28b41a8))
164
- - add copysign()
165
- - add exp2()
166
- - add fdim()
167
- - add fma()
168
- - add frexp()
169
- - add ldexp()
170
-
171
- ## [3.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@3.4.0) (2021-04-03)
172
-
173
- #### 🚀 Features
174
-
175
- - add lanczos(), fix/update/add sinc ([e661b7a](https://github.com/thi-ng/umbrella/commit/e661b7a))
176
- - replace broken sinc() fn w/ non-normalized real sinc
177
- - add sincNormalized()
178
- - add lanczos()
179
-
180
- #### 🩹 Bug fixes
181
-
182
- - fix sigmoid01() signature ([378cb17](https://github.com/thi-ng/umbrella/commit/378cb17))
183
-
184
- ## [3.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@3.3.0) (2021-03-17)
185
-
186
- #### 🚀 Features
187
-
188
- - add mixBicubic(), mixCubicHermiteFromPoints() ([30dda42](https://github.com/thi-ng/umbrella/commit/30dda42))
189
-
190
- #### ⏱ Performance improvements
191
-
192
- - replace mixBilinear() w/ inline impl ([bb16dc5](https://github.com/thi-ng/umbrella/commit/bb16dc5))
193
- - new impl ~1.7x faster
194
-
195
- ## [3.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@3.2.0) (2021-02-20)
196
-
197
- #### 🚀 Features
198
-
199
- - add clamp0() ([d18c869](https://github.com/thi-ng/umbrella/commit/d18c869))
200
-
201
- ## [3.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@3.1.0) (2021-01-10)
202
-
203
- #### 🚀 Features
204
-
205
- - add floorTo/ceilTo() ([595fe83](https://github.com/thi-ng/umbrella/commit/595fe83))
206
-
207
- # [3.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@3.0.0) (2020-12-22)
208
-
209
- #### 🛑 Breaking changes
210
-
211
- - update/fix sigmoid() behavior ([07a278f](https://github.com/thi-ng/umbrella/commit/07a278f))
212
- - BREAKING CHANGE: add new bias arg for sigmoid() to satisfy more use cases.
213
- Use sigmoid01() for old behavior.
214
- - add/update docstrings
215
- - add desmos links
216
- - fix [#256](https://github.com/thi-ng/umbrella/issues/256) replace enum w/ type alias ([8f00375](https://github.com/thi-ng/umbrella/commit/8f00375))
217
- - update comparison order in classifyCrossing()
218
- - BREAKING CHANGE: replace Crossing enum w/ type alias
219
-
220
- #### 🚀 Features
221
-
222
- - add various T-norm functions ([ab4a810](https://github.com/thi-ng/umbrella/commit/ab4a810))
223
- - add gaussian() ([138befe](https://github.com/thi-ng/umbrella/commit/138befe))
224
- - add more parametric T-norms ([38bd40e](https://github.com/thi-ng/umbrella/commit/38bd40e))
225
-
226
- ### [2.2.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@2.2.2) (2020-12-07)
227
-
228
- #### ♻️ Refactoring
229
-
230
- - update type-only imports in various tests/pkgs ([3fd9c24](https://github.com/thi-ng/umbrella/commit/3fd9c24))
231
-
232
- ## [2.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@2.2.0) (2020-11-24)
233
-
234
- #### 🚀 Features
235
-
236
- - add generalized schlick curve ([4b6eb84](https://github.com/thi-ng/umbrella/commit/4b6eb84))
237
-
238
- ## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@2.1.0) (2020-09-13)
239
-
240
- #### 🚀 Features
241
-
242
- - add lens(), invCircular() interpolators ([56dce17](https://github.com/thi-ng/umbrella/commit/56dce17))
243
-
244
- #### ♻️ Refactoring
245
-
246
- - use new function aliases, update deps ([dd0337f](https://github.com/thi-ng/umbrella/commit/dd0337f))
247
- - update deps, imports, use new Fn types ([a40840d](https://github.com/thi-ng/umbrella/commit/a40840d))
248
-
249
- ### [1.7.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@1.7.5) (2020-04-05)
250
-
251
- #### ♻️ Refactoring
252
-
253
- - switch to non-const enums ([783e5e3](https://github.com/thi-ng/umbrella/commit/783e5e3))
254
-
255
- ## [1.7.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@1.7.0) (2020-02-25)
256
-
257
- #### 🚀 Features
258
-
259
- - add safeDiv() (from @nkint PR [#206](https://github.com/thi-ng/umbrella/issues/206)) ([0567b93](https://github.com/thi-ng/umbrella/commit/0567b93))
260
- - add minNonZero2/3() ([49c88d9](https://github.com/thi-ng/umbrella/commit/49c88d9))
261
-
262
- ## [1.6.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@1.6.0) (2020-01-24)
263
-
264
- #### 🚀 Features
265
-
266
- - add expFactor(), update wrap/wrapOnce() ([bb07348](https://github.com/thi-ng/umbrella/commit/bb07348))
267
- - rename wrap => wrapOnce()
268
- - add new wrap() which wraps any value, regardless of
269
- dist to interval border
270
- - update docs
271
- - add clamp05, update wrapOnce, wrap01, wrap11 ([19af252](https://github.com/thi-ng/umbrella/commit/19af252))
272
- - add clamp05()
273
- - wrap fns now consistently use *closed* intervals
274
-
275
- ## [1.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@1.5.0) (2019-11-09)
276
-
277
- #### 🚀 Features
278
-
279
- - add mixCubicHermite & tangent fns ([d6b4b37](https://github.com/thi-ng/umbrella/commit/d6b4b37))
280
-
281
- ## [1.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@1.4.0) (2019-07-07)
282
-
283
- #### 🚀 Features
284
-
285
- - add signed/unsigned int math ops ([518d79a](https://github.com/thi-ng/umbrella/commit/518d79a))
286
-
287
- ## [1.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@1.3.0) (2019-05-22)
288
-
289
- #### 🚀 Features
290
-
291
- - add extrema & crossing fns and Crossing enum ([e102f39](https://github.com/thi-ng/umbrella/commit/e102f39))
292
- - add sigmoid / sigmoid11 fns ([3f085a3](https://github.com/thi-ng/umbrella/commit/3f085a3))
293
-
294
- ## [1.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@1.2.0) (2019-03-18)
295
-
296
- #### 🚀 Features
297
-
298
- - more trigonometry ([b5e1c02](https://github.com/thi-ng/umbrella/commit/b5e1c02))
299
- - add consts ([28e9898](https://github.com/thi-ng/umbrella/commit/28e9898))
300
- - add cos/sin approximations, loc(), add docstrings ([78ed751](https://github.com/thi-ng/umbrella/commit/78ed751))
301
-
302
- ## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@1.1.0) (2019-02-05)
303
-
304
- #### 🚀 Features
305
-
306
- - add PHI const ([57d4488](https://github.com/thi-ng/umbrella/commit/57d4488))
307
-
308
- # [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@1.0.0) (2019-01-21)
309
-
310
- #### 🛑 Breaking changes
311
-
312
- - update package build scripts & outputs, imports in ~50 packages ([b54b703](https://github.com/thi-ng/umbrella/commit/b54b703))
313
- - BREAKING CHANGE: enabled multi-outputs (ES6 modules, CJS, UMD)
314
- - build scripts now first build ES6 modules in package root, then call
315
- `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
316
- - all imports MUST be updated to only refer to package level
317
- (not individual files anymore). tree shaking in user land will get rid of
318
- all unused imported symbols.
319
-
320
- #### 🚀 Features
321
-
322
- - update eqDelta w/ adaptive eps, rename old => eqDeltaFixed ([5018009](https://github.com/thi-ng/umbrella/commit/5018009))
323
- - add absInnerAngle() ([a78bd87](https://github.com/thi-ng/umbrella/commit/a78bd87))
324
-
325
- #### ♻️ Refactoring
326
-
327
- - use arrow fns ([560207a](https://github.com/thi-ng/umbrella/commit/560207a))
328
-
329
- ### [0.2.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@0.2.1) (2018-11-20)
330
-
331
- #### 🩹 Bug fixes
332
-
333
- - fix [#60](https://github.com/thi-ng/umbrella/issues/60), add range check for norm() ([143c47c](https://github.com/thi-ng/umbrella/commit/143c47c))
334
-
335
- ## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@0.2.0) (2018-10-21)
336
-
337
- #### 🚀 Features
338
-
339
- - add sincos() & roundEps() ([f891c41](https://github.com/thi-ng/umbrella/commit/f891c41))
340
- - migrate mixCubic()/mixQuadratic() from geom package ([4a47daa](https://github.com/thi-ng/umbrella/commit/4a47daa))
341
-
342
- ## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@0.1.0) (2018-10-17)
343
-
344
- #### 🚀 Features
345
-
346
- - 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/math",
3
- "version": "5.11.16",
3
+ "version": "5.11.18",
4
4
  "description": "Assorted common math functions & utilities",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -43,13 +43,12 @@
43
43
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
44
44
  },
45
45
  "dependencies": {
46
- "@thi.ng/api": "^8.11.16"
46
+ "@thi.ng/api": "^8.11.18"
47
47
  },
48
48
  "devDependencies": {
49
- "@microsoft/api-extractor": "^7.48.1",
50
49
  "esbuild": "^0.24.2",
51
50
  "typedoc": "^0.27.6",
52
- "typescript": "^5.7.2"
51
+ "typescript": "^5.7.3"
53
52
  },
54
53
  "keywords": [
55
54
  "animation",
@@ -146,5 +145,5 @@
146
145
  "thi.ng": {
147
146
  "year": 2013
148
147
  },
149
- "gitHead": "56c1d57a96565bbcc8c06c73779a619bba0db368\n"
148
+ "gitHead": "b92b48abda9941d608be8a2e1c83447e679a6f79\n"
150
149
  }