Skip to content

Commit

Permalink
add changesets + first set (#10646)
Browse files Browse the repository at this point in the history
* remove old deploy command

* fix lock wallet packages
  • Loading branch information
aaronmgdr authored Oct 16, 2023
1 parent 177197d commit 53bbd49
Show file tree
Hide file tree
Showing 30 changed files with 756 additions and 459 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
15 changes: 15 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [
[
"@celo/wallet-*"
]
],
"linked": [],
"access": "public",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": []
}
24 changes: 24 additions & 0 deletions .changeset/cuddly-dolphins-pretend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
'@celo/wallet-hsm-azure': patch
'@celo/wallet-hsm-aws': patch
'@celo/wallet-hsm-gcp': patch
'@celo/wallet-ledger': patch
'@celo/wallet-remote': patch
'@celo/wallet-local': patch
'@celo/cryptographic-utils': patch
'@celo/wallet-base': patch
'@celo/wallet-hsm': patch
'@celo/wallet-rpc': patch
'@celo/transactions-uri': patch
'@celo/contractkit': patch
'@celo/phone-utils': patch
'@celo/governance': patch
'@celo/keystores': patch
'@celo/explorer': patch
'@celo/connect': patch
'@celo/utils': patch
'@celo/base': patch
'@celo/network-utils': patch
---

Note celo sdk packages will no longer be fix bumped (ie will not share the same version always) and will now use ^range when depending on each other
8 changes: 8 additions & 0 deletions .changeset/many-sloths-reply.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@celo/contractkit': minor
'@celo/connect': minor
'@celo/wallet-base': minor
'@celo/wallet-local': minor
---

Add cip64 support for feeCurrency Transactions. Note this is the replacement for the deprecated cip42 and legacy tx types https://github.com/celo-org/celo-proposals/blob/master/CIPs/cip/0064.md
59 changes: 59 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Release Process

This repo uses changesets to determine what packages need a version bump.

Each PR MUST be accompanied by a changeset unless it has zero affect on package consumers (ie changing github action workflows).

To create a changeset run `changeset add` (or `yarn cs`)

This will bring up an interactive console which asks which packages are affect and if they require minor or major update.

## Auto Releasing

(coming soon)

## Manual Releasing

when time to release new versions of npm package run `changeset version` this will look thru the changeset files that have been generated since last release to bump the versions for package automatically to major if any changesets specify major change minor if only minor and patch if a the package had no changesets of its own but depends on one which will be updated.

finally `changeset publish` will go thru and publish to npm the packages that need publishing.

after go ahead and run `git push --follow-tags` to push git tags up to github.

### For Pre Releasing

changesets has 2 strategies for pre release versions.

