@sentry/craft 3.11.0 → 3.11.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.
Files changed (2) hide show
  1. package/dist/craft +18 -7
  2. package/package.json +1 -1
package/dist/craft CHANGED
@@ -61025,24 +61025,28 @@ async function getDefaultBranch(git, remoteName) {
61025
61025
  );
61026
61026
  }
61027
61027
  async function getLatestTag(git, tagPrefix = "") {
61028
- return describeLatestTag(git, tagPrefix, []);
61028
+ return findLatestTag(git, tagPrefix, () => true);
61029
61029
  }
61030
61030
  async function getLatestStableTag(git, tagPrefix = "") {
61031
- return findLatestTag(git, tagPrefix, (tagVersion) => !tagVersion?.pre);
61031
+ return findLatestTag(git, tagPrefix, (tagVersion) => !tagVersion.pre);
61032
61032
  }
61033
61033
  async function getChangelogBaseTag(git, version2, tagPrefix = "") {
61034
61034
  const release3 = parseVersion(version2);
61035
61035
  return findLatestTag(
61036
61036
  git,
61037
61037
  tagPrefix,
61038
- (tagVersion) => !tagVersion?.pre || !!release3?.pre && tagVersion.major === release3.major && tagVersion.minor === release3.minor && tagVersion.patch === release3.patch
61038
+ (tagVersion) => !tagVersion.pre || !!release3?.pre && tagVersion.major === release3.major && tagVersion.minor === release3.minor && tagVersion.patch === release3.patch
61039
61039
  );
61040
61040
  }
61041
61041
  async function findLatestTag(git, tagPrefix, accept) {
61042
61042
  const skippedTags = [];
61043
61043
  for (; ; ) {
61044
61044
  const tag2 = await describeLatestTag(git, tagPrefix, skippedTags);
61045
- if (!tag2 || accept(parseVersion(tag2.slice(tagPrefix.length)))) {
61045
+ if (!tag2) {
61046
+ return tag2;
61047
+ }
61048
+ const tagVersion = parseVersion(tag2.slice(tagPrefix.length));
61049
+ if (tagVersion && accept(tagVersion)) {
61046
61050
  return tag2;
61047
61051
  }
61048
61052
  skippedTags.push(tag2);
@@ -123629,7 +123633,8 @@ _This changelog has been truncated. See the [full changelog](${permalink}) for a
123629
123633
  * Creates or updates floating tags for the release.
123630
123634
  *
123631
123635
  * Floating tags (like "v2") point to the latest release in a major version line.
123632
- * They are force-updated if they already exist.
123636
+ * They are force-updated if they already exist. Prereleases leave them
123637
+ * unchanged, so users pinned to a floating tag only get stable releases.
123633
123638
  *
123634
123639
  * @param version The version being released
123635
123640
  * @param revision Git commit SHA to point the tags to
@@ -123646,6 +123651,12 @@ _This changelog has been truncated. See the [full changelog](${permalink}) for a
123646
123651
  );
123647
123652
  return;
123648
123653
  }
123654
+ if (parsedVersion.pre) {
123655
+ this.logger.info(
123656
+ `Not updating floating tags because "${version2}" is a prerelease.`
123657
+ );
123658
+ return;
123659
+ }
123649
123660
  for (const pattern of floatingTags) {
123650
123661
  const tag2 = this.resolveFloatingTag(pattern, parsedVersion);
123651
123662
  const tagRef = `refs/tags/${tag2}`;
@@ -230887,7 +230898,7 @@ var require_package7 = __commonJS({
230887
230898
  "package.json"(exports2, module2) {
230888
230899
  module2.exports = {
230889
230900
  name: "@sentry/craft",
230890
- version: "3.11.0",
230901
+ version: "3.11.1",
230891
230902
  description: "The universal sentry workflow CLI",
230892
230903
  main: "dist/craft",
230893
230904
  repository: "https://github.com/getsentry/craft",
@@ -231095,7 +231106,7 @@ function getPackage() {
231095
231106
  }
231096
231107
  function getPackageVersion3() {
231097
231108
  const { version: version2 } = getPackage();
231098
- const buildInfo = "68615816cdad571fdc24b7d35f45238c835affc2";
231109
+ const buildInfo = "866c07c3c690f0177fa94f340d24f9bc8f166936";
231099
231110
  return buildInfo ? `${version2} (${buildInfo})` : version2;
231100
231111
  }
231101
231112
  function semVerToString(s8) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/craft",
3
- "version": "3.11.0",
3
+ "version": "3.11.1",
4
4
  "description": "The universal sentry workflow CLI",
5
5
  "main": "dist/craft",
6
6
  "repository": "https://github.com/getsentry/craft",