Skip to content

Commit

Permalink
Prepare v11.0.0 for release (#888)
Browse files Browse the repository at this point in the history
* Mark version in package.json as stable
* Rename to @stellar/stellar-sdk 
* Point stellar-base to npm package under @stellar
* Upgrade all dependencies to their latest versions
* Use minified file when bundling
  • Loading branch information
Shaptic committed Dec 7, 2023
1 parent f3228f6 commit 69f7699
Show file tree
Hide file tree
Showing 32 changed files with 640 additions and 610 deletions.
11 changes: 7 additions & 4 deletions CHANGELOG.md
Expand Up @@ -3,14 +3,17 @@
A breaking change will get clearly marked in this log.


## Unreleased

### Fixed
* The `SorobanRpc.Server.getEvents` method now correctly parses responses without a `contractId` field set. The `events[i].contractId` field on an event is now optional, omitted if there was no ID for the event (e.g. system events; ([#883](https://github.com/stellar/js-stellar-sdk/pull/883))).
## [v11.0.0](https://github.com/stellar/js-stellar-sdk/compare/v10.2.1...v11.0.0)

### Breaking Changes

* The package has been renamed to `@stellar/stellar-sdk`.
* The new minimum supported version is Node 18.
* The `PaymentCallBuilder` was incorrectly indicating that it would return a collection of `Payment` records, while [in reality](https://developers.stellar.org/api/horizon/resources/list-all-payments) it can return a handful of "payment-like" records ([#885](https://github.com/stellar/js-stellar-sdk/pull/885)).

### Fixed
* The `SorobanRpc.Server.getEvents` method now correctly parses responses without a `contractId` field set. The `events[i].contractId` field on an event is now optional, omitted if there was no ID for the event (e.g. system events; ([#883](https://github.com/stellar/js-stellar-sdk/pull/883))).


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

Expand Down
18 changes: 9 additions & 9 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "@stellar/stellar-sdk",
"version": "11.0.0-beta.6",
"version": "11.0.0",
"description": "A library for working with the Stellar network, including communication with the Horizon and Soroban RPC servers.",
"keywords": [
"stellar"
Expand All @@ -17,7 +17,7 @@
"author": "Stellar Development Foundation <hello@stellar.org>",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
"browser": "./dist/stellar-sdk.js",
"browser": "./dist/stellar-sdk.min.js",
"files": [
"/types",
"/lib",
Expand Down Expand Up @@ -83,7 +83,7 @@
"@babel/preset-env": "^7.22.20",
"@babel/preset-typescript": "^7.23.0",
"@babel/register": "^7.22.15",
"@definitelytyped/dtslint": "^0.0.189",
"@definitelytyped/dtslint": "^0.0.197",
"@istanbuljs/nyc-config-babel": "3.0.0",
"@stellar/tsconfig": "^1.0.2",
"@types/chai": "^4.3.6",
Expand All @@ -93,7 +93,7 @@
"@types/mocha": "^10.0.2",
"@types/node": "^20.8.10",
"@types/randombytes": "^2.0.1",
"@types/sinon": "^10.0.19",
"@types/sinon": "^17.0.2",
"@types/urijs": "^1.19.20",
"@typescript-eslint/parser": "^6.9.1",
"axios-mock-adapter": "^1.22.0",
Expand Down Expand Up @@ -123,20 +123,20 @@
"karma-mocha": "^2.0.0",
"karma-sinon-chai": "^2.0.2",
"karma-webpack": "^5.0.0",
"lint-staged": "^14.0.1",
"lint-staged": "^15.2.0",
"lodash": "^4.17.21",
"minami": "^1.1.1",
"mocha": "^10.2.0",
"node-polyfill-webpack-plugin": "^2.0.1",
"node-polyfill-webpack-plugin": "^3.0.0",
"nyc": "^15.1.0",
"prettier": "^3.0.3",
"randombytes": "^2.1.0",
"sinon": "^16.0.0",
"sinon": "^17.0.1",
"sinon-chai": "^3.7.0",
"taffydb": "^2.7.3",
"terser-webpack-plugin": "^5.3.9",
"ts-node": "^10.9.1",
"typescript": "^5.2.2",
"typescript": "^5.3.3",
"utility-types": "^3.7.0",
"webpack": "^5.88.2",
"webpack-cli": "^5.0.1"
Expand All @@ -146,7 +146,7 @@
"bignumber.js": "^9.1.2",
"eventsource": "^2.0.2",
"randombytes": "^2.1.0",
"stellar-base": "git+https://github.com/stellar/js-stellar-base#master",
"@stellar/stellar-base": "10.0.0",
"toml": "^3.0.0",
"urijs": "^1.19.1"
}
Expand Down
2 changes: 1 addition & 1 deletion src/browser.ts
@@ -1,7 +1,7 @@
/* tslint:disable:no-var-requires */

export * from "./index";
export * as StellarBase from "stellar-base";
export * as StellarBase from "@stellar/stellar-base";

import axios from "axios"; // idk why axios is weird
export { axios };
Expand Down
2 changes: 1 addition & 1 deletion src/contract_spec.ts
Expand Up @@ -5,7 +5,7 @@ import {
XdrLargeInt,
scValToBigInt,
xdr
} from 'stellar-base';
} from '@stellar/stellar-base';

export interface Union<T> {
tag: string;
Expand Down
2 changes: 1 addition & 1 deletion src/federation/server.ts
@@ -1,5 +1,5 @@
import axios from "axios";
import { StrKey } from "stellar-base";
import { StrKey } from "@stellar/stellar-base";
import URI from "urijs";

import { Config } from "../config";
Expand Down
2 changes: 1 addition & 1 deletion src/horizon/account_call_builder.ts
@@ -1,4 +1,4 @@
import { Asset } from "stellar-base";
import { Asset } from "@stellar/stellar-base";
import { CallBuilder } from "./call_builder";
import { ServerApi } from "./server_api";

Expand Down
2 changes: 1 addition & 1 deletion src/horizon/account_response.ts
@@ -1,6 +1,6 @@
/* tslint:disable:variable-name */

import { Account as BaseAccount } from "stellar-base";
import { Account as BaseAccount } from "@stellar/stellar-base";
import { HorizonApi } from "./horizon_api";
import { ServerApi } from "./server_api";

Expand Down
2 changes: 1 addition & 1 deletion src/horizon/claimable_balances_call_builder.ts
@@ -1,4 +1,4 @@
import { Asset } from "stellar-base";
import { Asset } from "@stellar/stellar-base";
import { CallBuilder } from "./call_builder";
import { ServerApi } from "./server_api";

Expand Down
2 changes: 1 addition & 1 deletion src/horizon/horizon_api.ts
@@ -1,4 +1,4 @@
import { AssetType, MemoType } from "stellar-base";
import { AssetType, MemoType } from "@stellar/stellar-base";

/* tslint:disable-next-line:no-namespace */
export namespace HorizonApi {
Expand Down
2 changes: 1 addition & 1 deletion src/horizon/liquidity_pool_call_builder.ts
@@ -1,4 +1,4 @@
import { Asset } from "stellar-base";
import { Asset } from "@stellar/stellar-base";

import { CallBuilder } from "./call_builder";
import { ServerApi } from "./server_api";
Expand Down
2 changes: 1 addition & 1 deletion src/horizon/offer_call_builder.ts
@@ -1,4 +1,4 @@
import { Asset } from "stellar-base";
import { Asset } from "@stellar/stellar-base";
import { CallBuilder } from "./call_builder";
import { ServerApi } from "./server_api";

Expand Down
2 changes: 1 addition & 1 deletion src/horizon/orderbook_call_builder.ts
@@ -1,4 +1,4 @@
import { Asset } from "stellar-base";
import { Asset } from "@stellar/stellar-base";
import { CallBuilder } from "./call_builder";
import { ServerApi } from "./server_api";

Expand Down
2 changes: 1 addition & 1 deletion src/horizon/path_call_builder.ts
@@ -1,4 +1,4 @@
import { Asset } from "stellar-base";
import { Asset } from "@stellar/stellar-base";
import { CallBuilder } from "./call_builder";
import { ServerApi } from "./server_api";

Expand Down
2 changes: 1 addition & 1 deletion src/horizon/server.ts
Expand Up @@ -7,7 +7,7 @@ import {
StrKey,
Transaction,
xdr,
} from "stellar-base";
} from "@stellar/stellar-base";
import URI from "urijs";

import { CallBuilder } from "./call_builder";
Expand Down
2 changes: 1 addition & 1 deletion src/horizon/server_api.ts
@@ -1,4 +1,4 @@
import { Asset } from "stellar-base";
import { Asset } from "@stellar/stellar-base";
import { Omit } from "utility-types";
import { HorizonApi } from "./horizon_api";

Expand Down
2 changes: 1 addition & 1 deletion src/horizon/strict_receive_path_call_builder.ts
@@ -1,4 +1,4 @@
import { Asset } from "stellar-base";
import { Asset } from "@stellar/stellar-base";
import { CallBuilder } from "./call_builder";
import { ServerApi } from "./server_api";

Expand Down
2 changes: 1 addition & 1 deletion src/horizon/strict_send_path_call_builder.ts
@@ -1,4 +1,4 @@
import { Asset } from "stellar-base";
import { Asset } from "@stellar/stellar-base";
import { CallBuilder } from "./call_builder";
import { ServerApi } from "./server_api";

Expand Down
2 changes: 1 addition & 1 deletion src/horizon/trade_aggregation_call_builder.ts
@@ -1,5 +1,5 @@
/* tslint:disable: variable-name */
import { Asset } from "stellar-base";
import { Asset } from "@stellar/stellar-base";
import { CallBuilder } from "./call_builder";
import { BadRequestError } from "../errors";
import { HorizonApi } from "./horizon_api";
Expand Down
2 changes: 1 addition & 1 deletion src/horizon/trades_call_builder.ts
@@ -1,4 +1,4 @@
import { Asset } from "stellar-base";
import { Asset } from "@stellar/stellar-base";
import { CallBuilder } from "./call_builder";
import { ServerApi } from "./server_api";

Expand Down
2 changes: 1 addition & 1 deletion src/horizon/types/assets.ts
@@ -1,4 +1,4 @@
import { AssetType } from "stellar-base";
import { AssetType } from "@stellar/stellar-base";
import { HorizonApi } from "./../horizon_api";

export interface AssetRecord extends HorizonApi.BaseResponse {
Expand Down
2 changes: 1 addition & 1 deletion src/horizon/types/offer.ts
@@ -1,4 +1,4 @@
import { AssetType } from "stellar-base";
import { AssetType } from "@stellar/stellar-base";
import { HorizonApi } from "./../horizon_api";

export interface OfferAsset {
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Expand Up @@ -21,6 +21,6 @@ export * as SorobanRpc from './soroban';
export { ContractSpec } from './contract_spec';

// expose classes and functions from stellar-base
export * from 'stellar-base';
export * from '@stellar/stellar-base';

export default module.exports;
2 changes: 1 addition & 1 deletion src/soroban/api.ts
@@ -1,4 +1,4 @@
import { AssetType, Contract, SorobanDataBuilder, xdr } from 'stellar-base';
import { AssetType, Contract, SorobanDataBuilder, xdr } from '@stellar/stellar-base';

/* tslint:disable-next-line:no-namespace */
/** @namespace Api */
Expand Down
2 changes: 1 addition & 1 deletion src/soroban/browser.ts
@@ -1,7 +1,7 @@
/* tslint:disable:no-var-requires */

export * from './index';
export * as StellarBase from 'stellar-base';
export * as StellarBase from '@stellar/stellar-base';

import axios from 'axios'; // idk why axios is weird
export { axios };
Expand Down
2 changes: 1 addition & 1 deletion src/soroban/parsers.ts
@@ -1,4 +1,4 @@
import { xdr, Contract, SorobanDataBuilder } from 'stellar-base';
import { xdr, Contract, SorobanDataBuilder } from '@stellar/stellar-base';
import { Api } from './api';

export function parseRawSendTransaction(
Expand Down
2 changes: 1 addition & 1 deletion src/soroban/server.ts
Expand Up @@ -9,7 +9,7 @@ import {
Keypair,
Transaction,
xdr
} from 'stellar-base';
} from '@stellar/stellar-base';

import AxiosClient from './axios';
import { Api as FriendbotApi } from '../friendbot';
Expand Down
2 changes: 1 addition & 1 deletion src/soroban/transaction.ts
Expand Up @@ -3,7 +3,7 @@ import {
Operation,
Transaction,
TransactionBuilder
} from 'stellar-base';
} from '@stellar/stellar-base';

import { Api } from './api';
import { parseRawSimulation } from './parsers';
Expand Down
2 changes: 1 addition & 1 deletion src/stellartoml/index.ts
@@ -1,6 +1,6 @@
import axios from "axios";
import toml from "toml";
import { Networks } from "stellar-base";
import { Networks } from "@stellar/stellar-base";

import { Config } from "../config";

Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
@@ -1,4 +1,4 @@
import { Transaction } from "stellar-base";
import { Transaction } from "@stellar/stellar-base";

export class Utils {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/webauth/utils.ts
Expand Up @@ -11,7 +11,7 @@ import {
TimeoutInfinite,
Transaction,
TransactionBuilder,
} from "stellar-base";
} from "@stellar/stellar-base";

import { Utils } from "../utils";
import { InvalidChallengeError } from "./errors";
Expand Down

0 comments on commit 69f7699

Please sign in to comment.