The first is to enter `pre` mode on changesets. [docs here](https://github.com/changesets/changesets/blob/main/docs/prereleases.md)

```
yarn changeset pre enter beta
yarn changeset version
git add .
git commit -m "Enter prerelease mode and version packages"
yarn changeset publish
git push --follow-tags
```

The other is to append --snapshot. which is great for daily releases.

```
yarn changeset version --snapshot canary
yarn changeset publish --no-git-tag --snapshot
```

<https://github.com/changesets/changesets/blob/main/docs/snapshot-releases.md>

## Package Versioning

Based on semantic versioning best practices [semver.org](semver.org)

Given a version number MAJOR.MINOR.PATCH, increment the:

- MAJOR version when you make incompatible API changes
- MINOR version when you add functionality in a backward compatible manner
- PATCH version when you make backward compatible bug fixes

Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"build": "yarn run lerna run build",
"clean": "yarn run lerna run clean",
"docs": "yarn run lerna run docs",
"cs" : "yarn changeset",
"check-licenses": "yarn licenses list --prod | grep '\\(─ GPL\\|─ (GPL-[1-9]\\.[0-9]\\+ OR GPL-[1-9]\\.[0-9]\\+)\\)' && echo 'Found GPL license(s). Use 'yarn licenses list --prod' to look up the offending package' || echo 'No GPL licenses found'",
"report-coverage": "yarn run lerna run test-coverage",
"test:watch": "node node_modules/jest/bin/jest.js --watch",
Expand All @@ -30,7 +31,6 @@
"celotool": "yarn --cwd packages/celotool run --silent cli",
"celocli": "yarn --cwd packages/cli run --silent celocli",
"update-dependency-graph": "ts-node ./scripts/update_dependency_graph.ts",
"deploy-sdks": "ts-node ./scripts/deploy-sdks.ts",
"deprecate-sdks": "ts-node ./scripts/unpublish-sdks.ts"
},
"husky": {
Expand All @@ -42,14 +42,12 @@
"workspaces": {
"packages": [
"packages/*",
"packages/phone-number-privacy/*",
"packages/sdk/*",
"packages/sdk/wallets/*"
],
"nohoist": [
"**/openzeppelin-solidity",
"**/solidity-bytes-utils",
"**/@apollo/react-testing"
"**/solidity-bytes-utils"
]
},
"devDependencies": {
Expand Down Expand Up @@ -89,5 +87,8 @@
"ganache": "npm:@celo/[email protected]",
"@types/bn.js": "4.11.6",
"bignumber.js": "9.0.0"
},
"dependencies": {
"@changesets/cli": "^2.26.2"
}
}
}
16 changes: 8 additions & 8 deletions packages/celotool/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
"author": "Celo",
"license": "Apache-2.0",
"dependencies": {
"@celo/base": "5.0.4",
"@celo/connect": "5.0.4",
"@celo/cryptographic-utils": "5.0.4",
"@celo/contractkit": "5.0.4",
"@celo/base": "^5.0.4",
"@celo/connect": "^5.0.4",
"@celo/cryptographic-utils": "^5.0.4",
"@celo/contractkit": "^5.0.4",
"@celo/env-tests": "1.0.0",
"@celo/explorer": "5.0.4",
"@celo/governance": "5.0.4",
"@celo/network-utils": "5.0.4",
"@celo/utils": "5.0.4",
"@celo/explorer": "^5.0.4",
"@celo/governance": "^5.0.4",
"@celo/network-utils": "^5.0.4",
"@celo/utils": "^5.0.4",
"@ethereumjs/util": "8.0.5",
"@ethereumjs/rlp": "4.0.1",
"@google-cloud/monitoring": "0.7.1",
Expand Down
12 changes: 6 additions & 6 deletions packages/env-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"main": "index.js",
"license": "MIT",
"dependencies": {
"@celo/contractkit": "5.0.4",
"@celo/utils": "5.0.4",
"@celo/base": "5.0.4",
"@celo/connect": "5.0.4",
"@celo/phone-utils": "5.0.4",
"@celo/cryptographic-utils": "5.0.4",
"@celo/contractkit": "^5.0.4",
"@celo/utils": "^5.0.4",
"@celo/base": "^5.0.4",
"@celo/connect": "^5.0.4",
"@celo/phone-utils": "^5.0.4",
"@celo/cryptographic-utils": "^5.0.4",
"bignumber.js": "^9.0.0",
"bunyan": "1.8.12",
"bunyan-gke-stackdriver": "0.1.2",
Expand Down
6 changes: 3 additions & 3 deletions packages/metadata-crawler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"homepage": "https://github.com/celo-org/celo-monorepo/tree/master/packages/metadata-crawler",
"repository": "https://github.com/celo-org/celo-monorepo/tree/master/packages/metadata-crawler",
"dependencies": {
"@celo/connect": "5.0.4",
"@celo/contractkit": "5.0.4",
"@celo/utils": "5.0.4",
"@celo/connect": "^5.0.4",
"@celo/contractkit": "^5.0.4",
"@celo/utils": "^5.0.4",
"@types/pg": "^7.14.3",
"bunyan": "1.8.12",
"bunyan-gke-stackdriver": "0.1.2",
Expand Down
12 changes: 6 additions & 6 deletions packages/protocol/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@
"@0x/sol-profiler": "^4.1.37",
"@0x/sol-trace": "^3.0.47",
"@0x/subproviders": "^7.0.1",
"@celo/base": "5.0.4",
"@celo/base": "^5.0.4",
"@celo/bls12377js": "0.1.1",
"@celo/connect": "5.0.4",
"@celo/cryptographic-utils": "5.0.4",
"@celo/utils": "5.0.4",
"@celo/wallet-local": "5.0.4",
"@celo/connect": "^5.0.4",
"@celo/cryptographic-utils": "^5.0.4",
"@celo/utils": "^5.0.4",
"@celo/wallet-local": "^5.0.4",
"@ethereumjs/util": "8.0.5",
"@ethereumjs/vm": "npm:@celo/[email protected]",
"@ganache/console.log": "0.3.0",
Expand Down Expand Up @@ -99,7 +99,7 @@
"web3-utils": "1.10.0"
},
"devDependencies": {
"@celo/phone-utils": "5.0.4",
"@celo/phone-utils": "^5.0.4",
"@celo/typechain-target-web3-v1-celo": "0.2.0",
"@celo/typescript": "0.0.1",
"@types/bn.js": "^5.1.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/sdk/connect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"@ethereumjs/util": "8.0.5",
"@types/debug": "^4.1.5",
"@types/utf8": "^2.1.6",
"@celo/base": "5.0.4",
"@celo/utils": "5.0.4",
"@celo/base": "^5.0.4",
"@celo/utils": "^5.0.4",
"bignumber.js": "^9.0.0",
"debug": "^4.1.1",
"utf8": "3.0.0",
Expand Down
8 changes: 4 additions & 4 deletions packages/sdk/contractkit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
"lint": "tslint -c tslint.json --project ."
},
"dependencies": {
"@celo/base": "5.0.4",
"@celo/connect": "5.0.4",
"@celo/utils": "5.0.4",
"@celo/wallet-local": "5.0.4",
"@celo/base": "^5.0.4",
"@celo/connect": "^5.0.4",
"@celo/utils": "^5.0.4",
"@celo/wallet-local": "^5.0.4",
"@types/bn.js": "^5.1.0",
"@types/debug": "^4.1.5",
"bignumber.js": "^9.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/sdk/cryptographic-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
"lib/**/*"
],
"dependencies": {
"@celo/utils": "5.0.4",
"@celo/utils": "^5.0.4",
"@celo/bls12377js": "0.1.1",
"@celo/base": "5.0.4",
"@celo/base": "^5.0.4",
"@ethereumjs/util": "8.0.5",
"@types/bn.js": "^5.1.0",
"@types/elliptic": "^6.4.9",
Expand Down
8 changes: 4 additions & 4 deletions packages/sdk/explorer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
"prepublishOnly": "yarn build"
},
"dependencies": {
"@celo/base": "5.0.4",
"@celo/connect": "5.0.4",
"@celo/contractkit": "5.0.4",
"@celo/utils": "5.0.4",
"@celo/base": "^5.0.4",
"@celo/connect": "^5.0.4",
"@celo/contractkit": "^5.0.4",
"@celo/utils": "^5.0.4",
"@types/debug": "^4.1.5",
"cross-fetch": "3.0.6",
"bignumber.js": "9.0.0",
Expand Down
10 changes: 5 additions & 5 deletions packages/sdk/governance/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
"prepublishOnly": "yarn build"
},
"dependencies": {
"@celo/base": "5.0.4",
"@celo/utils": "5.0.4",
"@celo/connect": "5.0.4",
"@celo/contractkit": "5.0.4",
"@celo/explorer": "5.0.4",
"@celo/base": "^5.0.4",
"@celo/utils": "^5.0.4",
"@celo/connect": "^5.0.4",
"@celo/contractkit": "^5.0.4",
"@celo/explorer": "^5.0.4",
"@ethereumjs/util": "8.0.5",
"@types/debug": "^4.1.5",
"@types/inquirer": "^6.5.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/sdk/keystores/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"prepublishOnly": "yarn build"
},
"dependencies": {
"@celo/utils": "5.0.4",
"@celo/wallet-local": "5.0.4",
"@celo/utils": "^5.0.4",
"@celo/wallet-local": "^5.0.4",
"ethereumjs-wallet": "^1.0.1"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/sdk/phone-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"lib/**/*"
],
"dependencies": {
"@celo/base": "5.0.4",
"@celo/utils": "5.0.4",
"@celo/base": "^5.0.4",
"@celo/utils": "^5.0.4",
"@types/country-data": "^0.0.0",
"@types/google-libphonenumber": "^7.4.23",
"@types/node": "^18.7.16",
Expand Down
6 changes: 3 additions & 3 deletions packages/sdk/transactions-uri/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@
"dependencies": {
"@types/debug": "^4.1.5",
"@types/qrcode": "^1.3.4",
"@celo/base": "5.0.4",
"@celo/connect": "5.0.4",
"@celo/base": "^5.0.4",
"@celo/connect": "^5.0.4",
"bn.js": "4.11.9",
"qrcode": "1.4.4",
"web3-eth-abi": "1.10.0"
},
"devDependencies": {
"@celo/dev-utils": "0.0.1",
"@celo/contractkit": "5.0.4",
"@celo/contractkit": "^5.0.4",
"dotenv": "^8.2.0"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"lib/**/*"
],
"dependencies": {
"@celo/base": "5.0.4",
"@celo/base": "^5.0.4",
"@ethereumjs/util": "8.0.5",
"rlp": "^2.2.4",
"@types/bn.js": "^5.1.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/sdk/wallets/wallet-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
"viem": "~1.5.4"
},
"dependencies": {
"@celo/connect": "5.0.4",
"@celo/base": "5.0.4",
"@celo/utils": "5.0.4",
"@celo/connect": "^5.0.4",
"@celo/base": "^5.0.4",
"@celo/utils": "^5.0.4",
"@ethereumjs/util": "8.0.5",
"@ethereumjs/rlp": "^5.0.0",
"ethereum-cryptography": "^2.1.2",
Expand Down
Loading

0 comments on commit 53bbd49

Please sign in to comment.