Skip to content

chore(angular-ivy): Add release registry config for @sentry/angular-ivy#7303

Merged
Lms24 merged 3 commits intodevelopfrom
lms/angular-ivy-craft
Mar 1, 2023
Merged

chore(angular-ivy): Add release registry config for @sentry/angular-ivy#7303
Lms24 merged 3 commits intodevelopfrom
lms/angular-ivy-craft

Conversation

@Lms24
Copy link
Copy Markdown
Member

@Lms24 Lms24 commented Mar 1, 2023

This adds automatic release registry updates for the new Ivy compatible Angular SDK

still sort of ref #7265

@Lms24 Lms24 force-pushed the lms/angular-ivy-craft branch from 2902341 to fd45178 Compare March 1, 2023 08:37
@Lms24 Lms24 requested review from lforst and mydea March 1, 2023 08:40
.craft.yml Outdated
'npm:@sentry/gatsby':
onlyIfPresent: /^sentry-gatsby-.*\.tgz$/
'npm:@sentry/angular-ivy':
onlyIfPresent: /^sentry-angular-ivy.*\.tgz$/
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a - missing at the end?
also any chance the angular one might be matching this one?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks f69929c

onlyIfPresent: /^sentry-angular-ivy-.*\.tgz$/
'npm:@sentry/angular':
onlyIfPresent: /^sentry-angular-.*\.tgz$/
onlyIfPresent: /^sentry-angular-\d.*\.tgz$/
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this would be a bit more explicit:

/^sentry-angular-(?!ivy-).*\.tgz$/

Copy link
Copy Markdown
Member Author

@Lms24 Lms24 Mar 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm not sure, this would actually be safer than the \d regex. Cause theoretically (not saying this happens but nevertheless) sentry-angular-somethingotherthanivy-7.39.0.tgz would be matched by this regex.

Anyway, I think we're safe with the two current regexes so I'd keep it this way

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean, yeah, sure, but that also applies to any other package regex we have :D

Maybe it would be better for consistency to then update all regexes to have the \d part? My main concern is that it may be unclear in the future why this is slightly different then the others, you copy-paste one of them (which one?) etc.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated all other packages a54a553

@Lms24 Lms24 self-assigned this Mar 1, 2023
@Lms24 Lms24 added the Package: angular Issues related to the Sentry Angular SDK label Mar 1, 2023
@Lms24 Lms24 merged commit 61405d4 into develop Mar 1, 2023
@Lms24 Lms24 deleted the lms/angular-ivy-craft branch March 1, 2023 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Package: angular Issues related to the Sentry Angular SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants