Skip to content
Merged

V15.0.0 #1362

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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ A breaking change will get clearly marked in this log.

## Unreleased

## [v15.0.0](https://github.com/stellar/js-stellar-sdk/compare/v14.6.1...v15.0.0)

### Breaking Changes
* XDR has been upgraded to support **Protocol 26**, please refer to the [`@stellar/stellar-base`](https://github.com/stellar/js-stellar-base/releases/tag/v15.0.0) release notes for details and other breaking changes.

### Fixed
* Sanitize identifiers and escape string literals in generated TypeScript bindings to prevent code injection via malicious contract spec names. `sanitizeIdentifier` now strips non-identifier characters, and a new `escapeStringLiteral` helper escapes quotes and newlines in string contexts ([#1345](https://github.com/stellar/js-stellar-sdk/pull/1345)).
* `AssembledTransaction.fromXDR()` and `fromJSON()` now validate that the deserialized transaction targets the expected contract, rejecting mismatched contract IDs and non-invokeContract operations. ([#1349](https://github.com/stellar/js-stellar-sdk/pull/1349)).
Expand Down
41 changes: 22 additions & 19 deletions config/vitest.config.browser.ts
Original file line number Diff line number Diff line change
@@ -1,41 +1,44 @@
import { defineConfig } from 'vitest/config'
import { resolve } from 'path'
import { defineConfig } from "vitest/config";
import { resolve } from "path";
import { playwright } from "@vitest/browser-playwright";

export default defineConfig({
test: {
globals: true,
environment: 'jsdom',
environment: "jsdom",
coverage: {
provider: 'istanbul',
reporter: ['text', 'html', 'lcov'],
include: ['lib/**/*.js'],
exclude: ['test/**', 'dist/**', 'coverage/**', '**/*.d.ts', 'lib/**/*.d.ts', ],
all: true,
provider: "istanbul",
Comment thread
Ryang-21 marked this conversation as resolved.
reporter: ["text", "html", "lcov"],
include: ["lib/**/*.js"],
exclude: [
"test/**",
"dist/**",
"coverage/**",
"**/*.d.ts",
"lib/**/*.d.ts",
],
},
browser: {
enabled: true,
provider: 'playwright',
instances: [
{ browser: "chromium"},
{ browser: "firefox"},
],
provider: playwright(),
instances: [{ browser: "chromium" }, { browser: "firefox" }],
headless: true,
screenshotFailures: false
screenshotFailures: false,
},
// Run all unit tests in browser
include: ['test/unit/**/*.test.ts'],
exclude: ['test/unit/call_builders.test.ts'],
include: ["test/unit/**/*.test.ts"],
exclude: ["test/unit/call_builders.test.ts"],
// Setup files to load the browser bundle
setupFiles: [resolve(__dirname, '../test/setup-browser.ts')],
setupFiles: [resolve(__dirname, "../test/setup-browser.ts")],
},
resolve: {
alias: {
'@': resolve(__dirname, '../src'),
"@": resolve(__dirname, "../src"),
},
},
define: {
__USE_AXIOS__: true,
__USE_EVENTSOURCE__: true,
__PACKAGE_VERSION__: JSON.stringify(process.env.npm_package_version),
},
})
});
52 changes: 26 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stellar/stellar-sdk",
"version": "14.6.1",
"version": "15.0.0",
"description": "A library for working with the Stellar network, including communication with the Horizon and Soroban RPC servers.",
"keywords": [
"stellar"
Expand Down Expand Up @@ -140,26 +140,27 @@
"devDependencies": {
"@babel/cli": "^7.28.0",
"@babel/core": "^7.28.4",
"@babel/eslint-plugin": "^7.26.10",
"@babel/preset-env": "^7.28.0",
"@babel/preset-typescript": "^7.26.0",
"@babel/register": "^7.25.9",
"@definitelytyped/dtslint": "^0.2.29",
"@babel/eslint-plugin": "^7.27.1",
"@babel/preset-env": "^7.29.2",
Comment thread
Ryang-21 marked this conversation as resolved.
"@babel/preset-typescript": "^7.28.5",
"@babel/register": "^7.28.6",
"@eslint/compat": "^1.4.1",
"@istanbuljs/nyc-config-babel": "3.0.0",
"@stellar/tsconfig": "^1.0.2",
"@types/detect-node": "^2.0.0",
"@types/detect-node": "^2.0.2",
"@types/eventsource": "^1.1.12",
"@types/json-schema": "^7.0.15",
"@types/lodash": "^4.17.20",
"@types/lodash": "^4.17.24",
"@types/node": "^20.14.11",
"@types/randombytes": "^2.0.1",
"@types/urijs": "^1.19.20",
"@typescript-eslint/parser": "^8.46.4",
"@vitest/browser": "^3.2.4",
"@vitest/coverage-istanbul": "3.2.4",
"@vitest/coverage-v8": "^3.2.4",
"@vitest/ui": "^3.2.4",
"@typescript-eslint/eslint-plugin": "^8.58.0",
"@typescript-eslint/parser": "^8.58.0",
"@vitest/browser": "^4.1.2",
"@vitest/browser-playwright": "^4.1.2",
"@vitest/coverage-istanbul": "4.1.2",
"@vitest/coverage-v8": "^4.1.2",
"@vitest/ui": "^4.1.2",
"axios-mock-adapter": "^1.22.0",
"babel-loader": "^9.1.3",
"babel-plugin-istanbul": "^7.0.1",
Expand All @@ -169,44 +170,43 @@
"cross-env": "^7.0.3",
"dotenv": "^16.6.0",
"eslint": "^9.39.1",
"eslint-config-airbnb-extended": "^2.3.2",
"eslint-config-airbnb-extended": "^3.0.1",
"eslint-config-prettier": "^10.1.8",
"eslint-import-resolver-typescript": "^4.4.4",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-jsdoc": "^61.1.12",
"eslint-plugin-prettier": "^5.5.4",
"eslint-webpack-plugin": "^5.0.2",
"eslint-plugin-prettier": "^5.5.5",
"eslint-webpack-plugin": "^5.0.3",
"ghooks": "^2.0.4",
"husky": "^9.1.6",
"husky": "^9.1.7",
"jsdoc": "^4.0.4",
"jsdom": "^27.0.0",
"lint-staged": "^15.5.1",
"lodash": "^4.17.21",
"node-polyfill-webpack-plugin": "^3.0.0",
"null-loader": "^4.0.1",
"nyc": "^17.0.0",
"playwright": "^1.56.0",
"prettier": "^3.6.2",
"playwright": "^1.58.0",
"prettier": "^3.8.1",
"randombytes": "^2.1.0",
"taffydb": "^2.7.3",
"terser-webpack-plugin": "^5.3.14",
"ts-node": "^10.9.2",
"typescript": "5.6.3",
"typescript-eslint": "^8.46.4",
"vitest": "^3.2.4",
"webpack": "^5.102.1",
"vitest": "^4.1.2",
"webpack": "^5.105.4",
"webpack-cli": "^5.0.1"
},
"dependencies": {
"@stellar/stellar-base": "^14.1.0",
"axios": "^1.13.3",
"@stellar/stellar-base": "^15.0.0",
"axios": "^1.14.0",
"bignumber.js": "^9.3.1",
"commander": "^14.0.2",
"commander": "^14.0.3",
"eventsource": "^2.0.2",
"feaxios": "^0.0.23",
"randombytes": "^2.1.0",
"toml": "^3.0.0",
"urijs": "^1.19.1"
"urijs": "^1.19.11"
},
"overrides": {
"chalk": "5.3.0",
Expand Down
Loading
Loading