File tree Expand file tree Collapse file tree 4 files changed +234
-253
lines changed
Expand file tree Collapse file tree 4 files changed +234
-253
lines changed Original file line number Diff line number Diff line change 22
33All notable changes to this project will be documented in this file.
44
5+ ## [ 2.2.1] - 2024-08-01
6+ - Added ` redirectUrl ` widget parameter
7+
58## [ 2.2.0] - 2024-06-11
69- Added new ` addresses ` and ` assets ` initialization parameters to simplify ` destinationWallets `
710- Marked the ` destinationWallets ` initialization parameter as deprecated
Original file line number Diff line number Diff line change 11{
22 "name" : " @coinbase/cbpay-js" ,
33 "repository" : " https://github.com/coinbase/cbpay-js" ,
4- "version" : " 2.2.0 " ,
4+ "version" : " 2.2.1 " ,
55 "license" : " MIT" ,
66 "main" : " dist/index.js" ,
77 "module" : " dist/index.mjs" ,
3333 "check-ci" : " yarn run typecheck && yarn run lint && yarn run test"
3434 },
3535 "devDependencies" : {
36+ "@babel/core" : " ^7.0.0" ,
3637 "@swc/core" : " ^1.2.237" ,
3738 "@types/chrome" : " 0.0.168" ,
3839 "@types/jest" : " ^27.0.2" ,
4142 "@typescript-eslint/eslint-plugin-tslint" : " ^4.5.0" ,
4243 "@typescript-eslint/parser" : " 4.26.1" ,
4344 "babel-jest" : " ^27.5.1" ,
44- "@babel/core" : " ^7.0.0" ,
4545 "eslint" : " ^6.8.0" ,
4646 "eslint-config-prettier" : " ^8.4.0" ,
4747 "eslint-plugin-jest" : " ^22.15.2" ,
5050 "jest-chrome" : " ^0.7.2" ,
5151 "prettier" : " ^2.5.1" ,
5252 "ts-jest" : " ^27.1.3" ,
53+ "tslint" : " ^6.0.0" ,
5354 "tsup" : " ^6.2.2" ,
54- "typescript" : " ^4.4.4" ,
55- "tslint" : " ^6.0.0"
55+ "typescript" : " ^4.4.4"
5656 },
5757 "engines" : {
5858 "node" : " >= 14"
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ type BaseOnRampAppParams = {
7171 * `addresses: { "0x1": ["base", "ethereum"] }, assets: ["USDC"]`
7272 *
7373 * The values in this list can either be asset symbols like BTC, ETH, or asset UUIDs that you can get from the Buy
74- * Options API {@link https://docs- cdp-onramp-preview.cbhq.net /onramp/docs/api-configurations/#buy-options}.
74+ * Options API {@link https://docs. cdp.coinbase.com /onramp/docs/api-configurations/#buy-options}.
7575 */
7676 assets ?: string [ ] ;
7777 /** The preset input amount as a crypto value. i.e. 0.1 ETH. This will be the initial default for all cryptocurrencies. */
@@ -89,6 +89,9 @@ type BaseOnRampAppParams = {
8989 handlingRequestedUrls ?: boolean ;
9090 /** ID used to link all user transactions created during the session. */
9191 partnerUserId ?: string ;
92+ /** A URL that the user will be automatically redirected to after a successful buy/send. The domain must match a domain
93+ * on the domain allowlist in Coinbase Developer Platform (https://portal.cdp.coinbase.com/products/onramp). */
94+ redirectUrl ?: string ;
9295} ;
9396
9497export type OnRampAggregatorAppParams = {
You can’t perform that action at this time.
0 commit comments