diff --git a/package-lock.json b/package-lock.json index c87e29b359e..8e91ad0a3ca 100644 --- a/package-lock.json +++ b/package-lock.json @@ -100,7 +100,7 @@ "lint-staged": "^15.5.2", "openapi-types": "^12.1.3", "pino-pretty": "^13.1.3", - "prettier": "^3.8.4", + "prettier": "^3.9.1", "prettier-plugin-astro": "^0.14.1", "remark-gfm": "^4.0.0", "remark-mdx": "^3.1.0", @@ -31990,9 +31990,9 @@ } }, "node_modules/prettier": { - "version": "3.8.4", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.8.4.tgz", - "integrity": "sha512-N2MylSdi48+5N/6S5j+maeHbUSIzzZ5uOcX5Hm4QpV8Dkb1HFjfAKTKX6yNPJQD9AhcT3ifHNB66tWTTJDi11Q==", + "version": "3.9.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.9.1.tgz", + "integrity": "sha512-ppiDo2CSwexck1eyZUwJHg/N3nf1+6IRCv7W/VJ5vaLnVCmB7+3CdRfMwoCHBBX6xTrREDTksZ4OZl5SSf4zXA==", "dev": true, "license": "MIT", "bin": { diff --git a/package.json b/package.json index 581dd22d5b8..c250308f31d 100644 --- a/package.json +++ b/package.json @@ -146,7 +146,7 @@ "lint-staged": "^15.5.2", "openapi-types": "^12.1.3", "pino-pretty": "^13.1.3", - "prettier": "^3.8.4", + "prettier": "^3.9.1", "prettier-plugin-astro": "^0.14.1", "remark-gfm": "^4.0.0", "remark-mdx": "^3.1.0", diff --git a/src/content/cre/llms-full-ts.txt b/src/content/cre/llms-full-ts.txt index e8f8ac19636..2f92f5958de 100644 --- a/src/content/cre/llms-full-ts.txt +++ b/src/content/cre/llms-full-ts.txt @@ -17796,12 +17796,8 @@ Directly replaces the on-chain entry path of `_sendRequest()`. Instead of your c ```ts const evmClient = new cre.evm.EVMClient(CHAIN_SELECTOR) const trigger = evmClient.logTrigger({ - addresses: [ - /* base64-encoded contract address */ - ], - topics: [ - /* base64-encoded event signature hash */ - ], + addresses: [/* base64-encoded contract address */], + topics: [/* base64-encoded event signature hash */], }) ``` @@ -20727,7 +20723,11 @@ const workflow = (runtime: Runtime) => { // Call the high-level sendRequest with your custom function const price = httpClient - .sendRequest(runtime, fetchPrice, consensusMedianAggregation())(runtime.config.apiUrl) + .sendRequest( + runtime, + fetchPrice, + consensusMedianAggregation() + )(runtime.config.apiUrl) .result() runtime.log(`Aggregated price: ${price}`) @@ -21249,7 +21249,11 @@ const createResource = (sendRequester: HTTPSendRequester, payload: { name: strin // In your workflow const httpClient = new HTTPClient() const resource = httpClient - .sendRequest(runtime, createResource, consensusIdenticalAggregation<{ id: string }>())({ name: "My Resource" }) + .sendRequest( + runtime, + createResource, + consensusIdenticalAggregation<{ id: string }>() + )({ name: "My Resource" }) .result() ``` diff --git a/src/content/cre/reference/clf-migration-ts.mdx b/src/content/cre/reference/clf-migration-ts.mdx index 1fcdd00bd06..7b609fc1e96 100644 --- a/src/content/cre/reference/clf-migration-ts.mdx +++ b/src/content/cre/reference/clf-migration-ts.mdx @@ -94,12 +94,8 @@ Directly replaces the on-chain entry path of `_sendRequest()`. Instead of your c ```ts const evmClient = new cre.evm.EVMClient(CHAIN_SELECTOR) const trigger = evmClient.logTrigger({ - addresses: [ - /* base64-encoded contract address */ - ], - topics: [ - /* base64-encoded event signature hash */ - ], + addresses: [/* base64-encoded contract address */], + topics: [/* base64-encoded event signature hash */], }) ``` diff --git a/src/content/cre/reference/sdk/http-client-ts.mdx b/src/content/cre/reference/sdk/http-client-ts.mdx index 17c5401733d..da02857cbd6 100644 --- a/src/content/cre/reference/sdk/http-client-ts.mdx +++ b/src/content/cre/reference/sdk/http-client-ts.mdx @@ -76,7 +76,11 @@ const workflow = (runtime: Runtime) => { // Call the high-level sendRequest with your custom function const price = httpClient - .sendRequest(runtime, fetchPrice, consensusMedianAggregation())(runtime.config.apiUrl) + .sendRequest( + runtime, + fetchPrice, + consensusMedianAggregation() + )(runtime.config.apiUrl) .result() runtime.log(`Aggregated price: ${price}`) @@ -598,7 +602,11 @@ const createResource = (sendRequester: HTTPSendRequester, payload: { name: strin // In your workflow const httpClient = new HTTPClient() const resource = httpClient - .sendRequest(runtime, createResource, consensusIdenticalAggregation<{ id: string }>())({ name: "My Resource" }) + .sendRequest( + runtime, + createResource, + consensusIdenticalAggregation<{ id: string }>() + )({ name: "My Resource" }) .result() ``` diff --git a/src/content/data-streams/llms-full.txt b/src/content/data-streams/llms-full.txt index 6ebf51d7014..de96549baaf 100644 --- a/src/content/data-streams/llms-full.txt +++ b/src/content/data-streams/llms-full.txt @@ -5187,9 +5187,7 @@ Pass your logger to the SDK and choose a verbosity level. For deep WS diagnostic import { createClient, LogLevel } from "@chainlink/data-streams-sdk" // Silent mode (default) - Zero overhead -const client = createClient({ - /* ... config without logging */ -}) +const client = createClient({/* ... config without logging */}) // Basic console logging const client = createClient({ diff --git a/src/content/data-streams/reference/data-streams-api/ts-sdk.mdx b/src/content/data-streams/reference/data-streams-api/ts-sdk.mdx index 8163c14c426..ac7eb303801 100644 --- a/src/content/data-streams/reference/data-streams-api/ts-sdk.mdx +++ b/src/content/data-streams/reference/data-streams-api/ts-sdk.mdx @@ -362,9 +362,7 @@ Pass your logger to the SDK and choose a verbosity level. For deep WS diagnostic import { createClient, LogLevel } from "@chainlink/data-streams-sdk" // Silent mode (default) - Zero overhead -const client = createClient({ - /* ... config without logging */ -}) +const client = createClient({/* ... config without logging */}) // Basic console logging const client = createClient({ diff --git a/src/features/ccip/components/NetworkDropdown.tsx b/src/features/ccip/components/NetworkDropdown.tsx index d14b6e7b84e..a66df885b25 100644 --- a/src/features/ccip/components/NetworkDropdown.tsx +++ b/src/features/ccip/components/NetworkDropdown.tsx @@ -30,10 +30,10 @@ import { import { ErrorBoundary } from "../../../components/ErrorBoundary.tsx" enum LoadingState { - "START", + START, "LOADING...", - "ERROR", - "END", + ERROR, + END, } interface Props { diff --git a/src/pages/[...path].md.ts b/src/pages/[...path].md.ts index 93be892199a..1b4d916d93d 100644 --- a/src/pages/[...path].md.ts +++ b/src/pages/[...path].md.ts @@ -80,9 +80,7 @@ async function resolveSpecialCanonicalMarkdownPath(cleanPath: string): Promise { if (!cleanPath.startsWith("cre/")) { diff --git a/src/scripts/chains-metadata.ts b/src/scripts/chains-metadata.ts index ac015aa5202..bb53b20793c 100644 --- a/src/scripts/chains-metadata.ts +++ b/src/scripts/chains-metadata.ts @@ -87,8 +87,7 @@ function normalizeChainName(name: string): string { } type ChainMatchResult = - | { matched: true; reason: "name" | "nativeCurrency" } - | { matched: false; existingName: string | undefined } + { matched: true; reason: "name" | "nativeCurrency" } | { matched: false; existingName: string | undefined } /** * When chainid.network flags a chain as reusedChainId, determines whether the incoming