Skip to content

Commit 0a2eff6

Browse files
authored
Merge branch 'main' into mev-protect
2 parents c840a8e + ffff6a4 commit 0a2eff6

File tree

20 files changed

+1328
-416
lines changed

20 files changed

+1328
-416
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,11 @@ on:
1010
required: true
1111
SENTRY_KEY:
1212
required: true
13-
GF_SURVEY_KEY:
14-
required: true
1513

1614
env:
1715
SEGMENT_ANALYTICS_KEY: ${{ secrets.SEGMENT_ANALYTICS_KEY }}
1816
LD_CLIENT_ID: ${{ secrets.LD_CLIENT_ID }}
1917
SENTRY_KEY: ${{ secrets.SENTRY_KEY }}
20-
GF_SURVEY_KEY: ${{ secrets.GF_SURVEY_KEY }}
2118

2219
jobs:
2320
build:

.github/workflows/case.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,19 @@ on:
1010
required: true
1111
SENTRY_KEY:
1212
required: true
13-
GF_SURVEY_KEY:
14-
required: true
1513

1614
env:
1715
SEGMENT_ANALYTICS_KEY: ${{ secrets.SEGMENT_ANALYTICS_KEY }}
1816
LD_CLIENT_ID: ${{ secrets.LD_CLIENT_ID }}
1917
SENTRY_KEY: ${{ secrets.SENTRY_KEY }}
20-
GF_SURVEY_KEY: ${{ secrets.GF_SURVEY_KEY }}
2118

2219
jobs:
2320
case:
2421
name: Check for case being inconsistent
2522
runs-on: ubuntu-latest
2623
strategy:
2724
matrix:
28-
folder: ["docs"]
25+
folder: ['docs']
2926
permissions:
3027
contents: read
3128
steps:

.github/workflows/lint.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,11 @@ on:
1010
required: true
1111
SENTRY_KEY:
1212
required: true
13-
GF_SURVEY_KEY:
14-
required: true
1513

1614
env:
1715
SEGMENT_ANALYTICS_KEY: ${{ secrets.SEGMENT_ANALYTICS_KEY }}
1816
LD_CLIENT_ID: ${{ secrets.LD_CLIENT_ID }}
1917
SENTRY_KEY: ${{ secrets.SENTRY_KEY }}
20-
GF_SURVEY_KEY: ${{ secrets.GF_SURVEY_KEY }}
2118

2219
jobs:
2320
lint:
@@ -36,20 +33,20 @@ jobs:
3633
runs-on: ubuntu-latest
3734
strategy:
3835
matrix:
39-
file-extensions: [".md", ".mdx"]
36+
file-extensions: ['.md', '.mdx']
4037
steps:
4138
- uses: actions/checkout@v4
4239
- name: Vale
4340
uses: Consensys/docs-gha/spelling@main
4441
with:
45-
FILEPATHS: "snaps,services,wallet,developer-tools,docs"
42+
FILEPATHS: 'snaps,services,wallet,developer-tools,docs'
4643

4744
linkCheck:
4845
name: Link Checking
4946
runs-on: ubuntu-latest
5047
strategy:
5148
matrix:
52-
file-extensions: [".md", ".mdx"]
49+
file-extensions: ['.md', '.mdx']
5350
steps:
5451
- uses: actions/checkout@v4
5552
- name: LinkCheck

.github/workflows/main.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ jobs:
2626
SEGMENT_ANALYTICS_KEY: ${{ secrets.SEGMENT_ANALYTICS_DEV_KEY }}
2727
LD_CLIENT_ID: ${{ secrets.LD_CLIENT_ID }}
2828
SENTRY_KEY: ${{ secrets.SENTRY_KEY }}
29-
GF_SURVEY_KEY: ${{ secrets.GF_SURVEY_KEY }}
3029

3130
lint:
3231
name: Lint
@@ -35,7 +34,6 @@ jobs:
3534
SEGMENT_ANALYTICS_KEY: ${{ secrets.SEGMENT_ANALYTICS_DEV_KEY }}
3635
LD_CLIENT_ID: ${{ secrets.LD_CLIENT_ID }}
3736
SENTRY_KEY: ${{ secrets.SENTRY_KEY }}
38-
GF_SURVEY_KEY: ${{ secrets.GF_SURVEY_KEY }}
3937

4038
case:
4139
name: Case
@@ -44,7 +42,6 @@ jobs:
4442
SEGMENT_ANALYTICS_KEY: ${{ secrets.SEGMENT_ANALYTICS_DEV_KEY }}
4543
LD_CLIENT_ID: ${{ secrets.LD_CLIENT_ID }}
4644
SENTRY_KEY: ${{ secrets.SENTRY_KEY }}
47-
GF_SURVEY_KEY: ${{ secrets.GF_SURVEY_KEY }}
4845

4946
all-jobs-completed:
5047
name: All jobs completed

