nx 22.0.0-canary.20251002-3bac124 → 22.0.0-canary.20251006-0149fac

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 (58) hide show
  1. package/migrations.json +5 -0
  2. package/package.json +12 -12
  3. package/project.json +2 -1
  4. package/schemas/nx-schema.json +339 -246
  5. package/schemas/project-schema.json +72 -12
  6. package/src/command-line/release/changelog.d.ts.map +1 -1
  7. package/src/command-line/release/changelog.js +1 -3
  8. package/src/command-line/release/command-object.d.ts +0 -6
  9. package/src/command-line/release/command-object.d.ts.map +1 -1
  10. package/src/command-line/release/config/config.d.ts +1 -1
  11. package/src/command-line/release/config/config.d.ts.map +1 -1
  12. package/src/command-line/release/config/config.js +33 -126
  13. package/src/command-line/release/plan-check.d.ts.map +1 -1
  14. package/src/command-line/release/plan-check.js +1 -3
  15. package/src/command-line/release/plan.d.ts.map +1 -1
  16. package/src/command-line/release/plan.js +1 -3
  17. package/src/command-line/release/publish.d.ts.map +1 -1
  18. package/src/command-line/release/publish.js +1 -3
  19. package/src/command-line/release/release.d.ts.map +1 -1
  20. package/src/command-line/release/release.js +1 -3
  21. package/src/command-line/release/utils/resolve-semver-specifier.d.ts +2 -1
  22. package/src/command-line/release/utils/resolve-semver-specifier.d.ts.map +1 -1
  23. package/src/command-line/release/utils/semver.d.ts +15 -9
  24. package/src/command-line/release/utils/semver.d.ts.map +1 -1
  25. package/src/command-line/release/utils/semver.js +30 -24
  26. package/src/command-line/release/utils/shared.d.ts +4 -1
  27. package/src/command-line/release/utils/shared.d.ts.map +1 -1
  28. package/src/command-line/release/utils/shared.js +33 -11
  29. package/src/command-line/release/utils/test/test-utils.d.ts +20 -0
  30. package/src/command-line/release/utils/test/test-utils.d.ts.map +1 -0
  31. package/src/command-line/release/utils/test/test-utils.js +24 -0
  32. package/src/command-line/release/version/derive-specifier-from-conventional-commits.d.ts.map +1 -1
  33. package/src/command-line/release/version/derive-specifier-from-conventional-commits.js +10 -1
  34. package/src/command-line/release/version/test-utils.d.ts.map +1 -1
  35. package/src/command-line/release/version/test-utils.js +0 -4
  36. package/src/command-line/release/version.d.ts.map +1 -1
  37. package/src/command-line/release/version.js +1 -8
  38. package/src/config/nx-json.d.ts +2 -31
  39. package/src/config/nx-json.d.ts.map +1 -1
  40. package/src/config/workspace-json-project-json.d.ts +2 -2
  41. package/src/config/workspace-json-project-json.d.ts.map +1 -1
  42. package/src/core/graph/main.js +1 -1
  43. package/src/migrations/update-21-0-0/release-changelog-config-changes.d.ts.map +1 -1
  44. package/src/migrations/update-21-0-0/release-version-config-changes.d.ts.map +1 -1
  45. package/src/migrations/update-21-0-0/release-version-config-changes.js +5 -15
  46. package/src/migrations/update-22-0-0/release-version-config-changes.d.ts +3 -0
  47. package/src/migrations/update-22-0-0/release-version-config-changes.d.ts.map +1 -0
  48. package/src/migrations/update-22-0-0/release-version-config-changes.js +101 -0
  49. package/src/native/nx.wasm32-wasi.wasm +0 -0
  50. package/src/command-line/release/config/use-legacy-versioning.d.ts +0 -3
  51. package/src/command-line/release/config/use-legacy-versioning.d.ts.map +0 -1
  52. package/src/command-line/release/config/use-legacy-versioning.js +0 -9
  53. package/src/command-line/release/utils/batch-projects-by-generator-config.d.ts +0 -8
  54. package/src/command-line/release/utils/batch-projects-by-generator-config.d.ts.map +0 -1
  55. package/src/command-line/release/utils/batch-projects-by-generator-config.js +0 -39
  56. package/src/command-line/release/version-legacy.d.ts +0 -47
  57. package/src/command-line/release/version-legacy.d.ts.map +0 -1
  58. package/src/command-line/release/version-legacy.js +0 -453
@@ -197,18 +197,7 @@
197
197
  "description": "Configuration for the nx release commands.",
198
198
  "properties": {
199
199
  "version": {
200
- "type": "object",
201
- "description": "Configuration for the nx release version command.",
202
- "properties": {
203
- "generator": {
204
- "type": "string",
205
- "description": "The version generator to use. Defaults to @nx/js:release-version."
206
- },
207
- "generatorOptions": {
208
- "type": "object",
209
- "description": "Options for the version generator."
210
- }
211
- }
200
+ "$ref": "#/definitions/NxReleaseVersionConfiguration"
212
201
  }
213
202
  }
214
203
  }
@@ -331,6 +320,77 @@
331
320
  }
332
321
  ]
333
322
  }
