Skip to content
Open
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
70,979 changes: 53,302 additions & 17,677 deletions .github/actions/chrome-extension-upload/dist/index.js

Large diffs are not rendered by default.

18 changes: 14 additions & 4 deletions .github/actions/chrome-extension-upload/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
const core = require("@actions/core");
// @actions/core v3+ is ESM-only (no CommonJS `require` export), so it is
// loaded via dynamic import inside run() before any use. ncc bundles the
// dynamically-imported module into dist/index.js.
let core;
const fs = require("fs");
const glob = require("glob");
const chromeWebstoreUpload = require("./chrome-extension-upload");
Expand Down Expand Up @@ -31,7 +34,7 @@ function uploadFile(webStore, filePath, publishFlg, publishTarget) {
.catch((e) => {
core.error(e);
core.setFailed(
"publish error - You will need to access the Chrome Web Store Developer Dashboard and publish manually."
"publish error - You will need to access the Chrome Web Store Developer Dashboard and publish manually.",
);
});
}
Expand All @@ -40,14 +43,16 @@ function uploadFile(webStore, filePath, publishFlg, publishTarget) {
console.log(e);
core.error(e);
core.setFailed(
"upload error - You will need to go to the Chrome Web Store Developer Dashboard and upload it manually."
"upload error - You will need to go to the Chrome Web Store Developer Dashboard and upload it manually.",
);
});
});
}

async function run() {
try {
core = await import(/* webpackMode: "eager" */ "@actions/core");

const filePath = core.getInput("file-path", { required: true });
const extensionId = core.getInput("extension-id", { required: true });
const clientId = core.getInput("client-id", { required: true });
Expand Down Expand Up @@ -75,7 +80,12 @@ async function run() {
uploadFile(webStore, filePath, publishFlg, publishTarget);
}
} catch (error) {
core.setFailed(error.message);
if (core) {
core.setFailed(error.message);
} else {
console.error(error);
process.exitCode = 1;
}
}
}

