projen 0.98.2 → 0.98.4

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 (149) hide show
  1. package/.jsii +139 -121
  2. package/lib/awscdk/auto-discover.js +5 -5
  3. package/lib/awscdk/awscdk-app-java.js +1 -1
  4. package/lib/awscdk/awscdk-app-py.js +1 -1
  5. package/lib/awscdk/awscdk-app-ts.js +1 -1
  6. package/lib/awscdk/awscdk-construct.js +2 -2
  7. package/lib/awscdk/awscdk-deps-java.js +1 -1
  8. package/lib/awscdk/awscdk-deps-js.js +1 -1
  9. package/lib/awscdk/awscdk-deps-py.js +1 -1
  10. package/lib/awscdk/awscdk-deps.js +1 -1
  11. package/lib/awscdk/cdk-config.js +4 -4
  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-py.js +1 -1
  24. package/lib/cdk8s/cdk8s-app-ts.js +1 -1
  25. package/lib/cdk8s/cdk8s-construct.js +1 -1
  26. package/lib/cdk8s/cdk8s-deps-py.js +1 -1
  27. package/lib/cdk8s/cdk8s-deps.js +1 -1
  28. package/lib/cdk8s/integration-test.js +1 -1
  29. package/lib/cdktf/cdktf-construct.js +1 -1
  30. package/lib/circleci/circleci.js +1 -1
  31. package/lib/component.js +3 -3
  32. package/lib/dependencies.js +1 -1
  33. package/lib/dev-env.js +1 -1
  34. package/lib/docker-compose/docker-compose-service.js +1 -1
  35. package/lib/docker-compose/docker-compose.js +1 -1
  36. package/lib/file.js +3 -3
  37. package/lib/gitattributes.js +1 -1
  38. package/lib/github/actions-provider.js +1 -1
  39. package/lib/github/auto-approve.js +1 -1
  40. package/lib/github/auto-merge.js +1 -1
  41. package/lib/github/auto-queue.js +1 -1
  42. package/lib/github/dependabot.js +1 -1
  43. package/lib/github/github-credentials.js +1 -1
  44. package/lib/github/github-project.js +1 -1
  45. package/lib/github/github.js +1 -1
  46. package/lib/github/merge-queue.js +1 -1
  47. package/lib/github/mergify.js +1 -1
  48. package/lib/github/pr-template.js +1 -1
  49. package/lib/github/pull-request-backport.js +1 -1
  50. package/lib/github/pull-request-lint.js +1 -1
  51. package/lib/github/stale.js +1 -1
  52. package/lib/github/task-workflow-job.js +1 -1
  53. package/lib/github/task-workflow.js +1 -1
  54. package/lib/github/workflow-actions.js +1 -1
  55. package/lib/github/workflow-jobs.js +1 -1
  56. package/lib/github/workflow-steps.js +1 -1
  57. package/lib/github/workflows.js +1 -1
  58. package/lib/gitlab/configuration.js +1 -1
  59. package/lib/gitlab/gitlab-configuration.js +1 -1
  60. package/lib/gitlab/nested-configuration.js +1 -1
  61. package/lib/gitpod.js +1 -1
  62. package/lib/ignore-file.js +1 -1
  63. package/lib/ini.js +1 -1
  64. package/lib/java/java-project.js +1 -1
  65. package/lib/java/junit.js +1 -1
  66. package/lib/java/maven-compile.js +1 -1
  67. package/lib/java/maven-packaging.js +1 -1
  68. package/lib/java/maven-sample.js +1 -1
  69. package/lib/java/pom.js +2 -2
  70. package/lib/java/projenrc.js +1 -1
  71. package/lib/javascript/biome/biome.js +1 -1
  72. package/lib/javascript/bundler.js +1 -1
  73. package/lib/javascript/eslint.js +1 -1
  74. package/lib/javascript/jest.d.ts +3 -1
  75. package/lib/javascript/jest.js +20 -17
  76. package/lib/javascript/license-checker.js +1 -1
  77. package/lib/javascript/node-package.js +1 -1
  78. package/lib/javascript/node-project.js +1 -1
  79. package/lib/javascript/npm-config.js +1 -1
  80. package/lib/javascript/prettier.js +1 -1
  81. package/lib/javascript/projenrc.js +1 -1
  82. package/lib/javascript/typescript-config.js +2 -2
  83. package/lib/javascript/upgrade-dependencies.js +2 -2
  84. package/lib/javascript/yarnrc.js +1 -1
  85. package/lib/json-patch.js +1 -1
  86. package/lib/json.js +1 -1
  87. package/lib/license.js +1 -1
  88. package/lib/logger.js +3 -3
  89. package/lib/makefile.js +1 -1
  90. package/lib/object-file.js +1 -1
  91. package/lib/project-build.js +1 -1
  92. package/lib/project-tree.js +1 -1
  93. package/lib/project.js +3 -3
  94. package/lib/projects.js +1 -1
  95. package/lib/projenrc-json.js +2 -2
  96. package/lib/projenrc.js +1 -1
  97. package/lib/python/pip.js +1 -1
  98. package/lib/python/poetry.js +2 -2
  99. package/lib/python/projenrc.js +1 -1
  100. package/lib/python/pytest-sample.js +1 -1
  101. package/lib/python/pytest.js +1 -1
  102. package/lib/python/python-project.js +1 -1
  103. package/lib/python/python-sample.js +1 -1
  104. package/lib/python/requirements-file.js +1 -1
  105. package/lib/python/setuppy.js +1 -1
  106. package/lib/python/setuptools.js +1 -1
  107. package/lib/python/venv.js +1 -1
  108. package/lib/readme.js +1 -1
  109. package/lib/release/publisher.js +1 -1
  110. package/lib/release/release-trigger.js +1 -1
  111. package/lib/release/release.js +1 -1
  112. package/lib/renovatebot.js +1 -1
  113. package/lib/sample-file.js +2 -2
  114. package/lib/semver.js +1 -1
  115. package/lib/source-code.js +1 -1
  116. package/lib/task-runtime.js +1 -1
  117. package/lib/task.js +1 -1
  118. package/lib/tasks.js +1 -1
  119. package/lib/testing.js +1 -1
  120. package/lib/textfile.js +1 -1
  121. package/lib/toml.js +1 -1
  122. package/lib/typescript/projenrc-ts.js +1 -1
  123. package/lib/typescript/projenrc.js +1 -1
  124. package/lib/typescript/typescript-typedoc.js +1 -1
  125. package/lib/typescript/typescript.js +6 -6
  126. package/lib/util/constructs.d.ts +17 -4
  127. package/lib/util/constructs.js +30 -6
  128. package/lib/version.js +2 -2
  129. package/lib/vscode/devcontainer.js +1 -1
  130. package/lib/vscode/extensions.js +1 -1
  131. package/lib/vscode/launch-config.js +1 -1
  132. package/lib/vscode/settings.js +1 -1
  133. package/lib/vscode/vscode.js +1 -1
  134. package/lib/web/next.js +3 -3
  135. package/lib/web/postcss.js +1 -1
  136. package/lib/web/react.js +4 -4
  137. package/lib/web/tailwind.js +1 -1
  138. package/lib/xmlfile.js +1 -1
  139. package/lib/yaml.js +1 -1
  140. package/node_modules/resolve/.eslintrc +1 -1
  141. package/node_modules/resolve/.github/INCIDENT_RESPONSE_PROCESS.md +119 -0
  142. package/node_modules/resolve/.github/THREAT_MODEL.md +74 -0
  143. package/node_modules/resolve/SECURITY.md +9 -1
  144. package/node_modules/resolve/lib/async.js +8 -4
  145. package/node_modules/resolve/lib/core.json +1 -1
  146. package/node_modules/resolve/lib/node-modules-paths.js +5 -2
  147. package/node_modules/resolve/lib/sync.js +7 -3
  148. package/node_modules/resolve/package.json +5 -5
  149. package/package.json +4 -4