docs/whats-new.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ The latest major MetaMask documentation updates are listed by the month they wer
99
For a comprehensive list of recent product changes, visit the "Release Notes" section at the bottom
1010
of the [MetaMask developer page](https://metamask.io/developer/).
1111

12+
## April 2025
13+
14+
- Documented [Snaps bundle analyzer option](/snaps/reference/cli/subcommands/#analyze).
15+
([#1955](https://github.com/MetaMask/metamask-docs/pull/1955))
16+
1217
## March 2025
1318

1419
- Added a tutorial for [sending a transaction using Viem](/services/tutorials/ethereum/send-a-transaction/send-a-transaction-viem). ([#1920](https://github.com/MetaMask/metamask-docs/pull/1920))

docusaurus.config.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ const config = {
4242
VERCEL_ENV: process.env.VERCEL_ENV,
4343
DASHBOARD_URL: process.env.DASHBOARD_URL || 'http://localhost:3000',
4444
SENTRY_KEY: process.env.SENTRY_KEY,
45-
GF_SURVEY_KEY: process.env.GF_SURVEY_KEY,
4645
LINEA_ENS_URL: process.env.LINEA_ENS_URL,
4746
},
4847

@@ -57,8 +56,6 @@ const config = {
5756
defer: true,
5857
'data-domain': 'docs.metamask.io',
5958
},
60-
{ src: '/js/feedback-script.js', defer: true, async: true },
61-
{ src: '/js/getfeedback.js', defer: true, async: true },
6259
],
6360

6461
markdown: {
@@ -296,16 +293,16 @@ const config = {
296293
href: 'https://github.com/MetaMask/metamask-docs',
297294
},
298295
{
299-
label: "MetaMask wallet GitHub",
300-
href: "https://github.com/MetaMask/metamask-extension/",
296+
label: 'MetaMask wallet GitHub',
297+
href: 'https://github.com/MetaMask/metamask-extension/',
301298
},
302299
{
303300
label: 'MetaMask SDK GitHub',
304301
href: 'https://github.com/MetaMask/metamask-sdk/',
305302
},
306303
{
307-
label: "MetaMask Mobile GitHub",
308-
href: "https://github.com/MetaMask/metamask-mobile",
304+
label: 'MetaMask Mobile GitHub',
305+
href: 'https://github.com/MetaMask/metamask-mobile',
309306
},
310307
{
311308
label: 'Snaps GitHub',

package-lock.json

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

snaps/learn/about-snaps/files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,6 @@ built-ins must be bundled along with the Snap.
164164
Running `yarn start` bundles your Snap for you.
165165

166166
You can also run [`yarn mm-snap build`](../../reference/cli/subcommands.md#b-build) to bundle your
167-
Snap using [webpack](https://webpack.js.org/) or [Browserify](https://browserify.org).
167+
Snap using [webpack](https://webpack.js.org/).
168168
This command finds all dependencies using your specified main entry point and outputs a bundle
169169
file to your specified output path.

snaps/reference/cli/subcommands.md

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,27 @@ Builds a Snap from source.
2929

3030
`b` is an alias for `build`.
3131

32+
#### `analyze`
33+
34+
<Tabs>
35+
<TabItem value="Syntax">
36+
37+
```bash
38+
yarn mm-snap build --analyze
39+
```
40+
41+
</TabItem>
42+
</Tabs>
43+
44+
Enables analyzing the Snap [bundle](../../learn/about-snaps/files.md#bundle-file).
45+
This uses [`webpack-bundle-analyzer`](https://github.com/webpack-contrib/webpack-bundle-analyzer) under the hood,
46+
which creates an interactive visualization of the contents of your bundle.
47+
The visualization is located at the URL displayed in the command line output (for example, `http://localhost:8888`).
48+
49+
:::info
50+
This option requires [`@metamask/snaps-cli`](https://github.com/MetaMask/snaps/tree/main/packages/snaps-cli) version 6.7.0 or later.
51+
:::
52+
3253
#### `c`, `config`
3354

3455
<Tabs>
@@ -48,7 +69,8 @@ yarn mm-snap build --config ./snap.config.build.ts
4869
</TabItem>
4970
</Tabs>
5071

51-
Path to the [configuration file](../../learn/about-snaps/files.md#configuration-file).
72+
Path to the [configuration file](../../learn/about-snaps/files.md#configuration-file),
73+
which specifies [options](options.md) with which to the build the Snap.
5274

5375
`-c` is an alias for `--config`.
5476

@@ -79,21 +101,13 @@ Validates the Snap [manifest file](../../learn/about-snaps/files.md#manifest-fil
79101
<TabItem value="Syntax">
80102

81103
```bash
82-
yarn mm-snap manifest --fix <BOOLEAN>
83-
```
84-
85-
</TabItem>
86-
<TabItem value="Example">
87-
88-
```bash
89-
yarn mm-snap manifest --fix false
104+
yarn mm-snap manifest --fix
90105
```
91106

92107
</TabItem>
93108
</Tabs>
94109

95-
Enables or disables making any changes to fix the manifest file.
96-
The default is `true`.
110+
Enables making any changes to fix the manifest file.
97111

98112
### `s`, `serve`
99113

src/components/ParserOpenRPC/DetailsBox/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ export default function DetailsBox({
4848
{summary !== null && (
4949
<p
5050
style={{ marginBottom: '0.5rem' }}
51-
className={clsx('padding-bottom--md', styles.borderBottomLine)}>
51+
className={clsx('padding-bottom--md', styles.borderBottomLine, styles.methodSummary)}>
5252
<strong>Summary: </strong>
5353
<span className={styles.summaryText}>
5454
<MDContent content={summary} />
5555
</span>
5656
</p>
5757
)}
5858
{description !== null && (
59-
<div className="padding-top--md">
59+
<div className={clsx("padding-top--md", styles.methodDescription)}>
6060
<MDContent content={description} />
6161
</div>
6262
)}
@@ -68,7 +68,7 @@ export default function DetailsBox({
6868
</Heading>
6969
<div className={styles.paramContainer}>
7070
{params.length === 0 ? (
71-
<div className="padding-vert--md">This method doesn't accept any parameters.</div>
71+
<div className={clsx("padding-vert--md", styles.noParamsDescription)}>This method doesn't accept any parameters.</div>
7272
) : (
7373
params && renderParamSchemas(params, components)
7474
)}

0 commit comments

Comments
 (0)