relizy 1.5.0-beta.0 → 1.5.0-beta.1

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/dist/cli.mjs CHANGED
@@ -5,7 +5,7 @@ import process from 'node:process';
5
5
  import { fileURLToPath } from 'node:url';
6
6
  import { printBanner, logger } from '@maz-ui/node';
7
7
  import { Command } from 'commander';
8
- import { aD as isInCI, aE as getCIName, b as bump, c as changelog, g as publish, e as providerRelease, h as social, p as prComment, r as release } from './shared/relizy.Bpfgbc-1.mjs';
8
+ import { aD as isInCI, aE as getCIName, b as bump, c as changelog, g as publish, e as providerRelease, h as social, p as prComment, r as release } from './shared/relizy.wrrRuBuo.mjs';
9
9
  import 'node:child_process';
10
10
  import '@maz-ui/utils/helpers/formatJson';
11
11
  import 'c12';
package/dist/index.d.mts CHANGED
@@ -347,6 +347,12 @@ declare function getPackagesToPublishInIndependentMode(sortedPackages: PackageBa
347
347
  * list to publish isn't known yet - prefer `resolveRegistryTargetsForPackages`
348
348
  * once it is, so a registry scoped to packages outside this release doesn't
349
349
  * needlessly block it.
350
+ *
351
+ * When no default `registry` is configured but explicit `registries` are, the
352
+ * legacy target degrades to an empty URL that would target the ambient
353
+ * `.npmrc` registry with no managed auth. It is a phantom in that case and is
354
+ * excluded, so a config that lists every registry explicitly does not
355
+ * authenticate against a bogus empty registry.
350
356
  */
351
357
  declare function resolveAllConfiguredRegistryTargets(config: ResolvedRelizyConfig): RegistryTarget[];
352
358
  /**
@@ -355,9 +361,15 @@ declare function resolveAllConfiguredRegistryTargets(config: ResolvedRelizyConfi
355
361
  * `packageFilter` (mirrored to all packages) or whose `packageFilter` glob
356
362
  * patterns match the package name.
357
363
  *
358
- * If any applicable entry is marked `exclusive`, the legacy/default registry
359
- * is skipped for this package - it is published only to the matching
360
- * registries instead of mirroring on top of the default one.
364
+ * The legacy/default registry is skipped for this package when either:
365
+ * - an applicable entry is marked `exclusive` - the package is published only
366
+ * to the matching registries instead of mirroring on top of the default one;
367
+ * - no default `registry` is configured yet the package already has at least
368
+ * one applicable explicit registry. Without a default, the legacy target
369
+ * degrades to an empty URL that would publish to the ambient `.npmrc`
370
+ * registry with no managed auth, so it is a phantom once real targets exist.
371
+ * When nothing else covers the package, the empty legacy target is kept as
372
+ * the historical `.npmrc` fallback.
361
373
  */
362
374
  declare function resolveRegistryTargetsForPackage(pkg: PackageBase, config: ResolvedRelizyConfig): RegistryTarget[];
363
375
  /**
package/dist/index.d.ts CHANGED
@@ -347,6 +347,12 @@ declare function getPackagesToPublishInIndependentMode(sortedPackages: PackageBa
347
347
  * list to publish isn't known yet - prefer `resolveRegistryTargetsForPackages`
348
348
  * once it is, so a registry scoped to packages outside this release doesn't
349
349
  * needlessly block it.
350
+ *
351
+ * When no default `registry` is configured but explicit `registries` are, the
352
+ * legacy target degrades to an empty URL that would target the ambient
353
+ * `.npmrc` registry with no managed auth. It is a phantom in that case and is
354
+ * excluded, so a config that lists every registry explicitly does not
355
+ * authenticate against a bogus empty registry.
350
356
  */
351
357
  declare function resolveAllConfiguredRegistryTargets(config: ResolvedRelizyConfig): RegistryTarget[];
352
358
  /**
@@ -355,9 +361,15 @@ declare function resolveAllConfiguredRegistryTargets(config: ResolvedRelizyConfi
355
361
  * `packageFilter` (mirrored to all packages) or whose `packageFilter` glob
356
362
  * patterns match the package name.
357
363
  *
358
- * If any applicable entry is marked `exclusive`, the legacy/default registry
359
- * is skipped for this package - it is published only to the matching
360
- * registries instead of mirroring on top of the default one.
364
+ * The legacy/default registry is skipped for this package when either:
365
+ * - an applicable entry is marked `exclusive` - the package is published only
366
+ * to the matching registries instead of mirroring on top of the default one;
367
+ * - no default `registry` is configured yet the package already has at least
368
+ * one applicable explicit registry. Without a default, the legacy target
369
+ * degrades to an empty URL that would publish to the ambient `.npmrc`
370
+ * registry with no managed auth, so it is a phantom once real targets exist.
371
+ * When nothing else covers the package, the empty legacy target is kept as
372
+ * the historical `.npmrc` fallback.
361
373
  */
362
374
  declare function resolveRegistryTargetsForPackage(pkg: PackageBase, config: ResolvedRelizyConfig): RegistryTarget[];
363
375
  /**
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { ax as NEW_PACKAGE_MARKER, a9 as PR_COMMENT_MARKER, S as buildChangelogBody, a as buildCommentBody, R as buildCompareLink, U as buildContributors, b as bump, aL as capReleaseTypeForZeroMajor, c as changelog, v as checkGitStatusIfDirty, T as collectContributorNames, a5 as collectPackageBumps, aZ as confirmBump, B as createCommitAndTags, P as createGitlabRelease, k as defineConfig, y as detectGitProvider, Y as detectPackageManager, a8 as detectPullRequest, Z as determinePublishTag, aN as determineReleaseType, aM as determineSemverChange, aG as executeBuildCmd, aF as executeFormatCmd, aC as executeHook, q as expandPackagesToBumpWithDependents, aq as extractChangelogSummary, aR as extractVersionFromPackageTag, b0 as extractVersionFromTag, x as fetchGitTags, aI as filterOutPrivatePackages, a6 as findGitHubPR, a7 as findGitLabMR, K as findReachableCommitBySubject, am as formatChangelogForSlack, an as formatPackagesForSlack, ao as formatSlackMessage, aA as formatTweetMessage, i as generateChangelog, V as generateMarkDown, a3 as getAuthCommand, a_ as getBumpedIndependentPackages, aY as getBumpedPackageIndependently, aE as getCIName, b1 as getCanaryVersion, J as getCommitSubject, F as getCurrentGitBranch, G as getCurrentGitRef, j as getDefaultConfig, o as getDependentsOf, E as getFirstCommit, u as getGitStatus, as as getIndependentTag, aw as getLastPackageTag, av as getLastRepoTag, at as getLastStableTag, au as getLastTag, A as getModifiedReleaseFilePatterns, X as getNpmRegistry, ag as getPackageCommits, n as getPackageDependencies, aP as getPackageNewVersion, af as getPackages, aJ as getPackagesOrBumpedPackages, $ as getPackagesToPublishInIndependentMode, _ as getPackagesToPublishInSelectiveMode, aW as getPreid, ar as getReleaseUrl, ad as getRootPackage, H as getShortCommitSha, ak as getSlackToken, al as getSlackWebhookUrl, az as getTwitterCredentials, O as github, Q as gitlab, ah as hasLernaJson, I as isAncestor, aH as isBumpedPackage, aX as isChangedPreid, aV as isGraduating, aK as isGraduatingToStableBetweenVersion, aD as isInCI, aS as isPrerelease, aU as isPrereleaseReleaseType, aT as isStableReleaseType, b2 as isTagVersionCompatibleWithCurrent, l as loadRelizyConfig, m as mergeTypes, W as parseChangelogMarkdown, z as parseGitRemoteUrl, aa as postPrComment, ap as postReleaseToSlack, aB as postReleaseToTwitter, p as prComment, e as providerRelease, d as providerReleaseSafetyCheck, g as publish, a4 as publishPackage, f as publishSafetyCheck, C as pushCommitAndTags, N as pushTagForce, ac as readPackageJson, ae as readPackages, aj as reconcileFromTag, ab as redactSecrets, r as release, ai as resetRewrittenTagCache, a0 as resolveAllConfiguredRegistryTargets, a1 as resolveRegistryTargetsForPackage, a2 as resolveRegistryTargetsForPackages, ay as resolveTags, M as retagAnnotatedLocal, D as rollbackModifiedFiles, a$ as shouldFilterPrereleaseTags, h as social, s as socialSafetyCheck, L as tagExists, t as topologicalSort, aQ as updateLernaVersion, w as writeChangelogToFile, aO as writeVersion } from './shared/relizy.Bpfgbc-1.mjs';
1
+ export { ax as NEW_PACKAGE_MARKER, a9 as PR_COMMENT_MARKER, S as buildChangelogBody, a as buildCommentBody, R as buildCompareLink, U as buildContributors, b as bump, aL as capReleaseTypeForZeroMajor, c as changelog, v as checkGitStatusIfDirty, T as collectContributorNames, a5 as collectPackageBumps, aZ as confirmBump, B as createCommitAndTags, P as createGitlabRelease, k as defineConfig, y as detectGitProvider, Y as detectPackageManager, a8 as detectPullRequest, Z as determinePublishTag, aN as determineReleaseType, aM as determineSemverChange, aG as executeBuildCmd, aF as executeFormatCmd, aC as executeHook, q as expandPackagesToBumpWithDependents, aq as extractChangelogSummary, aR as extractVersionFromPackageTag, b0 as extractVersionFromTag, x as fetchGitTags, aI as filterOutPrivatePackages, a6 as findGitHubPR, a7 as findGitLabMR, K as findReachableCommitBySubject, am as formatChangelogForSlack, an as formatPackagesForSlack, ao as formatSlackMessage, aA as formatTweetMessage, i as generateChangelog, V as generateMarkDown, a3 as getAuthCommand, a_ as getBumpedIndependentPackages, aY as getBumpedPackageIndependently, aE as getCIName, b1 as getCanaryVersion, J as getCommitSubject, F as getCurrentGitBranch, G as getCurrentGitRef, j as getDefaultConfig, o as getDependentsOf, E as getFirstCommit, u as getGitStatus, as as getIndependentTag, aw as getLastPackageTag, av as getLastRepoTag, at as getLastStableTag, au as getLastTag, A as getModifiedReleaseFilePatterns, X as getNpmRegistry, ag as getPackageCommits, n as getPackageDependencies, aP as getPackageNewVersion, af as getPackages, aJ as getPackagesOrBumpedPackages, $ as getPackagesToPublishInIndependentMode, _ as getPackagesToPublishInSelectiveMode, aW as getPreid, ar as getReleaseUrl, ad as getRootPackage, H as getShortCommitSha, ak as getSlackToken, al as getSlackWebhookUrl, az as getTwitterCredentials, O as github, Q as gitlab, ah as hasLernaJson, I as isAncestor, aH as isBumpedPackage, aX as isChangedPreid, aV as isGraduating, aK as isGraduatingToStableBetweenVersion, aD as isInCI, aS as isPrerelease, aU as isPrereleaseReleaseType, aT as isStableReleaseType, b2 as isTagVersionCompatibleWithCurrent, l as loadRelizyConfig, m as mergeTypes, W as parseChangelogMarkdown, z as parseGitRemoteUrl, aa as postPrComment, ap as postReleaseToSlack, aB as postReleaseToTwitter, p as prComment, e as providerRelease, d as providerReleaseSafetyCheck, g as publish, a4 as publishPackage, f as publishSafetyCheck, C as pushCommitAndTags, N as pushTagForce, ac as readPackageJson, ae as readPackages, aj as reconcileFromTag, ab as redactSecrets, r as release, ai as resetRewrittenTagCache, a0 as resolveAllConfiguredRegistryTargets, a1 as resolveRegistryTargetsForPackage, a2 as resolveRegistryTargetsForPackages, ay as resolveTags, M as retagAnnotatedLocal, D as rollbackModifiedFiles, a$ as shouldFilterPrereleaseTags, h as social, s as socialSafetyCheck, L as tagExists, t as topologicalSort, aQ as updateLernaVersion, w as writeChangelogToFile, aO as writeVersion } from './shared/relizy.wrrRuBuo.mjs';
2
2
  import '@maz-ui/node';
3
3
  import 'node:child_process';
4
4
  import 'node:process';
@@ -1937,7 +1937,11 @@ function dedupRegistryTargets(targets) {
1937
1937
  function resolveAllConfiguredRegistryTargets(config) {
1938
1938
  const legacyTarget = buildLegacyRegistryTarget(config);
1939
1939
  const explicitTargets = config.publish.registries ?? [];
1940
- return dedupRegistryTargets([legacyTarget, ...explicitTargets]);
1940
+ const skipEmptyDefault = !config.publish.registry && explicitTargets.length > 0;
1941
+ return dedupRegistryTargets([
1942
+ ...skipEmptyDefault ? [] : [legacyTarget],
1943
+ ...explicitTargets
1944
+ ]);
1941
1945
  }
1942
1946
  function resolveRegistryTargetsForPackage(pkg, config) {
1943
1947
  const legacyTarget = buildLegacyRegistryTarget(config);
@@ -1945,9 +1949,10 @@ function resolveRegistryTargetsForPackage(pkg, config) {
1945
1949
  const applicableTargets = explicitTargets.filter(
1946
1950
  (target) => !target.packageFilter?.length || micromatch.isMatch(pkg.name, target.packageFilter)
1947
1951
  );
1948
- const skipDefaultRegistry = applicableTargets.some((target) => target.exclusive);
1952
+ const skipForExclusive = applicableTargets.some((target) => target.exclusive);
1953
+ const skipEmptyDefault = !config.publish.registry && applicableTargets.length > 0;
1949
1954
  return dedupRegistryTargets([
1950
- ...skipDefaultRegistry ? [] : [legacyTarget],
1955
+ ...skipForExclusive || skipEmptyDefault ? [] : [legacyTarget],
1951
1956
  ...applicableTargets
1952
1957
  ]);
1953
1958
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "relizy",
3
3
  "type": "module",
4
- "version": "1.5.0-beta.0",
4
+ "version": "1.5.0-beta.1",
5
5
  "description": "Changelogen adapter for monorepo management with unified and independent versioning",
6
6
  "author": "Louis Mazel <me@loicmazuel.com>",
7
7
  "license": "MIT",