@xterm/addon-ligatures 0.11.0-beta.250 → 0.11.0-beta.252

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xterm/addon-ligatures",
3
- "version": "0.11.0-beta.250",
3
+ "version": "0.11.0-beta.252",
4
4
  "description": "Add support for programming ligatures to xterm.js",
5
5
  "author": {
6
6
  "name": "The xterm.js authors",
@@ -31,19 +31,15 @@
31
31
  ],
32
32
  "license": "MIT",
33
33
  "dependencies": {
34
- "lru-cache": "^6.0.0",
35
- "opentype.js": "^0.8.0"
34
+ "lru-cache": "^11.3.6",
35
+ "opentype.js": "^2.0.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@types/lru-cache": "^5.1.0",
39
- "@types/opentype.js": "^0.7.0",
40
- "axios": "^1.15.2",
41
- "font-finder": "^1.1.0",
42
- "mkdirp": "0.5.5",
43
- "yauzl": "^3.2.1"
38
+ "@types/opentype.js": "^1.3.9",
39
+ "font-finder": "^1.1.0"
44
40
  },
45
- "commit": "56564431633cc0e7b445292ad2e6b4c9cf0e66ba",
41
+ "commit": "d3352cf1d5a8c5e1429d737a84d1da810ff13152",
46
42
  "peerDependencies": {
47
- "@xterm/xterm": "^6.1.0-beta.250"
43
+ "@xterm/xterm": "^6.1.0-beta.252"
48
44
  }
49
45
  }
@@ -1,5 +1,5 @@
1
1
  import * as opentype from 'opentype.js';
2
- import LRUCache = require('lru-cache');
2
+ import { LRUCache } from 'lru-cache';
3
3
 
4
4
  import { IFont, ILigatureData, IFlattenedLookupTree, ILookupTree, IOptions } from './types';
5
5
  import mergeTrees from './merge';
@@ -23,8 +23,8 @@ class FontImpl implements IFont {
23
23
 
24
24
  if (options.cacheSize > 0) {
25
25
  this._cache = new LRUCache({
26
- max: options.cacheSize,
27
- length: ((val: ILigatureData | [number, number][], key: string) => key.length) as any
26
+ maxSize: options.cacheSize,
27
+ sizeCalculation: ((val: ILigatureData | [number, number][], key: string) => key.length) as any
28
28
  });
29
29
  }
30
30
 
@@ -44,7 +44,6 @@ export default function mergeRange(ranges: [number, number][], newRangeStart: nu
44
44
  // current range
45
45
  ranges[i - 1][1] = Math.max(newRangeEnd, range[1]);
46
46
  ranges.splice(i, 1);
47
- inRange = false;
48
47
  return ranges;
49
48
  }
50
49
  // Case 7: New range extends from previous range past the