From 3ebe982c9a99ed29813a0c285158844418c9d249 Mon Sep 17 00:00:00 2001 From: Elliot Winkler Date: Wed, 21 Aug 2024 07:22:28 -0600 Subject: [PATCH] Add way to view pkg changes since latest release (#1390) ## Description 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 (No user-facing changes; this is a developer-only change.) ## References ## 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 Co-authored-by: cryptodev-2s <109512101+cryptodev-2s@users.noreply.github.com> --- packages/accounts-controller/package.json | 1 + packages/address-book-controller/package.json | 1 + packages/announcement-controller/package.json | 1 + packages/approval-controller/package.json | 1 + packages/assets-controllers/package.json | 1 + packages/base-controller/package.json | 1 + packages/build-utils/package.json | 1 + packages/chain-controller/package.json | 1 + packages/composable-controller/package.json | 1 + packages/controller-utils/package.json | 1 + packages/ens-controller/package.json | 1 + packages/eth-json-rpc-provider/package.json | 1 + packages/gas-fee-controller/package.json | 1 + packages/json-rpc-engine/package.json | 1 + .../json-rpc-middleware-stream/package.json | 1 + packages/keyring-controller/package.json | 1 + packages/logging-controller/package.json | 1 + packages/message-manager/package.json | 1 + packages/name-controller/package.json | 1 + packages/network-controller/package.json | 1 + packages/notification-controller/package.json | 1 + .../package.json | 1 + packages/permission-controller/package.json | 1 + .../permission-log-controller/package.json | 1 + packages/phishing-controller/package.json | 1 + packages/polling-controller/package.json | 1 + packages/preferences-controller/package.json | 1 + packages/profile-sync-controller/package.json | 1 + .../queued-request-controller/package.json | 1 + packages/rate-limit-controller/package.json | 1 + .../selected-network-controller/package.json | 1 + packages/signature-controller/package.json | 1 + packages/transaction-controller/package.json | 1 + .../user-operation-controller/package.json | 1 + scripts/since-latest-release.sh | 145 ++++++++++++++++++ yarn.config.cjs | 7 + 36 files changed, 186 insertions(+) create mode 100755 scripts/since-latest-release.sh diff --git a/packages/accounts-controller/package.json b/packages/accounts-controller/package.json index d50b934366..7e24a4116a 100644 --- a/packages/accounts-controller/package.json +++ b/packages/accounts-controller/package.json @@ -35,6 +35,7 @@ "changelog:update": "../../scripts/update-changelog.sh @metamask/accounts-controller", "changelog:validate": "../../scripts/validate-changelog.sh @metamask/accounts-controller", "publish:preview": "yarn npm publish --tag preview", + "since-latest-release": "../../scripts/since-latest-release.sh", "test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter", "test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache", "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose", diff --git a/packages/address-book-controller/package.json b/packages/address-book-controller/package.json index ef0727c2b6..813d7c9598 100644 --- a/packages/address-book-controller/package.json +++ b/packages/address-book-controller/package.json @@ -35,6 +35,7 @@ "changelog:update": "../../scripts/update-changelog.sh @metamask/address-book-controller", "changelog:validate": "../../scripts/validate-changelog.sh @metamask/address-book-controller", "publish:preview": "yarn npm publish --tag preview", + "since-latest-release": "../../scripts/since-latest-release.sh", "test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter", "test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache", "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose", diff --git a/packages/announcement-controller/package.json b/packages/announcement-controller/package.json index dd39b2ee33..5b59c0f0a0 100644 --- a/packages/announcement-controller/package.json +++ b/packages/announcement-controller/package.json @@ -35,6 +35,7 @@ "changelog:update": "../../scripts/update-changelog.sh @metamask/announcement-controller", "changelog:validate": "../../scripts/validate-changelog.sh @metamask/announcement-controller", "publish:preview": "yarn npm publish --tag preview", + "since-latest-release": "../../scripts/since-latest-release.sh", "test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter", "test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache", "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose", diff --git a/packages/approval-controller/package.json b/packages/approval-controller/package.json index 0accefa819..5982f794f6 100644 --- a/packages/approval-controller/package.json +++ b/packages/approval-controller/package.json @@ -35,6 +35,7 @@ "changelog:update": "../../scripts/update-changelog.sh @metamask/approval-controller", "changelog:validate": "../../scripts/validate-changelog.sh @metamask/approval-controller", "publish:preview": "yarn npm publish --tag preview", + "since-latest-release": "../../scripts/since-latest-release.sh", "test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter", "test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache", "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose", diff --git a/packages/assets-controllers/package.json b/packages/assets-controllers/package.json index 1682b07959..b323c1ebf0 100644 --- a/packages/assets-controllers/package.json +++ b/packages/assets-controllers/package.json @@ -35,6 +35,7 @@ "changelog:update": "../../scripts/update-changelog.sh @metamask/assets-controllers", "changelog:validate": "../../scripts/validate-changelog.sh @metamask/assets-controllers", "publish:preview": "yarn npm publish --tag preview", + "since-latest-release": "../../scripts/since-latest-release.sh", "test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter", "test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache", "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose", diff --git a/packages/base-controller/package.json b/packages/base-controller/package.json index 1a5bc1691a..d1e57c1f65 100644 --- a/packages/base-controller/package.json +++ b/packages/base-controller/package.json @@ -34,6 +34,7 @@ "changelog:update": "../../scripts/update-changelog.sh @metamask/base-controller", "changelog:validate": "../../scripts/validate-changelog.sh @metamask/base-controller", "publish:preview": "yarn npm publish --tag preview", + "since-latest-release": "../../scripts/since-latest-release.sh", "test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter", "test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache", "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose", diff --git a/packages/build-utils/package.json b/packages/build-utils/package.json index 971fcbaf9d..57d02e1aca 100644 --- a/packages/build-utils/package.json +++ b/packages/build-utils/package.json @@ -35,6 +35,7 @@ "changelog:update": "../../scripts/update-changelog.sh @metamask/build-utils", "changelog:validate": "../../scripts/validate-changelog.sh @metamask/build-utils", "publish:preview": "yarn npm publish --tag preview", + "since-latest-release": "../../scripts/since-latest-release.sh", "test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter", "test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache", "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose", diff --git a/packages/chain-controller/package.json b/packages/chain-controller/package.json index d12dfb872f..bc50198496 100644 --- a/packages/chain-controller/package.json +++ b/packages/chain-controller/package.json @@ -35,6 +35,7 @@ "changelog:update": "../../scripts/update-changelog.sh @metamask/chain-controller", "changelog:validate": "../../scripts/validate-changelog.sh @metamask/chain-controller", "publish:preview": "yarn npm publish --tag preview", + "since-latest-release": "../../scripts/since-latest-release.sh", "test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter", "test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache", "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose", diff --git a/packages/composable-controller/package.json b/packages/composable-controller/package.json index a3300c2113..58ece0820f 100644 --- a/packages/composable-controller/package.json +++ b/packages/composable-controller/package.json @@ -35,6 +35,7 @@ "changelog:update": "../../scripts/update-changelog.sh @metamask/composable-controller", "changelog:validate": "../../scripts/validate-changelog.sh @metamask/composable-controller", "publish:preview": "yarn npm publish --tag preview", + "since-latest-release": "../../scripts/since-latest-release.sh", "test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter", "test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache", "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose", diff --git a/packages/controller-utils/package.json b/packages/controller-utils/package.json index 3ebc886bcc..7d0489499c 100644 --- a/packages/controller-utils/package.json +++ b/packages/controller-utils/package.json @@ -35,6 +35,7 @@ "changelog:update": "../../scripts/update-changelog.sh @metamask/controller-utils", "changelog:validate": "../../scripts/validate-changelog.sh @metamask/controller-utils", "publish:preview": "yarn npm publish --tag preview", + "since-latest-release": "../../scripts/since-latest-release.sh", "test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter", "test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache", "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose", diff --git a/packages/ens-controller/package.json b/packages/ens-controller/package.json index 25d2eb38ce..5362b15adb 100644 --- a/packages/ens-controller/package.json +++ b/packages/ens-controller/package.json @@ -35,6 +35,7 @@ "changelog:update": "../../scripts/update-changelog.sh @metamask/ens-controller", "changelog:validate": "../../scripts/validate-changelog.sh @metamask/ens-controller", "publish:preview": "yarn npm publish --tag preview", + "since-latest-release": "../../scripts/since-latest-release.sh", "test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter", "test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache", "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose", diff --git a/packages/eth-json-rpc-provider/package.json b/packages/eth-json-rpc-provider/package.json index 71b82bd166..4299234253 100644 --- a/packages/eth-json-rpc-provider/package.json +++ b/packages/eth-json-rpc-provider/package.json @@ -40,6 +40,7 @@ "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write && yarn lint:dependencies", "lint:misc": "prettier '**/*.json' '**/*.md' '!CHANGELOG.md' '**/*.yml' '!.yarnrc.yml' --ignore-path .gitignore --no-error-on-unmatched-pattern", "publish:preview": "yarn npm publish --tag preview", + "since-latest-release": "../../scripts/since-latest-release.sh", "test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter", "test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache", "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose", diff --git a/packages/gas-fee-controller/package.json b/packages/gas-fee-controller/package.json index 23de73d0ff..a4c1941e14 100644 --- a/packages/gas-fee-controller/package.json +++ b/packages/gas-fee-controller/package.json @@ -35,6 +35,7 @@ "changelog:update": "../../scripts/update-changelog.sh @metamask/gas-fee-controller", "changelog:validate": "../../scripts/validate-changelog.sh @metamask/gas-fee-controller", "publish:preview": "yarn npm publish --tag preview", + "since-latest-release": "../../scripts/since-latest-release.sh", "test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter", "test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache", "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose", diff --git a/packages/json-rpc-engine/package.json b/packages/json-rpc-engine/package.json index 50e48f9c10..4b8b148481 100644 --- a/packages/json-rpc-engine/package.json +++ b/packages/json-rpc-engine/package.json @@ -44,6 +44,7 @@ "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write && yarn lint:dependencies && yarn lint:changelog", "lint:misc": "prettier '**/*.json' '**/*.md' '!CHANGELOG.md' '**/*.yml' '!.yarnrc.yml' --ignore-path .gitignore --no-error-on-unmatched-pattern", "publish:preview": "yarn npm publish --tag preview", + "since-latest-release": "../../scripts/since-latest-release.sh", "test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter", "test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache", "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose", diff --git a/packages/json-rpc-middleware-stream/package.json b/packages/json-rpc-middleware-stream/package.json index 66671311ce..8be3470b15 100644 --- a/packages/json-rpc-middleware-stream/package.json +++ b/packages/json-rpc-middleware-stream/package.json @@ -35,6 +35,7 @@ "changelog:update": "../../scripts/update-changelog.sh @metamask/json-rpc-middleware-stream --tag-prefix-before-package-rename json-rpc-middleware-stream@ --version-before-package-rename 5.0.1", "changelog:validate": "../../scripts/validate-changelog.sh @metamask/json-rpc-middleware-stream --tag-prefix-before-package-rename json-rpc-middleware-stream@ --version-before-package-rename 5.0.1", "publish:preview": "yarn npm publish --tag preview", + "since-latest-release": "../../scripts/since-latest-release.sh", "test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter", "test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache", "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose", diff --git a/packages/keyring-controller/package.json b/packages/keyring-controller/package.json index 7438f64ec4..206f0e87a4 100644 --- a/packages/keyring-controller/package.json +++ b/packages/keyring-controller/package.json @@ -35,6 +35,7 @@ "changelog:update": "../../scripts/update-changelog.sh @metamask/keyring-controller", "changelog:validate": "../../scripts/validate-changelog.sh @metamask/keyring-controller", "publish:preview": "yarn npm publish --tag preview", + "since-latest-release": "../../scripts/since-latest-release.sh", "test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter", "test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache", "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose", diff --git a/packages/logging-controller/package.json b/packages/logging-controller/package.json index a16e37c9c8..5197ab8337 100644 --- a/packages/logging-controller/package.json +++ b/packages/logging-controller/package.json @@ -35,6 +35,7 @@ "changelog:update": "../../scripts/update-changelog.sh @metamask/logging-controller", "changelog:validate": "../../scripts/validate-changelog.sh @metamask/logging-controller", "publish:preview": "yarn npm publish --tag preview", + "since-latest-release": "../../scripts/since-latest-release.sh", "test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter", "test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache", "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose", diff --git a/packages/message-manager/package.json b/packages/message-manager/package.json index 466a12683f..9a2c687b00 100644 --- a/packages/message-manager/package.json +++ b/packages/message-manager/package.json @@ -35,6 +35,7 @@ "changelog:update": "../../scripts/update-changelog.sh @metamask/message-manager", "changelog:validate": "../../scripts/validate-changelog.sh @metamask/message-manager", "publish:preview": "yarn npm publish --tag preview", + "since-latest-release": "../../scripts/since-latest-release.sh", "test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter", "test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache", "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose", diff --git a/packages/name-controller/package.json b/packages/name-controller/package.json index dfe86f8fbf..ae2cbccbbb 100644 --- a/packages/name-controller/package.json +++ b/packages/name-controller/package.json @@ -36,6 +36,7 @@ "changelog:validate": "../../scripts/validate-changelog.sh @metamask/name-controller", "prepare-manifest:preview": "../../scripts/prepare-preview-manifest.sh", "publish:preview": "yarn npm publish --tag preview", + "since-latest-release": "../../scripts/since-latest-release.sh", "test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter", "test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache", "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose", diff --git a/packages/network-controller/package.json b/packages/network-controller/package.json index d250a72885..0d9830aa0f 100644 --- a/packages/network-controller/package.json +++ b/packages/network-controller/package.json @@ -35,6 +35,7 @@ "changelog:update": "../../scripts/update-changelog.sh @metamask/network-controller", "changelog:validate": "../../scripts/validate-changelog.sh @metamask/network-controller", "publish:preview": "yarn npm publish --tag preview", + "since-latest-release": "../../scripts/since-latest-release.sh", "test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter", "test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache", "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose", diff --git a/packages/notification-controller/package.json b/packages/notification-controller/package.json index d181fe6461..d86e1aa32f 100644 --- a/packages/notification-controller/package.json +++ b/packages/notification-controller/package.json @@ -35,6 +35,7 @@ "changelog:update": "../../scripts/update-changelog.sh @metamask/notification-controller", "changelog:validate": "../../scripts/validate-changelog.sh @metamask/notification-controller", "publish:preview": "yarn npm publish --tag preview", + "since-latest-release": "../../scripts/since-latest-release.sh", "test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter", "test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache", "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose", diff --git a/packages/notification-services-controller/package.json b/packages/notification-services-controller/package.json index bd2744eddc..e086276aaf 100644 --- a/packages/notification-services-controller/package.json +++ b/packages/notification-services-controller/package.json @@ -35,6 +35,7 @@ "changelog:update": "../../scripts/update-changelog.sh @metamask/notification-services-controller", "changelog:validate": "../../scripts/validate-changelog.sh @metamask/notification-services-controller", "publish:preview": "yarn npm publish --tag preview", + "since-latest-release": "../../scripts/since-latest-release.sh", "test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter", "test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache", "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose", diff --git a/packages/permission-controller/package.json b/packages/permission-controller/package.json index 0a1cf8c289..137676f833 100644 --- a/packages/permission-controller/package.json +++ b/packages/permission-controller/package.json @@ -35,6 +35,7 @@ "changelog:update": "../../scripts/update-changelog.sh @metamask/permission-controller", "changelog:validate": "../../scripts/validate-changelog.sh @metamask/permission-controller", "publish:preview": "yarn npm publish --tag preview", + "since-latest-release": "../../scripts/since-latest-release.sh", "test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter", "test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache", "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose", diff --git a/packages/permission-log-controller/package.json b/packages/permission-log-controller/package.json index e4ff5beca8..0096ac1502 100644 --- a/packages/permission-log-controller/package.json +++ b/packages/permission-log-controller/package.json @@ -35,6 +35,7 @@ "changelog:update": "../../scripts/update-changelog.sh @metamask/permission-log-controller", "changelog:validate": "../../scripts/validate-changelog.sh @metamask/permission-log-controller", "publish:preview": "yarn npm publish --tag preview", + "since-latest-release": "../../scripts/since-latest-release.sh", "test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter", "test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache", "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose", diff --git a/packages/phishing-controller/package.json b/packages/phishing-controller/package.json index a3c979cc37..0a530e88d3 100644 --- a/packages/phishing-controller/package.json +++ b/packages/phishing-controller/package.json @@ -35,6 +35,7 @@ "changelog:update": "../../scripts/update-changelog.sh @metamask/phishing-controller", "changelog:validate": "../../scripts/validate-changelog.sh @metamask/phishing-controller", "publish:preview": "yarn npm publish --tag preview", + "since-latest-release": "../../scripts/since-latest-release.sh", "test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter", "test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache", "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose", diff --git a/packages/polling-controller/package.json b/packages/polling-controller/package.json index 0b1fa49173..29c4ae0258 100644 --- a/packages/polling-controller/package.json +++ b/packages/polling-controller/package.json @@ -35,6 +35,7 @@ "changelog:update": "../../scripts/update-changelog.sh @metamask/polling-controller", "changelog:validate": "../../scripts/validate-changelog.sh @metamask/polling-controller", "publish:preview": "yarn npm publish --tag preview", + "since-latest-release": "../../scripts/since-latest-release.sh", "test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter", "test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache", "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose", diff --git a/packages/preferences-controller/package.json b/packages/preferences-controller/package.json index a6ba431992..7c85f9feda 100644 --- a/packages/preferences-controller/package.json +++ b/packages/preferences-controller/package.json @@ -35,6 +35,7 @@ "changelog:update": "../../scripts/update-changelog.sh @metamask/preferences-controller", "changelog:validate": "../../scripts/validate-changelog.sh @metamask/preferences-controller", "publish:preview": "yarn npm publish --tag preview", + "since-latest-release": "../../scripts/since-latest-release.sh", "test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter", "test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache", "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose", diff --git a/packages/profile-sync-controller/package.json b/packages/profile-sync-controller/package.json index 1aaf547991..aa412740c3 100644 --- a/packages/profile-sync-controller/package.json +++ b/packages/profile-sync-controller/package.json @@ -35,6 +35,7 @@ "changelog:update": "../../scripts/update-changelog.sh @metamask/profile-sync-controller", "changelog:validate": "../../scripts/validate-changelog.sh @metamask/profile-sync-controller", "publish:preview": "yarn npm publish --tag preview", + "since-latest-release": "../../scripts/since-latest-release.sh", "test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter", "test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache", "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose", diff --git a/packages/queued-request-controller/package.json b/packages/queued-request-controller/package.json index 4dc81bb4aa..ad412bde74 100644 --- a/packages/queued-request-controller/package.json +++ b/packages/queued-request-controller/package.json @@ -35,6 +35,7 @@ "changelog:update": "../../scripts/update-changelog.sh @metamask/queued-request-controller", "changelog:validate": "../../scripts/validate-changelog.sh @metamask/queued-request-controller", "publish:preview": "yarn npm publish --tag preview", + "since-latest-release": "../../scripts/since-latest-release.sh", "test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter", "test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache", "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose", diff --git a/packages/rate-limit-controller/package.json b/packages/rate-limit-controller/package.json index 16b62dfeab..089e7b4c3c 100644 --- a/packages/rate-limit-controller/package.json +++ b/packages/rate-limit-controller/package.json @@ -35,6 +35,7 @@ "changelog:update": "../../scripts/update-changelog.sh @metamask/rate-limit-controller", "changelog:validate": "../../scripts/validate-changelog.sh @metamask/rate-limit-controller", "publish:preview": "yarn npm publish --tag preview", + "since-latest-release": "../../scripts/since-latest-release.sh", "test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter", "test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache", "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose", diff --git a/packages/selected-network-controller/package.json b/packages/selected-network-controller/package.json index b24b37ec82..5bd54f3c9b 100644 --- a/packages/selected-network-controller/package.json +++ b/packages/selected-network-controller/package.json @@ -35,6 +35,7 @@ "changelog:update": "../../scripts/update-changelog.sh @metamask/selected-network-controller", "changelog:validate": "../../scripts/validate-changelog.sh @metamask/selected-network-controller", "publish:preview": "yarn npm publish --tag preview", + "since-latest-release": "../../scripts/since-latest-release.sh", "test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter", "test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache", "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose", diff --git a/packages/signature-controller/package.json b/packages/signature-controller/package.json index ef1d609ec4..dea84a0143 100644 --- a/packages/signature-controller/package.json +++ b/packages/signature-controller/package.json @@ -35,6 +35,7 @@ "changelog:update": "../../scripts/update-changelog.sh @metamask/signature-controller", "changelog:validate": "../../scripts/validate-changelog.sh @metamask/signature-controller", "publish:preview": "yarn npm publish --tag preview", + "since-latest-release": "../../scripts/since-latest-release.sh", "test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter", "test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache", "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose", diff --git a/packages/transaction-controller/package.json b/packages/transaction-controller/package.json index 27e16267b8..f9fc39bf97 100644 --- a/packages/transaction-controller/package.json +++ b/packages/transaction-controller/package.json @@ -35,6 +35,7 @@ "changelog:update": "../../scripts/update-changelog.sh @metamask/transaction-controller", "changelog:validate": "../../scripts/validate-changelog.sh @metamask/transaction-controller", "publish:preview": "yarn npm publish --tag preview", + "since-latest-release": "../../scripts/since-latest-release.sh", "test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter", "test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache", "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose", diff --git a/packages/user-operation-controller/package.json b/packages/user-operation-controller/package.json index d701c050ff..57a9cd1349 100644 --- a/packages/user-operation-controller/package.json +++ b/packages/user-operation-controller/package.json @@ -36,6 +36,7 @@ "changelog:validate": "../../scripts/validate-changelog.sh @metamask/user-operation-controller", "prepare-manifest:preview": "../../scripts/prepare-preview-manifest.sh", "publish:preview": "yarn npm publish --tag preview", + "since-latest-release": "../../scripts/since-latest-release.sh", "test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter", "test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache", "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose", diff --git a/scripts/since-latest-release.sh b/scripts/since-latest-release.sh new file mode 100755 index 0000000000..f967e22265 --- /dev/null +++ b/scripts/since-latest-release.sh @@ -0,0 +1,145 @@ +#!/bin/bash + +red() { + printf "\x1B[31m" + echo -n "$@" + printf "\x1B[0m" +} + +magenta() { + printf "\x1B[35m" + echo -n "$@" + printf "\x1B[0m" +} + +bold() { + printf "\x1B[1m" + echo -n "$@" + printf "\x1B[22m" +} + +print-usage() { + cat <