projen-pipelines 0.3.25 → 0.3.26

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 (63) hide show
  1. package/.jsii +4 -3
  2. package/lib/assign-approver/base.js +1 -1
  3. package/lib/assign-approver/github.js +1 -1
  4. package/lib/awscdk/base.js +1 -1
  5. package/lib/awscdk/bash.js +1 -1
  6. package/lib/awscdk/github.js +1 -1
  7. package/lib/awscdk/gitlab.js +1 -1
  8. package/lib/drift/base.js +1 -1
  9. package/lib/drift/bash.js +1 -1
  10. package/lib/drift/github.js +1 -1
  11. package/lib/drift/gitlab.js +1 -1
  12. package/lib/drift/step.js +1 -1
  13. package/lib/steps/amplify-deploy.step.js +1 -1
  14. package/lib/steps/artifact-steps.js +2 -2
  15. package/lib/steps/aws-assume-role.step.js +1 -1
  16. package/lib/steps/github-summary.step.js +1 -1
  17. package/lib/steps/package-manager-setup.step.js +2 -2
  18. package/lib/steps/registries.js +3 -3
  19. package/lib/steps/step.js +4 -4
  20. package/lib/versioning/computation.js +3 -3
  21. package/lib/versioning/config.js +2 -2
  22. package/lib/versioning/outputs.js +5 -5
  23. package/lib/versioning/setup.js +1 -1
  24. package/lib/versioning/strategy.js +1 -1
  25. package/lib/versioning/version-info.js +2 -2
  26. package/node_modules/dotgitignore/node_modules/brace-expansion/index.js +78 -22
  27. package/node_modules/dotgitignore/node_modules/brace-expansion/package.json +1 -1
  28. package/node_modules/is-core-module/CHANGELOG.md +135 -241
  29. package/node_modules/is-core-module/README.md +18 -0
  30. package/node_modules/is-core-module/core.json +1 -0
  31. package/node_modules/is-core-module/index.d.ts +12 -0
  32. package/node_modules/is-core-module/index.js +10 -3
  33. package/node_modules/is-core-module/package.json +24 -10
  34. package/node_modules/meow/node_modules/resolve/lib/core.json +13 -12
  35. package/node_modules/meow/node_modules/resolve/package.json +5 -5
  36. package/node_modules/read-pkg/node_modules/resolve/lib/core.json +13 -12
  37. package/node_modules/read-pkg/node_modules/resolve/package.json +5 -5
  38. package/node_modules/safe-buffer/index.js +0 -3
  39. package/node_modules/safe-buffer/package.json +4 -18
  40. package/node_modules/string_decoder/package.json +2 -5
  41. package/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +19 -18
  42. package/node_modules/yaml/browser/dist/nodes/Alias.js +25 -23
  43. package/node_modules/yaml/dist/compose/resolve-flow-scalar.js +19 -18
  44. package/node_modules/yaml/dist/nodes/Alias.js +25 -23
  45. package/node_modules/yaml/package.json +1 -1
  46. package/package.json +3 -3
  47. package/node_modules/is-core-module/.eslintrc +0 -18
  48. package/node_modules/is-core-module/.nycrc +0 -9
  49. package/node_modules/is-core-module/test/index.js +0 -258
  50. package/node_modules/meow/node_modules/resolve/.claude/notes.md +0 -26
  51. package/node_modules/meow/node_modules/resolve/.claude/settings.local.json +0 -26
  52. package/node_modules/read-pkg/node_modules/resolve/.claude/notes.md +0 -26
  53. package/node_modules/read-pkg/node_modules/resolve/.claude/settings.local.json +0 -26
  54. package/node_modules/through2/node_modules/safe-buffer/LICENSE +0 -21
  55. package/node_modules/through2/node_modules/safe-buffer/README.md +0 -584
  56. package/node_modules/through2/node_modules/safe-buffer/index.d.ts +0 -187
  57. package/node_modules/through2/node_modules/safe-buffer/index.js +0 -62
  58. package/node_modules/through2/node_modules/safe-buffer/package.json +0 -37
  59. package/node_modules/through2/node_modules/string_decoder/LICENSE +0 -48
  60. package/node_modules/through2/node_modules/string_decoder/README.md +0 -47
  61. package/node_modules/through2/node_modules/string_decoder/lib/string_decoder.js +0 -296
  62. package/node_modules/through2/node_modules/string_decoder/package.json +0 -31
  63. /package/node_modules/{through2/node_modules/string_decoder → string_decoder}/.travis.yml +0 -0