323
+ },
324
+ "NxReleaseVersionConfiguration": {
325
+ "type": "object",
326
+ "description": "Project-specific configuration for the versioning phase of releases. This is a subset of the version configuration options available at the workspace level.",
327
+ "additionalProperties": false,
328
+ "properties": {
329
+ "manifestRootsToUpdate": {
330
+ "type": "array",
331
+ "items": {
332
+ "oneOf": [
333
+ {
334
+ "type": "string",
335
+ "description": "Path to the directory containing a manifest file to update. Supports placeholders like {projectRoot} and {projectName}."
336
+ },
337
+ {
338
+ "type": "object",
339
+ "properties": {
340
+ "path": {
341
+ "type": "string",
342
+ "description": "Path to the directory containing a manifest file to update. Supports placeholders like {projectRoot} and {projectName}."
343
+ },
344
+ "preserveLocalDependencyProtocols": {
345
+ "type": "boolean",
346
+ "description": "Whether to preserve local dependency references using protocols like 'workspace:' or 'file:'. Set this to false for dist files that need to be published if not using a package manager that swaps references at publish time like pnpm or bun.",
347
+ "default": true
348
+ }
349
+ },
350
+ "required": ["path"],
351
+ "additionalProperties": false
352
+ }
353
+ ]
354
+ },
355
+ "description": "A list of directories containing manifest files (such as package.json) to apply updates to when versioning. By default, only the project root will be used, but you could customize this to only version a manifest in a dist directory, or even version multiple manifests in different directories, such as both source and dist."
356
+ },
357
+ "currentVersionResolver": {
358
+ "type": "string",
359
+ "enum": ["registry", "disk", "git-tag", "none"],
360
+ "description": "The resolver to use for determining the current version of a project during versioning. This is needed for versioning approaches which involve relatively modifying a current version to arrive at a new version, such as semver bumps like 'patch', 'minor' etc. Using 'none' explicitly declares that the current version is not needed to compute the new version, and should only be used with appropriate version actions implementations that support it."
361
+ },
362
+ "currentVersionResolverMetadata": {
363
+ "type": "object",
364
+ "additionalProperties": true,
365
+ "description": "Metadata to provide to the configured currentVersionResolver to help it in determining the current version. What to pass here is specific to each resolver."
366
+ },
367
+ "fallbackCurrentVersionResolver": {
368
+ "type": "string",
369
+ "enum": ["disk"],
370
+ "description": "The fallback version resolver to use when the configured currentVersionResolver fails to resolve the current version."
371
+ },
372
+ "versionPrefix": {
373
+ "type": "string",
374
+ "enum": ["auto", "", "~", "^", "="],
375
+ "default": "auto",
376
+ "description": "The prefix to use when versioning dependencies. This can be one of the following: auto, '', '~', '^', '=', where auto means the existing prefix will be preserved."
377
+ },
378
+ "preserveLocalDependencyProtocols": {
379
+ "type": "boolean",
380
+ "description": "Whether to preserve local dependency protocols (e.g. file references, or the `workspace:` protocol in package.json files) of local dependencies when updating them during versioning.",
381
+ "default": true
382
+ },
383
+ "versionActions": {
384
+ "type": "string",
385
+ "description": "The path to the version actions implementation to use for releasing all projects by default. This can also be overridden on the release group and project levels.",
386
+ "default": "@nx/js/src/release"
387
+ },
388
+ "versionActionsOptions": {
389
+ "type": "object",
390
+ "description": "The specific options that are defined by each version actions implementation. They will be passed to the version actions implementation when running a release.",
391
+ "additionalProperties": true
392
+ }
393
+ }
334
394
  }
335
395
  }
336
396
  }
@@ -1 +1 @@
1
- {"version":3,"file":"changelog.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/release/changelog.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,sBAAsB,EAAc,MAAM,sBAAsB,CAAC;AAkB1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAmBpD,OAAO,EAEL,SAAS,EAWV,MAAM,aAAa,CAAC;AAYrB,OAAO,EACL,cAAc,EASf,MAAM,gBAAgB,CAAC;AAExB,MAAM,WAAW,wBAAwB;IACvC,kBAAkB,CAAC,EAAE;QACnB,cAAc,EAAE,cAAc,CAAC;QAC/B,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,EAAE,WAAW,GAAG,IAAI,CAAC;KACjC,CAAC;IACF,iBAAiB,CAAC,EAAE;QAClB,CAAC,WAAW,EAAE,MAAM,GAAG;YACrB,cAAc,EAAE,cAAc,CAAC;YAC/B,QAAQ,EAAE,MAAM,CAAC;YACjB,WAAW,EAAE,WAAW,GAAG,IAAI,CAAC;SACjC,CAAC;KACH,CAAC;CACH;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,EAAE,GAAG,GAAG,CAAC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gBAAgB,CAAC,EAAE,SAAS,EAAE,CAAC;IAC/B,OAAO,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B;AAED,MAAM,MAAM,WAAW,GAAG,CAAC,YAAY,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAElE,eAAO,MAAM,0BAA0B,GAAI,MAAM,gBAAgB,oBACV,CAAC;AAExD,wBAAgB,SAAS,CAAC,qBAAqB,EAAE,sBAAsB,IAOnE,MAAM,gBAAgB,KACrB,OAAO,CAAC,wBAAwB,CAAC,CA+qBrC"}
1
+ {"version":3,"file":"changelog.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/release/changelog.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,sBAAsB,EAAc,MAAM,sBAAsB,CAAC;AAkB1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAkBpD,OAAO,EAEL,SAAS,EAWV,MAAM,aAAa,CAAC;AAYrB,OAAO,EACL,cAAc,EASf,MAAM,gBAAgB,CAAC;AAExB,MAAM,WAAW,wBAAwB;IACvC,kBAAkB,CAAC,EAAE;QACnB,cAAc,EAAE,cAAc,CAAC;QAC/B,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,EAAE,WAAW,GAAG,IAAI,CAAC;KACjC,CAAC;IACF,iBAAiB,CAAC,EAAE;QAClB,CAAC,WAAW,EAAE,MAAM,GAAG;YACrB,cAAc,EAAE,cAAc,CAAC;YAC/B,QAAQ,EAAE,MAAM,CAAC;YACjB,WAAW,EAAE,WAAW,GAAG,IAAI,CAAC;SACjC,CAAC;KACH,CAAC;CACH;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,EAAE,GAAG,GAAG,CAAC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gBAAgB,CAAC,EAAE,SAAS,EAAE,CAAC;IAC/B,OAAO,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B;AAED,MAAM,MAAM,WAAW,GAAG,CAAC,YAAY,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAElE,eAAO,MAAM,0BAA0B,GAAI,MAAM,gBAAgB,oBACV,CAAC;AAExD,wBAAgB,SAAS,CAAC,qBAAqB,EAAE,sBAAsB,IAOnE,MAAM,gBAAgB,KACrB,OAAO,CAAC,wBAAwB,CAAC,CAyqBrC"}
@@ -20,7 +20,6 @@ const workspace_root_1 = require("../../utils/workspace-root");
20
20
  const config_1 = require("./config/config");
21
21
  const deep_merge_json_1 = require("./config/deep-merge-json");