@@ -8,6 +8,10 @@ var isCore = require('is-core-module');
8
8
 
9
9
  var realpathFS = process.platform !== 'win32' && fs.realpath && typeof fs.realpath.native === 'function' ? fs.realpath.native : fs.realpath;
10
10
 
11
+ var relativePathRegex = /^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/;
12
+ var windowsDriveRegex = /^\w:[/\\]*$/;
13
+ var nodeModulesRegex = /[/\\]node_modules[/\\]*$/;
14
+
11
15
  var homedir = getHomedir();
12
16
  var defaultPaths = function () {
13
17
  return [
@@ -124,10 +128,10 @@ module.exports = function resolve(x, options, callback) {
124
128
 
125
129
  var res;
126
130
  function init(basedir) {
127
- if ((/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/).test(x)) {
131
+ if (relativePathRegex.test(x)) {
128
132
  res = path.resolve(basedir, x);
129
133
  if (x === '.' || x === '..' || x.slice(-1) === '/') res += '/';
130
- if ((/\/$/).test(x) && res === basedir) {
134
+ if (x.slice(-1) === '/' && res === basedir) {
131
135
  loadAsDirectory(res, opts.package, onfile);
132
136
  } else loadAsFile(res, opts.package, onfile);
133
137
  } else if (includeCoreModules && isCore(x)) {
@@ -215,10 +219,10 @@ module.exports = function resolve(x, options, callback) {
215
219
 
216
220
  function loadpkg(dir, cb) {
217
221
  if (dir === '' || dir === '/') return cb(null);
218
- if (process.platform === 'win32' && (/^\w:[/\\]*$/).test(dir)) {
222
+ if (process.platform === 'win32' && windowsDriveRegex.test(dir)) {
219
223
  return cb(null);
220
224
  }
221
- if ((/[/\\]node_modules[/\\]*$/).test(dir)) return cb(null);
225
+ if (nodeModulesRegex.test(dir)) return cb(null);
222
226
 
223
227
  maybeRealpath(realpath, dir, opts, function (unwrapErr, pkgdir) {
224
228
  if (unwrapErr) return loadpkg(path.dirname(dir), cb);
@@ -91,7 +91,7 @@
91
91
  "node:repl": [">= 14.18 && < 15", ">= 16"],
92
92
  "node:sea": [">= 20.12 && < 21", ">= 21.7"],
93
93
  "smalloc": ">= 0.11.5 && < 3",
94
- "node:sqlite": ">= 23.4",
94
+ "node:sqlite": [">= 22.13 && < 23", ">= 23.4"],
95
95
  "_stream_duplex": ">= 0.9.4",
96
96
  "node:_stream_duplex": [">= 14.18 && < 15", ">= 16"],
97
97
  "_stream_transform": ">= 0.9.4",
@@ -1,11 +1,14 @@
1
1
  var path = require('path');
2
2
  var parse = path.parse || require('path-parse'); // eslint-disable-line global-require
3
3
 
4
+ var driveLetterRegex = /^([A-Za-z]:)/;
5
+ var uncPathRegex = /^\\\\/;
6
+
4
7
  var getNodeModulesDirs = function getNodeModulesDirs(absoluteStart, modules) {
5
8
  var prefix = '/';
6
- if ((/^([A-Za-z]:)/).test(absoluteStart)) {
9
+ if (driveLetterRegex.test(absoluteStart)) {
7
10
  prefix = '';
8
- } else if ((/^\\\\/).test(absoluteStart)) {
11
+ } else if (uncPathRegex.test(absoluteStart)) {
9
12
  prefix = '\\\\';
10
13
  }
11
14
 
@@ -8,6 +8,10 @@ var normalizeOptions = require('./normalize-options');
8
8
 
9
9
  var realpathFS = process.platform !== 'win32' && fs.realpathSync && typeof fs.realpathSync.native === 'function' ? fs.realpathSync.native : fs.realpathSync;
10
10
 
11
+ var relativePathRegex = /^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/;
12
+ var windowsDriveRegex = /^\w:[/\\]*$/;
13
+ var nodeModulesRegex = /[/\\]node_modules[/\\]*$/;
14
+
11
15
  var homedir = getHomedir();
12
16
  var defaultPaths = function () {
13
17
  return [
@@ -96,7 +100,7 @@ module.exports = function resolveSync(x, options) {
96
100
  // ensure that `basedir` is an absolute path at this point, resolving against the process' current working directory
97
101
  var absoluteStart = maybeRealpathSync(realpathSync, path.resolve(basedir), opts);
98
102
 
99
- if ((/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/).test(x)) {
103
+ if (relativePathRegex.test(x)) {
100
104
  var res = path.resolve(absoluteStart, x);
101
105
  if (x === '.' || x === '..' || x.slice(-1) === '/') res += '/';
102
106
  var m = loadAsFileSync(res) || loadAsDirectorySync(res);
@@ -137,10 +141,10 @@ module.exports = function resolveSync(x, options) {
137
141
 
138
142
  function loadpkg(dir) {
139
143
  if (dir === '' || dir === '/') return;
140
- if (process.platform === 'win32' && (/^\w:[/\\]*$/).test(dir)) {
144
+ if (process.platform === 'win32' && windowsDriveRegex.test(dir)) {
141
145
  return;
142
146
  }
143
- if ((/[/\\]node_modules[/\\]*$/).test(dir)) return;
147
+ if (nodeModulesRegex.test(dir)) return;
144
148
 
145
149
  var pkgfile = path.join(maybeRealpathSync(realpathSync, dir, opts), 'package.json');
146
150
 
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "resolve",
3
3
  "description": "resolve like require.resolve() on behalf of files asynchronously and synchronously",
4
- "version": "1.22.10",
4
+ "version": "1.22.11",
5
5
  "repository": {
6
6
  "type": "git",
7
- "url": "git://github.com/browserify/resolve.git"
7
+ "url": "ssh://github.com/browserify/resolve.git"
8
8
  },
9
9
  "bin": {
10
10
  "resolve": "./bin/resolve"
@@ -30,8 +30,8 @@
30
30
  "test:multirepo": "cd ./test/resolver/multirepo && npm install && npm test"
31
31
  },
32
32
  "devDependencies": {
33
- "@ljharb/eslint-config": "^21.1.1",
34
- "array.prototype.map": "^1.0.7",
33
+ "@ljharb/eslint-config": "^21.2.0",
34
+ "array.prototype.map": "^1.0.8",
35
35
  "copy-dir": "^1.3.0",
36
36
  "eclint": "^2.8.1",
37
37
  "eslint": "=8.8.0",
@@ -57,7 +57,7 @@
57
57
  "url": "https://github.com/sponsors/ljharb"
58
58
  },
59
59
  "dependencies": {
60
- "is-core-module": "^2.16.0",
60
+ "is-core-module": "^2.16.1",
61
61
  "path-parse": "^1.0.7",
62
62
  "supports-preserve-symlinks-flag": "^1.0.0"
63
63
  },
package/package.json CHANGED
@@ -50,7 +50,7 @@
50
50
  },
51
51
  "devDependencies": {
52
52
  "@biomejs/biome": "^2",
53
- "@jsii/check-node": "^1.116.0",
53
+ "@jsii/check-node": "^1.117.0",
54
54
  "@types/conventional-changelog-config-spec": "^2.1.5",
55
55
  "@types/ini": "^1.3.34",
56
56
  "@types/jest": "^27",
@@ -72,9 +72,9 @@
72
72
  "jest": "^29",
73
73
  "jest-junit": "^16",
74
74
  "jsii": "5.9.x",
75
- "jsii-diff": "^1.116.0",
75
+ "jsii-diff": "^1.117.0",
76
76
  "jsii-docgen": "^10.5.0",
77
- "jsii-pacmak": "^1.116.0",
77
+ "jsii-pacmak": "^1.117.0",
78
78
  "jsii-rosetta": "5.9.x",
79
79
  "json2jsii": "^0.5.12",
80
80
  "license-checker": "^25.0.1",
@@ -136,7 +136,7 @@
136
136
  "publishConfig": {
137
137
  "access": "public"
138
138
  },
139
- "version": "0.98.2",
139
+ "version": "0.98.4",
140
140
  "jest": {
141
141
  "coverageProvider": "v8",
142
142
  "coverageReporters": [