nx 17.2.4 → 17.2.5

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.
package/README.md CHANGED
@@ -1,4 +1,9 @@
1
- <p style="text-align: center;"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx.png" width="600" alt="Nx - Smart, Fast and Extensible Build System"></p>
1
+ <p style="text-align: center;">
2
+ <picture>
3
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-dark.svg">
4
+ <img alt="Nx - Smart Monorepos · Fast CI" src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-light.svg" width="100%">
5
+ </picture>
6
+ </p>
2
7
 
3
8
  <div style="text-align: center;">
4
9
 
@@ -15,9 +20,9 @@
15
20
 
16
21
  <hr>
17
22
 
18
- # Nx: Smart, Fast and Extensible Build System
23
+ # Nx: Smart Monorepos · Fast CI
19
24
 
20
- Nx is a next generation build system with first class monorepo support and powerful integrations.
25
+ Nx is a build system with built-in tooling and advanced CI capabilities. It helps you maintain and scale monorepos, both locally and on CI.
21
26
 
22
27
  ## Getting Started
23
28
 
@@ -57,5 +62,5 @@ npx nx@latest init
57
62
  - [Blog Posts About Nx](https://blog.nrwl.io/nx/home)
58
63
 
59
64
  <p style="text-align: center;"><a href="https://nx.dev/#learning-materials" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-courses-and-videos.svg"
60
- width="100%" alt="Nx - Smart, Fast and Extensible Build System"></a></p>
65
+ width="100%" alt="Nx - Smart Monorepos · Fast CI"></a></p>
61
66
 
@@ -25,7 +25,20 @@ const defaultChangelogRenderer = async ({ projectGraph, commits, releaseVersion,
25
25
  test: { title: '✅ Tests' },
26
26
  style: { title: '🎨 Styles' },
27
27
  ci: { title: '🤖 CI' },
28
+ revert: { title: '⏪ Revert' },
28
29
  };
30
+ // If the current range of commits contains both a commit and its revert, we strip them both from the final list
31
+ for (const commit of commits) {
32
+ if (commit.type === 'revert') {
33
+ for (const revertedHash of commit.revertedHashes) {
34
+ const revertedCommit = commits.find((c) => revertedHash.startsWith(c.shortHash));
35
+ if (revertedCommit) {
36
+ commits.splice(commits.indexOf(revertedCommit), 1);
37
+ commits.splice(commits.indexOf(commit), 1);
38
+ }
39
+ }
40
+ }
41
+ }
29
42
  // workspace root level changelog
30
43
  if (project === null) {
31
44
  // No changes for the workspace
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nx",
3
- "version": "17.2.4",
3
+ "version": "v17.2.5",
4
4
  "private": false,
5
5
  "description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
6
6
  "repository": {
@@ -66,7 +66,7 @@
66
66
  "yargs": "^17.6.2",
67
67
  "yargs-parser": "21.1.1",
68
68
  "node-machine-id": "1.1.12",
69
- "@nrwl/tao": "17.2.4"
69
+ "@nrwl/tao": "v17.2.5"
70
70
  },
71
71
  "peerDependencies": {
72
72
  "@swc-node/register": "^1.6.7",
@@ -81,16 +81,16 @@
81
81
  }
82
82
  },
83
83
  "optionalDependencies": {
84
- "@nx/nx-darwin-x64": "17.2.4",
85
- "@nx/nx-darwin-arm64": "17.2.4",
86
- "@nx/nx-linux-x64-gnu": "17.2.4",
87
- "@nx/nx-linux-x64-musl": "17.2.4",
88
- "@nx/nx-win32-x64-msvc": "17.2.4",
89
- "@nx/nx-linux-arm64-gnu": "17.2.4",
90
- "@nx/nx-linux-arm64-musl": "17.2.4",
91
- "@nx/nx-linux-arm-gnueabihf": "17.2.4",
92
- "@nx/nx-win32-arm64-msvc": "17.2.4",
93
- "@nx/nx-freebsd-x64": "17.2.4"
84
+ "@nx/nx-darwin-x64": "v17.2.5",
85
+ "@nx/nx-darwin-arm64": "v17.2.5",
86
+ "@nx/nx-linux-x64-gnu": "v17.2.5",
87
+ "@nx/nx-linux-x64-musl": "v17.2.5",
88
+ "@nx/nx-win32-x64-msvc": "v17.2.5",
89
+ "@nx/nx-linux-arm64-gnu": "v17.2.5",
90
+ "@nx/nx-linux-arm64-musl": "v17.2.5",
91
+ "@nx/nx-linux-arm-gnueabihf": "v17.2.5",
92
+ "@nx/nx-win32-arm64-msvc": "v17.2.5",
93
+ "@nx/nx-freebsd-x64": "v17.2.5"
94
94
  },
95
95
  "nx-migrations": {
96
96
  "migrations": "./migrations.json",
@@ -135,6 +135,8 @@
135
135
  "@nrwl/react-native",
136
136
  "@nx/rollup",
137
137
  "@nrwl/rollup",
138
+ "@nx/remix",
139
+ "@nrwl/remix",
138
140
  "@nx/storybook",
139
141
  "@nrwl/storybook",
140
142
  "@nrwl/tao",
@@ -36,7 +36,7 @@ exports.parserConfiguration = {
36
36
  */
37
37
  exports.commandsObject = yargs
38
38
  .parserConfiguration(exports.parserConfiguration)
39
- .usage(chalk.bold('Smart, Fast and Extensible Build System'))
39
+ .usage(chalk.bold('Smart Monorepos · Fast CI'))
40
40
  .demandCommand(1, '')
41
41
  .command(command_object_1.yargsAffectedBuildCommand)
42
42
  .command(command_object_1.yargsAffectedCommand)
@@ -20,6 +20,7 @@ export interface GitCommit extends RawGitCommit {
20
20
  authors: GitCommitAuthor[];
21
21
  isBreaking: boolean;
22
22
  affectedFiles: string[];
23
+ revertedHashes: string[];
23
24
  }
24
25
  export declare function getLatestGitTagForPattern(releaseTagPattern: string, additionalInterpolationData?: {}): Promise<{
25
26
  tag: string;
@@ -181,12 +181,12 @@ const CoAuthoredByRegex = /co-authored-by:\s*(?<name>.+)(<(?<email>.+)>)/gim;
181
181
  const PullRequestRE = /\([ a-z]*(#\d+)\s*\)/gm;
182
182
  const IssueRE = /(#\d+)/gm;
183
183
  const ChangedFileRegex = /(A|M|D|R\d*|C\d*)\t([^\t\n]*)\t?(.*)?/gm;
184
+ const RevertHashRE = /This reverts commit (?<hash>[\da-f]{40})./gm;
184
185
  function parseGitCommit(commit) {
185
186
  const match = commit.message.match(ConventionalCommitRegex);
186
187
  if (!match) {
187
188
  return null;
188
189
  }
189
- const type = match.groups.type;
190
190
  const scope = match.groups.scope || '';
191
191
  const isBreaking = Boolean(match.groups.breaking);
192
192
  let description = match.groups.description;
@@ -203,6 +203,17 @@ function parseGitCommit(commit) {
203
203
  references.push({ value: commit.shortHash, type: 'hash' });
204
204
  // Remove references and normalize
205
205
  description = description.replace(PullRequestRE, '').trim();
206
+ let type = match.groups.type;
207
+ // Extract any reverted hashes, if applicable
208
+ const revertedHashes = [];
209
+ const matchedHashes = commit.body.matchAll(RevertHashRE);
210
+ for (const matchedHash of matchedHashes) {
211
+ revertedHashes.push(matchedHash.groups.hash);
212
+ }
213
+ if (revertedHashes.length) {
214
+ type = 'revert';
215
+ description = commit.message;
216
+ }
206
217
  // Find all authors
207
218
  const authors = [commit.author];
208
219
  for (const match of commit.body.matchAll(CoAuthoredByRegex)) {
@@ -223,6 +234,7 @@ function parseGitCommit(commit) {
223
234
  scope,
224
235
  references,
225
236
  isBreaking,
237
+ revertedHashes,
226
238
  affectedFiles,
227
239
  };
228
240
  }
@@ -1,3 +1,29 @@
1
+ @babel/runtime
2
+ MIT
3
+ MIT License
4
+
5
+ Copyright (c) 2014-present Sebastian McKenzie and other contributors
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining
8
+ a copy of this software and associated documentation files (the
9
+ "Software"), to deal in the Software without restriction, including
10
+ without limitation the rights to use, copy, modify, merge, publish,
11
+ distribute, sublicense, and/or sell copies of the Software, and to
12
+ permit persons to whom the Software is furnished to do so, subject to
13
+ the following conditions:
14
+
15
+ The above copyright notice and this permission notice shall be
16
+ included in all copies or substantial portions of the Software.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
21
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
22
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
23
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
24
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25
+
26
+
1
27
  @floating-ui/react
2
28
  MIT
3
29
  MIT License
@@ -186,31 +212,6 @@ SOFTWARE.
186
212
 
187
213
 
188
214
 
189
- aria-hidden
190
- MIT
191
- MIT License
192
-
193
- Copyright (c) 2017 Anton Korzunov
194
-
195
- Permission is hereby granted, free of charge, to any person obtaining a copy
196
- of this software and associated documentation files (the "Software"), to deal
197
- in the Software without restriction, including without limitation the rights
198
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
199
- copies of the Software, and to permit persons to whom the Software is
200
- furnished to do so, subject to the following conditions:
201
-
202
- The above copyright notice and this permission notice shall be included in all
203
- copies or substantial portions of the Software.
204
-
205
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
206
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
207
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
208
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
209
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
210
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
211
- SOFTWARE.
212
-
213
-
214
215
  classnames
215
216
  MIT
216
217
  The MIT License (MIT)
@@ -589,57 +590,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
589
590
  SOFTWARE.
590
591
 
591
592
 
592
- regenerator-runtime
593
- MIT
594
- MIT License
595
-
596
- Copyright (c) 2014-present, Facebook, Inc.
597
-
598
- Permission is hereby granted, free of charge, to any person obtaining a copy
599
- of this software and associated documentation files (the "Software"), to deal
600
- in the Software without restriction, including without limitation the rights
601
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
602
- copies of the Software, and to permit persons to whom the Software is
603
- furnished to do so, subject to the following conditions:
604
-
605
- The above copyright notice and this permission notice shall be included in all
606
- copies or substantial portions of the Software.
607
-
608
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
609
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
610
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
611
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
612
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
613
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
614
- SOFTWARE.
615
-
616
-
617
- tabbable
618
- MIT
619
- The MIT License (MIT)
620
-
621
- Copyright (c) 2015 David Clark
622
-
623
- Permission is hereby granted, free of charge, to any person obtaining a copy
624
- of this software and associated documentation files (the "Software"), to deal
625
- in the Software without restriction, including without limitation the rights
626
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
627
- copies of the Software, and to permit persons to whom the Software is
628
- furnished to do so, subject to the following conditions:
629
-
630
- The above copyright notice and this permission notice shall be included in all
631
- copies or substantial portions of the Software.
632
-
633
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
634
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
635
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
636
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
637
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
638
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
639
- SOFTWARE.
640
-
641
-
642
-
643
593
  use-isomorphic-layout-effect
644
594
  MIT
645
595
  MIT License