Skip to content

Commit 5daf44c

Browse files
authored
V15.0.0 (#1362)
* release v15.0.0 * update and cleanup unused dev dependencies
1 parent b8d5d66 commit 5daf44c

File tree

9 files changed

+2197
-3493
lines changed

9 files changed

+2197
-3493
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ A breaking change will get clearly marked in this log.
66

77
## Unreleased
88

9+
## [v15.0.0](https://github.com/stellar/js-stellar-sdk/compare/v14.6.1...v15.0.0)
10+
11+
### Breaking Changes
12+
* 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.
13+
914
### Fixed
1015
* 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)).
1116
* `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)).

config/vitest.config.browser.ts

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,44 @@
1-
import { defineConfig } from 'vitest/config'
2-
import { resolve } from 'path'
1+
import { defineConfig } from "vitest/config";
2+
import { resolve } from "path";
3+
import { playwright } from "@vitest/browser-playwright";
34

45
export default defineConfig({
56
test: {
67
globals: true,
7-
environment: 'jsdom',
8+
environment: "jsdom",
89
coverage: {
9-
provider: 'istanbul',
10-
reporter: ['text', 'html', 'lcov'],
11-
include: ['lib/**/*.js'],
12-
exclude: ['test/**', 'dist/**', 'coverage/**', '**/*.d.ts', 'lib/**/*.d.ts', ],
13-
all: true,
10+
provider: "istanbul",
11+
reporter: ["text", "html", "lcov"],
12+
include: ["lib/**/*.js"],
13+
exclude: [
14+
"test/**",
15+
"dist/**",
16+
"coverage/**",
17+
"**/*.d.ts",
18+
"lib/**/*.d.ts",
19+
],
1420
},
1521
browser: {
1622
enabled: true,
17-
provider: 'playwright',
18-
instances: [
19-
{ browser: "chromium"},
20-
{ browser: "firefox"},
21-
],
23+
provider: playwright(),
24+
instances: [{ browser: "chromium" }, { browser: "firefox" }],
2225
headless: true,
23-
screenshotFailures: false
26+
screenshotFailures: false,
2427
},
2528
// Run all unit tests in browser
26-
include: ['test/unit/**/*.test.ts'],
27-
exclude: ['test/unit/call_builders.test.ts'],
29+
include: ["test/unit/**/*.test.ts"],
30+
exclude: ["test/unit/call_builders.test.ts"],
2831
// Setup files to load the browser bundle
29-
setupFiles: [resolve(__dirname, '../test/setup-browser.ts')],
32+
setupFiles: [resolve(__dirname, "../test/setup-browser.ts")],
3033
},
3134
resolve: {
3235
alias: {
33-
'@': resolve(__dirname, '../src'),
36+
"@": resolve(__dirname, "../src"),
3437
},
3538
},
3639
define: {
3740
__USE_AXIOS__: true,
3841
__USE_EVENTSOURCE__: true,
3942
__PACKAGE_VERSION__: JSON.stringify(process.env.npm_package_version),
4043
},
41-
})
44+
});

package.json

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stellar/stellar-sdk",
3-
"version": "14.6.1",
3+
"version": "15.0.0",
44
"description": "A library for working with the Stellar network, including communication with the Horizon and Soroban RPC servers.",
55
"keywords": [
66
"stellar"
@@ -140,26 +140,27 @@
140140
"devDependencies": {
141141
"@babel/cli": "^7.28.0",
142142
"@babel/core": "^7.28.4",
143-
"@babel/eslint-plugin": "^7.26.10",
144-
"@babel/preset-env": "^7.28.0",
145-
"@babel/preset-typescript": "^7.26.0",
146-
"@babel/register": "^7.25.9",
147-
"@definitelytyped/dtslint": "^0.2.29",
143+
"@babel/eslint-plugin": "^7.27.1",
144+
"@babel/preset-env": "^7.29.2",
145+
"@babel/preset-typescript": "^7.28.5",
146+
"@babel/register": "^7.28.6",
148147
"@eslint/compat": "^1.4.1",
149148
"@istanbuljs/nyc-config-babel": "3.0.0",
150149
"@stellar/tsconfig": "^1.0.2",
151-
"@types/detect-node": "^2.0.0",
150+
"@types/detect-node": "^2.0.2",
152151
"@types/eventsource": "^1.1.12",
153152
"@types/json-schema": "^7.0.15",
154-
"@types/lodash": "^4.17.20",
153+
"@types/lodash": "^4.17.24",
155154
"@types/node": "^20.14.11",
156155
"@types/randombytes": "^2.0.1",
157156
"@types/urijs": "^1.19.20",
158-
"@typescript-eslint/parser": "^8.46.4",
159-
"@vitest/browser": "^3.2.4",
160-
"@vitest/coverage-istanbul": "3.2.4",
161-
"@vitest/coverage-v8": "^3.2.4",
162-
"@vitest/ui": "^3.2.4",
157+
"@typescript-eslint/eslint-plugin": "^8.58.0",
158+
"@typescript-eslint/parser": "^8.58.0",
159+
"@vitest/browser": "^4.1.2",
160+
"@vitest/browser-playwright": "^4.1.2",
161+
"@vitest/coverage-istanbul": "4.1.2",
162+
"@vitest/coverage-v8": "^4.1.2",
163+
"@vitest/ui": "^4.1.2",
163164
"axios-mock-adapter": "^1.22.0",
164165
"babel-loader": "^9.1.3",
165166
"babel-plugin-istanbul": "^7.0.1",
@@ -169,44 +170,43 @@
169170
"cross-env": "^7.0.3",
170171
"dotenv": "^16.6.0",
171172
"eslint": "^9.39.1",
172-
"eslint-config-airbnb-extended": "^2.3.2",
173+
"eslint-config-airbnb-extended": "^3.0.1",
173174
"eslint-config-prettier": "^10.1.8",
174175
"eslint-import-resolver-typescript": "^4.4.4",
175176
"eslint-plugin-import": "^2.32.0",
176177
"eslint-plugin-jsdoc": "^61.1.12",
177-
"eslint-plugin-prettier": "^5.5.4",
178-
"eslint-webpack-plugin": "^5.0.2",
178+
"eslint-plugin-prettier": "^5.5.5",
179+
"eslint-webpack-plugin": "^5.0.3",
179180
"ghooks": "^2.0.4",
180-
"husky": "^9.1.6",
181+
"husky": "^9.1.7",
181182
"jsdoc": "^4.0.4",
182183
"jsdom": "^27.0.0",
183184
"lint-staged": "^15.5.1",
184185
"lodash": "^4.17.21",
185186
"node-polyfill-webpack-plugin": "^3.0.0",
186187
"null-loader": "^4.0.1",
187188
"nyc": "^17.0.0",
188-
"playwright": "^1.56.0",
189-
"prettier": "^3.6.2",
189+
"playwright": "^1.58.0",
190+
"prettier": "^3.8.1",
190191
"randombytes": "^2.1.0",
191192
"taffydb": "^2.7.3",
192193
"terser-webpack-plugin": "^5.3.14",
193194
"ts-node": "^10.9.2",
194195
"typescript": "5.6.3",
195-
"typescript-eslint": "^8.46.4",
196-
"vitest": "^3.2.4",
197-
"webpack": "^5.102.1",
196+
"vitest": "^4.1.2",
197+
"webpack": "^5.105.4",
198198
"webpack-cli": "^5.0.1"
199199
},
200200
"dependencies": {
201-
"@stellar/stellar-base": "^14.1.0",
202-
"axios": "^1.13.3",
201+
"@stellar/stellar-base": "^15.0.0",
202+
"axios": "^1.14.0",
203203
"bignumber.js": "^9.3.1",
204-
"commander": "^14.0.2",
204+
"commander": "^14.0.3",
205205
"eventsource": "^2.0.2",
206206
"feaxios": "^0.0.23",
207207
"randombytes": "^2.1.0",
208208
"toml": "^3.0.0",
209-
"urijs": "^1.19.1"
209+
"urijs": "^1.19.11"
210210
},
211211
"overrides": {
212212
"chalk": "5.3.0",

0 commit comments

Comments
 (0)