22
22
  const filter_release_groups_1 = require("./config/filter-release-groups");
23
- const use_legacy_versioning_1 = require("./config/use-legacy-versioning");
24
23
  const version_plans_1 = require("./config/version-plans");
25
24
  const git_1 = require("./utils/git");
26
25
  const launch_editor_1 = require("./utils/launch-editor");
@@ -47,8 +46,7 @@ function createAPI(overrideReleaseConfig) {
47
46
  // Apply default configuration to any optional user configuration
48
47
  const { error: configError, nxReleaseConfig } = await (0, config_1.createNxReleaseConfig)(projectGraph, await (0, file_map_utils_1.createProjectFileMapUsingProjectGraph)(projectGraph), userProvidedReleaseConfig);
49
48
  if (configError) {
50
- const USE_LEGACY_VERSIONING = (0, use_legacy_versioning_1.shouldUseLegacyVersioning)(userProvidedReleaseConfig);
51
- return await (0, config_1.handleNxReleaseConfigError)(configError, USE_LEGACY_VERSIONING);
49
+ return await (0, config_1.handleNxReleaseConfigError)(configError);
52
50
  }
53
51
  // --print-config exits directly as it is not designed to be combined with any other programmatic operations
54
52
  if (args.printConfig) {
@@ -30,12 +30,6 @@ export type VersionOptions = NxReleaseArgs & GitOptions & VersionPlanArgs & Firs
30
30
  specifier?: string;
31
31
  preid?: string;
32
32
  stageChanges?: boolean;
33
- /**
34
- * @deprecated Use versionActionsOptionsOverrides instead.
35
- *
36
- * Using generatorOptionsOverrides is only valid when release.version.useLegacyVersioning is set to true.
37
- */
38
- generatorOptionsOverrides?: Record<string, unknown>;
39
33
  versionActionsOptionsOverrides?: Record<string, unknown>;
40
34
  };
41
35
  export type ChangelogOptions = NxReleaseArgs & GitOptions & VersionPlanArgs & FirstReleaseArgs & {
@@ -1 +1 @@
1
- {"version":3,"file":"command-object.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/release/command-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,aAAa,EAAY,MAAM,OAAO,CAAC;AAEtD,OAAO,EACL,WAAW,EACX,cAAc,EAQf,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;CACjC;AAED,MAAM,WAAW,aAAc,SAAQ,iBAAiB;IACtD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,MAAM,MAAM,gBAAgB,GAAG;IAC7B,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,aAAa,CAC7C,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACvB,aAAa,CA0Ed,CAAC"}
1
+ {"version":3,"file":"command-object.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/release/command-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,aAAa,EAAY,MAAM,OAAO,CAAC;AAEtD,OAAO,EACL,WAAW,EACX,cAAc,EAQf,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;CACjC;AAED,MAAM,WAAW,aAAc,SAAQ,iBAAiB;IACtD,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,UAAU,UAAU;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAClC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,uBAAuB,GAAG;IACpC,mBAAmB,CAAC,EAAE,MAAM,CA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,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,aAAa,GACxC,gBAAgB,GAChB,uBAAuB,GAAG;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;IAChC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEJ,MAAM,MAAM,eAAe,GAAG;IAC5B,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,aAAa,CAC7C,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACvB,aAAa,CA0Ed,CAAC"}
@@ -57,7 +57,7 @@ export declare function createNxReleaseConfig(projectGraph: ProjectGraph, projec
57
57
  error: null | CreateNxReleaseConfigError;
58
58
  nxReleaseConfig: NxReleaseConfig | null;
59
59
  }>;
60
- export declare function handleNxReleaseConfigError(error: CreateNxReleaseConfigError, useLegacyVersioning: boolean): Promise<never>;
60
+ export declare function handleNxReleaseConfigError(error: CreateNxReleaseConfigError): Promise<never>;
61
61
  /**
62
62
  * Full form of the createRelease config, with the provider, hostname, and apiBaseUrl resolved.
63
63
  */
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/command-line/release/config/config.ts"],"names":[],"mappings":"AAeA,OAAO,EAEL,mBAAmB,EAEnB,sBAAsB,EACtB,4BAA4B,EAG7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,c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UAAU,GAAG,QAAQ,CACtB,GAAG;IAEF,MAAM,EAAE,YAAY,CAAC,4BAA4B,CAAC,GAAG,SAAS,CAAC;CAChE,CAAC;AAGF,MAAM,WAAW,0BAA0B;IACzC,IAAI,EACA,6BAA6B,GAC7B,mCAAmC,GACnC,4EAA4E,GAC5E,iCAAiC,GACjC,+DAA+D,GAC/D,kDAAkD,GAClD,mCAAmC,GACnC,2CAA2C,GAC3C,2CAA2C,GAC3C,+CAA+C,GAC/C,oCAAoC,CAAC;IACzC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,CAAC;CACzC;AAGD,wBAAsB,qBAAqB,CACzC,YAAY,EAAE,YAAY,EAC1B,cAAc,EAAE,cAAc,EAC9B,UAAU,GAAE,mBAAmB,CAAC,SAAS,CAAM,GAC9C,OAAO,CAAC;IACT,KAAK,EAAE,IAAI,GAAG,0BAA0B,CAAC;IACzC,eAAe,EAAE,eAAe,GAAG,IAAI,CAAC;CACzC,CAAC,CA0yBD;AA4GD,wBAAsB,0BAA0B,CAC9C,KAAK,EAAE,0BAA0B,EACjC,mBAAmB,EAAE,OAAO,GAC3B,OAAO,CAAC,KAAK,CAAC,CA8IhB;AAyRD;;GAEG;AACH,MAAM,WAAW,mCAAmC;IAClD,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACpB"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/command-line/release/config/config.ts"],"names":[],"mappings":"AAeA,OAAO,EACL,mBAAmB,EAEnB,sBAAsB,EACtB,4BAA4B,EAG7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAa7E,KAAK,YAAY,CAAC,CAAC,IAAI,QAAQ,CAAC;KAC7B,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CA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AAI,EACA,6BAA6B,GAC7B,mCAAmC,GACnC,4EAA4E,GAC5E,iCAAiC,GACjC,+DAA+D,GAC/D,kDAAkD,GAClD,mCAAmC,GACnC,2CAA2C,GAC3C,2CAA2C,GAC3C,+CAA+C,GAC/C,oCAAoC,CAAC;IACzC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,CAAC;CACzC;AAGD,wBAAsB,qBAAqB,CACzC,YAAY,EAAE,YAAY,EAC1B,cAAc,EAAE,cAAc,EAC9B,UAAU,GAAE,mBAAmB,CAAC,SAAS,CAAM,GAC9C,OAAO,CAAC;IACT,KAAK,EAAE,IAAI,GAAG,0BAA0B,CAAC;IACzC,eAAe,EAAE,eAAe,GAAG,IAAI,CAAC;CACzC,CAAC,CAgtBD;AA4GD,wBAAsB,0BAA0B,CAC9C,KAAK,EAAE,0BAA0B,GAChC,OAAO,CAAC,KAAK,CAAC,CA2IhB;AA2QD;;GAEG;AACH,MAAM,WAAW,mCAAmC;IAClD,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -28,7 +28,6 @@ const gitlab_1 = require("../utils/remote-release-clients/gitlab");
28
28
  const resolve_changelog_renderer_1 = require("../utils/resolve-changelog-renderer");
29
29
  const resolve_nx_json_error_message_1 = require("../utils/resolve-nx-json-error-message");
30
30
  const conventional_commits_1 = require("./conventional-commits");
31
- const use_legacy_versioning_1 = require("./use-legacy-versioning");
32
31
  exports.IMPLICIT_DEFAULT_RELEASE_GROUP = '__default__';
33
32
  exports.DEFAULT_VERSION_ACTIONS_PATH = '@nx/js/src/release/version-actions';
34
33
  // Apply default configuration to any optional user configuration and handle known errors
@@ -60,7 +59,6 @@ async function createNxReleaseConfig(projectGraph, projectFileMap, userConfig =
60
59
  nxReleaseConfig: null,
61
60
  };
62
61
  }