Expand Down
6 changes: 3 additions & 3 deletions @shared/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
"version": "1.0.0",
"private": true,
"dependencies": {
"@blockaid/client": "0.31.0",
"@blockaid/client": "1.4.0",
"@stellar/js-xdr": "4.0.0",
"bignumber.js": "9.3.0",
"prettier": "3.8.4",
"stellar-sdk": "npm:@stellar/stellar-sdk@16.0.0-rc.1",
"stellar-sdk-next": "npm:@stellar/stellar-sdk@16.0.0-rc.1",
"typescript": "5.8.3",
"typescript": "6.0.3",
"webextension-polyfill": "0.12.0"
},
"devDependencies": {
"@lavamoat/allow-scripts": "3.3.2"
"@lavamoat/allow-scripts": "5.1.0"
},
"lavamoat": {
"allowScripts": {
Expand Down
4 changes: 2 additions & 2 deletions @shared/constants/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"dependencies": {
"stellar-sdk": "npm:@stellar/stellar-sdk@16.0.0-rc.1",
"stellar-sdk-next": "npm:@stellar/stellar-sdk@16.0.0-rc.1",
"typescript": "5.8.3"
"typescript": "6.0.3"
},
"devDependencies": {
"@lavamoat/allow-scripts": "3.3.2"
"@lavamoat/allow-scripts": "5.1.0"
},
"lavamoat": {
"allowScripts": {
Expand Down
2 changes: 1 addition & 1 deletion @shared/helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"bignumber.js": "9.3.0",
"stellar-sdk": "npm:@stellar/stellar-sdk@16.0.0-rc.1",
"stellar-sdk-next": "npm:@stellar/stellar-sdk@16.0.0-rc.1",
"typescript": "5.8.3"
"typescript": "6.0.3"
}
}
2 changes: 1 addition & 1 deletion @stellar/freighter-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"semver": "7.8.4"
},
"devDependencies": {
"@lavamoat/allow-scripts": "3.3.2"
"@lavamoat/allow-scripts": "5.1.0"
}
}
3 changes: 2 additions & 1 deletion @stellar/freighter-api/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
"declaration": true,
"declarationDir": "build/",
"outDir": "build/",
"rootDir": "../..",
"paths": {
"@shared/*": ["../../../@shared/*"]
},
"types": ["@testing-library/jest-dom"]
"types": ["@testing-library/jest-dom", "node"]
},
"include": ["src"],
"exclude": ["build", "node_modules", "src/**/*.test.js"]
Expand Down
4 changes: 2 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@
"dependencies": {
"@docusaurus/core": "3.10.1",
"@docusaurus/preset-classic": "3.10.1",
"@stellar/freighter-api": "latest",
"@stellar/freighter-api": "6.0.1",
"clsx": "2.1.1",
"react": "19.2.7",
"react-dom": "19.2.7",
"react-is": "19.2.7",
"styled-components": "6.4.2"
},
"devDependencies": {
"@lavamoat/allow-scripts": "3.3.2"
"@lavamoat/allow-scripts": "5.1.0"
},
"lavamoat": {
"allowScripts": {
Expand Down
6 changes: 6 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ export default [

semi: ["error", "always"],
"no-unsafe-optional-chaining": "off",

// Newly added to eslint's `recommended` set in ESLint 10. Kept off here to
// preserve the pre-upgrade lint baseline; adopting them (and fixing the
// ~42 existing violations) is tracked as a separate follow-up.
"no-useless-assignment": "off",
"preserve-caught-error": "off",
},
},
];
32 changes: 16 additions & 16 deletions extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,26 @@
"test:e2e": "playwright test"
},
"dependencies": {
"@amplitude/analytics-browser": "^2.37.0",
"@amplitude/experiment-js-client": "^1.20.3",
"@amplitude/analytics-browser": "2.44.4",
"@amplitude/experiment-js-client": "1.21.2",
"@ledgerhq/hw-app-str": "7.7.4",
"@ledgerhq/hw-transport-webhid": "6.35.4",
"@radix-ui/react-dialog": "1.1.16",
"@radix-ui/react-popover": "1.1.16",
"@reduxjs/toolkit": "2.12.0",
"@sentry/browser": "9.13.0",
"@sentry/browser": "10.62.0",
"@shared/api": "1.0.0",
"@shared/constants": "1.0.0",
"@shared/helpers": "1.0.0",
"@stellar/design-system": "3.2.8",
"@stellar/typescript-wallet-sdk-km": "1.9.0",
"@stellar/typescript-wallet-sdk-km": "3.0.1",
"@tailwindcss/postcss": "4.3.1",
"@testing-library/react": "16.3.2",
"@testing-library/user-event": "14.6.1",
"@types/chrome": "0.1.43",
"@types/jsdom": "21.1.7",
"@types/lodash": "4.17.24",
"@types/node": "22.14.1",
"@types/node": "26.0.1",
"@types/qrcode.react": "3.0.0",
"@types/react": "19.2.17",
"@types/react-copy-to-clipboard": "5.0.7",
Expand All @@ -47,21 +47,21 @@
"bignumber.js": "9.3.0",
"buffer": "6.0.3",
"classnames": "2.5.1",
"concurrently": "9.1.2",
"copy-webpack-plugin": "13.0.0",
"concurrently": "10.0.3",
"copy-webpack-plugin": "14.0.0",
"css-loader": "7.1.4",
"dotenv-webpack": "8.1.0",
"dotenv-webpack": "9.0.0",
"fetch": "1.1.0",
"formik": "2.4.9",
"html-loader": "5.1.0",
"html-webpack-plugin": "5.6.7",
"i18next": "25.0.1",
"i18next": "26.3.3",
"i18next-browser-languagedetector": "8.2.1",
"i18next-resources-to-backend": "1.2.1",
"i18next-scanner-webpack": "0.9.1",
"i18next-scanner-webpack": "1.0.0",
"jest-canvas-mock": "2.5.2",
"jest-environment-jsdom": "29.7.0",
"js-yaml": "4.2.0",
"js-yaml": "5.2.0",
"jsonschema": "1.5.0",
"lodash": "4.18.1",
"mini-css-extract-plugin": "2.10.2",
Expand All @@ -78,9 +78,9 @@
"react-router-dom": "7.17.0",
"redux": "5.0.1",
"sass": "1.101.0",
"sass-loader": "16.0.5",
"sass-loader": "17.0.0",
"semver": "7.8.4",
"ses": "1.12.0",
"ses": "2.2.0",
"sonner": "2.0.7",
"soroswap-router-sdk": "1.4.6",
"stellar-hd-wallet": "1.0.2",
Expand All @@ -95,9 +95,9 @@
"yup": "1.7.1"
},
"devDependencies": {
"@lavamoat/allow-scripts": "3.3.2",
"@lavamoat/allow-scripts": "5.1.0",
"@playwright/test": "1.61.0",
"@sentry/webpack-plugin": "3.3.1",
"@sentry/webpack-plugin": "5.3.0",
"@svgr/webpack": "8.1.0",
"@types/js-yaml": "4.0.9",
"@types/semver": "7.7.1",
Expand All @@ -108,7 +108,7 @@
"postcss": "8.5.15",
"postcss-loader": "8.2.1",
"process": "0.11.10",
"shadcn": "3.8.4",
"shadcn": "4.12.0",
"speed-measure-webpack-plugin": "1.6.0",
"stream-browserify": "3.0.0",
"stream-http": "3.2.0",
Expand Down
6 changes: 6 additions & 0 deletions extension/src/custom.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ declare module "*.svg" {
export default content;
}

// TypeScript 6 requires side-effect imports (e.g. `import "./styles.scss"`)
// to resolve to a declared module; these are handled by webpack loaders.
declare module "*.scss";

declare module "*.css";

declare module "qrcode.react";

declare module "react-identicons";
Expand Down
33 changes: 18 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,14 @@
]
},
"dependencies": {
"@actions/core": "1.11.1",
"@actions/core": "3.0.1",
"@babel/core": "7.29.7",
"@babel/eslint-parser": "7.29.7",
"@babel/plugin-proposal-optional-chaining": "7.21.0",
"@babel/preset-env": "7.29.7",
"@babel/preset-react": "7.29.7",
"@babel/preset-typescript": "7.29.7",
"@eslint/js": "10.0.1",
"@testing-library/dom": "10.4.1",
"@testing-library/jest-dom": "6.9.1",
"@types/jest": "29.5.14",
Expand All @@ -82,41 +83,41 @@
"babel-loader": "10.1.1",
"babel-plugin-dynamic-import-node": "2.3.3",
"babel-polyfill": "6.26.0",
"eslint": "9.18.0",
"eslint": "10.6.0",
"eslint-config-prettier": "10.1.8",
"eslint-config-react": "1.1.7",
"eslint-import-resolver-typescript": "3.7.0",
"eslint-import-resolver-typescript": "4.4.5",
"eslint-plugin-import": "2.32.0",
"eslint-plugin-jsx-a11y": "6.x",
"eslint-plugin-prettier": "5.5.6",
"eslint-plugin-react": "7.37.5",
"eslint-plugin-react-hooks": "5.1.0",
"eslint-webpack-plugin": "5.0.0",
"glob": "12.0.0",
"globals": "16.0.0",
"got": "14.4.5",
"eslint-plugin-react-hooks": "7.1.1",
"eslint-webpack-plugin": "6.0.0",
"glob": "13.0.6",
"globals": "17.7.0",
"got": "15.0.6",
"husky": "9.1.7",
"isomorphic-unfetch": "4.0.2",
"jest": "29.7.0",
"jest-localstorage-mock": "2.4.26",
"jsdom": "26.0.0",
"jsdom-global": "3.0.2",
"lint-staged": "15.4.1",
"lint-staged": "17.0.8",
"npm-run-all": "4.1.5",
"prettier": "3.8.4",
"pretty-quick": "4.2.2",
"react-i18next": "15.4.1",
"react-i18next": "17.0.8",
"ts-loader": "9.6.0",
"typescript": "5.7.3",
"typescript": "6.0.3",
"webpack": "5.107.2",
"webpack-cli": "6.0.1",
"webpack-cli": "7.1.0",
"webpack-dev-server": "5.2.5",
"webpack-merge": "6.0.1"
},
"devDependencies": {
"@lavamoat/allow-scripts": "3.3.1",
"@lavamoat/preinstall-always-fail": "2.1.0",
"eslint-plugin-jsdoc": "50.6.2",
"@lavamoat/allow-scripts": "5.1.0",
"@lavamoat/preinstall-always-fail": "3.0.0",
"eslint-plugin-jsdoc": "63.0.10",
"eslint-plugin-prefer-arrow": "1.2.3",
"jest-fixed-jsdom": "0.0.11"
},
Expand All @@ -125,11 +126,13 @@
"@lavamoat/preinstall-always-fail": false,
"@testing-library/dom>aria-query>@babel/runtime-corejs3>core-js-pure": false,
"babel-polyfill>core-js": false,
"eslint-import-resolver-typescript>unrs-resolver": false,
"webpack-dev-server>chokidar>fsevents": true,
"webpack>watchpack>watchpack-chokidar2>chokidar>fsevents": true
}
},
"resolutions": {
"@stellar/freighter-api": "workspace:*",
"chalk@5.6.1": "5.6.2",
"strip-ansi@7.1.1": "7.1.2",
"color-convert@3.1.1": "3.1.0",
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"ignoreDeprecations": "6.0",
"sourceMap": true,
"importHelpers": true,
"target": "ES2019",
Expand Down
Loading
Loading