projen 0.30.4 → 0.31.2

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 (104) hide show
  1. package/.jsii +215 -123
  2. package/API.md +49 -1
  3. package/lib/awscdk-app-ts.js +1 -1
  4. package/lib/awscdk-construct.js +2 -2
  5. package/lib/cdk8s-app-ts.js +1 -1
  6. package/lib/cdk8s-construct.js +1 -1
  7. package/lib/cdktf-construct.js +1 -1
  8. package/lib/component.js +1 -1
  9. package/lib/construct-lib.js +1 -1
  10. package/lib/deps/dependencies.js +1 -1
  11. package/lib/dev-env.js +1 -1
  12. package/lib/docker-compose.js +2 -2
  13. package/lib/eslint.js +1 -1
  14. package/lib/file.js +1 -1
  15. package/lib/git/gitattributes.js +1 -1
  16. package/lib/github/auto-approve.js +1 -1
  17. package/lib/github/auto-merge.js +1 -1
  18. package/lib/github/constants.d.ts +3 -5
  19. package/lib/github/constants.js +14 -10
  20. package/lib/github/dependabot.js +1 -1
  21. package/lib/github/github.js +1 -1
  22. package/lib/github/mergify.js +1 -1
  23. package/lib/github/pr-template.js +1 -1
  24. package/lib/github/stale.js +1 -1
  25. package/lib/github/task-workflow.d.ts +25 -0
  26. package/lib/github/task-workflow.js +5 -4
  27. package/lib/github/workflows.js +1 -1
  28. package/lib/gitpod.js +1 -1
  29. package/lib/ignore-file.js +1 -1
  30. package/lib/ini.js +1 -1
  31. package/lib/java/java-project.js +1 -1
  32. package/lib/java/junit.js +1 -1
  33. package/lib/java/maven-compile.js +1 -1
  34. package/lib/java/maven-packaging.js +1 -1
  35. package/lib/java/maven-sample.js +1 -1
  36. package/lib/java/pom.js +1 -1
  37. package/lib/java/projenrc.js +1 -1
  38. package/lib/javascript/npm-config.js +1 -1
  39. package/lib/javascript/projenrc.js +1 -1
  40. package/lib/jest.js +1 -1
  41. package/lib/jsii-docgen.js +2 -2
  42. package/lib/jsii-project.js +1 -1
  43. package/lib/json/projenrc.js +1 -1
  44. package/lib/json.js +1 -1
  45. package/lib/license.js +1 -1
  46. package/lib/logger.js +1 -1
  47. package/lib/makefile.js +1 -1
  48. package/lib/node-package.js +1 -1
  49. package/lib/node-project.d.ts +9 -7
  50. package/lib/node-project.js +37 -36
  51. package/lib/object-file.js +1 -1
  52. package/lib/project.js +2 -2
  53. package/lib/python/pip.js +1 -1
  54. package/lib/python/poetry.js +2 -2
  55. package/lib/python/projenrc.js +1 -1
  56. package/lib/python/pytest.js +1 -1
  57. package/lib/python/python-project.js +1 -1
  58. package/lib/python/python-sample.js +1 -1
  59. package/lib/python/requirements-file.js +1 -1
  60. package/lib/python/setuppy.js +1 -1
  61. package/lib/python/setuptools.js +1 -1
  62. package/lib/python/venv.js +1 -1
  63. package/lib/readme.js +1 -1
  64. package/lib/release/publisher.js +4 -4
  65. package/lib/release/release-trigger.js +1 -1
  66. package/lib/release/release.js +1 -1
  67. package/lib/sample-file.js +2 -2
  68. package/lib/semver.js +1 -1
  69. package/lib/source-code.js +1 -1
  70. package/lib/tasks/runtime.js +1 -1
  71. package/lib/tasks/task.js +1 -1
  72. package/lib/tasks/tasks.js +1 -1
  73. package/lib/textfile.js +1 -1
  74. package/lib/toml.js +1 -1
  75. package/lib/typescript/projenrc.js +1 -1
  76. package/lib/typescript-config.js +1 -1
  77. package/lib/typescript.js +4 -6
  78. package/lib/upgrade-dependencies.d.ts +10 -1
  79. package/lib/upgrade-dependencies.js +8 -7
  80. package/lib/version.js +1 -1
  81. package/lib/vscode/devcontainer.js +1 -1
  82. package/lib/vscode/launch-config.js +1 -1
  83. package/lib/vscode/vscode.js +1 -1
  84. package/lib/web/next.js +3 -3
  85. package/lib/web/postcss.js +1 -1
  86. package/lib/web/react.js +4 -4
  87. package/lib/web/tailwind.js +1 -1
  88. package/lib/xmlfile.js +1 -1
  89. package/lib/yaml.js +1 -1
  90. package/node_modules/is-core-module/CHANGELOG.md +8 -0
  91. package/node_modules/is-core-module/core.json +2 -0
  92. package/node_modules/is-core-module/package.json +1 -1
  93. package/node_modules/is-core-module/test/index.js +1 -1
  94. package/node_modules/xmlbuilder2/node_modules/@types/node/README.md +1 -1
  95. package/node_modules/xmlbuilder2/node_modules/@types/node/crypto.d.ts +1 -1
  96. package/node_modules/xmlbuilder2/node_modules/@types/node/diagnostics_channel.d.ts +6 -0
  97. package/node_modules/xmlbuilder2/node_modules/@types/node/fs/promises.d.ts +87 -0
  98. package/node_modules/xmlbuilder2/node_modules/@types/node/fs.d.ts +5 -7
  99. package/node_modules/xmlbuilder2/node_modules/@types/node/http.d.ts +2 -2
  100. package/node_modules/xmlbuilder2/node_modules/@types/node/index.d.ts +1 -1
  101. package/node_modules/xmlbuilder2/node_modules/@types/node/package.json +2 -2
  102. package/node_modules/xmlbuilder2/node_modules/@types/node/url.d.ts +24 -1
  103. package/node_modules/xmlbuilder2/node_modules/@types/node/util.d.ts +31 -0
  104. package/package.json +5 -6
