projen 0.54.13 → 0.54.16

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 (120) hide show
  1. package/.jsii +2 -2
  2. package/changelog.md +1 -1
  3. package/lib/awscdk/auto-discover.js +4 -4
  4. package/lib/awscdk/awscdk-app-java.js +1 -1
  5. package/lib/awscdk/awscdk-app-py.js +1 -1
  6. package/lib/awscdk/awscdk-app-ts.js +1 -1
  7. package/lib/awscdk/awscdk-construct.js +2 -2
  8. package/lib/awscdk/awscdk-deps-java.js +1 -1
  9. package/lib/awscdk/awscdk-deps-js.js +1 -1
  10. package/lib/awscdk/awscdk-deps.js +1 -1
  11. package/lib/awscdk/cdk-config.js +1 -1
  12. package/lib/awscdk/cdk-tasks.js +1 -1
  13. package/lib/awscdk/integration-test.js +1 -1
  14. package/lib/awscdk/lambda-extension.js +1 -1
  15. package/lib/awscdk/lambda-function.js +2 -2
  16. package/lib/build/build-workflow.js +1 -1
  17. package/lib/cdk/auto-discover-base.js +2 -2
  18. package/lib/cdk/construct-lib.js +1 -1
  19. package/lib/cdk/integration-test-base.js +1 -1
  20. package/lib/cdk/jsii-docgen.js +1 -1
  21. package/lib/cdk/jsii-project.js +1 -1
  22. package/lib/cdk8s/auto-discover.js +2 -2
  23. package/lib/cdk8s/cdk8s-app-ts.js +1 -1
  24. package/lib/cdk8s/cdk8s-construct.js +1 -1
  25. package/lib/cdk8s/integration-test.js +1 -1
  26. package/lib/cdktf/cdktf-construct.js +1 -1
  27. package/lib/component.js +1 -1
  28. package/lib/dependencies.js +1 -1
  29. package/lib/dev-env.js +1 -1
  30. package/lib/docker-compose.js +2 -2
  31. package/lib/file.js +1 -1
  32. package/lib/gitattributes.js +1 -1
  33. package/lib/github/auto-approve.js +1 -1
  34. package/lib/github/auto-merge.js +1 -1
  35. package/lib/github/dependabot.js +1 -1
  36. package/lib/github/github-credentials.js +1 -1
  37. package/lib/github/github-project.js +1 -1
  38. package/lib/github/github.js +1 -1
  39. package/lib/github/mergify.js +1 -1
  40. package/lib/github/pr-template.js +1 -1
  41. package/lib/github/pull-request-lint.js +1 -1
  42. package/lib/github/stale.js +1 -1
  43. package/lib/github/task-workflow.js +1 -1
  44. package/lib/github/workflows.js +1 -1
  45. package/lib/gitlab/configuration.js +1 -1
  46. package/lib/gitlab/gitlab-configuration.js +1 -1
  47. package/lib/gitlab/nested-configuration.js +1 -1
  48. package/lib/gitpod.js +1 -1
  49. package/lib/ignore-file.js +1 -1
  50. package/lib/ini.js +1 -1
  51. package/lib/java/java-project.js +1 -1
  52. package/lib/java/junit.js +1 -1
  53. package/lib/java/maven-compile.js +1 -1
  54. package/lib/java/maven-packaging.js +1 -1
  55. package/lib/java/maven-sample.js +1 -1
  56. package/lib/java/pom.js +1 -1
  57. package/lib/java/projenrc.js +1 -1
  58. package/lib/javascript/bundler.js +1 -1
  59. package/lib/javascript/eslint.js +1 -1
  60. package/lib/javascript/jest.js +1 -1
  61. package/lib/javascript/node-package.js +1 -1
  62. package/lib/javascript/node-project.js +1 -1
  63. package/lib/javascript/npm-config.js +1 -1
  64. package/lib/javascript/prettier.js +1 -1
  65. package/lib/javascript/projenrc.js +1 -1
  66. package/lib/javascript/typescript-config.js +1 -1
  67. package/lib/javascript/upgrade-dependencies.js +2 -2
  68. package/lib/json.js +1 -1
  69. package/lib/license.js +1 -1
  70. package/lib/logger.js +1 -1
  71. package/lib/makefile.js +1 -1
  72. package/lib/object-file.js +1 -1
  73. package/lib/project-build.js +1 -1
  74. package/lib/project.js +1 -1
  75. package/lib/projects.js +1 -1
  76. package/lib/projenrc-json.js +1 -1
  77. package/lib/python/pip.js +1 -1
  78. package/lib/python/poetry.js +2 -2
  79. package/lib/python/projenrc.js +1 -1
  80. package/lib/python/pytest-sample.js +1 -1
  81. package/lib/python/pytest.js +1 -1
  82. package/lib/python/python-project.js +1 -1
  83. package/lib/python/python-sample.js +1 -1
  84. package/lib/python/requirements-file.js +1 -1
  85. package/lib/python/setuppy.js +1 -1
  86. package/lib/python/setuptools.js +1 -1
  87. package/lib/python/venv.js +1 -1
  88. package/lib/readme.js +1 -1
  89. package/lib/release/publisher.js +1 -1
  90. package/lib/release/release-trigger.js +1 -1
  91. package/lib/release/release.js +1 -1
  92. package/lib/sample-file.js +2 -2
  93. package/lib/semver.js +1 -1
  94. package/lib/source-code.js +1 -1
  95. package/lib/task-runtime.js +1 -1
  96. package/lib/task.js +1 -1
  97. package/lib/tasks.js +1 -1
  98. package/lib/testing.js +1 -1
  99. package/lib/textfile.js +1 -1
  100. package/lib/toml.js +1 -1
  101. package/lib/typescript/projenrc.js +1 -1
  102. package/lib/typescript/typescript-typedoc.js +1 -1
  103. package/lib/typescript/typescript.js +3 -3
  104. package/lib/version.js +1 -1
  105. package/lib/vscode/devcontainer.js +1 -1
  106. package/lib/vscode/launch-config.js +1 -1
  107. package/lib/vscode/vscode.js +1 -1
  108. package/lib/web/next.js +3 -3
  109. package/lib/web/postcss.js +1 -1
  110. package/lib/web/react.js +4 -4
  111. package/lib/web/tailwind.js +1 -1
  112. package/lib/xmlfile.js +1 -1
  113. package/lib/yaml.js +1 -1
  114. package/license-text/EUPL-1.2.txt +287 -0
  115. package/node_modules/lru-cache/README.md +5 -3
  116. package/node_modules/lru-cache/index.js +15 -7
  117. package/node_modules/lru-cache/package.json +6 -2
  118. package/package.json +1 -1
  119. package/releasetag.txt +1 -1
  120. package/version.txt +1 -1
@@ -78,7 +78,10 @@ class ZeroArray extends Array {
78
78
 
79
79
  class Stack {
80
80
  constructor (max) {
81
- const UintArray = max ? getUintArray(max) : Array
81
+ if (max === 0) {
82
+ return []
83
+ }
84
+ const UintArray = getUintArray(max)
82
85
  this.heap = new UintArray(max)
83
86
  this.length = 0
84
87
  }
@@ -143,7 +146,6 @@ class LRUCache {
143
146
  throw new TypeError('fetchMethod must be a function if specified')
144
147
  }
145
148
 
146
-
147
149
  this.keyMap = new Map()
148
150
  this.keyList = new Array(max).fill(null)
149
151
  this.valList = new Array(max).fill(null)
@@ -300,7 +302,7 @@ class LRUCache {
300
302
  this.sizes[index] = size
301
303
  const maxSize = this.maxSize - this.sizes[index]
302
304
  while (this.calculatedSize > maxSize) {
303
- this.evict()
305
+ this.evict(true)
304
306
  }
305
307
  this.calculatedSize += this.sizes[index]
306
308
  }
@@ -520,8 +522,8 @@ class LRUCache {
520
522
  if (this.size === 0) {
521
523
  return this.tail
522
524
  }
523
- if (this.size === this.max) {
524
- return this.evict()
525
+ if (this.size === this.max && this.max !== 0) {
526
+ return this.evict(false)
525
527
  }
526
528
  if (this.free.length !== 0) {
527
529
  return this.free.pop()
@@ -533,12 +535,12 @@ class LRUCache {
533
535
  pop () {
534
536
  if (this.size) {
535
537
  const val = this.valList[this.head]
536
- this.evict()
538
+ this.evict(true)
537
539
  return val
538
540
  }
539
541
  }
540
542
 
541
- evict () {
543
+ evict (free) {
542
544
  const head = this.head
543
545
  const k = this.keyList[head]
544
546
  const v = this.valList[head]
@@ -551,6 +553,12 @@ class LRUCache {
551
553
  }
552
554
  }
553
555
  this.removeItemSize(head)
556
+ // if we aren't about to use the index, then null these out
557
+ if (free) {
558
+ this.keyList[head] = null
559
+ this.valList[head] = null
560
+ this.free.push(head)
561
+ }
554
562
  this.head = this.next[head]
555
563
  this.keyMap.delete(k)
556
564
  this.size --
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lru-cache",
3
3
  "description": "A cache object that deletes the least-recently-used items.",
4
- "version": "7.8.0",
4
+ "version": "7.8.1",
5
5
  "author": "Isaac Z. Schlueter <i@izs.me>",
6
6
  "keywords": [
7
7
  "mru",
@@ -23,6 +23,7 @@
23
23
  "@size-limit/preset-small-lib": "^7.0.8",
24
24
  "benchmark": "^2.1.4",
25
25
  "clock-mock": "^1.0.4",
26
+ "heapdump": "^0.3.15",
26
27
  "size-limit": "^7.0.8",
27
28
  "tap": "^15.1.6"
28
29
  },
@@ -34,7 +35,10 @@
34
35
  "node": ">=12"
35
36
  },
36
37
  "tap": {
37
- "coverage-map": "map.js"
38
+ "coverage-map": "map.js",
39
+ "node-arg": [
40
+ "--expose-gc"
41
+ ]
38
42
  },
39
43
  "size-limit": [
40
44
  {
package/package.json CHANGED
@@ -121,7 +121,7 @@
121
121
  },
122
122
  "main": "lib/index.js",
123
123
  "license": "Apache-2.0",
124
- "version": "0.54.13",
124
+ "version": "0.54.16",
125
125
  "jest": {
126
126
  "testMatch": [
127
127
  "<rootDir>/src/**/__tests__/**/*.ts?(x)",
package/releasetag.txt CHANGED
@@ -1 +1 @@
1
- v0.54.13
1
+ v0.54.16
package/version.txt CHANGED
@@ -1 +1 @@
1
- 0.54.13
1
+ 0.54.16