Skip to content
Merged
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
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# @tobelabs/chainwright

## 0.11.0

### Minor Changes

- [Core] - Replace the 'glob' package with Node.js internal method
Comment on lines +3 to +7

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Document the complete 0.11.0 upgrade impact.

The 0.11.0 entry only records the glob replacement. This release also raises engines.node to >=22.18, adds the root . export, and removes selected Zod schemas and runtime parsing. Record these changes so consumers can assess compatibility before upgrading.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@CHANGELOG.md` around lines 3 - 7, Expand the 0.11.0 “Minor Changes” entry in
CHANGELOG.md to document all upgrade-impacting changes: the engines.node
requirement of >=22.18, the new root “.” export, and removal of the specified
Zod schemas and runtime parsing, while retaining the existing glob replacement
entry.


## 0.10.17

### Patch Changes

- [Release] - Fix failing release build by reverting from Typescript v7.0.2 to v5.9.3

## 0.10.16

### Patch Changes

- [Core] - Update Playwright and other core dependencies

## 0.10.15

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion dist/cli/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env -S node --import tsx
#!/usr/bin/env node
declare function clientEntry(): Promise<void>;

export { clientEntry };
20 changes: 10 additions & 10 deletions dist/cli/index.js

Large diffs are not rendered by default.

27 changes: 12 additions & 15 deletions dist/wallets/keplr/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { W as WorkerScopeFixture } from '../../worker-scope-context-DSkOcWf-.js'
export { w as workerScopeContext } from '../../worker-scope-context-DSkOcWf-.js';
import * as _playwright_test from '@playwright/test';
import { BrowserContext, Page } from '@playwright/test';
import z from 'zod';

declare class KeplrProfile {
readonly name: "keplr";
Expand Down Expand Up @@ -41,20 +40,18 @@ interface AddAccountViaPrivateKey extends AddAccount {
interface AddAccountViaSeedPhrase extends AddAccount {
seedPhrase: string;
}
declare const getAccountAddressSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
chain: z.ZodLiteral<"Injective" | "Injective (Testnet)" | "Polygon">;
walletName: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
chain: z.ZodLiteral<"Bitcoin" | "Bitcoin Signet" | "Bitcoin Testnet">;
chainTag: z.ZodLiteral<"Taproot" | "Native Segwit">;
walletName: z.ZodString;
}, z.core.$strip>], "chain">;
type GetAccountAddressArgs = z.infer<typeof getAccountAddressSchema>;
declare const renameAccountSchema: z.ZodObject<{
currentAccountName: z.ZodString;
newAccountName: z.ZodString;
}, z.core.$strip>;
type RenameAccountArgs = z.infer<typeof renameAccountSchema>;
type GetAccountAddressArgs = {
chain: "Injective" | "Injective (Testnet)" | "Polygon";
walletName: string;
} | {
chain: "Bitcoin" | "Bitcoin Signet" | "Bitcoin Testnet";
chainTag: "Taproot" | "Native Segwit";
walletName: string;
};
type RenameAccountArgs = {
currentAccountName: string;
newAccountName: string;
};
type KeplrFixture = {
contextPath: string;
keplr: Keplr;
Expand Down
8 changes: 4 additions & 4 deletions dist/wallets/keplr/index.js

Large diffs are not rendered by default.

16 changes: 7 additions & 9 deletions dist/wallets/metamask/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { W as WorkerScopeFixture } from '../../worker-scope-context-DSkOcWf-.js'
export { w as workerScopeContext } from '../../worker-scope-context-DSkOcWf-.js';
import * as _playwright_test from '@playwright/test';
import { Page, BrowserContext } from '@playwright/test';
import z from 'zod';

type RenameAccount = {
page: Page;
Expand Down Expand Up @@ -32,13 +31,12 @@ type AddAccountArgs = {
privateKey: string;
accountName: string;
};
declare const addCustomNetworkSchema: z.ZodObject<{
networkName: z.ZodString;
rpcUrl: z.ZodURL;
chainId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
currencySymbol: z.ZodString;
}, z.core.$strip>;
type AddCustomNetwork = z.infer<typeof addCustomNetworkSchema>;
type AddCustomNetwork = {
networkName: string;
rpcUrl: string;
chainId: number | string;
currencySymbol: string;
};
type SwitchNetwork = {
chainName: "Ethereum" | "Base" | "Linea";
networkType: "mainnet";
Expand Down Expand Up @@ -427,4 +425,4 @@ declare const metamaskFixture: ({ slowMo, profileName }?: WalletProfileFixtureAr

declare const metamaskWorkerScopeFixture: ({ profileName, slowMo }?: WalletProfileFixtureArgs) => _playwright_test.TestType<_playwright_test.PlaywrightTestArgs & _playwright_test.PlaywrightTestOptions & MetamaskFixture, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions & WorkerScopeFixture<Metamask>>;

export { type AddAccountArgs, type AddCustomNetwork, type AnvilNodeInstance, type AnvilNodeOptions, type CreateAnvilNodeResult, type GasFeeSettings, type GetAccountAddressChains, Metamask, type MetamaskFixture, type OnboardingArgs, type SwitchNetwork, WalletProfileFixtureArgs, WorkerScopeFixture, addCustomNetworkSchema, metamaskFixture, metamaskWorkerScopeFixture };
export { type AddAccountArgs, type AddCustomNetwork, type AnvilNodeInstance, type AnvilNodeOptions, type CreateAnvilNodeResult, type GasFeeSettings, type GetAccountAddressChains, Metamask, type MetamaskFixture, type OnboardingArgs, type SwitchNetwork, WalletProfileFixtureArgs, WorkerScopeFixture, metamaskFixture, metamaskWorkerScopeFixture };
10 changes: 5 additions & 5 deletions dist/wallets/metamask/index.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/wallets/petra/index.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/wallets/phantom/index.js

Large diffs are not rendered by default.

10 changes: 4 additions & 6 deletions dist/wallets/solflare/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { W as WorkerScopeFixture } from '../../worker-scope-context-DSkOcWf-.js'
export { w as workerScopeContext } from '../../worker-scope-context-DSkOcWf-.js';
import * as _playwright_test from '@playwright/test';
import { BrowserContext, Page } from '@playwright/test';
import z from 'zod';

declare class SolflareProfile {
readonly name: "solflare";
Expand All @@ -21,11 +20,10 @@ type OnboardingArgs = {
additionalAccounts?: Array<AddAccountArgs>;
};
type SwitchNetwork = Omit<Required<OnboardingArgs>, "recoveryPhrase">["network"];
declare const addAccountSchema: z.ZodObject<{
walletName: z.ZodString;
privateKey: z.ZodString;
}, z.core.$strip>;
type AddAccountArgs = z.infer<typeof addAccountSchema>;
type AddAccountArgs = {
walletName: string;
privateKey: string;
};
type RenameAccountArgs = {
currentAccountName: string;
newAccountName: string;
Expand Down
10 changes: 5 additions & 5 deletions dist/wallets/solflare/index.js

Large diffs are not rendered by default.

24 changes: 13 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chainwright",
"version": "0.10.15",
"version": "0.11.0",
"description": "Playwright Web3 wallet testing framework for end-to-end dApp automation with MetaMask, Phantom, Solflare, Petra, Meteor, and Keplr",
"type": "module",
"license": "MIT",
Expand Down Expand Up @@ -33,6 +33,10 @@
"keplr"
],
"exports": {
".": {
"types": "./dist/core/index.d.ts",
"import": "./dist/core/index.js"
},
"./keplr": {
"types": "./dist/wallets/keplr/index.d.ts",
"import": "./dist/wallets/keplr/index.js"
Expand Down Expand Up @@ -72,7 +76,7 @@
"access": "public"
},
"engines": {
"node": ">=22"
"node": ">=22.18"
},
"scripts": {
"build": "tsup",
Expand All @@ -91,27 +95,25 @@
"add:wallet": "tsx scripts/add-wallet.ts"
},
"peerDependencies": {
"@playwright/test": "1.61.1"
"@playwright/test": "1.62.1"
},
"devDependencies": {
"@biomejs/biome": "2.4.15",
"@biomejs/biome": "2.5.7",
"@changesets/cli": "^2.31.1",
"@playwright/test": "1.61.1",
"@playwright/test": "1.62.1",
"@types/adm-zip": "^0.5.8",
"@types/cli-progress": "^3.11.6",
"@types/node": "^26.0.1",
"@types/node": "^26.2.0",
"tsup": "^8.5.1",
"typescript": "^6.0.3",
"tsx": "^4.23.12",
"typescript": "^5.9.3",
"vitest": "^4.1.10"
},
"dependencies": {
"@inquirer/checkbox": "^5.2.1",
"adm-zip": "^0.6.0",
"cli-progress": "^3.12.0",
"commander": "^15.0.0",
"glob": "^13.0.6",
"prool": "^0.2.14",
"tsx": "^4.23.10",
"zod": "^4.4.3"
"prool": "^0.2.14"
}
}
Loading