Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare v11.0.0-beta.2 for release #861

Merged
merged 3 commits into from
Sep 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 16 additions & 22 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,22 @@ A breaking change will get clearly marked in this log.

## Unreleased

### Add

## [v11.0.0-beta.2](https://github.com/stellar/js-stellar-sdk/compare/v11.0.0-beta.1...v11.0.0-beta.2)

### Breaking Changes
- Certain effects have been renamed to align better with the "tense" that other structures have ([#844](https://github.com/stellar/js-stellar-sdk/pull/844)):
* `DepositLiquidityEffect` -> `LiquidityPoolDeposited`
* `WithdrawLiquidityEffect` -> `LiquidityPoolWithdrew`
* `LiquidityPoolTradeEffect` -> `LiquidityPoolTrade`
* `LiquidityPoolCreatedEffect` -> `LiquidityPoolCreated`
* `LiquidityPoolRevokedEffect` -> `LiquidityPoolRevoked`
* `LiquidityPoolRemovedEffect` -> `LiquidityPoolRemoved`

### Add
- New effects have been added to support Protocol 20 (Soroban) ([#842](https://github.com/stellar/js-stellar-sdk/pull/842)):
* `ContractCredited` occurs when a Stellar asset moves **into** its corresponding Stellar Asset Contract instance
* `ContractDebited` occurs when a Stellar asset moves **out of** its corresponding Stellar Asset Contract instance
- Asset stat records (`ServerApi.AssetRecord`) contain two new fields to support the Protocol 20 (Soroban) release ([#841](https://github.com/stellar/js-stellar-sdk/pull/841)):
* `num_contracts` - the integer quantity of contracts that hold this asset
* `contracts_amount` - the total units of that asset held by contracts
Expand Down Expand Up @@ -37,31 +51,11 @@ interface BumpFootprintExpirationOperationResponse {
interface RestoreFootprintOperationResponse {};
```


### Breaking Changes

- Certain effects have been renamed to align better with the "tense" that other structures have ([#844](https://github.com/stellar/js-stellar-sdk/pull/844)):
* `DepositLiquidityEffect` -> `LiquidityPoolDeposited`
* `WithdrawLiquidityEffect` -> `LiquidityPoolWithdrew`
* `LiquidityPoolTradeEffect` -> `LiquidityPoolTrade`
* `LiquidityPoolCreatedEffect` -> `LiquidityPoolCreated`
* `LiquidityPoolRevokedEffect` -> `LiquidityPoolRevoked`
* `LiquidityPoolRemovedEffect` -> `LiquidityPoolRemoved`

### Add

- New effects have been added to support Protocol 20 (Soroban) ([#842](https://github.com/stellar/js-stellar-sdk/pull/842)):
* `ContractCredited` occurs when a Stellar asset moves **into** its corresponding Stellar Asset Contract instance
* `ContractDebited` occurs when a Stellar asset moves **out of** its corresponding Stellar Asset Contract instance
- Asset stat records (`ServerApi.AssetRecord`) contain two new fields to support the Protocol 20 (Soroban) release ([#TODO](https://github.com/stellar/js-stellar-sdk/pulls/)):
* `num_contracts` - the integer quantity of contracts that hold this asset
* `contracts_amount` - the total units of that asset held by contracts

### Fixed

- Some effect definitions that were missing have been added ([#842](https://github.com/stellar/js-stellar-sdk/pull/842)):
* `ClaimableBalanceClawedBack` is now defined
* `type EffectRecord` now has all of the effect types
- The `stellar-base` library has been upgraded to support the latest Protocol 20 XDR schema and all Soroban functionality ([]()).


## [v11.0.0-beta.1](https://github.com/stellar/js-stellar-sdk/compare/v11.0.0-beta.0...v11.0.0-beta.1)
Expand Down
54 changes: 27 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stellar-sdk",
"version": "11.0.0-beta.1",
"version": "11.0.0-beta.2",
"description": "A library for working with the Stellar Horizon server.",
"keywords": [
"stellar"
Expand Down Expand Up @@ -76,38 +76,38 @@
]
},
"devDependencies": {
"@babel/cli": "^7.22.6",
"@babel/core": "^7.22.8",
"@babel/eslint-parser": "^7.22.7",
"@babel/eslint-plugin": "^7.19.1",
"@babel/preset-env": "^7.22.7",
"@babel/preset-typescript": "^7.21.4",
"@babel/register": "^7.21.0",
"@definitelytyped/dtslint": "^0.0.163",
"@babel/cli": "^7.22.15",
"@babel/core": "^7.22.19",
"@babel/eslint-parser": "^7.22.15",
"@babel/eslint-plugin": "^7.22.10",
"@babel/preset-env": "^7.22.15",
"@babel/preset-typescript": "^7.22.15",
"@babel/register": "^7.22.15",
"@definitelytyped/dtslint": "^0.0.178",
"@istanbuljs/nyc-config-babel": "3.0.0",
"@stellar/tsconfig": "^1.0.2",
"@types/detect-node": "^2.0.0",
"@types/eventsource": "^1.1.2",
"@types/lodash": "^4.14.192",
"@types/node": "^20.4.1",
"@types/lodash": "^4.14.198",
"@types/node": "^20.6.1",
"@types/randombytes": "^2.0.0",
"@types/urijs": "^1.19.6",
"@typescript-eslint/parser": "^5.59.7",
"axios-mock-adapter": "^1.21.5",
"@types/urijs": "^1.19.20",
"@typescript-eslint/parser": "^6.7.0",
"axios-mock-adapter": "^1.22.0",
"babel-loader": "^9.1.3",
"babel-plugin-istanbul": "^6.1.1",
"buffer": "^6.0.3",
"chai": "^4.3.7",
"chai": "^4.3.8",
"chai-as-promised": "^7.1.1",
"chai-http": "^4.3.0",
"cross-env": "^7.0.3",
"eslint": "^8.44.0",
"eslint": "^8.49.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.25.2",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prefer-import": "^0.0.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-prettier": "^5.0.0",
"eslint-webpack-plugin": "^4.0.1",
"ghooks": "^2.0.4",
"husky": "^8.0.3",
Expand All @@ -120,30 +120,30 @@
"karma-mocha": "^2.0.0",
"karma-sinon-chai": "^2.0.2",
"karma-webpack": "^5.0.0",
"lint-staged": "^13.2.3",
"lint-staged": "^14.0.1",
"lodash": "^4.17.21",
"minami": "^1.1.1",
"mocha": "^10.2.0",
"node-polyfill-webpack-plugin": "^2.0.1",
"nyc": "^15.1.0",
"prettier": "^2.8.7",
"prettier": "^3.0.3",
"randombytes": "^2.1.0",
"sinon": "^15.2.0",
"sinon": "^16.0.0",
"sinon-chai": "^3.7.0",
"taffydb": "^2.7.3",
"terser-webpack-plugin": "^5.3.9",
"ts-node": "^10.9.1",
"typescript": "^5.1.6",
"typescript": "^5.2.2",
"utility-types": "^3.7.0",
"webpack": "^5.88.1",
"webpack": "^5.88.2",
"webpack-cli": "^5.0.1"
},
"dependencies": {
"axios": "^1.4.0",
"bignumber.js": "^9.1.1",
"axios": "^1.5.0",
"bignumber.js": "^9.1.2",
"eventsource": "^2.0.2",
"randombytes": "^2.1.0",
"stellar-base": "^9.0.0",
"stellar-base": "^10.0.0-beta.1",
"toml": "^3.0.0",
"urijs": "^1.19.1"
}
Expand Down
2 changes: 1 addition & 1 deletion test/integration/apiary.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ describe("tests the /accounts endpoint", function () {
.then((resp) => {
// find the pool share balance(s)
const poolShares = resp.balances.filter(
(b) => b.asset_type === "liquidity_pool_shares"
(b) => b.asset_type === "liquidity_pool_shares",
);

expect(poolShares).to.have.lengthOf(1);
Expand Down
2 changes: 1 addition & 1 deletion test/unit/call_builders_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe("CallBuilder functions", function () {

expect(arg.toString()).not.to.be.equal("https://onedom.ain/one_segment"); // https://onedom.ain/
expect(builder.url.toString()).to.be.equal(
"https://onedom.ain/one_segment"
"https://onedom.ain/one_segment",
);
});
});
Loading
Loading