Skip to content

Commit

Permalink
Release SDKs v3.2.0 + ODIS Common pkg README (#10139)
Browse files Browse the repository at this point in the history
* 3.2.0-beta.1

* add ODIS common package README

* 3.2.0

* 3.2.1-dev

* edits to common pkg README

* lockfile
  • Loading branch information
alecps authored Jan 31, 2023
1 parent 634d6a8 commit 594ffdc
Show file tree
Hide file tree
Showing 34 changed files with 195 additions and 217 deletions.
8 changes: 4 additions & 4 deletions packages/attestation-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
"test-send-sms-twilio": "TS_NODE_FILES=true CONFIG=config/.env.development ts-node scripts/test-send-sms-twilio.ts"
},
"dependencies": {
"@celo/contractkit": "3.1.1-dev",
"@celo/identity": "3.1.1-dev",
"@celo/keystores": "3.1.1-dev",
"@celo/phone-utils": "3.1.1-dev",
"@celo/contractkit": "3.2.1-dev",
"@celo/identity": "3.2.1-dev",
"@celo/keystores": "3.2.1-dev",
"@celo/phone-utils": "3.2.1-dev",
"bignumber.js": "^9.0.0",
"body-parser": "1.19.0",
"bunyan": "1.8.12",
Expand Down
18 changes: 9 additions & 9 deletions packages/celotool/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
"author": "Celo",
"license": "Apache-2.0",
"dependencies": {
"@celo/base": "3.1.1-dev",
"@celo/connect": "3.1.1-dev",
"@celo/cryptographic-utils": "3.1.1-dev",
"@celo/contractkit": "3.1.1-dev",
"@celo/base": "3.2.1-dev",
"@celo/connect": "3.2.1-dev",
"@celo/cryptographic-utils": "3.2.1-dev",
"@celo/contractkit": "3.2.1-dev",
"@celo/env-tests": "1.0.0",
"@types/ethereumjs-util": "^5.2.0",
"@celo/explorer": "3.1.1-dev",
"@celo/governance": "3.1.1-dev",
"@celo/identity": "3.1.1-dev",
"@celo/network-utils": "3.1.1-dev",
"@celo/utils": "3.1.1-dev",
"@celo/explorer": "3.2.1-dev",
"@celo/governance": "3.2.1-dev",
"@celo/identity": "3.2.1-dev",
"@celo/network-utils": "3.2.1-dev",
"@celo/utils": "3.2.1-dev",
"@google-cloud/monitoring": "0.7.1",
"@google-cloud/pubsub": "^0.28.1",
"@google-cloud/secret-manager": "3.0.0",
Expand Down
22 changes: 11 additions & 11 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@
},
"dependencies": {
"@celo/bls12377js": "0.1.1",
"@celo/contractkit": "^3.1.1-dev",
"@celo/explorer": "^3.1.1-dev",
"@celo/governance": "^3.1.1-dev",
"@celo/identity": "^3.1.1-dev",
"@celo/phone-utils": "^3.1.1-dev",
"@celo/utils": "^3.1.1-dev",
"@celo/cryptographic-utils": "^3.1.1-dev",
"@celo/wallet-hsm-azure": "^3.1.1-dev",
"@celo/wallet-ledger": "^3.1.1-dev",
"@celo/wallet-local": "^3.1.1-dev",
"@celo/contractkit": "^3.2.1-dev",
"@celo/explorer": "^3.2.1-dev",
"@celo/governance": "^3.2.1-dev",
"@celo/identity": "^3.2.1-dev",
"@celo/phone-utils": "^3.2.1-dev",
"@celo/utils": "^3.2.1-dev",
"@celo/cryptographic-utils": "^3.2.1-dev",
"@celo/wallet-hsm-azure": "^3.2.1-dev",
"@celo/wallet-ledger": "^3.2.1-dev",
"@celo/wallet-local": "^3.2.1-dev",
"@ledgerhq/hw-transport-node-hid": "~5.11.0",
"@oclif/command": "^1.6.0",
"@oclif/config": "^1.6.0",
Expand Down Expand Up @@ -170,4 +170,4 @@
"prerun": "./lib/hooks/prerun/plugin-warning"
}
}
}
}
14 changes: 7 additions & 7 deletions packages/env-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
"main": "index.js",
"license": "MIT",
"dependencies": {
"@celo/contractkit": "3.1.1-dev",
"@celo/utils": "3.1.1-dev",
"@celo/base": "3.1.1-dev",
"@celo/connect": "3.1.1-dev",
"@celo/identity": "3.1.1-dev",
"@celo/phone-utils": "3.1.1-dev",
"@celo/cryptographic-utils": "3.1.1-dev",
"@celo/contractkit": "3.2.1-dev",
"@celo/utils": "3.2.1-dev",
"@celo/base": "3.2.1-dev",
"@celo/connect": "3.2.1-dev",
"@celo/identity": "3.2.1-dev",
"@celo/phone-utils": "3.2.1-dev",
"@celo/cryptographic-utils": "3.2.1-dev",
"bunyan": "1.8.12",
"bunyan-gke-stackdriver": "0.1.2",
"bunyan-debug-stream": "2.0.0",
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": "3.1.1-dev",
"@celo/contractkit": "3.1.1-dev",
"@celo/utils": "3.1.1-dev",
"@celo/connect": "3.2.1-dev",
"@celo/contractkit": "3.2.1-dev",
"@celo/utils": "3.2.1-dev",
"@types/pg": "^7.14.3",
"bunyan": "1.8.12",
"bunyan-gke-stackdriver": "0.1.2",
Expand Down
10 changes: 5 additions & 5 deletions packages/phone-number-privacy/combiner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
"test:e2e:alfajores": "FLAKEY=true CONTEXT_NAME=alfajores yarn test:e2e"
},
"dependencies": {
"@celo/contractkit": "^3.1.1-dev",
"@celo/contractkit": "^3.2.1-dev",
"@celo/phone-number-privacy-common": "^2.0.2",
"@celo/identity": "^3.1.1-dev",
"@celo/encrypted-backup": "^3.1.1-dev",
"@celo/identity": "^3.2.1-dev",
"@celo/encrypted-backup": "^3.2.1-dev",
"@celo/identity-prev": "npm:@celo/[email protected]",
"@celo/poprf": "^0.1.9",
"blind-threshold-bls": "https://github.com/celo-org/blind-threshold-bls-wasm#e1e2f8a",
Expand All @@ -45,8 +45,8 @@
"uuid": "^7.0.3"
},
"devDependencies": {
"@celo/utils": "^3.1.1-dev",
"@celo/phone-utils": "^3.1.1-dev",
"@celo/utils": "^3.2.1-dev",
"@celo/phone-utils": "^3.2.1-dev",
"@types/express": "^4.17.6",
"@types/supertest": "^2.0.12",
"@types/uuid": "^7.0.3",
Expand Down
49 changes: 49 additions & 0 deletions packages/phone-number-privacy/common/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# ODIS Common Package

This package contains common code used across ODIS. It is depended on by the Combiner, Signer and Monitor services as well as the @celo/identity and @celo/encrypted-backup SDKS. In most cases where code will be re-used by multiple parts of ODIS, it probably belongs here.

## Notable Contents

- The request and response type schemas for all ODIS APIs.
- Error and Warning types used for monitoring and alerting in both the Combiner and Signer.
- The PEAR Sequential Delay rate limiting algorithm.

## Release Process

When updating the ODIS common package, it is important to remember that all changes must be published before they can be used in production ODIS services or SDKS. If your changes are needed in the SDKS, then you will need to also publish all the Celo SDKs. The instructions below detail this entire SDK release process, but if your changes are only needed in ODIS services you only need to do step 7 (remember to run `yarn && yarn build` before publishing, and consider reading the rest of the steps anyway for context)

These instructions assume the following scenario for readability:

- The latest released sdk version is `3.1.0`
- The SDK versions in the monorepo are all set to `3.1.1-dev`
- You are releasing version `3.2.0` of the SDKs
- The latest released ODIS common package version is `2.0.2`
- You are releasing version `2.0.3` of the ODIS common package

1. Checkout a new branch for the SDK release. Name it something like `<githandle>/release3.2.0`
2. Note that you should release version `3.2.0-beta.1` and `2.0.3-beta.1` and test that everything is working correctly before publishing them as `latest`. If everything is not working correctly, try again with `-beta.2`
3. Search and replace all instances of the current sdk version in the monorepo with the new sdk version you are releasing (check the search and replace changes do what you intend them to before hitting replace!)
- i.e. search and replace `3.1.1-dev` with `3.2.0-beta.1` (note that we’ve removed the `-dev`)
4. Same idea as above -- ensure the version of the `@celo/phone-number-privacy-common` package is set to the version you are trying to release (i.e. `2.0.3-beta.1`) and that all other packages are importing this version.
5. From the monorepo root directory, run `yarn reset && yarn && yarn build` (expect this to take at least 10 mins)
6. Commit your changes with the message `3.2.0-beta.1`
7. Publish the ODIS common package by navigating to the `phone-number-privacy/common` directory and running `npm publish —-tag beta --version 3.2.0-beta.1 —-otp <OTP>`
- When publishing as `latest`, omit the `--tag beta`
8. Publish the sdks by running `npm run deploy-sdks` from the monorepo root directory
- You will be prompted to enter a version number that you wish to publish. i.e. `3.2.0-beta.1`
- You will be repeatedly asked to enter your OTP, which will be automatically supplied if you hit ‘enter’ (you do not have to paste it to the command line each time)
- When your OTP expires, you will see an error and will have to re-enter the new one
- Note the `deploy-sdks` script will automatically append `-dev` to all the sdk versions after they're published. You may need to search and replace to undue this if you were publishing a beta release.
9. Depending on what you're releasing, you may want to test that the newly published SDKs work as intended. This may be as simple as checking that CI runs successfully on your `3.2.0-beta.1` commit.
10. Once you are confident in the beta release, repeat steps 3 through 9 with versions `3.2.0` and `2.0.3`. The SDKs will be published with the `latest` tag.
11. The `deploy-sdks` script will automatically append `-dev` to all the sdk versions after they're published. For `latest` releases, it will also increment to the next patch version. Please ensure this happened correctly and commit the result with the message `3.2.1-dev`
12. Get your PR for the release branch reviewed and merged
- If CI fails with output like below, it means that some packages outside of the SDK did not get incremented to `3.2.1-dev`. Please go through and make sure these are all incremented correctly and CI should pass.

```
./sdk/utils/src/address.ts(1,46): error TS2307: Cannot find module '@celo/base/lib/address' or its corresponding type declarations.
../sdk/utils/src/address.ts(27,8): error TS2307: Cannot find module '@celo/base/lib/address' or its corresponding type declarations.
../sdk/utils/src/async.ts(10,8): error TS2307: Cannot find module '@celo/base/lib/async' or its corresponding type declarations
```

13. Don’t forget to tag the PR commit as a release in GitHub and add Release Notes
10 changes: 5 additions & 5 deletions packages/phone-number-privacy/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
"lib/**/*"
],
"dependencies": {
"@celo/base": "^3.1.1-dev",
"@celo/contractkit": "^3.1.1-dev",
"@celo/utils": "^3.1.1-dev",
"@celo/phone-utils": "^3.1.1-dev",
"@celo/base": "^3.2.1-dev",
"@celo/contractkit": "^3.2.1-dev",
"@celo/utils": "^3.2.1-dev",
"@celo/phone-utils": "^3.2.1-dev",
"bignumber.js": "^9.0.0",
"bunyan": "1.8.12",
"bunyan-debug-stream": "2.0.0",
Expand All @@ -33,7 +33,7 @@
},
"devDependencies": {
"@celo/poprf": "^0.1.9",
"@celo/wallet-local": "^3.1.1-dev",
"@celo/wallet-local": "^3.2.1-dev",
"@types/bunyan": "1.8.4",
"@types/elliptic": "^6.4.12",
"@types/express": "^4.17.6",
Expand Down
12 changes: 6 additions & 6 deletions packages/phone-number-privacy/monitor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
"loadTest": "ts-node src/scripts/run-load-test.ts"
},
"dependencies": {
"@celo/contractkit": "^3.1.1-dev",
"@celo/cryptographic-utils": "^3.1.1-dev",
"@celo/encrypted-backup": "^3.1.1-dev",
"@celo/identity": "^3.1.1-dev",
"@celo/wallet-local": "^3.1.1-dev",
"@celo/contractkit": "^3.2.1-dev",
"@celo/cryptographic-utils": "^3.2.1-dev",
"@celo/encrypted-backup": "^3.2.1-dev",
"@celo/identity": "^3.2.1-dev",
"@celo/wallet-local": "^3.2.1-dev",
"@celo/phone-number-privacy-common": "^2.0.2",
"@celo/utils": "^3.1.1-dev",
"@celo/utils": "^3.2.1-dev",
"firebase-admin": "^9.12.0",
"firebase-functions": "^3.15.7"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/phone-number-privacy/signer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@
"ssl:keygen": "./scripts/create-ssl-cert.sh"
},
"dependencies": {
"@celo/base": "^3.1.1-dev",
"@celo/contractkit": "^3.1.1-dev",
"@celo/base": "^3.2.1-dev",
"@celo/contractkit": "^3.2.1-dev",
"@celo/phone-number-privacy-common": "^2.0.2",
"@celo/poprf": "^0.1.9",
"@celo/utils": "^3.1.1-dev",
"@celo/wallet-hsm-azure": "^3.1.1-dev",
"@celo/utils": "^3.2.1-dev",
"@celo/wallet-hsm-azure": "^3.2.1-dev",
"@google-cloud/secret-manager": "3.0.0",
"@types/bunyan": "^1.8.6",
"@types/promise.allsettled": "^1.0.3",
Expand Down
10 changes: 5 additions & 5 deletions packages/protocol/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@
"@0x/sol-profiler": "^3.0.0",
"@0x/sol-trace": "^2.0.16",
"@0x/subproviders": "^5.0.0",
"@celo/base": "3.1.0",
"@celo/base": "3.2.1-dev",
"@celo/bls12377js": "0.1.1",
"@celo/connect": "3.1.0",
"@celo/connect": "3.2.1-dev",
"@celo/ganache-cli": "git+https://github.com/celo-org/ganache-cli.git#e933297",
"@celo/utils": "3.1.0",
"@celo/cryptographic-utils": "3.1.0",
"@celo/utils": "3.2.1-dev",
"@celo/cryptographic-utils": "3.2.1-dev",
"@openzeppelin/upgrades": "^2.8.0",
"bip39": "https://github.com/bitcoinjs/bip39#d8ea080a18b40f301d4e2219a2991cd2417e83c2",
"chai-subset": "^1.6.0",
Expand Down Expand Up @@ -93,7 +93,7 @@
},
"devDependencies": {
"@celo/flake-tracker": "0.0.1-dev",
"@celo/phone-utils": "3.1.0",
"@celo/phone-utils": "3.2.1-dev",
"@celo/typechain-target-web3-v1-celo": "0.2.0",
"@celo/typescript": "0.0.1",
"@types/bn.js": "^4.11.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/base/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@celo/base",
"version": "3.1.1-dev",
"version": "3.2.1-dev",
"description": "Celo base common utils, no dependencies",
"author": "Celo",
"license": "Apache-2.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/sdk/connect/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@celo/connect",
"version": "3.1.1-dev",
"version": "3.2.1-dev",
"description": "Light Toolkit for connecting with the Celo network",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
Expand All @@ -24,8 +24,8 @@
"dependencies": {
"@types/debug": "^4.1.5",
"@types/utf8": "^2.1.6",
"@celo/base": "3.1.1-dev",
"@celo/utils": "3.1.1-dev",
"@celo/base": "3.2.1-dev",
"@celo/utils": "3.2.1-dev",
"bignumber.js": "^9.0.0",
"debug": "^4.1.1",
"utf8": "3.0.0"
Expand Down
12 changes: 6 additions & 6 deletions packages/sdk/contractkit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@celo/contractkit",
"version": "3.1.1-dev",
"version": "3.2.1-dev",
"description": "Celo's ContractKit to interact with Celo network",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
Expand Down Expand Up @@ -28,10 +28,10 @@
"lint": "tslint -c tslint.json --project ."
},
"dependencies": {
"@celo/base": "3.1.1-dev",
"@celo/connect": "3.1.1-dev",
"@celo/utils": "3.1.1-dev",
"@celo/wallet-local": "3.1.1-dev",
"@celo/base": "3.2.1-dev",
"@celo/connect": "3.2.1-dev",
"@celo/utils": "3.2.1-dev",
"@celo/wallet-local": "3.2.1-dev",
"@types/bn.js": "^5.1.0",
"@types/debug": "^4.1.5",
"bignumber.js": "^9.0.0",
Expand All @@ -43,7 +43,7 @@
"web3": "1.3.6"
},
"devDependencies": {
"@celo/phone-utils": "3.1.1-dev",
"@celo/phone-utils": "3.2.1-dev",
"@celo/dev-utils": "0.0.1-dev",
"@celo/flake-tracker": "0.0.1-dev",
"@celo/ganache-cli": "git+https://github.com/celo-org/ganache-cli.git#21652da",
Expand Down
6 changes: 3 additions & 3 deletions packages/sdk/cryptographic-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@celo/cryptographic-utils",
"version": "3.1.1-dev",
"version": "3.2.1-dev",
"description": "Some Celo utils for comment/data encryption, bls, and mnemonics",
"author": "Celo",
"license": "Apache-2.0",
Expand All @@ -22,9 +22,9 @@
"lib/**/*"
],
"dependencies": {
"@celo/utils": "3.1.1-dev",
"@celo/utils": "3.2.1-dev",
"@celo/bls12377js": "0.1.1",
"@celo/base": "3.1.1-dev",
"@celo/base": "3.2.1-dev",
"@types/bn.js": "^5.1.0",
"@types/elliptic": "^6.4.9",
"@types/ethereumjs-util": "^5.2.0",
Expand Down
8 changes: 4 additions & 4 deletions packages/sdk/dappkit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@celo/dappkit",
"version": "3.1.1-dev",
"version": "3.2.1-dev",
"scripts": {
"build": "tsc",
"clean": "tsc -b . --clean",
Expand All @@ -9,9 +9,9 @@
"homepage": "https://celo-sdk-docs.readthedocs.io/en/latest/dappkit",
"repository": "https://github.com/celo-org/celo-monorepo/tree/master/packages/sdk/dappkit",
"dependencies": {
"@celo/connect": "3.1.1-dev",
"@celo/contractkit": "3.1.1-dev",
"@celo/utils": "3.1.1-dev",
"@celo/connect": "3.2.1-dev",
"@celo/contractkit": "3.2.1-dev",
"@celo/utils": "3.2.1-dev",
"react-native": "^0.63.4"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions packages/sdk/encrypted-backup/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@celo/encrypted-backup",
"version": "3.1.1-dev",
"version": "3.2.1-dev",
"description": "Libraries for implemented password encrypted account backups",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
Expand All @@ -25,11 +25,11 @@
"prepublishOnly": "yarn build"
},
"dependencies": {
"@celo/base": "3.1.1-dev",
"@celo/identity": "3.1.1-dev",
"@celo/base": "3.2.1-dev",
"@celo/identity": "3.2.1-dev",
"@celo/phone-number-privacy-common": "^2.0.2",
"@celo/poprf": "^0.1.9",
"@celo/utils": "3.1.1-dev",
"@celo/utils": "3.2.1-dev",
"@types/debug": "^4.1.5",
"debug": "^4.1.1",
"fp-ts": "2.1.1",
Expand Down
Loading

0 comments on commit 594ffdc

Please sign in to comment.