@@ -113,6 +113,20 @@ declare module 'util' {
113
113
  * @since v10.0.0
114
114
  */
115
115
  export function formatWithOptions(inspectOptions: InspectOptions, format?: any, ...param: any[]): string;
116
+ /**
117
+ * Returns the string name for a numeric error code that comes from a Node.js API.
118
+ * The mapping between error codes and error names is platform-dependent.
119
+ * See `Common System Errors` for the names of common errors.
120
+ *
121
+ * ```js
122
+ * fs.access('file/that/does/not/exist', (err) => {
123
+ * const name = util.getSystemErrorName(err.errno);
124
+ * console.error(name); // ENOENT
125
+ * });
126
+ * ```
127
+ * @since v9.7.0
128
+ */
129
+ export function getSystemErrorName(err: number): string;
116
130
  /**
117
131
  * Returns a Map of all system error codes available from the Node.js API.
118
132
  * The mapping between error codes and error names is platform-dependent.
@@ -314,6 +328,9 @@ declare module 'util' {
314
328
  * Allows changing inspect settings from the repl.
315
329
  */
316
330
  let replDefaults: InspectOptions;
331
+ /**
332
+ * That can be used to declare custom inspect functions.
333
+ */
317
334
  const custom: unique symbol;
318
335
  }
319
336
  /**
@@ -520,6 +537,7 @@ declare module 'util' {
520
537
  * @return The logging function
521
538
  */
522
539
  export function debuglog(section: string, callback?: (fn: DebugLoggerFunction) => void): DebugLogger;
540
+ export const debug: typeof debuglog;
523
541
  /**
524
542
  * Returns `true` if the given `object` is a `Boolean`. Otherwise, returns `false`.
525
543
  *
@@ -789,6 +807,16 @@ declare module 'util' {
789
807
  * @since v9.0.0
790
808
  */
791
809
  export function isDeepStrictEqual(val1: unknown, val2: unknown): boolean;
810
+ /**
811
+ * Returns `str` with any ANSI escape codes removed.
812
+ *
813
+ * ```js
814
+ * console.log(util.stripVTControlCharacters('\u001B[4mvalue\u001B[0m'));
815
+ * // Prints "value"
816
+ * ```
817
+ * @since v16.11.0
818
+ */
819
+ export function stripVTControlCharacters(str: string): string;
792
820
  /**
793
821
  * Takes an `async` function (or a function that returns a `Promise`) and returns a
794
822
  * function following the error-first callback style, i.e. taking
@@ -961,6 +989,9 @@ declare module 'util' {
961
989
  ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<void>;
962
990
  export function promisify(fn: Function): Function;
963
991
  export namespace promisify {
992
+ /**
993
+ * That can be used to declare custom promisified variants of functions.
994
+ */
964
995
  const custom: unique symbol;
965
996
  }
966
997
  /**
package/package.json CHANGED
@@ -11,7 +11,6 @@
11
11
  "scripts": {
12
12
  "clobber": "/bin/bash ./projen.bash clobber",
13
13
  "compile": "/bin/bash ./projen.bash compile",
14
- "test:compile": "/bin/bash ./projen.bash test:compile",
15
14
  "test": "/bin/bash ./projen.bash test",
16
15
  "build": "/bin/bash ./projen.bash build",
17
16
  "test:watch": "/bin/bash ./projen.bash test:watch",
@@ -42,11 +41,11 @@
42
41
  },
43
42
  "devDependencies": {
44
43
  "@types/fs-extra": "^8",
45
- "@types/glob": "^7.1.4",
44
+ "@types/glob": "^7.2.0",
46
45
  "@types/ini": "^1.3.31",
47
46
  "@types/jest": "^27.0.2",
48
47
  "@types/node": "^12.7.0",
49
- "@types/semver": "^7.3.8",
48
+ "@types/semver": "^7.3.9",
50
49
  "@types/yargs": "^15.0.14",
51
50
  "@typescript-eslint/eslint-plugin": "^4.33.0",
52
51
  "@typescript-eslint/parser": "^4.33.0",
@@ -55,14 +54,14 @@
55
54
  "eslint-import-resolver-node": "^0.3.6",
56
55
  "eslint-import-resolver-typescript": "^2.5.0",
57
56
  "eslint-plugin-import": "^2.25.2",
58
- "jest": "^27.2.5",
57
+ "jest": "^27.3.1",
59
58
  "jest-junit": "^12",
60
59
  "jsii": "^1.39.0",
61
60
  "jsii-diff": "^1.39.0",
62
61
  "jsii-docgen": "^1.8.110",
63
62
  "jsii-pacmak": "^1.39.0",
64
63
  "json-schema": "^0.3.0",
65
- "markmac": "^0.1.60",
64
+ "markmac": "^0.1.66",
66
65
  "npm-check-updates": "^11",
67
66
  "standard-version": "^9",
68
67
  "typescript": "^3.9.10"
@@ -98,7 +97,7 @@
98
97
  },
99
98
  "main": "lib/index.js",
100
99
  "license": "Apache-2.0",
101
- "version": "0.30.4",
100
+ "version": "0.31.2",
102
101
  "jest": {
103
102
  "testMatch": [
104
103
  "**/lib/__tests__/**/?(*.)+(spec|test).js?(x)"