Skip to content

Commit 3ebe982

Browse files
mcmirecryptodev-2s
andauthored
Add way to view pkg changes since latest release (#1390)
## Description <!-- Thanks for your contribution! Take a moment to answer these questions so that reviewers have the information they need to properly understand your changes: * What is the current state of things and why does it need to change? * What is the solution your changes offer and how does it work? * What packages are you updating? * Are you introducing a breaking change to a package (renaming or removing a part of a public interface)? --> When creating a new release, it can be helpful to be able to view the changes that have been made to a package since its most recent release. This commit adds a package script, `since-latest-release`, which can be used to accomplish this. This script is simply a shortcut for a commit range, so you can plug any Git command that takes a commit range into it. For instance, to view the list of latest commits for `@metamask/assets-controllers`, you can use `log`: yarn workspace @metamask/accounts-controller run since-latest-release log Or to view all changes, you can use `diff`: yarn workspace @metamask/accounts-controller run since-latest-release diff Or you can leave an argument off to just get the names of commits: yarn workspace @metamask/accounts-controller run since-latest-release ## Testing Try running the command above, using a package that has new changes. Try to break it. ## Changes <!-- Pretend that you're updating a changelog. How would you categorize your changes? CATEGORY is one of: - BREAKING - ADDED - CHANGED - DEPRECATED - REMOVED - FIXED (Security-related changes should go through the Security Advisory process.) --> (No user-facing changes; this is a developer-only change.) ## References <!-- Are there any issues or other links that reviewers should consult to understand this pull request better? For instance: * Fixes #12345 * See: #67890 --> ## Checklist - [x] I've updated the test suite for new or updated code as appropriate - [x] I've updated documentation for new or updated code as appropriate (note: this will usually be JSDoc) - [x] I've highlighted breaking changes using the "BREAKING" category above as appropriate --------- Co-authored-by: Salah-Eddine Saakoun <salah-eddine.saakoun@consensys.net> Co-authored-by: cryptodev-2s <109512101+cryptodev-2s@users.noreply.github.com>
1 parent c6f7e02 commit 3ebe982

File tree

36 files changed

+186
-0
lines changed

36 files changed

+186
-0
lines changed

packages/accounts-controller/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"changelog:update": "../../scripts/update-changelog.sh @metamask/accounts-controller",
3636
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/accounts-controller",
3737
"publish:preview": "yarn npm publish --tag preview",
38+
"since-latest-release": "../../scripts/since-latest-release.sh",
3839
"test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter",
3940
"test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache",
4041
"test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose",

packages/address-book-controller/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"changelog:update": "../../scripts/update-changelog.sh @metamask/address-book-controller",
3636
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/address-book-controller",
3737
"publish:preview": "yarn npm publish --tag preview",
38+
"since-latest-release": "../../scripts/since-latest-release.sh",
3839
"test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter",
3940
"test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache",
4041
"test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose",

packages/announcement-controller/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"changelog:update": "../../scripts/update-changelog.sh @metamask/announcement-controller",
3636
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/announcement-controller",
3737
"publish:preview": "yarn npm publish --tag preview",
38+
"since-latest-release": "../../scripts/since-latest-release.sh",
3839
"test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter",
3940
"test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache",
4041
"test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose",

packages/approval-controller/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"changelog:update": "../../scripts/update-changelog.sh @metamask/approval-controller",
3636
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/approval-controller",
3737
"publish:preview": "yarn npm publish --tag preview",
38+
"since-latest-release": "../../scripts/since-latest-release.sh",
3839
"test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter",
3940
"test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache",
4041
"test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose",

packages/assets-controllers/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"changelog:update": "../../scripts/update-changelog.sh @metamask/assets-controllers",
3636
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/assets-controllers",
3737
"publish:preview": "yarn npm publish --tag preview",
38+
"since-latest-release": "../../scripts/since-latest-release.sh",
3839
"test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter",
3940
"test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache",
4041
"test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose",

packages/base-controller/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"changelog:update": "../../scripts/update-changelog.sh @metamask/base-controller",
3535
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/base-controller",
3636
"publish:preview": "yarn npm publish --tag preview",
37+
"since-latest-release": "../../scripts/since-latest-release.sh",
3738
"test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter",
3839
"test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache",
3940
"test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose",

packages/build-utils/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"changelog:update": "../../scripts/update-changelog.sh @metamask/build-utils",
3636
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/build-utils",
3737
"publish:preview": "yarn npm publish --tag preview",
38+
"since-latest-release": "../../scripts/since-latest-release.sh",
3839
"test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter",
3940
"test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache",
4041
"test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose",

packages/chain-controller/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"changelog:update": "../../scripts/update-changelog.sh @metamask/chain-controller",
3636
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/chain-controller",
3737
"publish:preview": "yarn npm publish --tag preview",
38+
"since-latest-release": "../../scripts/since-latest-release.sh",
3839
"test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter",
3940
"test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache",
4041
"test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose",

packages/composable-controller/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"changelog:update": "../../scripts/update-changelog.sh @metamask/composable-controller",
3636
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/composable-controller",
3737
"publish:preview": "yarn npm publish --tag preview",
38+
"since-latest-release": "../../scripts/since-latest-release.sh",
3839
"test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter",
3940
"test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache",
4041
"test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose",

packages/controller-utils/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"changelog:update": "../../scripts/update-changelog.sh @metamask/controller-utils",
3636
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/controller-utils",
3737
"publish:preview": "yarn npm publish --tag preview",
38+
"since-latest-release": "../../scripts/since-latest-release.sh",
3839
"test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter",
3940
"test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache",
4041
"test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose",

0 commit comments

Comments
 (0)