@definitelytyped/eslint-plugin 0.1.22 → 0.1.23

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,5 +1,11 @@
1
1
  # @definitelytyped/eslint-plugin
2
2
 
3
+ ## 0.1.23
4
+
5
+ ### Patch Changes
6
+
7
+ - f98e138: More aggressively drop Programs to prevent OOMs
8
+
3
9
  ## 0.1.22
4
10
 
5
11
  ### Patch Changes
@@ -183,7 +183,7 @@ function getProgram(dirPath, configFile, ts, versionName, lintProgram) {
183
183
  }
184
184
  const heapStats = node_v8_1.default.getHeapStatistics();
185
185
  const heapUsage = heapStats.used_heap_size / heapStats.heap_size_limit;
186
- if (heapUsage > 0.9) {
186
+ if (heapUsage > 0.7) {
187
187
  versionToProgram.clear();
188
188
  }
189
189
  return newProgram;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@definitelytyped/eslint-plugin",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "description": "ESLint rules for DefinitelyTyped",
5
5
  "main": "./dist/index.js",
6
6
  "publishConfig": {