63
- const USE_LEGACY_VERSIONING = (0, use_legacy_versioning_1.shouldUseLegacyVersioning)(userConfig);
64
62
  const gitDefaults = {
65
63
  commit: false,
66
64
  commitMessage: 'chore(release): publish {version}',
@@ -191,30 +189,18 @@ async function createNxReleaseConfig(projectGraph, projectFileMap, userConfig =
191
189
  : undefined,
192
190
  git: gitDefaults,
193
191
  version: {
194
- useLegacyVersioning: USE_LEGACY_VERSIONING,
195
192
  git: versionGitDefaults,
196
193
  conventionalCommits: userConfig.version?.conventionalCommits || false,
197
194
  preVersionCommand: userConfig.version?.preVersionCommand || '',
198
- ...(USE_LEGACY_VERSIONING
199
- ? {
200
- generator: '@nx/js:release-version',
201
- generatorOptions: defaultGeneratorOptions,
202
- }
203
- : {
204
- versionActions: exports.DEFAULT_VERSION_ACTIONS_PATH,
205
- versionActionsOptions: {},
206
- currentVersionResolver: defaultGeneratorOptions.currentVersionResolver,
207
- specifierSource: defaultGeneratorOptions.specifierSource,
208
- preserveLocalDependencyProtocols: userConfig.version
209
- ?.preserveLocalDependencyProtocols ?? true,
210
- // TODO(v22): flip default to true
211
- preserveMatchingDependencyRanges: userConfig.version
212
- ?.preserveMatchingDependencyRanges ?? false,
213
- logUnchangedProjects: userConfig.version
214
- ?.logUnchangedProjects ?? true,
215
- updateDependents: userConfig.version
216
- ?.updateDependents ?? 'auto',
217
- }),
195
+ versionActions: exports.DEFAULT_VERSION_ACTIONS_PATH,
196
+ versionActionsOptions: {},
197
+ currentVersionResolver: defaultGeneratorOptions.currentVersionResolver,
198
+ specifierSource: defaultGeneratorOptions.specifierSource,
199
+ preserveLocalDependencyProtocols: userConfig.version?.preserveLocalDependencyProtocols ?? true,
200
+ // TODO(v22): flip default to true
201
+ preserveMatchingDependencyRanges: userConfig.version?.preserveMatchingDependencyRanges ?? false,
202
+ logUnchangedProjects: userConfig.version?.logUnchangedProjects ?? true,
203
+ updateDependents: userConfig.version?.updateDependents ?? 'auto',
218
204
  },
219
205
  changelog: {
220
206
  git: changelogGitDefaults,
@@ -278,19 +264,12 @@ async function createNxReleaseConfig(projectGraph, projectFileMap, userConfig =
278
264
  groupPreVersionCommand: '',
279
265
  }
280
266
  : undefined,
281
- version: USE_LEGACY_VERSIONING
282
- ? {
283
- conventionalCommits: false,
284
- generator: '@nx/js:release-version',
285
- generatorOptions: {},
286
- groupPreVersionCommand: '',
287
- }
288
- : {
289
- conventionalCommits: false,
290
- versionActions: exports.DEFAULT_VERSION_ACTIONS_PATH,
291
- versionActionsOptions: {},
292
- groupPreVersionCommand: '',
293
- },
267
+ version: {
268
+ conventionalCommits: false,
269
+ versionActions: exports.DEFAULT_VERSION_ACTIONS_PATH,
270
+ versionActionsOptions: {},
271
+ groupPreVersionCommand: '',
272
+ },
294
273
  changelog: {
295
274
  createRelease: false,
296
275
  entryWhenNoChanges: 'This was a version bump only for {projectName} to align it with other projects, there were no code changes.',
@@ -361,43 +340,19 @@ async function createNxReleaseConfig(projectGraph, projectFileMap, userConfig =
361
340
  delete rootVersionWithoutGlobalOptions.preVersionCommand;
362
341
  // Apply conventionalCommits shorthand to the final group defaults if explicitly configured in the original user config
363
342
  if (userConfig.version?.conventionalCommits === true) {
364
- if (USE_LEGACY_VERSIONING) {
365
- rootVersionWithoutGlobalOptions.generatorOptions = {
366
- ...rootVersionWithoutGlobalOptions.generatorOptions,
367
- currentVersionResolver: 'git-tag',
368
- specifierSource: 'conventional-commits',
369
- };
370
- }
371
- else {
372
- rootVersionWithoutGlobalOptions.currentVersionResolver = 'git-tag';
373
- rootVersionWithoutGlobalOptions.specifierSource = 'conventional-commits';
374
- }
343
+ rootVersionWithoutGlobalOptions.currentVersionResolver = 'git-tag';
344
+ rootVersionWithoutGlobalOptions.specifierSource = 'conventional-commits';
375
345
  }
376
346
  if (userConfig.version?.conventionalCommits === false) {
377
- delete rootVersionWithoutGlobalOptions.generatorOptions
378
- ?.currentVersionResolver;
379
- delete rootVersionWithoutGlobalOptions.generatorOptions?.specifierSource;
380
- delete rootVersionWithoutGlobalOptions
381
- .currentVersionResolver;
382
- delete rootVersionWithoutGlobalOptions
383
- .specifierSource;
347
+ delete rootVersionWithoutGlobalOptions.currentVersionResolver;
348
+ delete rootVersionWithoutGlobalOptions.specifierSource;
384
349
  }
385
350
  // Apply versionPlans shorthand to the final group defaults if explicitly configured in the original user config
386
351
  if (userConfig.versionPlans) {
387
- if (USE_LEGACY_VERSIONING) {
388
- rootVersionWithoutGlobalOptions.generatorOptions = {
389
- ...rootVersionWithoutGlobalOptions.generatorOptions,
390
- specifierSource: 'version-plans',
391
- };
392
- }
393
- else {
394
- rootVersionWithoutGlobalOptions.specifierSource = 'version-plans';
395
- }
352
+ rootVersionWithoutGlobalOptions.specifierSource = 'version-plans';
396
353
  }
397
354
  if (userConfig.versionPlans === false) {
398
- delete rootVersionWithoutGlobalOptions.generatorOptions.specifierSource;
399
- delete rootVersionWithoutGlobalOptions
400
- .specifierSource;
355
+ delete rootVersionWithoutGlobalOptions.specifierSource;
401
356
  }
402
357
  const rootDockerWithoutGlobalOptions = { ...rootDockerConfig };
403
358
  delete rootDockerWithoutGlobalOptions.preVersionCommand;
@@ -545,52 +500,21 @@ async function createNxReleaseConfig(projectGraph, projectFileMap, userConfig =
545
500
  }
546
501
  // Apply conventionalCommits shorthand to the final group if explicitly configured in the original group
547
502
  if (releaseGroup.version?.conventionalCommits === true) {
548
- if (USE_LEGACY_VERSIONING) {
549
- finalReleaseGroup.version.generatorOptions = {
550
- ...finalReleaseGroup.version.generatorOptions,
551
- currentVersionResolver: 'git-tag',
552
- specifierSource: 'conventional-commits',
553
- };
554
- }
555
- else {
556
- finalReleaseGroup.version.currentVersionResolver = 'git-tag';
557
- finalReleaseGroup.version.specifierSource = 'conventional-commits';
558
- }
503
+ finalReleaseGroup.version.currentVersionResolver = 'git-tag';
504
+ finalReleaseGroup.version.specifierSource = 'conventional-commits';
559
505
  }
560
506
  if (releaseGroup.version?.conventionalCommits === false &&
561
507
  releaseGroupName !== exports.IMPLICIT_DEFAULT_RELEASE_GROUP) {
562
- if (USE_LEGACY_VERSIONING) {
563
- delete finalReleaseGroup.version.generatorOptions
564
- ?.currentVersionResolver;
565
- delete finalReleaseGroup.version.generatorOptions?.specifierSource;
566
- }
567
- delete finalReleaseGroup.version
568
- .currentVersionResolver;
569
- delete finalReleaseGroup.version
570
- .specifierSource;
508
+ delete finalReleaseGroup.version.currentVersionResolver;
509
+ delete finalReleaseGroup.version.specifierSource;
571
510
  }
572
511
  // Apply versionPlans shorthand to the final group if explicitly configured in the original group
573
512
  if (releaseGroup.versionPlans) {
574
- if (USE_LEGACY_VERSIONING) {
575
- finalReleaseGroup.version = {
576
- ...finalReleaseGroup.version,
577
- generatorOptions: {
578
- ...finalReleaseGroup.version?.generatorOptions,
579
- specifierSource: 'version-plans',
580
- },
581
- };
582
- }
583
- else {
584
- finalReleaseGroup.version.specifierSource = 'version-plans';
585
- }
513
+ finalReleaseGroup.version.specifierSource = 'version-plans';
586
514
  }
587
515
  if (releaseGroup.versionPlans === false &&
588
516
  releaseGroupName !== exports.IMPLICIT_DEFAULT_RELEASE_GROUP) {
589
- if (USE_LEGACY_VERSIONING) {
590
- delete finalReleaseGroup.version.generatorOptions?.specifierSource;
591
- }
592
- delete finalReleaseGroup.version
593
- .specifierSource;
517
+ delete finalReleaseGroup.version.specifierSource;
594
518
  }
595
519
  releaseGroups[releaseGroupName] = finalReleaseGroup;
596
520
  }
@@ -728,7 +652,7 @@ function fillUnspecifiedConventionalCommitsProperties(config) {
728
652
  types,
729
653
  };
730
654
  }
731
- async function handleNxReleaseConfigError(error, useLegacyVersioning) {
655
+ async function handleNxReleaseConfigError(error) {
732
656
  const linkMessage = `\nRead more about Nx Release at https://nx.dev/features/manage-releases.`;
733
657
  switch (error.code) {
734
658
  case 'PROJECTS_AND_GROUPS_DEFINED':
@@ -786,11 +710,8 @@ async function handleNxReleaseConfigError(error, useLegacyVersioning) {
786
710
  const nxJsonMessage = await (0, resolve_nx_json_error_message_1.resolveNxJsonConfigErrorMessage)([
787
711
  'release',
788
712
  ]);
789
- const text = useLegacyVersioning
790
- ? '"version.generatorOptions"'
791
- : 'configuration options';
792
713
  output_1.output.error({
793
- title: `You have configured both the shorthand "version.conventionalCommits" and one or more of the related ${text} that it sets for you. Please use one or the other:`,
714
+ title: `You have configured both the shorthand "version.conventionalCommits" and one or more of the related configuration options that it sets for you. Please use one or the other:`,
794
715
  bodyLines: [nxJsonMessage, linkMessage],
795
716
  });
796
717
  }
@@ -943,30 +864,16 @@ function deepMergeDefaults(defaultConfigs, userConfig) {
943
864
  function hasInvalidConventionalCommitsConfig(userConfig) {
944
865
  // at the root
945
866
  if (userConfig.version?.conventionalCommits === true &&
946
- // v2 config - directly on version config
947
- (userConfig.version
948
- ?.currentVersionResolver ||
949
- userConfig.version?.specifierSource ||
950
- // Legacy config - on generatorOptions
951
- userConfig.version
952
- ?.generatorOptions?.currentVersionResolver ||
953
- userConfig.version
954
- ?.generatorOptions?.specifierSource)) {
867
+ (userConfig.version?.currentVersionResolver ||
868
+ userConfig.version?.specifierSource)) {
955
869
  return true;
956
870
  }
957
871
  // within any groups
958
872
  if (userConfig.groups) {
959
873
  for (const group of Object.values(userConfig.groups)) {
960
874
  if (group.version?.conventionalCommits === true &&
961
- // v2 config - directly on version config
962
- (group.version
963
- ?.currentVersionResolver ||
964
- group.version?.specifierSource ||
965
- // Legacy config - on generatorOptions
966
- group.version
967
- ?.generatorOptions?.currentVersionResolver ||
968
- group.version
969
- ?.generatorOptions?.specifierSource)) {
875
+ (group.version?.currentVersionResolver ||
876
+ group.version?.specifierSource)) {
970
877
  return true;
971
878
  }
972
879
  }
@@ -1 +1 @@
1
- {"version":3,"file":"plan-check.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/release/plan-check.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAc,MAAM,sBAAsB,CAAC;AAU1E,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAgBjE,eAAO,MAAM,0BAA0B,GAAI,MAAM,gBAAgB,oBACV,CAAC;AAExD,wBAAgB,SAAS,CAAC,qBAAqB,EAAE,sBAAsB,IAC9B,MAAM,WAAW,KAAG,OAAO,CAAC,MAAM,CAAC,CA+N3E"}
1
+ {"version":3,"file":"plan-check.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/release/plan-check.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAc,MAAM,sBAAsB,CAAC;AAU1E,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAejE,eAAO,MAAM,0BAA0B,GAAI,MAAM,gBAAgB,oBACV,CAAC;AAExD,wBAAgB,SAAS,CAAC,qBAAqB,EAAE,sBAAsB,IAC9B,MAAM,WAAW,KAAG,OAAO,CAAC,MAAM,CAAC,CAyN3E"}
@@ -12,7 +12,6 @@ const output_1 = require("../../utils/output");
12
12
  const config_1 = require("./config/config");
13
13
  const deep_merge_json_1 = require("./config/deep-merge-json");
14
14
  const filter_release_groups_1 = require("./config/filter-release-groups");
15
- const use_legacy_versioning_1 = require("./config/use-legacy-versioning");
16
15
  const version_plans_1 = require("./config/version-plans");
17
16
  const get_touched_projects_for_group_1 = require("./utils/get-touched-projects-for-group");
18
17
  const print_config_1 = require("./utils/print-config");
@@ -26,8 +25,7 @@ function createAPI(overrideReleaseConfig) {
26
25
  // Apply default configuration to any optional user configuration
27
26
  const { error: configError, nxReleaseConfig } = await (0, config_1.createNxReleaseConfig)(projectGraph, await (0, file_map_utils_1.createProjectFileMapUsingProjectGraph)(projectGraph), userProvidedReleaseConfig);
28
27
  if (configError) {
29
- const USE_LEGACY_VERSIONING = (0, use_legacy_versioning_1.shouldUseLegacyVersioning)(userProvidedReleaseConfig);
30
- return await (0, config_1.handleNxReleaseConfigError)(configError, USE_LEGACY_VERSIONING);
28
+ return await (0, config_1.handleNxReleaseConfigError)(configError);
31
29
  }
32
30
  // --print-config exits directly as it is not designed to be combined with any other programmatic operations
33
31
  if (args.printConfig) {
@@ -1 +1 @@
1
- {"version":3,"file":"plan.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/release/plan.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,sBAAsB,EAAc,MAAM,sBAAsB,CAAC;AAU1E,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAgB/C,eAAO,MAAM,qBAAqB,GAAI,MAAM,WAAW,oBACA,CAAC;AAExD,wBAAgB,SAAS,CAAC,qBAAqB,EAAE,sBAAsB,IAEnE,MAAM,WAAW,KAChB,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC,CAqO5B"}
1
+ {"version":3,"file":"plan.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/release/plan.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,sBAAsB,EAAc,MAAM,sBAAsB,CAAC;AAU1E,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAe/C,eAAO,MAAM,qBAAqB,GAAI,MAAM,WAAW,oBACA,CAAC;AAExD,wBAAgB,SAAS,CAAC,qBAAqB,EAAE,sBAAsB,IAEnE,MAAM,WAAW,KAChB,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC,CA+N5B"}
@@ -18,7 +18,6 @@ const output_1 = require("../../utils/output");
18
18
  const config_1 = require("./config/config");
19
19
  const deep_merge_json_1 = require("./config/deep-merge-json");
20
20
  const filter_release_groups_1 = require("./config/filter-release-groups");
21
- const use_legacy_versioning_1 = require("./config/use-legacy-versioning");
22
21
  const version_plans_1 = require("./config/version-plans");
23
22
  const generate_version_plan_content_1 = require("./utils/generate-version-plan-content");
24
23
  const get_touched_projects_for_group_1 = require("./utils/get-touched-projects-for-group");
@@ -35,8 +34,7 @@ function createAPI(overrideReleaseConfig) {
35
34
  // Apply default configuration to any optional user configuration
36
35
  const { error: configError, nxReleaseConfig } = await (0, config_1.createNxReleaseConfig)(projectGraph, await (0, file_map_utils_1.createProjectFileMapUsingProjectGraph)(projectGraph), userProvidedReleaseConfig);
37
36
  if (configError) {
38
- const USE_LEGACY_VERSIONING = (0, use_legacy_versioning_1.shouldUseLegacyVersioning)(userProvidedReleaseConfig);
39
- return await (0, config_1.handleNxReleaseConfigError)(configError, USE_LEGACY_VERSIONING);
37
+ return await (0, config_1.handleNxReleaseConfigError)(configError);
40
38
  }
41
39
  // --print-config exits directly as it is not designed to be combined with any other programmatic operations
42
40
  if (args.printConfig) {
@@ -1 +1 @@
1
- {"version":3,"file":"publish.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/release/publish.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,sBAAsB,EAEvB,MAAM,sBAAsB,CAAC;AAsB9B,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAUlD,MAAM,WAAW,qBAAqB;IACpC,CAAC,WAAW,EAAE,MAAM,GAAG;QACrB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH;AAED,eAAO,MAAM,wBAAwB,GAAI,MAAM,cAAc,oBAWzD,CAAC;AAEL,wBAAgB,SAAS,CAAC,qBAAqB,EAAE,sBAAsB,IAOnE,MAAM,cAAc,KACnB,OAAO,CAAC,qBAAqB,CAAC,CAwHlC"}
1
+ {"version":3,"file":"publish.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/release/publish.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,sBAAsB,EAEvB,MAAM,sBAAsB,CAAC;AAsB9B,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AASlD,MAAM,WAAW,qBAAqB;IACpC,CAAC,WAAW,EAAE,MAAM,GAAG;QACrB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH;AAED,eAAO,MAAM,wBAAwB,GAAI,MAAM,cAAc,oBAWzD,CAAC;AAEL,wBAAgB,SAAS,CAAC,qBAAqB,EAAE,sBAAsB,IAOnE,MAAM,cAAc,KACnB,OAAO,CAAC,qBAAqB,CAAC,CAkHlC"}
@@ -17,7 +17,6 @@ const graph_1 = require("../graph/graph");
17
17
  const config_1 = require("./config/config");
18
18
  const deep_merge_json_1 = require("./config/deep-merge-json");
19
19
  const filter_release_groups_1 = require("./config/filter-release-groups");
20
- const use_legacy_versioning_1 = require("./config/use-legacy-versioning");
21
20
  const print_config_1 = require("./utils/print-config");
22
21
  const releasePublishCLIHandler = (args) => (0, handle_errors_1.handleErrors)(args.verbose, async () => {
23
22
  const publishProjectsResult = await createAPI({})(args);
@@ -48,8 +47,7 @@ function createAPI(overrideReleaseConfig) {
48
47
  // Apply default configuration to any optional user configuration
49
48
  const { error: configError, nxReleaseConfig } = await (0, config_1.createNxReleaseConfig)(projectGraph, await (0, file_map_utils_1.createProjectFileMapUsingProjectGraph)(projectGraph), userProvidedReleaseConfig);
50
49
  if (configError) {
51
- const USE_LEGACY_VERSIONING = (0, use_legacy_versioning_1.shouldUseLegacyVersioning)(userProvidedReleaseConfig);
52
- return await (0, config_1.handleNxReleaseConfigError)(configError, USE_LEGACY_VERSIONING);
50
+ return await (0, config_1.handleNxReleaseConfigError)(configError);
53
51
  }
54
52
  // --print-config exits directly as it is not designed to be combined with any other programmatic operations
55
53
  if (args.printConfig) {
@@ -1 +1 @@
1
- {"version":3,"file":"release.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/release/release.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAc,MAAM,sBAAsB,CAAC;AAM1E,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AA6BlE,OAAO,EACL,sBAAsB,EAEvB,MAAM,WAAW,CAAC;AAEnB,eAAO,MAAM,iBAAiB,GAAI,MAAM,cAAc,oBACC,CAAC;AAExD,wBAAgB,SAAS,CAAC,qBAAqB,EAAE,sBAAsB,IAMnE,MAAM,cAAc,KACnB,OAAO,CAAC,sBAAsB,GAAG,MAAM,CAAC,CAkX5C"}
1
+ {"version":3,"file":"release.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/release/release.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAc,MAAM,sBAAsB,CAAC;AAM1E,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AA4BlE,OAAO,EACL,sBAAsB,EAEvB,MAAM,WAAW,CAAC;AAEnB,eAAO,MAAM,iBAAiB,GAAI,MAAM,cAAc,oBACC,CAAC;AAExD,wBAAgB,SAAS,CAAC,qBAAqB,EAAE,sBAAsB,IAMnE,MAAM,cAAc,KACnB,OAAO,CAAC,sBAAsB,GAAG,MAAM,CAAC,CA4W5C"}
@@ -13,7 +13,6 @@ const changelog_1 = require("./changelog");
13
13
  const config_1 = require("./config/config");
14
14
  const deep_merge_json_1 = require("./config/deep-merge-json");
15
15
  const filter_release_groups_1 = require("./config/filter-release-groups");
16
- const use_legacy_versioning_1 = require("./config/use-legacy-versioning");
17
16
  const version_plans_1 = require("./config/version-plans");
18
17
  const publish_1 = require("./publish");
19
18
  const git_1 = require("./utils/git");
@@ -49,8 +48,7 @@ function createAPI(overrideReleaseConfig) {
49
48
  // Apply default configuration to any optional user configuration
50
49
  const { error: configError, nxReleaseConfig } = await (0, config_1.createNxReleaseConfig)(projectGraph, await (0, file_map_utils_1.createProjectFileMapUsingProjectGraph)(projectGraph), userProvidedReleaseConfig);
51
50
  if (configError) {
52
- const USE_LEGACY_VERSIONING = (0, use_legacy_versioning_1.shouldUseLegacyVersioning)(userProvidedReleaseConfig);
53
- return await (0, config_1.handleNxReleaseConfigError)(configError, USE_LEGACY_VERSIONING);
51
+ return await (0, config_1.handleNxReleaseConfigError)(configError);
54
52
  }
55
53
  // --print-config exits directly as it is not designed to be combined with any other programmatic operations
56
54
  if (args.printConfig) {
@@ -1,6 +1,7 @@
1
1
  import { ProjectGraph } from '../../../config/project-graph';
2
2
  import { NxReleaseConfig } from '../config/config';
3
3
  import { SemverBumpType } from '../version/version-actions';
4
- export declare function resolveSemverSpecifierFromConventionalCommits(from: string, projectGraph: ProjectGraph, projectNames: string[], conventionalCommitsConfig: NxReleaseConfig['conventionalCommits']): Promise<string | null>;
4
+ import { SemverSpecifier } from './semver';
5
+ export declare function resolveSemverSpecifierFromConventionalCommits(from: string, projectGraph: ProjectGraph, projectNames: string[], conventionalCommitsConfig: NxReleaseConfig['conventionalCommits']): Promise<Map<string, SemverSpecifier | null>>;
5
6
  export declare function resolveSemverSpecifierFromPrompt(selectionMessage: string, customVersionMessage: string): Promise<SemverBumpType | string>;
6
7
  //# sourceMappingURL=resolve-semver-specifier.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"resolve-semver-specifier.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/command-line/release/utils/resolve-semver-specifier.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAK5D,wBAAsB,6CAA6C,CACjE,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,MAAM,EAAE,EACtB,yBAAyB,EAAE,eAAe,CAAC,qBAAqB,CAAC,GAChE,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CASxB;AAED,wBAAsB,gCAAgC,CACpD,gBAAgB,EAAE,MAAM,EACxB,oBAAoB,EAAE,MAAM,GAC3B,OAAO,CAAC,cAAc,GAAG,MAAM,CAAC,CAwClC"}
1
+ {"version":3,"file":"resolve-semver-specifier.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/command-line/release/utils/resolve-semver-specifier.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,OAAO,EAAyB,eAAe,EAAE,MAAM,UAAU,CAAC;AAGlE,wBAAsB,6CAA6C,CACjE,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,MAAM,EAAE,EACtB,yBAAyB,EAAE,eAAe,CAAC,qBAAqB,CAAC,GAEnE,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,eAAe,GAAG,IAAI,CAAC,CAAC,CAS3C;AAED,wBAAsB,gCAAgC,CACpD,gBAAgB,EAAE,MAAM,EACxB,oBAAoB,EAAE,MAAM,GAC3B,OAAO,CAAC,cAAc,GAAG,MAAM,CAAC,CAwClC"}
@@ -5,16 +5,22 @@
5
5
  import { ReleaseType } from 'semver';
6
6
  import { NxReleaseConfig } from '../config/config';
7
7
  import { GitCommit } from './git';
8
+ export declare const enum SemverSpecifier {
9
+ MAJOR = 3,
10
+ MINOR = 2,
11
+ PATCH = 1
12
+ }
13
+ export declare const SemverSpecifierType: {
14
+ 3: string;
15
+ 2: string;
16
+ 1: string;
17
+ };
8
18
  export declare function isRelativeVersionKeyword(val: string): val is ReleaseType;
9
19
  export declare function isValidSemverSpecifier(specifier: string): boolean;
10
- /**
11
- * TODO: We would be able to make the logging for the conventional commits use-case
12
- * for fixed release groups more clear/precise if we passed through which project
13
- * the conventional commits were detected for.
14
- *
15
- * It would then flow up through deriveSpecifierFromConventionalCommits back to
16
- * ReleaseGroupProcessor.
17
- */
18
- export declare function determineSemverChange(commits: GitCommit[], config: NxReleaseConfig['conventionalCommits']): 'patch' | 'minor' | 'major' | null;
20
+ export declare function determineSemverChange(relevantCommits: Map<string, {
21
+ commit: GitCommit;
22
+ isProjectScopedCommit: boolean;
23
+ }[]>, // <projectName, commits>
24
+ config: NxReleaseConfig['conventionalCommits']): Map<string, SemverSpecifier | null>;
19
25
  export declare function deriveNewSemverVersion(currentSemverVersion: string, semverSpecifier: string, preid?: string): string;
20
26
  //# sourceMappingURL=semver.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"semver.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/command-line/release/utils/semver.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAiB,WAAW,EAAc,MAAM,QAAQ,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,IAAI,WAAW,CAExE;AAED,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAIjE;AAED;;;;;;;GAOG;AAEH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,SAAS,EAAE,EACpB,MAAM,EAAE,eAAe,CAAC,qBAAqB,CAAC,GAC7C,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,IAAI,CAgBpC;AAED,wBAAgB,sBAAsB,CACpC,oBAAoB,EAAE,MAAM,EAC5B,eAAe,EAAE,MAAM,EACvB,KAAK,CAAC,EAAE,MAAM,UA2Bf"}
1
+ {"version":3,"file":"semver.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/command-line/release/utils/semver.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAiB,WAAW,EAAc,MAAM,QAAQ,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,0BAAkB,eAAe;IAC/B,KAAK,IAAI;IACT,KAAK,IAAI;IACT,KAAK,IAAI;CACV;AAED,eAAO,MAAM,mBAAmB;;;;CAI/B,CAAC;AAEF,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,IAAI,WAAW,CAExE;AAED,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAIjE;AAGD,wBAAgB,qBAAqB,CACnC,eAAe,EAAE,GAAG,CAClB,MAAM,EACN;IAAE,MAAM,EAAE,SAAS,CAAC;IAAC,qBAAqB,EAAE,OAAO,CAAA;CAAE,EAAE,CACxD,EAAE,yBAAyB;AAC5B,MAAM,EAAE,eAAe,CAAC,qBAAqB,CAAC,GAC7C,GAAG,CAAC,MAAM,EAAE,eAAe,GAAG,IAAI,CAAC,CA0BrC;AAED,wBAAgB,sBAAsB,CACpC,oBAAoB,EAAE,MAAM,EAC5B,eAAe,EAAE,MAAM,EACvB,KAAK,CAAC,EAAE,MAAM,UA2Bf"}