@@ -1,258 +0,0 @@
1
- 'use strict';
2
-
3
- var test = require('tape');
4
- var keys = require('object-keys');
5
- var semver = require('semver');
6
- var mockProperty = require('mock-property');
7
-
8
- var isCore = require('../');
9
- var data = require('../core.json');
10
-
11
- var supportsNodePrefix = semver.satisfies(process.versions.node, '^14.18 || >= 16', { includePrerelease: true });
12
-
13
- test('core modules', function (t) {
14
- t.test('isCore()', function (st) {
15
- st.ok(isCore('fs'));
16
- st.ok(isCore('net'));
17
- st.ok(isCore('http'));
18
-
19
- st.ok(!isCore('seq'));
20
- st.ok(!isCore('../'));
21
-
22
- st.ok(!isCore('toString'));
23
-
24
- st.end();
25
- });
26
-
27
- t.test('core list', function (st) {
28
- var cores = keys(data);
29
- st.plan(cores.length);
30
-
31
- for (var i = 0; i < cores.length; ++i) {
32
- var mod = cores[i];
33
- var requireFunc = function () { require(mod); }; // eslint-disable-line no-loop-func
34
- if (isCore(mod)) {
35
- st.doesNotThrow(requireFunc, mod + ' supported; requiring does not throw');
36
- } else {
37
- st['throws'](requireFunc, mod + ' not supported; requiring throws');
38
- }
39
- }
40
-
41
- st.end();
42
- });
43
-
44
- t.test('core via repl module', { skip: !data.repl }, function (st) {
45
- var libs = require('repl')._builtinLibs; // eslint-disable-line no-underscore-dangle
46
- if (!libs) {
47
- st.skip('repl._builtinLibs does not exist');
48
- } else {
49
- for (var i = 0; i < libs.length; ++i) {
50
- var mod = libs[i];
51
- st.ok(data[mod], mod + ' is a core module');
52
- st.doesNotThrow(
53
- function () { require(mod); }, // eslint-disable-line no-loop-func
54
- 'requiring ' + mod + ' does not throw'
55
- );
56
- if (mod.slice(0, 5) !== 'node:') {
57
- if (supportsNodePrefix) {
58
- st.doesNotThrow(
59
- function () { require('node:' + mod); }, // eslint-disable-line no-loop-func
60
- 'requiring node:' + mod + ' does not throw'
61
- );
62
- } else {
63
- st['throws'](
64
- function () { require('node:' + mod); }, // eslint-disable-line no-loop-func
65
- 'requiring node:' + mod + ' throws'
66
- );
67
- }
68
- }
69
- }
70
- }
71
- st.end();
72
- });
73
-
74
- t.test('core via builtinModules list', { skip: !data.module }, function (st) {
75
- var Module = require('module');
76
- var libs = Module.builtinModules;
77
- if (!libs) {
78
- st.skip('module.builtinModules does not exist');
79
- } else {
80
- var excludeList = [
81
- '_debug_agent',
82
- 'v8/tools/tickprocessor-driver',
83
- 'v8/tools/SourceMap',
84
- 'v8/tools/tickprocessor',
85
- 'v8/tools/profile'
86
- ];
87
-
88
- // see https://github.com/nodejs/node/issues/42785
89
- if (semver.satisfies(process.version, '>= 18')) {
90
- libs = libs.concat('node:test');
91
- }
92
- if (semver.satisfies(process.version, '^20.12 || >= 21.7')) {
93
- libs = libs.concat('node:sea');
94
- }
95
- if (semver.satisfies(process.version, '>= 23.4')) {
96
- libs = libs.concat('node:sqlite');
97
- }
98
-
99
- for (var i = 0; i < libs.length; ++i) {
100
- var mod = libs[i];
101
- if (excludeList.indexOf(mod) === -1) {
102
- st.ok(data[mod], mod + ' is a core module');
103
-
104
- if (Module.isBuiltin) {
105
- st.ok(Module.isBuiltin(mod), 'module.isBuiltin(' + mod + ') is true');
106
- }
107
-
108
- st.doesNotThrow(
109
- function () { require(mod); }, // eslint-disable-line no-loop-func
110
- 'requiring ' + mod + ' does not throw'
111
- );
112
-
113
- if (process.getBuiltinModule) {
114
- st.equal(
115
- process.getBuiltinModule(mod),
116
- require(mod),
117
- 'process.getBuiltinModule(' + mod + ') === require(' + mod + ')'
118
- );
119
- }
120
-
121
- if (mod.slice(0, 5) !== 'node:') {
122
- if (supportsNodePrefix) {
123
- st.doesNotThrow(
124
- function () { require('node:' + mod); }, // eslint-disable-line no-loop-func
125
- 'requiring node:' + mod + ' does not throw'
126
- );
127
- } else {
128
- st['throws'](
129
- function () { require('node:' + mod); }, // eslint-disable-line no-loop-func
130
- 'requiring node:' + mod + ' throws'
131
- );
132
- }
133
- }
134
- }
135
- }
136
- }
137
-
138
- st.end();
139
- });
140
-
141
- t.test('isCore with explicit nodeVersion', function (st) {
142
- st.ok(isCore('async_hooks', '8.0.0'), 'async_hooks is core in 8.0.0 (exact match on >= specifier)');
143
- st.ok(isCore('buffer_ieee754', '0.5.0'), 'buffer_ieee754 is core in 0.5.0');
144
- st.ok(!isCore('buffer_ieee754', '0.9.7'), 'buffer_ieee754 is not core in 0.9.7');
145
- st.ok(!isCore('buffer_ieee754', '1.0.0'), 'buffer_ieee754 is not core in 1.0.0');
146
- st.ok(isCore('buffer_ieee754', '0.8.0'), 'buffer_ieee754 is core in 0.8.0');
147
-
148
- st['throws'](
149
- function () { isCore('async_hooks', null); },
150
- TypeError,
151
- 'isCore with non-string non-undefined nodeVersion throws TypeError'
152
- );
153
- st['throws'](
154
- function () { isCore('async_hooks', 123); },
155
- TypeError,
156
- 'isCore with numeric nodeVersion throws TypeError'
157
- );
158
-
159
- st.end();
160
- });
161
-
162
- t.test('isCore with non-boolean specifier and invalid nodeVersion', function (st) {
163
- st['throws'](
164
- function () { isCore('async_hooks', null); },
165
- TypeError,
166
- 'isCore with null nodeVersion on non-boolean module throws TypeError'
167
- );
168
- st['throws'](
169
- function () { isCore('async_hooks', 123); },
170
- TypeError,
171
- 'isCore with numeric nodeVersion on non-boolean module throws TypeError'
172
- );
173
-
174
- st.end();
175
- });
176
-
177
- t.test('isCore with undefined nodeVersion and non-string process.versions.node', function (st) {
178
- st.teardown(mockProperty(process, 'versions', { value: { node: null } }));
179
-
180
- st['throws'](
181
- function () { isCore('async_hooks'); },
182
- TypeError,
183
- 'isCore throws when process.versions.node is not a string'
184
- );
185
-
186
- st.end();
187
- });
188
-
189
- t.test('isCore with undefined nodeVersion and falsy process.versions', function (st) {
190
- st.teardown(mockProperty(process, 'versions', { value: null }));
191
-
192
- st['throws'](
193
- function () { isCore('async_hooks'); },
194
- TypeError,
195
- 'isCore throws when process.versions is falsy'
196
- );
197
-
198
- st.end();
199
- });
200
-
201
- t.test('specifierIncluded with = operator (bare version)', function (st) {
202
- var testKey = '__test_equal_op';
203
- data[testKey] = '14.18';
204
- st.teardown(function () { delete data[testKey]; });
205
-
206
- st.ok(!isCore(testKey, '14.17.0'), 'returns false when minor version does not match with = op');
207
- st.ok(!isCore(testKey, '15.0.0'), 'returns false when major version does not match with = op');
208
- st.ok(!isCore(testKey, '14.18.0'), 'returns false for exact match with = op (= is not >=)');
209
-
210
- st.end();
211
- });
212
-
213
- t.test('isCore with short version strings', function (st) {
214
- st.ok(isCore('async_hooks', '8'), 'async_hooks is core with single-part version "8"');
215
- st.ok(!isCore('async_hooks', '7'), 'async_hooks is not core with single-part version "7"');
216
- st.ok(isCore('cluster', '0.5'), 'cluster is core with two-part version "0.5"');
217
-
218
- st.end();
219
- });
220
-
221
- t.test('matchesRange with empty specifiers array', function (st) {
222
- var testKey = '__test_empty_split';
223
- var testRange = '__test_range__';
224
- data[testKey] = testRange;
225
- st.teardown(function () { delete data[testKey]; });
226
-
227
- var origSplit = String.prototype.split;
228
- st.teardown(mockProperty(String.prototype, 'split', {
229
- value: function () {
230
- if (String(this) === testRange) {
231
- return [];
232
- }
233
- return origSplit.apply(this, arguments);
234
- }
235
- }));
236
-
237
- st.ok(!isCore(testKey, '8.0.0'), 'returns false when specifiers array is empty');
238
-
239
- st.end();
240
- });
241
-
242
- t.test('Object.prototype pollution', function (st) {
243
- var nonKey = 'not a core module';
244
- st.teardown(mockProperty(Object.prototype, 'fs', { value: false }));
245
- st.teardown(mockProperty(Object.prototype, 'path', { value: '>= 999999999' }));
246
- st.teardown(mockProperty(Object.prototype, 'http', { value: data.http }));
247
- st.teardown(mockProperty(Object.prototype, nonKey, { value: true }));
248
-
249
- st.equal(isCore('fs'), true, 'fs is a core module even if Object.prototype lies');
250
- st.equal(isCore('path'), true, 'path is a core module even if Object.prototype lies');
251
- st.equal(isCore('http'), true, 'path is a core module even if Object.prototype matches data');
252
- st.equal(isCore(nonKey), false, '"' + nonKey + '" is not a core module even if Object.prototype lies');
253
-
254
- st.end();
255
- });
256
-
257
- t.end();
258
- });
@@ -1,26 +0,0 @@
1
- # resolve package - session notes
2
-
3
- ## Versioning
4
- - Manual versioning only - do NOT use `npm version`
5
- - Edit package.json version directly, commit with message `v{version}`, then create annotated tag
6
- - Changelog lives in git tag annotations, not a separate file
7
- - Tag format: `git tag -a v{version} -m "{changelog}"`
8
-
9
- ## Code style
10
- - `__proto__: null` on ALL object literals (prototype pollution protection)
11
- - `.slice()` not `.substring()`
12
- - One exported function per file
13
- - Move nested/inner functions to module level when feasible
14
- - Prefer non-hoisted declarations (function declarations at module level, not expressions)
15
- - No mutation - copy objects instead of modifying inputs
16
-
17
- ## Testing
18
- - `test/list-exports` is a git submodule with sparse checkout
19
- - Tests should cover ALL entrypoints from fixtures, not just `'.'` subpaths
20
- - Use `extensions: ['.js', '.json']` when testing exports resolution
21
-
22
- ## exports field implementation
23
- - Uses `node-exports-info` for category semantics
24
- - Categories: pre-exports, broken, conditions, patterns, pattern-trailers, current
25
- - `exportsCategory` option or `engines: true` to auto-detect from consumer's engines.node
26
- - Self-reference resolution respects node_modules boundaries
@@ -1,26 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "WebFetch(domain:github.com)",
5
- "WebSearch",
6
- "WebFetch(domain:raw.githubusercontent.com)",
7
- "WebFetch(domain:api.github.com)",
8
- "WebFetch(domain:www.npmjs.com)",
9
- "Bash(tree:*)",
10
- "Bash(find:*)",
11
- "Bash(npm view:*)",
12
- "Bash(node test/resolver_sync.js:*)",
13
- "Bash(xxd:*)",
14
- "Bash(npm info:*)",
15
- "Bash(grep:*)",
16
- "Bash(npm run submodule:update:*)",
17
- "Bash(git rev-parse:*)",
18
- "Bash(git -C test/list-exports diff packages/tests/fixtures/resolve-2/project/test/resolver/nested_symlinks/mylib/async.js)",
19
- "Bash(gh run list:*)",
20
- "Bash(ls:*)",
21
- "Bash(tape test/homedir.js)",
22
- "Bash(tape test/default_paths.js)",
23
- "Bash(tape test/mock.js)"
24
- ]
25
- }
26
- }
@@ -1,26 +0,0 @@
1
- # resolve package - session notes
2
-
3
- ## Versioning
4
- - Manual versioning only - do NOT use `npm version`
5
- - Edit package.json version directly, commit with message `v{version}`, then create annotated tag
6
- - Changelog lives in git tag annotations, not a separate file
7
- - Tag format: `git tag -a v{version} -m "{changelog}"`
8
-
9
- ## Code style
10
- - `__proto__: null` on ALL object literals (prototype pollution protection)
11
- - `.slice()` not `.substring()`
12
- - One exported function per file
13
- - Move nested/inner functions to module level when feasible
14
- - Prefer non-hoisted declarations (function declarations at module level, not expressions)
15
- - No mutation - copy objects instead of modifying inputs
16
-
17
- ## Testing
18
- - `test/list-exports` is a git submodule with sparse checkout
19
- - Tests should cover ALL entrypoints from fixtures, not just `'.'` subpaths
20
- - Use `extensions: ['.js', '.json']` when testing exports resolution
21
-
22
- ## exports field implementation
23
- - Uses `node-exports-info` for category semantics
24
- - Categories: pre-exports, broken, conditions, patterns, pattern-trailers, current
25
- - `exportsCategory` option or `engines: true` to auto-detect from consumer's engines.node
26
- - Self-reference resolution respects node_modules boundaries
@@ -1,26 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "WebFetch(domain:github.com)",
5
- "WebSearch",
6
- "WebFetch(domain:raw.githubusercontent.com)",
7
- "WebFetch(domain:api.github.com)",
8
- "WebFetch(domain:www.npmjs.com)",
9
- "Bash(tree:*)",
10
- "Bash(find:*)",
11
- "Bash(npm view:*)",
12
- "Bash(node test/resolver_sync.js:*)",
13
- "Bash(xxd:*)",
14
- "Bash(npm info:*)",
15
- "Bash(grep:*)",
16
- "Bash(npm run submodule:update:*)",
17
- "Bash(git rev-parse:*)",
18
- "Bash(git -C test/list-exports diff packages/tests/fixtures/resolve-2/project/test/resolver/nested_symlinks/mylib/async.js)",
19
- "Bash(gh run list:*)",
20
- "Bash(ls:*)",
21
- "Bash(tape test/homedir.js)",
22
- "Bash(tape test/default_paths.js)",
23
- "Bash(tape test/mock.js)"
24
- ]
25
- }
26
- }
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) Feross Aboukhadijeh
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.