Skip to content

Commit

Permalink
Release v13.0.0-rc.1 (#1096)
Browse files Browse the repository at this point in the history
* Update changelog, bump version, upgrade dependencies
* Upgrade stellar-base to stable
  • Loading branch information
Shaptic authored Nov 8, 2024
1 parent 537a187 commit cfea8de
Show file tree
Hide file tree
Showing 4 changed files with 1,144 additions and 1,236 deletions.
26 changes: 17 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,22 @@ A breaking change will get clearly marked in this log.
## Unreleased


## [v13.0.0-beta.1](https://github.com/stellar/js-stellar-sdk/compare/v12.3.0...v13.0.0-beta.1)
## [v13.0.0-rc.1](https://github.com/stellar/js-stellar-sdk/compare/v12.3.0...v13.0.0-rc.1)

### Breaking Changes
- `contract.AssembledTransaction#signAuthEntries` now takes an `address` instead of a `publicKey`. This brings the API more inline with its actual functionality: It can be used to sign all the auth entries for a particular _address_, whether that is the address of an account (public key) or a contract. ([#1044](https://github.com/stellar/js-stellar-sdk/pull/1044)).

- The Node.js code will now Babelify to Node 18 instead of Node 16, but we stopped supporting Node 16 long ago so this shouldn't be a breaking change.

- Deprecated RPC APIs have been removed ([#1084](https://github.com/stellar/js-stellar-sdk/pull/1084)):
* `simulateTransaction`'s `cost` field is removed
* `getEvents` returns a `cursor` field that matches `pagingToken` and `id`
* `getTransactions` returns a `txHash` field
- Horizon Server API types: removed fields `transaction_count`, `base_fee`, and `base_reserve` (deprecated since [v10.0.1](https://github.com/stellar/js-stellar-sdk/releases/tag/v10.0.1))
- `SentTransaction.init` and `new SentTransaction` now take _one_ (1) argument instead of _two_ (2). The first argument had previously been deprecated and ignored. To update:

```diff
-SentTransaction(nonsense, realStuff)
+SentTransaction(realStuff)
-new SentTransaction(nonsense, realStuff)
+new SentTransaction(realStuff)
```

- `SorobanRpc` import, previously deprecated, has been removed. You can import `rpc` instead:

```diff
-import { SorobanRpc } from '@stellar/stellar-sdk'
+import { rpc } from '@stellar/stellar-sdk'
Expand All @@ -36,7 +34,17 @@ A breaking change will get clearly marked in this log.
import { Server } from '@stellar/stellar-sdk/rpc'
```

- Horizon Server API types: removed fields `transaction_count`, `base_fee`, and `base_reserve` (deprecated since [v10.0.1](https://github.com/stellar/js-stellar-sdk/releases/tag/v10.0.1))

### Added
- `rpc.Server` now has a `pollTransaction` method to retry transaction retrieval ([#1092]https://github.com/stellar/js-stellar-sdk/pull/1092).


## [v13.0.0-beta.1](https://github.com/stellar/js-stellar-sdk/compare/v12.3.0...v13.0.0-beta.1)

### Breaking Changes
- `contract.AssembledTransaction#signAuthEntries` now takes an `address` instead of a `publicKey`. This brings the API more inline with its actual functionality: It can be used to sign all the auth entries for a particular _address_, whether that is the address of an account (public key) or a contract. ([#1044](https://github.com/stellar/js-stellar-sdk/pull/1044)).

- The Node.js code will now Babelify to Node 18 instead of Node 16, but we stopped supporting Node 16 long ago so this shouldn't be a breaking change.

### Added
- You can now build the browser bundle without various dependencies:
Expand Down
8 changes: 7 additions & 1 deletion config/.jsdoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@
"source": {
"include": ["lib/", "js-stellar-base/src"],
"includePattern": "\\.(js|ts)$",
"exclude": "js-stellar-base/src/generated"
"exclude": [
"js-stellar-base/src/generated",
"lib/minimal",
"lib/no-axios",
"lib/no-eventsource",
"lib/contract/utils.d.ts"
]
},
"opts": {
"encoding": "utf8",
Expand Down
32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stellar/stellar-sdk",
"version": "13.0.0-beta.1",
"version": "13.0.0-rc.1",
"description": "A library for working with the Stellar network, including communication with the Horizon and Soroban RPC servers.",
"keywords": [
"stellar"
Expand Down Expand Up @@ -142,21 +142,21 @@
]
},
"devDependencies": {
"@babel/cli": "^7.25.6",
"@babel/core": "^7.24.9",
"@babel/eslint-plugin": "^7.24.7",
"@babel/preset-env": "^7.25.4",
"@babel/preset-typescript": "^7.24.7",
"@babel/register": "^7.24.6",
"@definitelytyped/dtslint": "^0.2.23",
"@babel/cli": "^7.25.9",
"@babel/core": "^7.26.0",
"@babel/eslint-plugin": "^7.25.9",
"@babel/preset-env": "^7.26.0",
"@babel/preset-typescript": "^7.26.0",
"@babel/register": "^7.25.9",
"@definitelytyped/dtslint": "^0.2.27",
"@istanbuljs/nyc-config-babel": "3.0.0",
"@stellar/tsconfig": "^1.0.2",
"@types/chai": "^4.3.19",
"@types/detect-node": "^2.0.0",
"@types/eventsource": "^1.1.12",
"@types/json-schema": "^7.0.15",
"@types/lodash": "^4.17.7",
"@types/mocha": "^10.0.8",
"@types/lodash": "^4.17.13",
"@types/mocha": "^10.0.9",
"@types/node": "^20.14.11",
"@types/randombytes": "^2.0.1",
"@types/sinon": "^17.0.2",
Expand Down Expand Up @@ -185,8 +185,8 @@
"eslint-webpack-plugin": "^4.2.0",
"ghooks": "^2.0.4",
"husky": "^9.1.6",
"jsdoc": "^4.0.2",
"json-schema-faker": "^0.5.6",
"jsdoc": "^4.0.4",
"json-schema-faker": "^0.5.8",
"karma": "^6.4.3",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^3.1.0",
Expand All @@ -197,7 +197,7 @@
"karma-webpack": "^5.0.1",
"lint-staged": "^15.2.10",
"lodash": "^4.17.21",
"mocha": "^10.6.0",
"mocha": "^10.8.2",
"node-polyfill-webpack-plugin": "^3.0.0",
"null-loader": "^4.0.1",
"nyc": "^17.0.0",
Expand All @@ -208,12 +208,12 @@
"taffydb": "^2.7.3",
"terser-webpack-plugin": "^5.3.10",
"ts-node": "^10.9.2",
"typescript": "^5.6.2",
"webpack": "^5.94.0",
"typescript": "^5.6.3",
"webpack": "^5.96.1",
"webpack-cli": "^5.0.1"
},
"dependencies": {
"@stellar/stellar-base": "13.0.0-beta.1",
"@stellar/stellar-base": "^13.0.0",
"axios": "^1.7.7",
"bignumber.js": "^9.1.2",
"eventsource": "^2.0.2",
Expand Down
Loading

0 comments on commit cfea8de

Please sign in to comment.