@thi.ng/ramp 2.1.7 → 2.1.10

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**: 2021-12-13T10:26:00Z
3
+ - **Last updated**: 2022-05-02T11:57:05Z
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.
@@ -9,6 +9,13 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
9
9
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
10
  and/or version bumps of transitive dependencies.
11
11
 
12
+ ### [2.1.10](https://github.com/thi-ng/umbrella/tree/@thi.ng/ramp@2.1.10) (2022-05-02)
13
+
14
+ #### 🩹 Bug fixes
15
+
16
+ - fix sort to be stable when time indexes are equal ([053107b](https://github.com/thi-ng/umbrella/commit/053107b))
17
+ Fixes Issue [#343](https://github.com/thi-ng/umbrella/issues/343)
18
+
12
19
  ## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/ramp@2.1.0) (2021-11-17)
13
20
 
14
21
  #### 🚀 Features
package/README.md CHANGED
@@ -121,4 +121,4 @@ If this project contributes to an academic publication, please cite it as:
121
121
 
122
122
  ## License
123
123
 
124
- © 2019 - 2021 Karsten Schmidt // Apache Software License 2.0
124
+ © 2019 - 2022 Karsten Schmidt // Apache Software License 2.0
package/aramp.js CHANGED
@@ -2,7 +2,6 @@ import { binarySearch } from "@thi.ng/arrays/binary-search";
2
2
  import { compareNumAsc } from "@thi.ng/compare/numeric";
3
3
  import { absDiff } from "@thi.ng/math/abs";
4
4
  import { clamp } from "@thi.ng/math/interval";
5
- import { comparator2 } from "@thi.ng/vectors/compare";
6
5
  export class ARamp {
7
6
  constructor(stops = [
8
7
  [0, 0],
@@ -60,7 +59,7 @@ export class ARamp {
60
59
  : clamp(t, stops[i - 1][0] + eps, stops[i + 1][0] - eps);
61
60
  }
62
61
  sort() {
63
- this.stops.sort(comparator2(0, 1));
62
+ this.stops.sort((a, b) => a[0] - b[0]);
64
63
  }
65
64
  uniform() {
66
65
  const n = this.stops.length - 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/ramp",
3
- "version": "2.1.7",
3
+ "version": "2.1.10",
4
4
  "description": "Parametric interpolated 1D lookup tables for remapping values",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,19 +34,19 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/arrays": "^2.1.3",
38
- "@thi.ng/compare": "^2.1.3",
39
- "@thi.ng/math": "^5.2.0",
40
- "@thi.ng/transducers": "^8.2.0",
41
- "@thi.ng/vectors": "^7.4.3"
37
+ "@thi.ng/arrays": "^2.2.1",
38
+ "@thi.ng/compare": "^2.1.5",
39
+ "@thi.ng/math": "^5.3.1",
40
+ "@thi.ng/transducers": "^8.3.1",
41
+ "@thi.ng/vectors": "^7.5.1"
42
42
  },
43
43
  "devDependencies": {
44
- "@microsoft/api-extractor": "^7.19.2",
45
- "@thi.ng/testament": "^0.2.3",
44
+ "@microsoft/api-extractor": "^7.19.4",
45
+ "@thi.ng/testament": "^0.2.5",
46
46
  "rimraf": "^3.0.2",
47
47
  "tools": "^0.0.1",
48
- "typedoc": "^0.22.10",
49
- "typescript": "^4.5.3"
48
+ "typedoc": "^0.22.13",
49
+ "typescript": "^4.6.2"
50
50
  },
51
51
  "keywords": [
52
52
  "1d",
@@ -74,23 +74,23 @@
74
74
  ],
75
75
  "exports": {
76
76
  ".": {
77
- "import": "./index.js"
77
+ "default": "./index.js"
78
78
  },
79
79
  "./api": {
80
- "import": "./api.js"
80
+ "default": "./api.js"
81
81
  },
82
82
  "./aramp": {
83
- "import": "./aramp.js"
83
+ "default": "./aramp.js"
84
84
  },
85
85
  "./hermite": {
86
- "import": "./hermite.js"
86
+ "default": "./hermite.js"
87
87
  },
88
88
  "./linear": {
89
- "import": "./linear.js"
89
+ "default": "./linear.js"
90
90
  }
91
91
  },
92
92
  "thi.ng": {
93
93
  "year": 2019
94
94
  },
95
- "gitHead": "1ba92c6b9509e74e509b4c0b875fc380a97bbbc1\n"
95
+ "gitHead": "8329baf8b824e76f196f67740993d92d9ddcafa8\n"
96
96
  }