-
Notifications
You must be signed in to change notification settings - Fork 84
@aws-amplify/backend
should inherit version bump of same kind from dependencies
#2042
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This reverts commit 65c6794.
|
// eslint-disable-next-line import/no-extraneous-dependencies | ||
import { ReleasePlan } from '@changesets/types'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should just add this package as dev dep.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
} | ||
} | ||
} | ||
const versionTypeConverter = (version: VersionType): VersionTypeEnum => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const versionTypeConverter = (version: VersionType): VersionTypeEnum => { | |
const convertVersionType = (version: VersionType): VersionTypeEnum => { |
function name should be verb-ish.
maxVersion( | ||
backendAuthVersion, | ||
backendDataVersion, | ||
backendFunctionVersion, | ||
backendStorageVersion | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maxVersion( | |
backendAuthVersion, | |
backendDataVersion, | |
backendFunctionVersion, | |
backendStorageVersion | |
) | |
Math.max( | |
backendAuthVersion, | |
backendDataVersion, | |
backendFunctionVersion, | |
backendStorageVersion | |
) |
would this just work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, the function is unnecessary
Problem
@aws-amplify/backend
sometimes does not properly inherit the right kind of version bump from its dependencies.Issue number, if available: #1693
Changes
check_changeset_completeness.ts
to be split into functionscheck_changeset_completeness.ts
that check whether backend should be inheriting a version bump and whether it is currently inheriting the right kind of version bumpCorresponding docs PR, if applicable:
Validation
backend
and its dependenciesbackend: none
, dependencies have version bump ofminor
backend: minor
, dependencies areminor
ornone
backend: patch
, dependencies areminor
orpatch
backend: patch
, no dependency versionsbackend: minor
, one dependency ismajor
Checklist
run-e2e
label set.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.