projen 0.101.11 → 0.101.13

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 (159) hide show
  1. package/.jsii +29 -29
  2. package/lib/ai-instructions.js +2 -2
  3. package/lib/awscdk/auto-discover.js +6 -6
  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 +1 -1
  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-py.js +1 -1
  11. package/lib/awscdk/awscdk-deps.js +1 -1
  12. package/lib/awscdk/cdk-config.js +3 -3
  13. package/lib/awscdk/cdk-tasks.js +1 -1
  14. package/lib/awscdk/integration-test.js +1 -1
  15. package/lib/awscdk/lambda-extension.js +1 -1
  16. package/lib/awscdk/lambda-function.js +2 -2
  17. package/lib/build/build-workflow.js +1 -1
  18. package/lib/cdk/auto-discover-base.js +2 -2
  19. package/lib/cdk/construct-lib.js +1 -1
  20. package/lib/cdk/integration-test-base.js +1 -1
  21. package/lib/cdk/jsii-build.js +1 -1
  22. package/lib/cdk/jsii-docgen.js +1 -1
  23. package/lib/cdk/jsii-project.js +1 -1
  24. package/lib/cdk8s/auto-discover.js +2 -2
  25. package/lib/cdk8s/cdk8s-app-py.js +1 -1
  26. package/lib/cdk8s/cdk8s-app-ts.js +1 -1
  27. package/lib/cdk8s/cdk8s-construct.js +1 -1
  28. package/lib/cdk8s/cdk8s-deps-py.js +1 -1
  29. package/lib/cdk8s/cdk8s-deps.js +1 -1
  30. package/lib/cdk8s/integration-test.js +1 -1
  31. package/lib/cdktf/cdktf-construct.js +1 -1
  32. package/lib/circleci/circleci.js +1 -1
  33. package/lib/component.js +2 -2
  34. package/lib/dependencies.js +1 -1
  35. package/lib/dev-env.js +1 -1
  36. package/lib/docker-compose/docker-compose-service.js +1 -1
  37. package/lib/docker-compose/docker-compose.js +1 -1
  38. package/lib/file.js +1 -1
  39. package/lib/gitattributes.js +1 -1
  40. package/lib/github/actions-provider.js +1 -1
  41. package/lib/github/auto-approve.js +1 -1
  42. package/lib/github/auto-merge.js +1 -1
  43. package/lib/github/auto-queue.js +1 -1
  44. package/lib/github/dependabot.js +1 -1
  45. package/lib/github/dependency-review.js +1 -1
  46. package/lib/github/github-credentials.js +1 -1
  47. package/lib/github/github-project.js +1 -1
  48. package/lib/github/github.js +1 -1
  49. package/lib/github/merge-queue.js +1 -1
  50. package/lib/github/mergify.js +1 -1
  51. package/lib/github/pr-template.js +1 -1
  52. package/lib/github/pull-request-backport.js +1 -1
  53. package/lib/github/pull-request-lint.js +1 -1
  54. package/lib/github/stale.js +1 -1
  55. package/lib/github/task-workflow-job.js +1 -1
  56. package/lib/github/task-workflow.js +1 -1
  57. package/lib/github/workflow-actions.js +1 -1
  58. package/lib/github/workflow-jobs.js +1 -1
  59. package/lib/github/workflow-steps.js +1 -1
  60. package/lib/github/workflows.js +1 -1
  61. package/lib/gitlab/configuration.js +1 -1
  62. package/lib/gitlab/gitlab-configuration.js +1 -1
  63. package/lib/gitlab/nested-configuration.js +1 -1
  64. package/lib/gitpod.js +1 -1
  65. package/lib/ignore-file.js +1 -1
  66. package/lib/ini.js +1 -1
  67. package/lib/java/java-project.js +1 -1
  68. package/lib/java/junit.js +1 -1
  69. package/lib/java/maven-compile.js +1 -1
  70. package/lib/java/maven-packaging.js +1 -1
  71. package/lib/java/maven-sample.js +1 -1
  72. package/lib/java/pom.js +2 -2
  73. package/lib/java/projenrc.js +1 -1
  74. package/lib/javascript/biome/biome.d.ts +2 -2
  75. package/lib/javascript/biome/biome.js +6 -6
  76. package/lib/javascript/bundler.js +1 -1
  77. package/lib/javascript/eslint.js +1 -1
  78. package/lib/javascript/jest.js +4 -4
  79. package/lib/javascript/license-checker.js +1 -1
  80. package/lib/javascript/node-package.js +1 -1
  81. package/lib/javascript/node-project.js +1 -1
  82. package/lib/javascript/npm-config.js +1 -1
  83. package/lib/javascript/pnpm-workspace-config.js +2 -2
  84. package/lib/javascript/pnpm-workspace.js +1 -1
  85. package/lib/javascript/prettier.js +1 -1
  86. package/lib/javascript/projenrc.js +1 -1
  87. package/lib/javascript/typescript-config.js +2 -2
  88. package/lib/javascript/upgrade-dependencies.js +2 -2
  89. package/lib/javascript/yarnrc.js +1 -1
  90. package/lib/json-patch.js +1 -1
  91. package/lib/json.js +1 -1
  92. package/lib/license.js +1 -1
  93. package/lib/logger.js +1 -1
  94. package/lib/makefile.js +1 -1
  95. package/lib/object-file.js +1 -1
  96. package/lib/project-build.js +1 -1
  97. package/lib/project-tree.js +1 -1
  98. package/lib/project.js +1 -1
  99. package/lib/projects.js +1 -1
  100. package/lib/projenrc-json.js +1 -1
  101. package/lib/projenrc.js +1 -1
  102. package/lib/python/pip.js +1 -1
  103. package/lib/python/poetry.js +2 -2
  104. package/lib/python/projenrc.js +1 -1
  105. package/lib/python/pyproject-toml-file.js +1 -1
  106. package/lib/python/pytest-sample.js +1 -1
  107. package/lib/python/pytest.js +1 -1
  108. package/lib/python/python-project.js +1 -1
  109. package/lib/python/python-sample.js +1 -1
  110. package/lib/python/requirements-file.js +1 -1
  111. package/lib/python/setuppy.js +1 -1
  112. package/lib/python/setuptools.js +1 -1
  113. package/lib/python/uv-config.js +1 -1
  114. package/lib/python/uv.js +1 -1
  115. package/lib/python/venv.js +1 -1
  116. package/lib/readme.js +1 -1
  117. package/lib/release/publisher.js +1 -1
  118. package/lib/release/release-trigger.js +1 -1
  119. package/lib/release/release.js +6 -3
  120. package/lib/renovatebot.js +1 -1
  121. package/lib/run-task.cjs +2 -2
  122. package/lib/sample-file.js +2 -2
  123. package/lib/script-runner.js +1 -1
  124. package/lib/source-code.js +1 -1
  125. package/lib/task-shell.js +1 -1
  126. package/lib/task.js +1 -1
  127. package/lib/tasks.js +1 -1
  128. package/lib/testing.js +1 -1
  129. package/lib/textfile.js +1 -1
  130. package/lib/toml.js +1 -1
  131. package/lib/typescript/projenrc-ts.js +1 -1
  132. package/lib/typescript/projenrc.js +1 -1
  133. package/lib/typescript/typescript-runner.js +1 -1
  134. package/lib/typescript/typescript-typedoc.js +1 -1
  135. package/lib/typescript/typescript.js +5 -5
  136. package/lib/version.js +2 -2
  137. package/lib/vscode/devcontainer.js +1 -1
  138. package/lib/vscode/extensions.js +1 -1
  139. package/lib/vscode/launch-config.js +1 -1
  140. package/lib/vscode/settings.js +1 -1
  141. package/lib/vscode/vscode.js +1 -1
  142. package/lib/web/next.js +3 -3
  143. package/lib/web/postcss.js +1 -1
  144. package/lib/web/react.js +3 -3
  145. package/lib/web/tailwind.js +1 -1
  146. package/lib/xmlfile.js +1 -1
  147. package/lib/yaml.js +1 -1
  148. package/node_modules/js-yaml/README.md +5 -3
  149. package/node_modules/js-yaml/dist/js-yaml.js +3009 -2402
  150. package/node_modules/js-yaml/dist/js-yaml.js.map +1 -1
  151. package/node_modules/js-yaml/dist/js-yaml.min.js +2 -33
  152. package/node_modules/js-yaml/dist/js-yaml.min.js.map +1 -1
  153. package/node_modules/js-yaml/dist/js-yaml.mjs +3073 -2381
  154. package/node_modules/js-yaml/dist/js-yaml.mjs.map +1 -1
  155. package/node_modules/js-yaml/lib/loader.js +7 -11
  156. package/node_modules/js-yaml/lib/type/float.js +1 -1
  157. package/node_modules/js-yaml/lib/type/int.js +4 -4
  158. package/node_modules/js-yaml/package.json +10 -4
  159. package/package.json +2 -2
@@ -152,7 +152,7 @@ function State (input, options) {
152
152
  this.json = options['json'] || false
153
153
  this.listener = options['listener'] || null
154
154
  this.maxDepth = typeof options['maxDepth'] === 'number' ? options['maxDepth'] : 100
155
- this.maxMergeSeqLength = typeof options['maxMergeSeqLength'] === 'number' ? options['maxMergeSeqLength'] : 20
155
+ this.maxTotalMergeKeys = typeof options['maxTotalMergeKeys'] === 'number' ? options['maxTotalMergeKeys'] : 10000
156
156
 
157
157
  this.implicitTypes = this.schema.compiledImplicit
158
158
  this.typeMap = this.schema.compiledTypeMap
@@ -163,6 +163,7 @@ function State (input, options) {
163
163
  this.lineStart = 0
164
164
  this.lineIndent = 0
165
165
  this.depth = 0
166
+ this.totalMergeKeys = 0
166
167
 
167
168
  // position of first leading tab in the current line,
168
169
  // used to make sure there are no tabs in the indentation
@@ -380,6 +381,10 @@ function mergeMappings (state, destination, source, overridableKeys) {
380
381
  for (let index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
381
382
  const key = sourceKeys[index]
382
383
 
384
+ if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) {
385
+ throwError(state, 'merge keys exceeded maxTotalMergeKeys (' + state.maxTotalMergeKeys + ')')
386
+ }
387
+
383
388
  if (!_hasOwnProperty.call(destination, key)) {
384
389
  setProperty(destination, key, source[key])
385
390
  overridableKeys[key] = true
@@ -421,17 +426,8 @@ function storeMappingPair (state, _result, overridableKeys, keyTag, keyNode, val
421
426
 
422
427
  if (keyTag === 'tag:yaml.org,2002:merge') {
423
428
  if (Array.isArray(valueNode)) {
424
- if (valueNode.length > state.maxMergeSeqLength) {
425
- throwError(state, 'merge sequence length exceeded maxMergeSeqLength (' + state.maxMergeSeqLength + ')')
426
- }
427
- const seen = new Set()
428
429
  for (let index = 0, quantity = valueNode.length; index < quantity; index += 1) {
429
- const src = valueNode[index]
430
- // Existing keys are not overridden on merge, so dedupe sources to
431
- // avoid redundant work on repeated aliases.
432
- if (seen.has(src)) continue
433
- seen.add(src)
434
- mergeMappings(state, _result, src, overridableKeys)
430
+ mergeMappings(state, _result, valueNode[index], overridableKeys)
435
431
  }
436
432
  } else {
437
433
  mergeMappings(state, _result, valueNode, overridableKeys)
@@ -28,7 +28,7 @@ function resolveYamlFloat (data) {
28
28
  return false
29
29
  }
30
30
 
31
- if (Number.isFinite(parseFloat(data, 10))) {
31
+ if (isFinite(parseFloat(data, 10))) {
32
32
  return true
33
33
  }
34
34
 
@@ -49,7 +49,7 @@ function resolveYamlInteger (data) {
49
49
  if (ch !== '0' && ch !== '1') return false
50
50
  hasDigits = true
51
51
  }
52
- return hasDigits && Number.isFinite(parseYamlInteger(data))
52
+ return hasDigits && isFinite(parseYamlInteger(data))
53
53
  }
54
54
 
55
55
  if (ch === 'x') {
@@ -60,7 +60,7 @@ function resolveYamlInteger (data) {
60
60
  if (!isHexCode(data.charCodeAt(index))) return false
61
61
  hasDigits = true
62
62
  }
63
- return hasDigits && Number.isFinite(parseYamlInteger(data))
63
+ return hasDigits && isFinite(parseYamlInteger(data))
64
64
  }
65
65
 
66
66
  if (ch === 'o') {
@@ -71,7 +71,7 @@ function resolveYamlInteger (data) {
71
71
  if (!isOctCode(data.charCodeAt(index))) return false
72
72
  hasDigits = true
73
73
  }
74
- return hasDigits && Number.isFinite(parseYamlInteger(data))
74
+ return hasDigits && isFinite(parseYamlInteger(data))
75
75
  }
76
76
  }
77
77
 
@@ -86,7 +86,7 @@ function resolveYamlInteger (data) {
86
86
 
87
87
  if (!hasDigits) return false
88
88
 
89
- return Number.isFinite(parseYamlInteger(data))
89
+ return isFinite(parseYamlInteger(data))
90
90
  }
91
91
 
92
92
  function parseYamlInteger (data) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "js-yaml",
3
- "version": "4.2.0",
3
+ "version": "4.3.0",
4
4
  "description": "YAML 1.2 parser and serializer",
5
5
  "keywords": [
6
6
  "yaml",
@@ -32,6 +32,9 @@
32
32
  "bin/",
33
33
  "dist/"
34
34
  ],
35
+ "publishConfig": {
36
+ "tag": "v4-legacy"
37
+ },
35
38
  "bin": {
36
39
  "js-yaml": "bin/js-yaml.js"
37
40
  },
@@ -53,8 +56,7 @@
53
56
  "build": "node support/build-dist.mjs",
54
57
  "build:demo": "npm run lint && node support/build_demo.mjs",
55
58
  "gh-demo": "npm run build:demo && gh-pages -d demo -f",
56
- "prepack": "npm test && npm run build && npm run build:demo",
57
- "postpublish": "npm run gh-demo"
59
+ "prepack": "npm test && npm run build"
58
60
  },
59
61
  "unpkg": "dist/js-yaml.min.js",
60
62
  "jsdelivr": "dist/js-yaml.min.js",
@@ -62,6 +64,10 @@
62
64
  "argparse": "^2.0.1"
63
65
  },
64
66
  "devDependencies": {
67
+ "@babel/core": "8.0.1",
68
+ "@babel/preset-env": "8.0.1",
69
+ "@rollup/plugin-commonjs": "29.0.3",
70
+ "@rollup/plugin-terser": "0.4.4",
65
71
  "c8": "^11.0.0",
66
72
  "codemirror": "^5.65.21",
67
73
  "eslint": "^9.39.4",
@@ -69,7 +75,7 @@
69
75
  "gh-pages": "^6.3.0",
70
76
  "neostandard": "^0.13.0",
71
77
  "tinybench": "^6.0.2",
72
- "vite": "^8.0.14",
78
+ "vite": "7.3.6",
73
79
  "vite-plugin-node-polyfills": "^0.28.0",
74
80
  "vite-plugin-singlefile": "^2.3.3",
75
81
  "workerpool": "^10.0.2"
package/package.json CHANGED
@@ -55,7 +55,7 @@
55
55
  "organization": true
56
56
  },
57
57
  "devDependencies": {
58
- "@biomejs/biome": "^2",
58
+ "@biomejs/biome": "^2.5",
59
59
  "@jsii/check-node": "^1.138.0",
60
60
  "@types/conventional-changelog-config-spec": "^2.1.5",
61
61
  "@types/ini": "^1.3.34",
@@ -153,7 +153,7 @@
153
153
  "fsevents": true,
154
154
  "unrs-resolver": true
155
155
  },
156
- "version": "0.101.11",
156
+ "version": "0.101.13",
157
157
  "jest": {
158
158
  "coverageProvider": "v8",
159
159
  "coverageReporters": [